:root {
    --color-bg: #020617;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-black: #02040a;
    --color-dark-gray: #0b1329;
    --color-silver: #cbd5e1;
    --color-soft-white: #f1f5f9;
    --color-blue-glow: rgba(37, 99, 235, 0.35);
    --color-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-glass: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none; /* Custom cursor */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
/* Large Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(64, 122, 255, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9000;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    will-change: transform, opacity, scale;
}

/* Original custom cursor */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.custom-cursor.hover {
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: 1px solid var(--color-soft-white);
}

.custom-cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-blue-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    mix-blend-mode: screen;
}

/* Typography */
h1, h2, h3, h4, .cinematic-text, .massive-text {
    font-family: var(--font-heading);
    color: var(--color-soft-white);
}

.cinematic-text {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.8rem;
    color: var(--color-text);
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.05), 0 0 40px rgba(255, 255, 255, 0.03);
    transition: text-shadow 0.6s var(--transition-smooth), color 0.6s var(--transition-smooth);
}

.cinematic-text:hover {
    text-shadow: 0 0 50px rgba(37, 99, 235, 0.25), 0 0 20px rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.massive-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.text-gradient {
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.4));
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.glow-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(20,40,90,0.5) 0%, transparent 60%);
}
.glow-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(40,40,40,0.8) 0%, transparent 60%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a.btn-primary {
    color: #020617 !important;
}
.nav-links a.btn-primary:hover {
    color: #ffffff !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.hamburger span {
    width: 30px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn-primary {
    position: relative;
    padding: 0.75rem 1.6rem;
    background: #ffffff;
    color: #020617 !important;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.12);
    transform: translateY(-1.5px);
}

.btn-primary.glass-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-soft-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-1.5px);
}

.large-btn {
    padding: 1.1rem 2.4rem;
    font-size: 1.05rem;
    border-radius: 9999px;
}

/* =============== HERO SECTION =============== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 0; /* Clear navbar */
    overflow: hidden;
    background: radial-gradient(ellipse at top, #0f172a 0%, #020617 60%, #010208 100%);
}

/* Noise overlay for cinematic luxury grain - set to ultra subtle 0.005 */
.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.005'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
}

/* Vignette shadow for high-end spotlight composition */
.cinematic-vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(1, 2, 8, 0.95) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Soft glowing grid pattern - extremely faint luxury grid */
.grid-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1; pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    animation: grid-glow 12s infinite alternate ease-in-out;
}

@keyframes grid-glow {
    0% { opacity: 0.4; }
    100% { opacity: 0.7; }
}

.hero-grid {
    position: relative; z-index: 10;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; /* Give left text more breathing space */
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

/* Ambient Background Orbs */
.ambient-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; pointer-events: none; z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.4;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.orb-1 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.03) 70%, transparent 100%);
    top: -15%; left: -10%;
    animation: orb-float-1 25s infinite alternate ease-in-out;
}

.orb-2 {
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.1) 0%, rgba(2, 6, 23, 0.02) 60%, transparent 100%);
    top: 30%; right: -10%;
    animation: orb-float-2 22s infinite alternate ease-in-out 3s;
}

.orb-3 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    bottom: -20%; left: 10%;
    animation: orb-float-3 28s infinite alternate ease-in-out 6s;
}

.orb-4 {
    width: 30vw; height: 30vw;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.08) 0%, transparent 70%);
    top: 5%; right: 20%;
    animation: orb-float-4 20s infinite alternate ease-in-out 1.5s;
}

/* Light beams sweeping through space - tamer and cleaner */
.light-beam {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
    pointer-events: none;
    z-index: 1;
    filter: blur(1px);
    will-change: transform, opacity;
}

.beam-1 {
    width: 300px; height: 1px;
    top: 25%; left: -10%;
    transform: rotate(-12deg);
    animation: sweep-beam-1 12s infinite linear;
}

.beam-2 {
    width: 400px; height: 1px;
    bottom: 30%; right: -10%;
    transform: rotate(15deg);
    animation: sweep-beam-2 15s infinite linear;
}

@keyframes orb-float-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.1); }
}

@keyframes orb-float-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 60px) scale(1.15); }
}

@keyframes orb-float-3 {
    0% { transform: translate(0, 0) scale(1.05); }
    100% { transform: translate(50px, -50px) scale(0.9); }
}

@keyframes orb-float-4 {
    0% { transform: translate(0, 0) scale(0.9); }
    100% { transform: translate(-30px, -30px) scale(1.1); }
}

@keyframes sweep-beam-1 {
    0% { transform: translateX(-300px) rotate(-12deg); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateX(110vw) rotate(-12deg); opacity: 0; }
}

@keyframes sweep-beam-2 {
    0% { transform: translateX(300px) rotate(15deg); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateX(-110vw) rotate(15deg); opacity: 0; }
}

/* Floating UI details */
.hero-floating-ui {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
}

/* Glass labels */
.glass-label {
    position: absolute;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--color-silver);
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.label-1 { top: 20%; left: 15%; }
.label-2 { bottom: 25%; left: 5%; }

/* Redesign feature panel to be an elegant bullet list */
.feature-panel {
    top: auto; right: auto;
    bottom: 12%; left: 20%;
    width: auto; height: auto;
    background: rgba(10, 15, 25, 0.4);
    padding: 15px 25px;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.panel-row {
    font-size: 0.85rem;
    color: var(--color-silver);
    display: flex; align-items: center;
}

.panel-row span::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-silver);
    margin-right: 12px;
}

.neon-line {
    position: absolute; bottom: 25%; right: 10%; width: 2px; height: 180px;
    background: linear-gradient(to bottom, transparent, rgba(64,122,255,1), transparent);
    filter: blur(1px); opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    text-align: left;
}

.hero-content .subtext {
    font-size: 1.2rem;
    color: var(--color-silver);
    margin: 1.5rem 0 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* Right Side Showcase Grid Area */
.hero-showcase {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

#preview-1 {
    position: absolute;
    width: 85%;
    bottom: 5%; right: 0;
    z-index: 2;
    transform: translateZ(30px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    border-radius: 12px; overflow: hidden;
}

#preview-2 {
    position: absolute;
    width: 70%;
    top: 5%; left: 0%;
    z-index: 1;
    transform: translateZ(-30px);
    filter: brightness(0.6) blur(3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 12px; overflow: hidden;
}

#preview-1 img, #preview-2 img {
    width: 100%; height: auto; display: block;
}

/* Optional responsive adjustments for Grid removed to bottom of document */

/* Experience Section */
.experience-section {
    padding: 15vh 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* Common Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-muted);
}

/* Gallery Section */
.gallery-section {
    padding: 10vh 5%;
}

/* Desktop grid gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-card {
    position: relative;
    height: 320px;
    background: var(--color-dark-gray);
    border-radius: var(--radius-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    overflow: hidden;
    cursor: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    transition: opacity 0.6s;
    pointer-events: none;
}

.gallery-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.06) 0%, transparent 40%);
    z-index: 2;
    pointer-events: none;
}

.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: top center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

/* CSS Browser Mockup Frame */
.mac-window {
    width: 100%; height: 100%;
    background: #000;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.mac-header {
    height: 18px; background: #161616;
    display: flex; align-items: center; padding: 0 10px; gap: 4px;
    border-bottom: 1px solid #222;
}
.mac-dot { width: 6px; height: 6px; border-radius: 50%; opacity: 0.8;}
.mac-dot.r { background: #ff5f56; }
.mac-dot.y { background: #ffbd2e; }
.mac-dot.g { background: #27c93f; }

.mac-body {
    flex: 1;
    background-size: cover; background-position: center;
    position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.mac-body::before {
    content:''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5); z-index: 1;
}
.mac-ui {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.mac-ui-nav {
    position: absolute; top: 15px; left: 20px; right: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 8px; color: #fff; font-family: var(--font-heading); letter-spacing: 2px;
}
.mac-ui-nav .lines {
    display: inline-block; width: 14px; height: 1px; background: #fff; position: relative;
}
.mac-ui-nav .lines::after, .mac-ui-nav .lines::before {
    content:''; position: absolute; left: 0; width: 14px; height: 1px; background: #fff;
}
.mac-ui-nav .lines::before { top: -4px; }
.mac-ui-nav .lines::after { bottom: -4px; }

.mac-ui-hero h1 {
    font-size: 26px; color: #fff; margin-bottom: 8px; font-weight: 300; letter-spacing: 2px; font-family: var(--font-heading);
}
.mac-ui-hero .btn {
    display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.4); color: #fff; font-size: 8px;
    text-transform: uppercase; border-radius: 20px; letter-spacing: 1px;
}

.card-content {
    position: relative;
    z-index: 3;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(64, 122, 255, 0.15), 0 0 40px rgba(0,0,0,0.8);
}

.gallery-card:hover .card-bg {
    transform: scale(1.08);
}

.gallery-card:hover::before {
    opacity: 0.8;
}

.gallery-card:hover .card-content {
    transform: translateY(0);
}

.gallery-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.gallery-card p {
    color: var(--color-soft-white);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.view-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    font-weight: 600;
}

.gallery-card:hover .view-text {
    opacity: 1;
    transform: translateY(0);
}

/* Demo Modal */
.demo-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.demo-modal.active {
    opacity: 1;
    pointer-events: all;
}

.demo-close {
    position: absolute;
    top: 2rem; right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: none;
    z-index: 1001;
}

.demo-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: var(--color-black);
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.5s ease;
}

.demo-modal.active .demo-container {
    transform: scale(1);
}

.browser-bar {
    height: 40px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid #333;
}

.dots span {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.url-bar {
    margin: 0 auto;
    background: #000;
    padding: 4px 20px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #888;
    transform: translateX(-24px); /* offset for dots */
}

.demo-content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.demo-content-wrapper::-webkit-scrollbar {
    width: 8px;
}
.demo-content-wrapper::-webkit-scrollbar-track {
    background: #111;
}
.demo-content-wrapper::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.demo-image {
    width: 100%;
    display: block;
}

/* Devices Showcase */
.device-showcase {
    padding: 15vh 5%;
    background: #020202;
    position: relative;
    overflow: hidden;
}

.device-bg-effects {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.device-glow {
    position: absolute;
    width: 60vw; height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}
.glow-blue { background: #407aff; top: -10%; right: -10%; }

.device-spotlight {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle at center, rgba(64, 122, 255, 0.08) 0%, transparent 70%);
}

.devices-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    perspective: 3000px;
    z-index: 2;
    position: relative;
}

.device {
    position: relative;
    border-radius: 40px;
    background: #000;
    box-shadow: 
        0 40px 80px -20px rgba(0,0,0,0.8),
        inset 0 0 0 2px rgba(255,255,255,0.05);
    transition: transform 0.4s ease-out; /* GSAP will handle main animation */
    transform-style: preserve-3d;
}

/* iPad Styling */
.ipad {
    width: 660px;
    height: 480px;
    border-radius: 28px;
    border: 18px solid #111;
    position: relative;
}

/* iPhone Styling */
/* ── iPhone 12 Pro Mockup ── */
.iphone {
    width: 290px;
    height: 590px;
    border: 12px solid #1c1c1c;
    border-radius: 30px;
    background: #000;
    overflow: hidden;
    position: relative;
    transform: rotateY(-15deg) rotateX(10deg);
    /* Stainless-steel frame layers */
    box-shadow:
        0 0 0 1px #555,
        0 0 0 2px #aaa,
        0 0 0 3px #4a4a4a,
        0 30px 70px rgba(0,0,0,0.9),
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 0 20px rgba(0,0,0,0.8);
    transition: var(--transition-smooth);
}

/* Removed Notch */
.iphone::before {
    display: none;
}

/* Side power button (right) */
.iphone::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 130px;
    width: 3px;
    height: 70px;
    background: linear-gradient(to bottom, #777, #aaa, #777);
    border-radius: 0 2px 2px 0;
    z-index: 30;
}

/* Lighting and Reflections */
.phone-lighting {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 15;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 40%, rgba(255,255,255,0.02) 100%);
}

.lighting-streak {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    filter: blur(10px);
}

.device .screen {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.9);
}

.iphone .screen { border-radius: 20px; }

.screen-scroll {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.screen-scroll img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.screen-scroll video {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

@keyframes autoScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-70%); }
}

/* Floating Animation */
.ipad { animation: deviceFloat 8s ease-in-out infinite; }
.iphone { animation: deviceFloat 8s ease-in-out infinite 1s; }

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(10deg); }
    50% { transform: translateY(-25px) rotateY(-10deg) rotateX(5deg); }
}

.device:hover {
    box-shadow: 
        0 60px 120px -30px rgba(0,0,0,0.9),
        inset 0 0 0 2px rgba(255,255,255,0.15);
}



/* Process Section */
.process-section {
    padding: 15vh 5%;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
    gap: 2rem;
}

.step-card {
    flex: 1;
    min-width: 200px;
    background: var(--color-dark-gray);
    padding: 2rem;
    border-radius: var(--radius-glass);
    border: 1px solid var(--color-border);
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    background: #1a1a1a;
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.step-line {
    height: 2px;
    flex: 0.5;
    background: linear-gradient(90deg, var(--color-border), transparent);
    margin-top: 4rem;
}

@media (max-width: 900px) {
    .step-line { display: none; }
    .process-steps { flex-direction: column; }
}

/* Transformation Before Vs After */
.transformation-section {
    padding: 10vh 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    border-radius: var(--radius-glass);
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #111;
}

.comparison-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.comparison-image.before {
    background: #222 url('assets/instagram_before.png') top/cover;
    z-index: 1;
}

.comparison-image.after {
    background: #050505 url('assets/luxury_preview.png') top/cover;
    width: 50%;
    z-index: 2;
    border-right: 2px solid white;
}

.c-label {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
}

/* Testimonials */
.testimonials-section {
    padding: 15vh 5%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: var(--radius-glass);
    backdrop-filter: blur(10px);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-soft-white);
    margin-bottom: 2rem;
}

.hero-content .subtext {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* Right Side Showcase Grid Area */
.hero-showcase {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

#preview-1 {
    position: absolute;
    width: 85%;
    bottom: 5%; right: 0;
    z-index: 2;
    transform: translateZ(30px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
}

#preview-2 {
    position: absolute;
    width: 70%;
    top: 5%; left: 0%;
    z-index: 1;
    transform: translateZ(-30px);
    filter: brightness(0.6) blur(3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

/* Optional responsive adjustments for Grid */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 50px;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-showcase {
        height: 400px;
    }
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.bg-blue { background: #4a90e2; }
.bg-silver { background: #b0b0b0; }
.bg-dark { background: #333; }

.author h4 {
    font-size: 1rem;
    margin: 0;
}

.author span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Final CTA */
.final-cta {
    padding: 20vh 5%;
    text-align: center;
    position: relative;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.cta-actions {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-subtext {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-silver);
    font-family: var(--font-body);
    font-weight: 500;
}

.magnetic-btn {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.magnetic-btn:hover {
    box-shadow: 0 20px 60px rgba(255,255,255,0.05), 0 0 30px rgba(64,122,255,0.3), inset 0 0 0 1px rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
}

.magnetic-btn:active {
    transform: scale(0.92) !important;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 5% 2rem;
    background: var(--color-black);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

/* Animations */
.reveal-text, .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out;
}

.delay-1 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional responsive adjustments for Grid */
@media (max-width: 990px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Base */
    .hero-grid { grid-template-columns: 1fr; padding-top: 40px; gap: 0rem; }
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    .cinematic-text {
        font-size: clamp(2rem, 9vw, 3.2rem) !important;
        text-align: center;
    }
    .hero-content .subtext { font-size: 1rem; margin-bottom: 2rem; }
    .hero-actions { justify-content: center; width: 100%; flex-direction: column; }
    .hero-actions .btn-primary { width: 100%; text-align: center; }
    
    .hero-showcase { height: 350px !important; }
    #preview-1 { width: 75%; right: 5%; bottom: 0; }
    #preview-2 { width: 65%; left: 5%; top: 10%; filter: none !important; }
    
    /* Hide heavy custom hover elements on mobile */
    .custom-cursor, #cursor-glow, .glass-label, .feature-panel, .neon-line {
        display: none !important;
    }

    /* Mobile Navbar Hamburger & Menu */
    .hamburger { display: flex !important; }
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(5,5,5,0.98);
        backdrop-filter: blur(25px);
        flex-direction: column; justify-content: center; align-items: center;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0; gap: 3rem; margin: 0;
        z-index: 999;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { font-size: 1.5rem; letter-spacing: 2px; }

    /* Gallery Mobile */
    .gallery-grid { grid-template-columns: 1fr !important; gap: 2rem; }
    .gallery-card { height: 380px; }
    
    /* Devices Showcase Mobile Vertical Stack */
    .devices-container {
        position: relative !important;
        height: 380px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 2rem auto !important;
    }
    .ipad { 
        width: 85vw !important; 
        height: 60vw !important; 
        max-width: 450px;
        max-height: 320px;
        position: absolute !important;
        left: 50% !important;
        top: 45% !important;
        transform: translate(-50%, -50%) !important;
        border: 8px solid #111 !important; 
        border-radius: 16px !important;
        z-index: 1;
    }
    .iphone { 
        width: 28vw !important; 
        height: 56vw !important; 
        max-width: 130px;
        max-height: 260px;
        position: absolute !important;
        left: 62% !important;
        top: 62% !important;
        transform: translate(0, -50%) !important;
        border-width: 5px !important;
        border-radius: 20px !important;
        z-index: 2;
        margin: 0 !important;
    }

    .screen-scroll video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: relative !important;
    }

    .screen-scroll img {
        width: 100% !important;
        height: auto !important;
        position: absolute !important;
        top: 0;
        left: 0;
    }

    .comparison-image { padding: 1rem; }
    .c-label { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    
    /* CTA */
    .cta-actions, .cta-actions .btn-primary, .magnetic-btn { width: 100% !important; text-align: center; }
    .final-cta h2 { font-size: clamp(2rem, 8vw, 3rem) !important; line-height: 1.2; }
    .huge-text, .massive-text { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.2; }

    .hero-section { min-height: auto !important; padding-bottom: 2rem; }
    .experience-section { padding: 2.5rem 5% !important; min-height: auto !important; }
    .gallery-section { padding: 2.5rem 5% !important; }
    .device-showcase { padding: 2.5rem 5% !important; }
    .process-section { padding: 2.5rem 5% !important; }
    .final-cta { padding: 3rem 5% !important; }

    /* Mobile Performance Background Optimizations */
    .glow-orb {
        animation: none !important;
        filter: blur(80px) !important; /* Smaller blur is infinitely faster on mobile! */
        mix-blend-mode: normal !important; /* Standard composition avoids layout recalculations */
    }
    .orb-1 { width: 80vw !important; height: 80vw !important; top: -10% !important; left: -20% !important; opacity: 0.2 !important; }
    .orb-2 { width: 70vw !important; height: 70vw !important; top: 40% !important; right: -25% !important; opacity: 0.1 !important; }
    .orb-3, .orb-4 { display: none !important; } /* Remove extra layers to save memory */
    
    .light-beam { display: none !important; } /* Hide sweeping light beams on mobile */
    .grid-texture {
        animation: none !important; /* Stop grid pulsing animation */
        opacity: 0.65 !important;
    }
}
