/* AutoFlow Studio - Main Styles */
/* Loading Screen Styles */
/* Smooth transition setup */

body:not(.loaded) .main-content,
body:not(.loaded) .navbar,
body:not(.loaded) .footer {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 25%, #ba68c8 50%, #9c27b0 75%, #7b1fa2 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform-origin: center;
    will-change: opacity, transform, filter;
}

.loading-logo {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

.loading-logo .letter {
    display: inline-block;
    transform: translateY(0);
}

.loading-logo .space {
    width: 0.5em;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-progress {
    height: 100%;
    background: white !important;
    background-image: none !important;
    width: 0%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Hide main content initially */
body:not(.loaded) .main-content,
body:not(.loaded) .navbar,
body:not(.loaded) .footer {
    opacity: 0;
    pointer-events: none;
}

body.loaded .main-content,
body.loaded .navbar,
body.loaded .footer {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar Reset - Override All Browser Defaults */
nav, nav *, nav::before, nav::after {
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: none;
    border-color: transparent;
    border-width: 0;
    box-shadow: none;
    outline: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Ensure no white gaps */
html, body {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Navigation */
nav.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: transparent;
    border: none;
    z-index: 9999;
    pointer-events: auto;
    transition: all 0.3s ease;
}

nav.navbar.scrolled {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.95), rgba(156, 39, 176, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav.navbar,
nav.navbar *,
nav.navbar::before,
nav.navbar::after {
    border: none;
    box-shadow: none;
}

.nav-container {
    width: 100%;
    height: 70px;
    padding: 0 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    text-decoration: none;       
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Main Content */
.main-content {
    margin-top: 0;
    min-height: calc(100vh - 0px);
    position: relative;
}

/* Simple Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.9);
    animation: bounceArrow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Hover effects */
.scroll-down-arrow:hover .scroll-indicator {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.scroll-down-arrow:hover .scroll-arrow {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Bounce animation */
@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

.scroll-down-arrow:hover .arrow-icon {
    opacity: 1;
    animation-duration: 1s;
}

/* Bouncing animation for the arrow */
@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Hide on mobile and small screens */
@media (max-width: 768px) {
    .scroll-down-arrow {
        display: none;
    }
}

/* Fade out when scrolling starts */
.scroll-down-arrow.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
}

/* Make sure hero section is positioned relative for absolute positioning */
.hero {
    position: relative;
}

/* Enhanced Hero Section with Abstract Background */
.hero {
    position: relative;
    padding: 70px 20px 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 25%, #ba68c8 50%, #9c27b0 75%, #7b1fa2 100%);
    z-index: 1;
    margin: 0;
    top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Abstract 3D Elements */
.abstract-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.sphere-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(233, 30, 99, 0.3));
    animation: float 6s ease-in-out infinite;
}

.sphere-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 15%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(156, 39, 176, 0.3));
    animation: float 8s ease-in-out infinite reverse;
}

.sphere-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 20%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(240, 98, 146, 0.3));
    animation: float 7s ease-in-out infinite;
}

.sphere-4 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    right: 15%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(186, 104, 200, 0.3));
    animation: float 5s ease-in-out infinite reverse;
}

/* Geometric Elements */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dots-pattern {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 25%;
    left: 5%;
}

.dots-pattern::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        10px 0 rgba(255, 255, 255, 0.6),
        20px 0 rgba(255, 255, 255, 0.6),
        30px 0 rgba(255, 255, 255, 0.6),
        0 10px rgba(255, 255, 255, 0.6),
        10px 10px rgba(255, 255, 255, 0.6),
        20px 10px rgba(255, 255, 255, 0.6),
        30px 10px rgba(255, 255, 255, 0.6),
        0 20px rgba(255, 255, 255, 0.6),
        10px 20px rgba(255, 255, 255, 0.6),
        20px 20px rgba(255, 255, 255, 0.6),
        30px 20px rgba(255, 255, 255, 0.6);
}

.wavy-line {
    position: absolute;
    bottom: 30%;
    left: 8%;
    width: 100px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,10 Q25,0 50,10 T100,10" stroke="rgba(255,255,255,0.4)" stroke-width="2" fill="none"/></svg>');
}

.circle-outline {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.vertical-line {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.dots-cluster {
    position: absolute;
    bottom: 20%;
    right: 12%;
    width: 40px;
    height: 40px;
}

.dots-cluster::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 
        8px 0 rgba(255, 255, 255, 0.7),
        16px 0 rgba(255, 255, 255, 0.7),
        24px 0 rgba(255, 255, 255, 0.7),
        0 8px rgba(255, 255, 255, 0.7),
        8px 8px rgba(255, 255, 255, 0.7),
        16px 8px rgba(255, 255, 255, 0.7),
        24px 8px rgba(255, 255, 255, 0.7),
        0 16px rgba(255, 255, 255, 0.7),
        8px 16px rgba(255, 255, 255, 0.7),
        16px 16px rgba(255, 255, 255, 0.7),
        24px 16px rgba(255, 255, 255, 0.7);
}

.progress-bar {
    position: absolute;
    bottom: 10%;
    left: 20%;
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(233, 30, 99, 0.8));
    border-radius: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 60px 20px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
    transform: translateY(0);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, #f91e63, #ac37c0);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ========================================
   CLEAN YOUTUBE-STYLE CAROUSEL VIDEO CONTROLS
   ======================================== */

/* Work Examples Carousel */
.work-examples {
    background: white;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.08);
    background: white;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.3);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    transform: scale(1.3);
}

.indicator:hover {
    background: #f8bbd9;
    transform: scale(1.2);
}

.carousel-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.timer-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 2px;
}

.auto-play-toggle {
    background: rgba(233, 30, 99, 0.1);
    border: 2px solid #e91e63;
    color: #e91e63;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auto-play-toggle:hover {
    background: #e91e63;
    color: white;
}

.auto-play-toggle.active {
    background: #e91e63;
    color: white;
}

/* Video Container - Outer wrapper with consistent styling */
.video-container {
    position: relative;
    background: linear-gradient(135deg, #f3e5f5, #fce4ec);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2);
}

/* Video Wrapper - Contains video and overlays */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Video Element */
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

/* Play Button Overlay - Visible when paused */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

/* Pause Button Overlay - Visible on hover when playing */
.video-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 3;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

/* Video Control Buttons */
.play-button,
.pause-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border: none;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.play-button {
    padding-left: 3px; /* Adjust play icon position */
}

.play-button:hover,
.pause-button:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.6);
    background: linear-gradient(135deg, #f91e63, #ac37c0);
}

.play-button:active,
.pause-button:active {
    transform: scale(1.05);
}

/* Video States */
.video-wrapper.paused .video-overlay {
    opacity: 1;
    visibility: visible;
}

.video-wrapper.paused .video-controls {
    opacity: 0;
    visibility: hidden;
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
    visibility: hidden;
}

.video-wrapper.playing .video-controls {
    opacity: 0;
    visibility: hidden;
}

.video-wrapper.playing:hover .video-controls {
    opacity: 1;
    visibility: visible;
}

/* Loading State */
.video-wrapper.loading .video-overlay {
    opacity: 1;
    visibility: visible;
}

.video-wrapper.loading .play-button {
    animation: pulse-loading 1.5s ease-in-out infinite;
    cursor: wait;
}

.video-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid rgba(233, 30, 99, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

/* Video Placeholder (for non-video slides) */
.video-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.video-placeholder .play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    color: #e91e63;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.video-placeholder .play-button:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Video Title and Description */
.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: left;
}

.video-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

/* Video Control Animations */
@keyframes pulse-loading {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 1; 
    }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Work Content Styles */
.work-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.work-content p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.work-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fce4ec, #f3e5f5);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step:hover {
    background: rgba(233, 30, 99, 0.05);
    transform: translateY(-10px);
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    align-items: center;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: #e91e63;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.1);
}

.pricing-card:hover {
    border-color: #e91e63;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.1);
}

.pricing-card.featured:hover {
     transform: translateY(-5px) scale(1.05);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #e91e63;
    margin-bottom: 10px;
}

.testimonials {
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #4a5568;
}

.testimonial-author {
    font-weight: 600;
    color: #1a1a1a;
}

/* Blog Page Styles */
.blog-header {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 25%, #ba68c8 50%, #9c27b0 75%, #7b1fa2 100%);
    padding: 70px 20px 80px;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    top: 0;
}

.blog-header .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blog-header .abstract-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.blog-header .sphere-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(233, 30, 99, 0.3));
    animation: float 6s ease-in-out infinite;
}

.blog-header .sphere-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 10%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(156, 39, 176, 0.3));
    animation: float 8s ease-in-out infinite reverse;
}

.blog-header .geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-header .dots-pattern {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 20%;
    right: 15%;
}

.blog-header .dots-pattern::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        8px 0 rgba(255, 255, 255, 0.6),
        16px 0 rgba(255, 255, 255, 0.6),
        0 8px rgba(255, 255, 255, 0.6),
        8px 8px rgba(255, 255, 255, 0.6),
        16px 8px rgba(255, 255, 255, 0.6);
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-header h1 {
    color: white;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.blog-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0066cc, #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    width: fit-content;
    background: transparent !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    display: block;
    border-radius: 15px;
    max-width: 100%;
    height: auto;
    background: transparent !important;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-tag {
    background: #e6f3ff;
    color: #0066cc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.blog-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #00b894;
}

/* Portfolio Page Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-header {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 25%, #ba68c8 50%, #9c27b0 75%, #7b1fa2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.portfolio-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-industry {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    font-size: 0.9rem;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-section {
    margin-bottom: 25px;
}

.portfolio-section h4 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.portfolio-section p {
    color: #6b7280;
    line-height: 1.6;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-tag {
    background: #e6f3ff;
    color: #0066cc;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.contact-info {
    padding: 40px 0;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.contact-item p {
    color: #6b7280;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.3);
}

/* Enhanced Footer Styles */
.footer {
    padding: 60px 0 40px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-branding {
    margin-bottom: 40px;
}

.footer-branding h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-social-section {
    margin-bottom: 40px;
}

.footer-social-section h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.footer-social-link img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
}

.footer-navigation {
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 15px;
    border-radius: 10px;
}

.footer-links a:hover {
    color: #e91e63;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #404040;
    padding-top: 25px;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* General Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes gifLoad {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.hero-gif.loaded {
    animation: gifLoad 1.5s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-radius: 0;
        margin: 0;
    }
    
    .nav-links a:hover, 
    .nav-links a.active {
        transform: none;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding: 100px 15px 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 40px 15px;
        border-radius: 20px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
        display: block;
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Section Spacing */
    .section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    /* Features Grid */
    .features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }
    
    .feature-card {
        padding: 30px 20px;
        margin: 0;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    /* Work Examples Carousel - Mobile */
    .work-examples {
        padding: 60px 15px;
    }
    
    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 15px;
    }
    
    .carousel-controls {
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 30px;
    }
    
    .carousel-button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .auto-play-toggle {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Video Container - Mobile */
    .video-container {
        padding: 25px 20px;
    }
    
    .video-wrapper {
        height: 250px;
        margin-bottom: 15px;
    }
    
    .video-placeholder {
        height: 250px;
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .play-button,
    .pause-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .play-button {
        padding-left: 2px;
    }
    
    .video-placeholder .play-button {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .video-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .work-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .work-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .work-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Steps Section */
    .steps-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .step {
        padding: 25px 15px;
    }
    
    .step h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .step p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Testimonials Section */
    .testimonials {
        padding: 60px 15px;
    }
    
    .testimonial-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        padding: 0;
        width: 100%;
    }
    
    .testimonial {
        background: white;
        padding: 25px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .testimonial-text {
        font-style: italic;
        margin-bottom: 15px;
        color: #4a5568;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-author {
        font-weight: 600;
        color: #1a1a1a;
        font-size: 0.9rem;
    }
    
    /* Pricing Section */
    .pricing-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        align-items: stretch;
    }
    
    .pricing-card {
        padding: 30px 20px;
        margin: 0;
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
    
    .pricing-card:hover {
        transform: translateY(-2px);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-2px);
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    /* Portfolio & Contact */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 15px 25px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links a {
        padding: 8px 12px;
    }
    
    /* Mobile Newsletter Fix */
    .section div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .section div[style*="display: flex"] input[type="email"] {
        flex-grow: 1 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .section div[style*="display: flex"] .cta-button {
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto !important;
        white-space: normal !important;
    }
    
    /* Blog Cards Mobile Fix */
    .blog-grid {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .blog-card {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .blog-content {
        padding: 30px 20px !important;
    }
    
    .section .container {
        padding: 0 15px !important;
    }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
    .hero {
        padding: 90px 10px 50px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .hero-content {
        padding: 30px 10px;
    }
    
    .cta-button {
        padding: 14px 25px;
        font-size: 0.95rem;
        max-width: 260px;
    }
    
    .section {
        padding: 50px 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 5px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .feature-card {
        padding: 25px 15px;
        margin: 0;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .carousel-slide {
        padding: 15px 10px;
        gap: 25px;
    }
    
    .video-container {
        padding: 20px 15px;
    }
    
    .video-wrapper {
        height: 200px;
        margin-bottom: 12px;
    }
    
    .video-placeholder {
        height: 200px;
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .play-button,
    .pause-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .play-button {
        padding-left: 1px;
    }
    
    .video-placeholder .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .work-content h2 {
        font-size: 1.8rem;
    }
    
    .work-content p {
        font-size: 1rem;
    }
    
    .work-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .step {
        padding: 20px 10px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .step p {
        font-size: 0.9rem;
    }
    
    .testimonials {
        padding: 50px 10px;
    }
    
    .testimonial {
        padding: 20px 15px;
        margin: 0;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .testimonial-author {
        font-size: 0.85rem;
    }
    
    .pricing-card {
        padding: 25px 15px;
        margin: 0;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .footer {
        padding: 40px 10px 20px;
    }
    
    .section .container {
        padding: 0 10px !important;
    }
    
    .blog-content {
        padding: 25px 15px !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }
    
    .step:hover {
        transform: none;
        background: transparent;
    }
    
    .step:hover .step-number {
        transform: none;
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
    }
    
    .testimonial {
        transition: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .cta-button:active {
        transform: scale(0.98);
    }
    
    /* Touch-friendly video controls */
    .video-wrapper.playing .video-controls {
        opacity: 1;
        visibility: visible;
    }
}

/* High DPI Display Adjustments */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero h1 {
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    .section-title {
        text-shadow: none;
    }
    
    .logo {
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .video-overlay,
    .video-controls,
    .play-button,
    .pause-button {
        transition: none;
    }
    
    .video-wrapper.loading .play-button {
        animation: none;
    }
    
    .video-wrapper.loading::after {
        animation: none;
    }
    
    .float,
    .rotate,
    .pulse {
        animation: none;
    }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
    .play-button,
    .pause-button {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .play-button:hover,
    .pause-button:hover {
        background: #fff;
        color: #000;
    }
}

.article-content .hero-image {
    display: block;
    margin: 30px auto;
    padding: 0;
    background: none !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: fit-content;
    position: relative;
}

.article-content .hero-image::before,
.article-content .hero-image::after {
    display: none !important;
    content: none !important;
}

.article-content .hero-image img {
    display: block;
    border-radius: 15px;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    opacity: 1 !important;
    filter: none !important;
}
/* ========================================
   ULTIMATE VIDEO CONTROLS - SINGLE SOURCE OF TRUTH
   ======================================== */

/* BASE VIDEO STYLES - ALL DEVICES */
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

/* DESKTOP ONLY - Custom controls, hidden browser controls */
@media (min-width: 769px) {
    /* Hide ALL browser video controls on desktop */
    .carousel-track video::-webkit-media-controls,
    .carousel-track video::-webkit-media-controls-panel,
    .carousel-track video::-webkit-media-controls-play-button,
    .carousel-track video::-webkit-media-controls-overlay-play-button,
    .carousel-track video::-webkit-media-controls-start-playback-button,
    .video-wrapper video::-webkit-media-controls,
    .video-wrapper video::-webkit-media-controls-panel,
    .video-wrapper video::-webkit-media-controls-play-button,
    .video-wrapper video::-webkit-media-controls-overlay-play-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Disable video direct interaction on desktop */
    .carousel-track video,
    .video-wrapper video {
        pointer-events: none !important;
    }

    /* Enable custom control wrappers */
    .carousel-track .video-wrapper,
    .video-wrapper {
        pointer-events: auto !important;
    }

    .carousel-track .video-overlay,
    .carousel-track .video-controls,
    .video-overlay,
    .video-controls {
        pointer-events: auto !important;
        z-index: 10 !important;
    }
}

/* MOBILE ONLY - Native controls, hidden custom controls */
@media (max-width: 768px) {
    /* AGGRESSIVELY hide all custom video controls */
    .carousel-track .video-overlay,
    .carousel-track .video-controls,
    .carousel-track .play-button,
    .carousel-track .pause-button,
    .video-wrapper .video-overlay,
    .video-wrapper .video-controls,
    .video-wrapper .play-button,
    .video-wrapper .pause-button,
    .video-overlay,
    .video-controls,
    .play-button,
    .pause-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    /* FORCE enable all video interactions on mobile */
    .carousel-track video,
    .video-wrapper video,
    video {
        pointer-events: auto !important;
        -webkit-touch-callout: auto !important;
        -webkit-user-select: auto !important;
        user-select: auto !important;
        touch-action: auto !important;
    }
    
    /* FORCE show native webkit controls */
    .carousel-track video::-webkit-media-controls,
    .video-wrapper video::-webkit-media-controls,
    video::-webkit-media-controls {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .carousel-track video::-webkit-media-controls-panel,
    .video-wrapper video::-webkit-media-controls-panel,
    video::-webkit-media-controls-panel {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .carousel-track video::-webkit-media-controls-overlay-play-button,
    .video-wrapper video::-webkit-media-controls-overlay-play-button,
    video::-webkit-media-controls-overlay-play-button {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .carousel-track video::-webkit-media-controls-play-button,
    .video-wrapper video::-webkit-media-controls-play-button,
    video::-webkit-media-controls-play-button {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Mobile video adjustments */
    .video-wrapper {
        height: 250px !important;
        margin-bottom: 15px !important;
        cursor: auto !important;
    }
    
    .video-container {
        padding: 25px 20px !important;
    }
    .video-wrapper {
  position: relative; /* This is required for z-index to work */
}

/* Put the YouTube player on the bottom layer */
.youtube-player {
  position: relative;
  z-index: 1;
}

/* Put your custom overlay and controls on the top layer */
.video-overlay,
.video-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* This makes them clickable */
  cursor: pointer; /* Show a hand cursor on hover */
}
}
