/* ==========================================================
   2. LOCKED VIEWPORT GLASS ISLAND CSS (Final)
========================================================== */
.locked-viewport-hero {
    position: relative; width: 100%; height: 100dvh; overflow: hidden; 
    display: flex; align-items: center; justify-content: center;
    background-color: var(--hero-bg); transition: background-color 0.4s ease;

    /* Theme Variables */
    --hero-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #475569;
    --widget-bg: rgba(255, 255, 255, 0.6);
    --highlight: #0A58CA;
    --divider: rgba(15, 23, 42, 0.1);
}

/* Dark Mode Overrides */
body.dark-mode .locked-viewport-hero {
    --hero-bg: #050c08;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    --text-main: #ffffff;
    --text-muted: #94A3B8;
    --widget-bg: rgba(0, 0, 0, 0.4);
    --highlight: var(--flyer-neon);
    --divider: rgba(255, 255, 255, 0.1);
}

/* --- Raw Background & Vignette --- */
.hero-raw-image { position: absolute; inset: 0; z-index: 0; background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; animation: slowPan 30s linear infinite alternate; }
@keyframes slowPan { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }
.hero-vignette { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.6) 150%); pointer-events: none; }

/* --- The Glass Island Window --- */
.glass-island-window {
    width: 100%; max-height: 85vh; 
    background: var(--glass-bg); backdrop-filter: blur(40px) saturate(150%); -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), inset 0 0 20px rgba(255,255,255,0.05);
    border-radius: 40px; padding: clamp(40px, 5vw, 70px); transition: all 0.5s ease;
}

@media (min-width: 992px) { .border-start-lg { border-left: 1px solid var(--divider); } }

/* --- Typography --- */
.island-badge { display: inline-flex; align-items: center; gap: 10px; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 10px var(--highlight); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.island-title { font-family: 'Outfit', sans-serif; font-size: clamp(2.8rem, 4.5vw, 4.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -2px; color: var(--text-main); margin: 0; }
.island-highlight { color: var(--highlight); transition: text-shadow 0.3s ease; }
body.dark-mode .island-highlight { text-shadow: 0 0 20px rgba(94, 252, 2, 0.4); }

.island-desc { font-family: 'Inter', sans-serif; font-size: clamp(1rem, 1.2vw, 1.15rem); color: var(--text-muted); line-height: 1.7; max-width: 480px; }

/* --- Upgraded Hover Buttons --- */
.island-actions { display: flex; align-items: center; gap: 15px; }

.btn-island-primary {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 15px;
    background: var(--text-main); color: var(--hero-bg);
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem;
    padding: 8px 8px 8px 25px; border-radius: 50px; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-icon-wrapper {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: var(--hero-bg); color: var(--text-main);
    border-radius: 50%; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Primary Button Hover Physics */
.btn-island-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: var(--highlight); color: #ffffff;
}
.btn-island-primary:hover .btn-icon-wrapper {
    transform: translateX(3px); background: #ffffff; color: var(--highlight);
}

body.dark-mode .btn-island-primary { background: var(--highlight); color: #071C0F; }
body.dark-mode .btn-island-primary .btn-icon-wrapper { background: #071C0F; color: var(--highlight); }
body.dark-mode .btn-island-primary:hover { background: #ffffff; color: #071C0F; box-shadow: 0 15px 30px rgba(94, 252, 2, 0.3); }
body.dark-mode .btn-island-primary:hover .btn-icon-wrapper { background: var(--highlight); color: #071C0F; }


.btn-island-secondary {
    position: relative; overflow: hidden;
    color: var(--text-main); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem;
    padding: 16px 30px; border-radius: 50px; text-decoration: none;
    border: 2px solid var(--divider); transition: all 0.4s ease;
    z-index: 1;
}
/* Secondary Button Hover Fill Effect */
.btn-island-secondary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--text-main); transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: -1;
}
.btn-island-secondary:hover { color: var(--hero-bg); border-color: var(--text-main); transform: translateY(-3px); }
.btn-island-secondary:hover::before { width: 100%; }

body.dark-mode .btn-island-secondary::before { background: #ffffff; }
body.dark-mode .btn-island-secondary:hover { color: #071C0F; border-color: #ffffff; }


/* --- Dashboard Widgets (Right Side) --- */
.dashboard-widget {
    background: var(--widget-bg); border: 1px solid var(--glass-border);
    padding: 25px; border-radius: 24px;
    display: flex; flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.dashboard-widget:hover {
    transform: translateX(-10px) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--highlight);
}
body.dark-mode .dashboard-widget:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

.widget-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.widget-icon { width: 45px; height: 45px; background: rgba(10, 88, 202, 0.1); color: var(--highlight); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
body.dark-mode .widget-icon { background: rgba(94, 252, 2, 0.1); }

.widget-tag { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 6px 12px; border-radius: 50px; }
.live-tag { background: rgba(16, 185, 129, 0.1); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.2); }
.elite-tag { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; border: 1px solid rgba(139, 92, 246, 0.2); }
body.dark-mode .live-tag { color: var(--flyer-neon); background: rgba(94, 252, 2, 0.1); border-color: rgba(94, 252, 2, 0.2); }

.dashboard-widget h3 { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--text-main); margin: 0; line-height: 1; }
.dashboard-widget p { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin: 5px 0 0 0; }


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .locked-viewport-hero { height: auto; min-height: 100dvh; padding: 120px 15px 40px 15px; }
    .glass-island-window { max-height: none; padding: 40px 25px; text-align: center; }
    .island-desc { margin-left: auto; margin-right: auto; }
    .island-actions { flex-direction: column; width: 100%; gap: 15px; }
    .btn-island-primary, .btn-island-secondary { width: 100%; justify-content: center; }
}

/* hero section end */
/* ==========================================================
   3. EDITORIAL GLASS SHOWCASE CSS (Perfected Theme Sync)
========================================================== */
.editorial-showcase-section {
    padding: 120px 0;
    background-color: var(--hero-bg); /* Inherits from your global variables */
    transition: background-color 0.4s ease;
    overflow: hidden;

    /* --- LIGHT MODE VARIABLES --- */
    --lux-text: #0f172a;
    --lux-muted: #475569;
    --lux-glass-bg: rgba(255, 255, 255, 0.65);
    --lux-glass-border: rgba(255, 255, 255, 0.9);
    --lux-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    
    /* Light Mode Accents */
    --lux-accent-1: #0A58CA; /* Corporate Blue */
    --lux-accent-2: #0A58CA; /* Emerald Green */
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode .editorial-showcase-section {
    --lux-text: #ffffff;
    --lux-muted: #94A3B8;
    --lux-glass-bg: rgba(10, 15, 22, 0.75); /* Deep obsidian glass */
    --lux-glass-border: rgba(255, 255, 255, 0.08);
    --lux-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    
    /* Dark Mode Accents (Instantly shifts the glows and buttons) */
    --lux-accent-1: var(--flyer-neon, #5EFC02); /* Neon Green */
    --lux-accent-2: var(--flyer-neon, #5EFC02); /* Deep Blue */
}

/* --- Section Header --- */
.luxury-eyebrow { display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--lux-muted); margin-bottom: 15px; transition: color 0.4s ease; }
.luxury-section-title { font-family: 'Outfit', sans-serif; font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; color: var(--lux-text); letter-spacing: -2px; margin: 0; transition: color 0.4s ease; }

/* Gradient automatically shifts based on theme */
.text-gradient-luxury { 
    background: linear-gradient(135deg, var(--lux-accent-1) 0%, var(--lux-accent-2) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    transition: all 0.4s ease;
}

/* --- Layout Spacing --- */
.feature-row { position: relative; z-index: 1; }
.mt-feature { margin-top: 150px; }

/* --- Massive Photography & Glowing Shadows --- */
.luxury-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 32px;
    z-index: 1;
}

/* The Glowing Shadow BEHIND the image */
.image-ambient-glow {
    position: absolute; inset: -20px; z-index: -1;
    filter: blur(40px); opacity: 0.4; 
    transition: background-color 0.4s ease, opacity 0.4s ease;
}
/* Tied directly to the theme variables */
.glow-blue { background: var(--lux-accent-1); }
.glow-green { background: var(--lux-accent-2); }

/* Intensify the glow slightly when the user hovers over the image */
.luxury-image-wrapper:hover .image-ambient-glow { opacity: 0.7; filter: blur(50px); }

.luxury-img {
    width: 100%; height: 550px; object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}
body.dark-mode .luxury-img { box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.luxury-image-wrapper:hover .luxury-img { transform: scale(1.02); }

/* --- The Overlapping Frosted Glass Cards --- */
.luxury-glass-card {
    position: relative; z-index: 5; /* Sits ABOVE the image */
    background: var(--lux-glass-bg);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--lux-glass-border);
    border-radius: 32px;
    padding: 60px 50px;
    box-shadow: var(--lux-shadow), inset 0 0 20px rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}
.luxury-glass-card:hover { transform: translateY(-5px); }

/* Pulls the card over the image */
.overlap-left { margin-left: -100px; }
.overlap-right { margin-right: -100px; }

/* --- Card Typography & Accent Lines --- */
.card-header-flex { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.luxury-num { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--lux-text); transition: color 0.4s ease; }

/* Lines instantly swap colors on toggle */
.luxury-line { width: 50px; height: 3px; border-radius: 2px; background: var(--lux-accent-1); transition: background 0.4s ease; }
.line-green { background: var(--lux-accent-2); }

.luxury-card-title { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--lux-text); margin-bottom: 20px; letter-spacing: -1px; line-height: 1.1; transition: color 0.4s ease;}
.luxury-card-desc { font-family: 'Inter', sans-serif; font-size: 1.1rem; color: var(--lux-muted); line-height: 1.8; margin-bottom: 0; transition: color 0.4s ease;}

/* --- Luxury Link Buttons --- */
.btn-luxury-link {
    display: inline-flex; align-items: center;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem;
    text-decoration: none; text-transform: uppercase; letter-spacing: 1px;
    color: var(--lux-accent-1); /* Color matches theme */
    transition: all 0.3s ease;
}
.btn-luxury-link.link-green { color: var(--lux-accent-2); }

.btn-luxury-link i { transition: transform 0.3s ease; }
.btn-luxury-link:hover { color: var(--lux-text); }
.btn-luxury-link:hover i { transform: translateX(8px); }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .editorial-showcase-section { padding: 80px 0; }
    .mt-feature { margin-top: 80px; }
    .luxury-img { height: 400px; }
    
    /* Remove negative margins so they stack normally on mobile */
    .overlap-left { margin-left: 0; margin-top: -50px; }
    .overlap-right { margin-right: 0; margin-top: -50px; }
    
    .luxury-glass-card { padding: 40px 30px; margin-left: 15px; margin-right: 15px; }
    .luxury-card-title { font-size: 2rem; }
}

/* end */

/* ==========================================================
   4. PREMIUM DASHBOARD CSS (NO FOOTERS)
========================================================== */
.premium-services-section {
    padding: 120px 0;
    background-color: var(--hero-bg);
    transition: background-color 0.4s ease;
    overflow: hidden;

    /* Theme Variables */
    --card-border: rgba(15, 23, 42, 0.08);
    --card-bevel: rgba(255, 255, 255, 0.6); 
    --card-text: #0f172a;
    --card-muted: #64748b;
    --theme-accent: #0A58CA; 
    
    --glass-gradient: linear-gradient(145deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    --spotlight-rgb: 10, 88, 202; 
}

body.dark-mode .premium-services-section {
    --card-border: rgba(255, 255, 255, 0.08);
    --card-bevel: rgba(255, 255, 255, 0.05);
    --card-text: #ffffff;
    --card-muted: #94A3B8;
    --theme-accent: var(--flyer-neon, #5EFC02); 
    
    --glass-gradient: linear-gradient(145deg, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.3) 100%);
    --spotlight-rgb: 94, 252, 2; 
}

/* Headers */
.premium-services-section .luxury-eyebrow { display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--theme-accent); border: 1px solid var(--theme-accent); padding: 8px 24px; border-radius: 50px; background: transparent; transition: all 0.4s ease;}
.premium-services-section .luxury-title { font-family: 'Outfit', sans-serif; font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; color: var(--card-text); letter-spacing: -2px; margin: 0; transition: color 0.4s ease;}
.premium-services-section .text-gradient-neon { color: var(--theme-accent); text-shadow: 0 0 20px rgba(var(--spotlight-rgb), 0.4); transition: all 0.4s ease;}

/* --- The Grid --- */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    position: relative;
}

/* --- The Spotlight Cards --- */
.spotlight-card {
    position: relative;
    border-radius: 24px;
    background: var(--card-border); 
    padding: 1px; 
    cursor: default; /* Changed cursor since there is no button */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.spotlight-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient( 800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--spotlight-rgb), 0.9), transparent 40% );
    opacity: 0; transition: opacity 0.4s ease; z-index: 1; border-radius: 24px;
}

.card-inner {
    position: relative; background: var(--glass-gradient); border-radius: 23px;
    padding: 40px 30px; height: 100%; z-index: 2;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 0 var(--card-bevel), 0 10px 30px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; transition: all 0.4s ease;
}

.card-inner::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient( 600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--spotlight-rgb), 0.08), transparent 40% );
    opacity: 0; transition: opacity 0.4s ease; z-index: -1; border-radius: inherit;
}

.spotlight-grid:hover .spotlight-card::before,
.spotlight-grid:hover .card-inner::before { opacity: 1; }

/* --- Content Styling --- */
.card-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(var(--spotlight-rgb), 0.1); color: var(--theme-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
    border: 1px solid rgba(var(--spotlight-rgb), 0.2);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-body { display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--card-text); margin-bottom: 12px; transition: color 0.4s ease;}
.card-body p { font-family: 'Inter', sans-serif; font-size: 1.05rem; color: var(--card-muted); line-height: 1.6; margin-bottom: auto; transition: color 0.4s ease;}

/* --- Tech Stack Pill Badges (Replaces the footer) --- */
.card-tech-stack {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px;
    margin-top: 25px; 
    margin-bottom: 0; /* Bottom spacing is handled by card-inner padding */
    padding-top: 25px; 
    border-top: 1px solid var(--card-border);
}

.tech-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #0A0F16; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px; border-radius: 50px;
    font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600;
    color: #f8fafc; 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body:not(.dark-mode) .tech-badge {
    background: #f1f5f9; border: 1px solid #e2e8f0; color: #0f172a;
}

.tech-badge i { font-size: 1.1rem; transition: transform 0.3s ease; }

/* Micro-interaction on individual pills */
.tech-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
body:not(.dark-mode) .tech-badge:hover {
    background: #ffffff; border-color: #cbd5e1; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.tech-badge:hover i { transform: scale(1.15); }

/* =========================================
   THE LUXURY HOVER STATES
   ========================================= */
.spotlight-card:hover { transform: translateY(-8px); }

.spotlight-card:hover .card-inner { box-shadow: inset 0 1px 0 0 var(--card-bevel), 0 20px 40px rgba(0,0,0,0.1); }
body.dark-mode .spotlight-card:hover .card-inner { box-shadow: inset 0 1px 0 0 var(--card-bevel), 0 20px 50px rgba(0,0,0,0.6); }

/* Main Icon Pop */
.spotlight-card:hover .card-icon {
    background: var(--theme-accent); color: #ffffff;
    transform: scale(1.1) rotate(-5deg); box-shadow: 0 10px 25px rgba(var(--spotlight-rgb), 0.4);
}
body.dark-mode .spotlight-card:hover .card-icon { color: #000000; } 

@media (max-width: 991px) {
    .premium-services-section { padding: 80px 0; }
    .card-inner { padding: 30px 25px; }
}