/* Hero Section with Scroll Animation */
        .hero-section {
            position: relative;
            width: 100%;
            min-height: 100vh;
            /* Absolute path from root */
            background: url('../app/samrt-app.webp');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

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

        .scroll-content {
            height: 500vh; /* 5 sections worth of scroll */
            position: relative;
        }

        .content-section {
            position: sticky;
            top: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 40px 20px;
            color: white;
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateY(30px);
            pointer-events: none;
            will-change: opacity, transform;
        }

        .content-section.active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        .text-container {
            max-width: 800px;
            margin-bottom: 40px;
        }

        .changing-text {
            font-size: 45px;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 25px;
            min-height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            background: #fff;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            padding: 10px 0;
            font-family: "Raleway", sans-serif;
        }

        .subtitle {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            opacity: 0;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
            transform: translateY(20px);
        }

        .content-section.active .subtitle {
            opacity: 0.9;
            transform: translateY(0);
        }

        .dive-in-btn {
            background: transparent;
            color: white;
            border: 1px solid #fff;
            padding: 8px 20px;
            font-size: 1.2rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 40px;
            /*box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);*/
            position: relative;
            overflow: hidden;
            z-index: 3;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
        }

        .content-section.active .dive-in-btn {
            opacity: 1;
            transform: translateY(0);
        }

        .dive-in-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
        }

        .dive-in-btn:active {
            transform: translateY(-1px) scale(1.02);
        }

        .dive-in-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        .dive-in-btn:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }

        /* Scroll Indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            flex-direction: column;
            align-items: center;
            color: white;
            opacity: 0.8;
            z-index: 10;
            transition: all 0.5s ease;
        }

        .scroll-indicator.hidden {
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(20px);
        }

        .scroll-indicator span {
            font-size: 0.9rem;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            opacity: 0.8;
        }

        .scroll-indicator-icon {
            width: 24px;
            height: 40px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 12px;
            position: relative;
        }

        .scroll-indicator-icon:before {
            content: '';
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 8px;
            background: white;
            border-radius: 2px;
            animation: scrollIndicator 2s infinite;
        }

        @keyframes scrollIndicator {
            0% {
                opacity: 1;
                top: 8px;
            }
            100% {
                opacity: 0;
                top: 24px;
            }
        }

        /* Lightbox Popup */
        .lightbox-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.98);
            z-index: 1000;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .lightbox-overlay.active {
            display: flex;
            opacity: 1;
            align-items: center;
            justify-content: center;
        }

        .lightbox-container {
            width: 95%;
            max-width: 1400px;
            height: 90vh;
            background: #000;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            position: relative;
            animation: lightboxAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes lightboxAppear {
            0% {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .lightbox-content {
            display: flex;
            height: 100%;
            width: 100%;
        }

        .lightbox-left {
            flex: 0.4;
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: #111;
        }

        .lightbox-right {
            flex: 1;
            position: relative;
            overflow: hidden;
            background: #000;
        }

        .popup-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }

        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            z-index: 1001;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        /* Mobile Device Container */
        .mobile-device-container {
            width: 100%;
            max-width: 280px;
            margin: 0 auto;
            position: relative;
        }

        .mobile-device {
            position: relative;
            width: 100%;
            aspect-ratio: 9/16;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
            background: #222;
            transform-style: preserve-3d;
            animation: deviceAppear 0.4s ease-out forwards;
        }

        @keyframes deviceAppear {
            0% {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .mobile-device-frame {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(145deg, #1a1a1a, #222);
            border-radius: 26px;
            display: flex;
            flex-direction: column;
            padding: 15px;
            color: white;
            overflow: hidden;
        }

        .mobile-device-screen {
            flex: 1;
            border-radius: 15px;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            position: relative;
            background-color: #0a0a0a;
        }

        .device-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 15px;
            text-align: center;
        }

        .device-title {
            font-size: 1.6rem;
            font-weight: 600;
            margin-bottom: 5px;
            background: linear-gradient(135deg, #fff, #a0c8ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .device-location {
            opacity: 0.8;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        .device-temperature {
            font-size: 3.5rem;
            font-weight: 300;
            margin: 15px 0;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .temp-unit {
            font-size: 1.5rem;
            vertical-align: super;
            opacity: 0.8;
        }

        .device-controls {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            width: 100%;
            margin-top: 15px;
        }

        .device-control-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px;
            border-radius: 10px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
        }

        .device-control-btn.active {
            background: rgba(0, 102, 255, 0.3);
            border-color: rgba(0, 102, 255, 0.5);
        }

        .device-control-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-1px);
        }

        /* Navigation Arrows */
        .navigation-arrows {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 30px;
            gap: 25px;
        }

        .nav-arrow {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .nav-arrow:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .nav-arrow:active {
            transform: scale(0.95);
        }

        .device-indicator {
            color: white;
            font-size: 0.9rem;
            opacity: 0.7;
            min-width: 80px;
            text-align: center;
        }

        /* Auto-slide Timer */
        .auto-slide-timer {
            position: absolute;
            top: 20px;
            left: 20px;
            color: white;
            font-size: 1rem;
            opacity: 0.7;
            display: none;
            align-items: center;
            gap: 8px;
            z-index: 10;
            transition: opacity 0.3s ease;
        }

        .timer-progress {
            width: 100px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            overflow: hidden;
        }

        .timer-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #0066ff, #00ccff);
            width: 100%;
            transform-origin: left;
            transition: transform 0.1s linear;
        }

        /* Scroll Progress Bar */
        .scroll-progress {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            z-index: 100;
        }

        .scroll-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #0066ff, #00ccff);
            width: 0%;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .mobile-device-container {
                max-width: 250px;
            }
        }

        @media (max-width: 1024px) {
            .lightbox-content {
                flex-direction: column;
            }

            .lightbox-left {
                flex: none;
                padding: 20px;
                min-height: 40vh;
                width: 100%;
            }

            .lightbox-right {
                flex: none;
                min-height: 50vh;
                width: 100%;
            }

            .mobile-device-container {
                max-width: 220px;
            }

            .auto-slide-timer {
                top: 15px;
                left: 15px;
            }
        }

        @media (max-width: 768px) {
            .changing-text {
                min-height: 100px;
                font-size: 2.2rem;
            }

            .lightbox-container {
                width: 97%;
                height: 95vh;
                border-radius: 15px;
            }

            .mobile-device-container {
                max-width: 200px;
            }

            .device-temperature {
                font-size: 3rem;
            }

            .dive-in-btn {
                padding: 16px 40px;
                font-size: 1.1rem;
            }

            .auto-slide-timer {
                font-size: 0.9rem;
            }

            .timer-progress {
                width: 80px;
            }

            .scroll-content {
                height: 400vh;
            }
        }

        @media (max-width: 480px) {
            .changing-text {
                min-height: 80px;
                font-size: 1.8rem;
            }
            
            .hero-section {
              position: relative;
              width: 100%;
              height: 45vh;
              overflow: hidden;
            }
            
            .hero-section {
              position: relative;
              width: 100%;
              min-height: 45vh;
              background: url('../app/samrt-app.webp');
                background-position-x: 0%;
                background-position-y: 0%;
                background-attachment: scroll;
                background-size: auto;
              background-size: cover;
              background-position: center;
              background-attachment: fixed;
              display: flex;
              justify-content: center;
              align-items: center;
              overflow: hidden;
            }

            .dive-in-btn {
                padding: 14px 32px;
                font-size: 1rem;
            }

            .close-btn {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }

            .lightbox-left {
                padding: 15px;
            }

            .mobile-device-container {
                max-width: 180px;
            }

            .device-temperature {
                font-size: 2.5rem;
            }

            .device-title {
                font-size: 1.4rem;
            }

            .device-controls {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .navigation-arrows {
                gap: 20px;
            }

            .nav-arrow {
                width: 45px;
                height: 45px;
                font-size: 22px;
            }

            .auto-slide-timer {
                top: 10px;
                left: 10px;
                font-size: 0.8rem;
            }

            .timer-progress {
                width: 60px;
            }

            .scroll-content {
                height: 45vh;
            }
            
            .text-container {
              max-width: 800px;
              margin-bottom: 400px;
            }
        }

        @media (max-width: 360px) {
            .mobile-device-container {
                max-width: 160px;
            }

            .device-temperature {
                font-size: 2.2rem;
            }

            .device-title {
                font-size: 1.2rem;
            }

            .auto-slide-timer {
                display: none;
            }
            
            .hero-section {
              position: relative;
              width: 100%;
              height: 45vh;
              overflow: hidden;
            }
            
            .hero-section {
              position: relative;
              width: 100%;
              min-height: 45vh;
              background: url('../app/dinning.webp');
                background-position-x: 0%;
                background-position-y: 0%;
                background-attachment: scroll;
                background-size: auto;
              background-size: cover;
              background-position: center;
              background-attachment: fixed;
              display: flex;
              justify-content: center;
              align-items: center;
              overflow: hidden;
            }
            
            .text-container {
              max-width: 800px;
              margin-bottom: 400px;
            }
        }