/* =========================================
   BASE VARIABLES & RESET
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --c1: #2563EB; --c2: #7C3AED; --c3: #DB2777;
    --text-main: #0F172A; --text-muted: #475569; --text-light: #64748B;
    --bg-page: #F8FAFC;
}

html { scroll-behavior: smooth; }
body { 
    font-family: 'DM Sans', sans-serif; 
    background: var(--bg-page); 
    color: var(--text-main); 
    overflow-x: hidden; 
    line-height: 1.6; 
    transition: background-color 0.3s, color 0.3s; 
}

/* =========================================
   DARK MODE CAPABILITIES
========================================= */
body.dark-mode {
    --bg-page: #0F172A;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-light: #64748B;
}
body.dark-mode .bg-mesh { background: #020617; }
body.dark-mode .glass-card, 
body.dark-mode .top-nav, 
body.dark-mode .site-footer { 
    background: rgba(15, 23, 42, 0.75); 
    border-color: rgba(255, 255, 255, 0.05); 
}
body.dark-mode .blog-card, 
body.dark-mode .doc-link, 
body.dark-mode .metric-card, 
body.dark-mode .award-card, 
body.dark-mode .timeline-item h3,
body.dark-mode .info-card { 
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1); 
    color: #F1F5F9; 
}
body.dark-mode .blog-card:hover, 
body.dark-mode .doc-link:hover, 
body.dark-mode .metric-card:hover, 
body.dark-mode .award-card:hover,
body.dark-mode .info-card:hover { background: rgba(30, 41, 59, 0.9); }
body.dark-mode .btn-outline { background: rgba(30, 41, 59, 0.8); border-color: #475569; color: #F1F5F9; }
body.dark-mode .cert-modal { background: #0F172A; border: 1px solid rgba(255,255,255,0.1); }
body.dark-mode .tag { background: rgba(30, 41, 59, 0.8); color: #F1F5F9; }
body.dark-mode .form-control { background: rgba(15, 23, 42, 0.8); color: #F1F5F9; border-color: rgba(255, 255, 255, 0.2); }
body.dark-mode .form-control:focus { border-color: var(--c1); box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }

/* =========================================
   BACKGROUND MESH ANIMATION
========================================= */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #F1F5F9; transition: background-color 0.3s; }
.blob { position: absolute; filter: blur(90px); opacity: 0.6; border-radius: 50%; animation: float 20s infinite alternate ease-in-out; will-change: transform; }
.blob-1 { width: 50vw; height: 50vw; background: rgba(37,99,235,0.3); top: -10%; left: -10%; }
.blob-2 { width: 40vw; height: 40vw; background: rgba(124,58,237,0.3); bottom: -10%; right: -5%; animation-delay: -5s; }
.blob-3 { width: 35vw; height: 35vw; background: rgba(219,39,119,0.2); top: 30%; left: 40%; animation-duration: 25s; }
@keyframes float { 
    0% { transform: translate(0, 0) scale(1); } 
    50% { transform: translate(5%, 10%) scale(1.1); } 
    100% { transform: translate(-5%, -5%) scale(0.9); } 
}

/* =========================================
   TOP NAVIGATION BAR
========================================= */
.top-nav { 
    position: sticky; top: 1rem; z-index: 1000; max-width: 1200px; margin: 1rem auto 2rem auto; 
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 100px; padding: 0.8rem 1.5rem; 
    display: flex; justify-content: space-between; align-items: center; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); transition: all 0.3s ease; 
}
.nav-brand { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--text-main); text-decoration: none; letter-spacing: -0.02em; }
.nav-menu { display: flex; gap: 2rem; }
.nav-menu a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--c1); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions a { padding: 8px 24px; font-size: 0.9rem; }

/* ── 3D LIQUID THEME TOGGLE ── */
.theme-toggle-track {
    position: relative; width: 90px; height: 36px; background: rgba(0, 0, 0, 0.08);
    border-radius: 30px; border: 1px solid rgba(0, 0, 0, 0.05); cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; outline: none; transition: background 0.4s; margin-left: 10px;
}
body.dark-mode .theme-toggle-track { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.1); }
.theme-text { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); z-index: 1; transition: opacity 0.4s; pointer-events: none; }
.text-dark { opacity: 0; position: absolute; left: 14px; }
.text-light { opacity: 1; position: absolute; right: 12px; }
body.dark-mode .text-dark { opacity: 1; color: #F1F5F9; }
body.dark-mode .text-light { opacity: 0; }
.theme-liquid-bubble {
    position: absolute; top: -6px; left: -2px; width: 48px; height: 48px; border-radius: 50%;
    background: radial-gradient(100% 100% at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.15), inset 3px 3px 8px rgba(255, 255, 255, 0.9), 0 6px 15px rgba(0, 0, 0, 0.15);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s, border-radius 0.3s; z-index: 2;
}
body.dark-mode .theme-liquid-bubble {
    transform: translateX(46px);
    background: radial-gradient(100% 100% at 30% 30%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.5), inset 3px 3px 8px rgba(255, 255, 255, 0.4), 0 6px 15px rgba(0, 0, 0, 0.4);
}
.theme-toggle-track:active .theme-liquid-bubble { width: 56px; border-radius: 40px; }
body.dark-mode .theme-toggle-track:active .theme-liquid-bubble { transform: translateX(38px); }
.theme-liquid-bubble svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.4s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.icon-moon { opacity: 1; color: var(--text-main); transform: rotate(0deg) scale(1); }
.icon-sun { opacity: 0; color: #FFF; transform: rotate(-90deg) scale(0.5); }
body.dark-mode .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
body.dark-mode .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }

/* =========================================
   GENERAL LAYOUT & GLASSMORPHISM
========================================= */
.layout-wrapper { 
    max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 4rem; 
    display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: start;
}
.layout-wrapper.single-column { display: flex; flex-direction: column; max-width: 1100px; align-items: stretch; width: 100%; margin: 0 auto; }
.layout-wrapper.blog-column { max-width: 800px; display: block; }
.glass-card { 
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 24px; padding: 2rem; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); transition: all 0.3s ease; 
}
.glass-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08); }
.glass-card.no-hover:hover { transform: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }

/* Typography */
h1 { font-family: 'Syne', sans-serif; font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 0.5rem; letter-spacing: -0.03em; }
.center-h1 { text-align: center; margin-bottom: 3rem; font-size: 3rem; }
.gradient-text { 
    background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    background-size: 200% auto; animation: gradientShift 5s ease infinite alternate;
}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.section-title { 
    font-family: 'Syne', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; 
    color: var(--c2); margin-bottom: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 1rem; 
}
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(124,58,237,0.3), transparent); }

/* Buttons */
.btn { 
    padding: 10px 20px; border-radius: 100px; text-decoration: none; font-weight: 600; font-size: 0.9rem; 
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #FFF; box-shadow: 0 4px 15px rgba(37,99,235,0.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(37,99,235,0.4); transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,0.8); color: var(--text-main); border: 1px solid var(--text-light); }
.btn-outline:hover { border-color: var(--c1); color: var(--c1); }

/* =========================================
   COMPONENTS (INDEX PAGE)
========================================= */
.sidebar { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 1.5rem; }
.profile-img-wrap { 
    width: 100%; aspect-ratio: 1 / 1; border-radius: 48px; padding: 6px; 
    background: linear-gradient(135deg, var(--c1), var(--c2)); margin-bottom: 0.5rem; 
    position: relative; box-shadow: 0 15px 30px rgba(124, 58, 237, 0.2); 
}
.profile-img { width: 100%; height: 100%; border-radius: 42px; object-fit: cover; border: 5px solid #FFF; }
.status-badge { 
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; 
    background: rgba(34, 197, 94, 0.1); border-radius: 100px; color: #16A34A; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; 
}
.pulse-dot { width: 8px; height: 8px; background: #22C55E; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } 
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { 
    font-size: 0.75rem; padding: 6px 12px; background: rgba(255,255,255,0.8); 
    border: 1px solid rgba(124,58,237,0.15); border-radius: 8px; color: var(--text-muted); font-weight: 500; transition: all 0.3s ease; 
}
.tag:hover { background: var(--c1); color: #FFF; border-color: var(--c1); transform: translateY(-2px); }
.map-widget { 
    background: linear-gradient(160deg, #0f1b3d, #1a2d5a); border-radius: 16px; padding: 1.5rem; 
    position: relative; overflow: hidden; margin-top: 1rem; color: #FFF; text-align: center; 
}
.map-widget svg { width: 110px; opacity: 0.7; margin-bottom: 0.5rem; }
.pin { position: absolute; top: 48%; left: 52%; font-size: 1.3rem; transform: translate(-50%, -50%); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -60%); } }

.content-feed { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.typewriter { 
    display: inline-block; font-family: 'Syne', sans-serif; font-weight: 700; color: var(--c1); 
    font-size: 1.2rem; margin-bottom: 1.5rem; background: rgba(37,99,235,0.1); padding: 4px 12px; border-radius: 8px; 
}
.caret { display: inline-block; width: 2px; height: 1em; background: var(--c1); vertical-align: middle; animation: blink 1s infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.doc-link { 
    display: flex; align-items: center; justify-content: space-between; padding: 1.2rem; 
    background: rgba(255,255,255,0.8); border: 1px solid rgba(37,99,235,0.2); border-radius: 12px; 
    text-decoration: none; color: var(--text-main); margin-bottom: 1rem; transition: all 0.3s ease; 
}
.doc-link:hover { background: #FFF; border-color: var(--c1); transform: translateX(5px); box-shadow: 0 5px 15px rgba(37,99,235,0.1); }
.doc-link h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; color: var(--c1); }
.doc-link p { font-size: 0.85rem; color: var(--text-muted); }

.timeline-item { position: relative; padding-left: 1.5rem; margin-bottom: 2rem; border-left: 2px solid rgba(124,58,237,0.2); }
.timeline-item::before { 
    content: ''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; 
    background: var(--c2); border-radius: 50%; box-shadow: 0 0 0 4px rgba(124,58,237,0.1); 
}
.timeline-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.timeline-item .meta { font-size: 0.85rem; color: var(--c1); font-weight: 600; margin-bottom: 0.5rem; }
.timeline-item ul { padding-left: 1rem; color: var(--text-muted); font-size: 0.95rem; list-style-type: none; }
.timeline-item li { margin-bottom: 0.5rem; position: relative; }
.timeline-item li::before { content: '•'; position: absolute; left: -1rem; color: var(--c1); font-weight: bold; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.metric-card { 
    padding: 1.5rem; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.9); 
    border-radius: 16px; text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; 
}
.metric-card::after { 
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; 
    background: linear-gradient(90deg, var(--c1), var(--c2)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; 
}
.metric-card:hover::after { transform: scaleX(1); }
.metric-card:hover { transform: translateY(-5px); background: #FFF; box-shadow: 0 10px 25px rgba(37,99,235,0.1); }
.metric-num { 
    font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--c1), var(--c2)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 0.5rem; 
}
.metric-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.award-card { 
    display: flex; align-items: center; gap: 1rem; padding: 1.2rem; background: rgba(255,255,255,0.6); 
    border: 1px solid rgba(255,255,255,0.9); border-radius: 16px; transition: all 0.3s ease; position: relative; overflow: hidden; 
}
.award-card::before { 
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); transform: skewX(-20deg); transition: left 0.6s ease; z-index: 1; 
}
.award-card:hover::before { left: 150%; }
.award-card:hover { transform: translateY(-3px) scale(1.02); background: #FFF; border-color: var(--c2); box-shadow: 0 10px 20px rgba(124,58,237,0.1); }
.award-icon { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.award-details h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.2rem; line-height: 1.2; position: relative; z-index: 2; }
.award-details p { font-size: 0.8rem; color: var(--c1); font-weight: 500; position: relative; z-index: 2; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Scroll to top */
.scroll-to-top { 
    position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, var(--c1), var(--c2)); 
    color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 15px rgba(37,99,235,0.3); opacity: 0; visibility: hidden; 
    transform: translateY(20px); transition: all 0.3s ease; z-index: 1000; border: none; 
}
.scroll-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(37,99,235,0.4); }

/* =========================================
   BLOG COMPONENTS
========================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { 
    display: flex; flex-direction: column; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.9); border-radius: 16px; text-decoration: none; color: var(--text-main); 
    overflow: hidden; transition: all 0.3s ease; 
}
.blog-card:hover { background: #FFF; border-color: var(--c2); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(124,58,237,0.15); }
.blog-card-img { width: 100%; aspect-ratio: 1200 / 627; object-fit: cover; border-bottom: 1px solid rgba(0,0,0,0.05); }
.blog-card-content { padding: 1.5rem; }
.blog-date { font-size: 0.85rem; color: var(--c1); font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-title { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; }
.blog-excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

.article-hero-img { width: 100%; aspect-ratio: 1200 / 627; object-fit: cover; border-radius: 16px; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.blog-column h1 { font-size: 2.5rem; color: var(--c1); margin-bottom: 1rem; }
.blog-column h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-main); }
.blog-column h3 { font-family: 'DM Sans', sans-serif; font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--c2); }
.blog-column p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.blog-column a { color: var(--c1); text-decoration: none; font-weight: bold; }
.blog-column a:hover { text-decoration: underline; }
.meta-info { font-size: 0.9rem; color: #64748B; font-weight: 600; margin-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 1rem; }

/* =========================================
   GALLERY & CERTIFICATES COMPONENTS
========================================= */
.collage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-auto-rows: 200px; gap: 16px; grid-auto-flow: dense; }
.collage-item { border-radius: 16px; position: relative; background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1)); box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; overflow: hidden; }
.collage-item.span-2-col { grid-column: span 2; }
.collage-item.span-2-row { grid-row: span 2; }
.collage-item.span-large { grid-column: span 2; grid-row: span 2; }
.collage-item .grid-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; transition: transform 0.4s ease, filter 0.4s ease; display: block; }
.collage-item:hover .grid-img { filter: brightness(0.7); transform: scale(1.05); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.cert-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: all 0.3s ease; cursor: pointer; }
.cert-img:hover { transform: translateY(-5px); border-color: var(--c1); box-shadow: 0 15px 35px rgba(37,99,235,0.2); }

/* =========================================
   LIGHTBOX OVERLAY (Upgraded UI)
========================================= */
.lightbox-overlay { 
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); 
    z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; 
}
.lightbox-overlay.show { opacity: 1; visibility: visible; }

.lightbox-content { 
    position: relative; width: 100vw; height: 100vh; 
    display: flex; align-items: center; justify-content: center; 
}

.lightbox-img { 
    width: auto !important; height: auto !important;
    max-width: 90vw !important; max-height: 85vh !important; 
    border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    object-fit: contain !important; display: block !important; margin: auto;
}

.lightbox-close { 
    position: absolute; top: 30px; right: 40px; background: none; border: none; 
    color: #FFF; font-size: 3rem; cursor: pointer; padding: 10px; transition: transform 0.3s; line-height: 1; z-index: 10002; 
}
.lightbox-close:hover { transform: scale(1.1) rotate(90deg); color: var(--c1); }

.lightbox-nav { 
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); 
    color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; cursor: pointer; transition: all 0.3s; backdrop-filter: blur(5px); z-index: 10001; 
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); border-color: #FFF; transform: translateY(-50%) scale(1.1); }

/* Brings the buttons inward perfectly */
.lightbox-prev { left: 5vw; }
.lightbox-next { right: 5vw; }

/* =========================================
   CONTACT COMPONENTS
========================================= */
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-header p.subtitle { color: #F59E0B; font-weight: 700; letter-spacing: 0.1em; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.contact-header h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; }
.contact-header p.desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.status-banner { padding: 1.2rem 2rem; margin-bottom: 3rem; display: flex; justify-content: space-between; align-items: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: start; }
.info-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card { 
    display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; background: rgba(255,255,255,0.6); 
    border: 1px solid rgba(37,99,235,0.1); border-radius: 16px; text-decoration: none; color: var(--text-main); transition: all 0.3s ease; 
}
.info-card:hover { background: #FFF; border-color: var(--c1); transform: translateX(5px); box-shadow: 0 10px 25px rgba(37,99,235,0.1); }
.icon-box { background: var(--c1); color: #FFF; width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.info-text p.label { font-size: 0.8rem; color: var(--text-light); font-weight: 600; margin-bottom: 0.2rem; }
.info-text p.value { font-weight: 700; font-size: 1.05rem; }
.contact-form-card { padding: 2.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.form-control { 
    width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.1); 
    border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 1rem; color: var(--text-main); transition: border-color 0.3s, box-shadow 0.3s; 
}
.form-control:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-submit { 
    width: 100%; background: var(--c1); color: #FFF; padding: 14px 24px; border: none; border-radius: 8px; 
    font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; 
}
.btn-submit:hover { background: var(--c2); box-shadow: 0 8px 25px rgba(37,99,235,0.3); transform: translateY(-2px); }

/* =========================================
   FOOTER
========================================= */
.site-footer { 
    max-width: 1200px; margin: 2rem auto 0; padding: 4rem 3rem 2rem; background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, 0.9); 
    border-radius: 60px 60px 0 0; position: relative; overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02); transition: background-color 0.3s, border-color 0.3s; 
}
.footer-glow { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%); bottom: -250px; left: 50%; transform: translateX(-50%); z-index: -1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; position: relative; z-index: 2; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s;}
.footer-col-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-col-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: all 0.3s; display: inline-flex; align-items: center; width: max-content; }
.footer-col-links a:hover { color: var(--c1); transform: translateX(5px); }
.copyright { font-size: 0.85rem; color: var(--text-light); font-weight: 500; letter-spacing: 0.05em; text-align: center; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 2rem; transition: color 0.3s; }
/* ── TECH & TOOLS TICKER ── */
.ticker-wrap { width: 100%; overflow: hidden; background: rgba(255,255,255,0.4); border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1.5rem 0; margin: 0 0 2rem 0; backdrop-filter: blur(10px); }
body.dark-mode .ticker-wrap { background: rgba(15, 23, 42, 0.4); border-color: rgba(255,255,255,0.05); }
.ticker-track { display: flex; width: max-content; animation: tickerScroll 20s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 12px; padding: 0 3rem; font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text-muted); transition: color 0.3s; cursor: default; }
.ticker-item img { height: 28px; width: 28px; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: all 0.4s ease; }
.ticker-item:hover img { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
.ticker-item:hover { color: var(--text-main); }

/* The animation moves the track left by exactly 50%, 
   then instantly resets, creating an infinite loop */
@keyframes tickerScroll { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}
/* =========================================
   📱 MOBILE OPTIMIZATION MASTER-FIX 📱
========================================= */
@media (max-width: 900px) {
    .layout-wrapper { grid-template-columns: 1fr !important; padding: 1rem 1rem 3rem !important; gap: 1.5rem !important; }
    .sidebar { position: relative !important; top: 0 !important; }
.profile-img-wrap { 
        width: 100% !important; 
        max-width: 340px !important; 
        aspect-ratio: 1 / 1 !important; 
        margin: 0 auto 2rem auto !important; 
        border-radius: 40px !important; 
    }
    .profile-img { 
        border-radius: 34px !important; 
    }
    h1 { font-size: 2rem !important; }
    .center-h1 { font-size: 2.2rem !important; margin-bottom: 2rem !important; }
    .typewriter { font-size: 1rem !important; }
    
    .glass-card { padding: 1.5rem !important; border-radius: 16px !important; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, 0.98); }
    body.dark-mode .glass-card { background: rgba(15, 23, 42, 0.98); }

    .top-nav { flex-wrap: wrap !important; padding: 0.8rem 1rem !important; border-radius: 20px !important; margin: 1rem !important; }
    .nav-actions { order: 2 !important; }
    .nav-menu {
        display: flex !important; order: 3 !important; width: 100% !important; margin-top: 1rem !important;
        padding-top: 1rem !important; border-top: 1px solid rgba(0,0,0,0.05);
        overflow-x: auto !important; gap: 1.5rem !important; padding-bottom: 0.5rem !important;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu a { flex-shrink: 0 !important; } 
    body.dark-mode .nav-menu { border-top-color: rgba(255,255,255,0.1) !important; }
    .nav-menu::-webkit-scrollbar { display: none !important; } 

    .blog-grid, .contact-grid { grid-template-columns: 1fr !important; }
    .form-row { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .cert-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 1rem !important; }
    
    .site-footer { padding: 3rem 1.5rem 2rem !important; border-radius: 30px 30px 0 0 !important; margin-top: 2rem !important; }
    .footer-grid { grid-template-columns: 1fr !important; text-align: center !important; gap: 2rem !important; }
    .footer-col-links { align-items: center !important; }
    .status-banner { flex-direction: column !important; text-align: center !important; gap: 10px !important; }
    
    .lightbox-close { top: -50px; right: 0; }
    .lightbox-nav { top: auto; bottom: -70px; transform: none; }
    .lightbox-prev { left: 20%; }
    .lightbox-next { right: 20%; }
}
/* =========================================
   SMOOTH PAGE TRANSITIONS (APP FEEL)
========================================= */
body {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0; /* Starts invisible, then fades in */
}

body.fade-out {
    opacity: 0 !important;
    transition: opacity 0.3s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* =========================================
   11. ADVANCED MICRO-INTERACTIONS
========================================= */

/* Reading Progress Bar */
.scroll-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px;
    background: transparent; z-index: 10000; pointer-events: none;
}
.scroll-progress-bar {
    height: 100%; width: 0%; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
    transition: width 0.1s ease-out;
}

/* =========================================
   PREMIUM STUDIO AESTHETICS (GRAIN, PRELOADER, VECTORS, SPOTLIGHT)
========================================= */


/* 2. Executive Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #0F172A; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}
#preloader.hide { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.preloader-text {
    font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800;
    color: #F8FAFC; letter-spacing: 4px;
    animation: pulseText 1.5s infinite;
}
@keyframes pulseText { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.6; transform: scale(0.98); } 
}

/* 3. Interactive Spotlight Effect for Cards */
.glass-card, .stat-box, .highlight-card {
    position: relative; overflow: hidden;
}
.glass-card::before, .stat-box::before, .highlight-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 0;
}
.glass-card:hover::before, .stat-box:hover::before, .highlight-card:hover::before { opacity: 1; }
/* Push content above the spotlight */
.glass-card > *, .stat-box > *, .highlight-card > * { position: relative; z-index: 1; }
/* 4. Floating Geometric Vectors */
.geo-shape {
    position: absolute; pointer-events: none; opacity: 0.15;
    animation: floatRotate 30s linear infinite;
}
.geo-1 { top: 15%; left: 5%; width: 150px; color: var(--c1); }
.geo-2 { bottom: 20%; right: 5%; width: 200px; color: var(--c2); animation-direction: reverse; }
@keyframes floatRotate {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
/* =========================================
   DYNAMIC LIVE STATUS WIDGET
========================================= */
.live-status-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem; /* Added to create space from the buttons above */
}

.live-status-widget:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.4); /* Subtle purple glow on hover */
}

/* The Glowing Radar Dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981; /* Emerald Green */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    position: relative;
}
.status-dot::after {
    content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%; border: 2px solid #10B981;
    animation: radarPulse 2s infinite ease-out;
}

@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.status-text-container {
    overflow: hidden;
    position: relative;
}

#live-status-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* The Hover Tooltip */
.status-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0F172A;
    color: #F8FAFC;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}
.live-status-widget:hover .status-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   FLOATING 3D GLASS PARALLAX
========================================= */
.glass-parallax-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none; 
    z-index: 1; /* Keeps them behind your main content */
    overflow: hidden;
}

.floating-glass {
    position: absolute;
    will-change: transform; 
    opacity: 0.85; /* Restored the glassy transparency */
    border-radius: 20px; /* Rounds the corners of the image smoothly */
}

/* Specific Sizes, Positions, and Blurs for Depth of Field */
.fg-1 { top: 15%; left: 3%; width: 140px; filter: blur(1px); }
.fg-2 { top: 65%; left: 5%; width: 80px; filter: blur(4px); }
.fg-3 { top: 25%; right: 4%; width: 180px; filter: blur(0px); opacity: 1; }
.fg-4 { top: 75%; right: 6%; width: 100px; filter: blur(3px); }
.fg-5 { top: 45%; right: 2%; width: 60px; filter: blur(6px); opacity: 0.6; }

/* Hide floating glass icons on mobile devices (screens smaller than 1024px) */
@media (max-width: 768px) {
    .glass-parallax-container {
        display: none !important;
    }
}
/* =========================================
   🤖 AUTOMATED AI CHAT WIDGET
========================================= */
.chat-bot-btn {
    position: fixed; bottom: 95px; right: 30px; 
    width: 54px; height: 54px; border-radius: 50%; 
    background: linear-gradient(135deg, var(--c1), var(--c2)); 
    color: white; border: none; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); 
    z-index: 9999; transition: transform 0.3s ease, box-shadow 0.3s;
}
.chat-bot-btn:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5); }

.chat-bot-modal {
    position: fixed; bottom: 165px; right: 30px; width: 380px; max-width: 90vw; 
    z-index: 10000; display: flex; flex-direction: column; 
    padding: 0 !important; /* Overrides default glass-card padding */
    opacity: 0; visibility: hidden; 
    transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.chat-bot-modal.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-header {
    display: flex; justify-content: space-between; align-items: center; 
    padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.4);
}
body.dark-mode .chat-header { background: rgba(15, 23, 42, 0.4); border-bottom-color: rgba(255,255,255,0.05); }

.chat-header-title { display: flex; align-items: center; gap: 12px; }
.live-dot { width: 8px; height: 8px; background: var(--c1); border-radius: 50%; box-shadow: 0 0 10px rgba(37, 99, 235, 0.8); animation: pulse 2s infinite; }
.chat-header h4 { font-size: 1.2rem; margin-bottom: 0; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--text-main); line-height: 1;}
.bot-subtitle { color: var(--c2); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.close-chat { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; line-height: 1; }
.close-chat:hover { color: var(--c3); transform: scale(1.1); }

.chat-scroll-area { max-height: 450px; overflow-y: auto; padding: 1.5rem; scroll-behavior: smooth; }
.chat-scroll-area::-webkit-scrollbar { width: 4px; }
.chat-scroll-area::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, 0.2); border-radius: 10px; }

.chat-greeting { text-align: center; margin-bottom: 2rem; }
.radar-icon { width: 50px; height: 50px; border-radius: 50%; border: 1px dashed rgba(37, 99, 235, 0.4); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.radar-dot { width: 12px; height: 12px; background: var(--c1); border-radius: 50%; box-shadow: 0 0 12px rgba(37, 99, 235, 0.8); }
.chat-greeting h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.chat-greeting p { font-size: 0.9rem; color: var(--text-muted); }

.chat-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chat-opt-btn {
    background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0,0,0,0.05); 
    color: var(--text-main); padding: 1rem 0.8rem; border-radius: 12px; font-size: 0.85rem; 
    text-align: left; cursor: pointer; transition: all 0.3s ease; 
    font-family: 'DM Sans', sans-serif; line-height: 1.4; font-weight: 500;
}
body.dark-mode .chat-opt-btn { background: rgba(30, 41, 59, 0.5); border-color: rgba(255,255,255,0.05); }

/* Forces the text to sit above the spotlight */
.chat-opt-btn span { position: relative; z-index: 2; pointer-events: none; }

.chat-opt-btn:hover { background: #fff; border-color: var(--c1); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(37,99,235,0.1); }
body.dark-mode .chat-opt-btn:hover { background: rgba(30, 41, 59, 0.9); border-color: var(--c1); }

.chat-log { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.chat-bubble { max-width: 85%; padding: 0.8rem 1.2rem; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; animation: fadeInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.user-bubble { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2); }
.ai-bubble { background: rgba(255,255,255,0.8); color: var(--text-main); border: 1px solid rgba(0,0,0,0.05); align-self: flex-start; border-bottom-left-radius: 4px; }
body.dark-mode .ai-bubble { background: rgba(30, 41, 59, 0.8); border-color: rgba(255,255,255,0.1); }

.reset-chat-btn { display: none; margin: 1.5rem auto 0; background: none; border: 1px solid var(--text-light); color: var(--text-muted); padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; font-weight: 600;}
.reset-chat-btn:hover { background: var(--text-main); color: var(--bg-page); border-color: var(--text-main); }
body.dark-mode .reset-chat-btn:hover { background: #F1F5F9; color: #0F172A; }
/* =========================================
   18. EPIC SAAS-STYLE FOOTER CTA
========================================= */
.final-cta-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Forces infinite edge-to-edge width */
    padding: 10rem 2rem; /* Increased padding for more breathing room */
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0.95)); 
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px, 80px 80px, 80px 80px;
    background-position: center center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    z-index: 10;
}

body:not(.dark-mode) .final-cta-section {
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.9));
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ambient background glow for the CTA */
.final-cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
    z-index: 1; pointer-events: none;
}

/* Massive Faded Watermark */
.watermark-bg {
    position: absolute;
    top: 65%; /* ⬇️ Changed from 50% to move it down */
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif;
    font-size: 18vw; 
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06); /* 🔆 Changed from 0.02 to 0.06 for higher opacity */
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    z-index: 0;
    letter-spacing: 0.02em;
}

body:not(.dark-mode) .watermark-bg { color: rgba(0, 0, 0, 0.06); /* 🔆 Increased opacity for Light Mode too */ }

body:not(.dark-mode) .watermark-bg { color: rgba(0, 0, 0, 0.03); }

/* Content Wrapper */
.final-cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.final-cta-title {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #F8FAFC;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

body:not(.dark-mode) .final-cta-title { color: #0F172A; text-shadow: none; }

/* Premium Solid Button */
.final-cta-btn {
    padding: 18px 48px;
    font-size: 1.1rem;
    border-radius: 100px;
    background: #F8FAFC;
    color: #0F172A;
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.final-cta-btn::after {
    content: '➔';
    transition: transform 0.3s ease;
}

body:not(.dark-mode) .final-cta-btn { background: #0F172A; color: #F8FAFC; }

.final-cta-btn:hover {
    background: var(--c1);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4), 0 0 20px rgba(124, 58, 237, 0.3);
}

.final-cta-btn:hover::after {
    transform: translateX(5px);
}

/* Edge-to-Edge Animated Meteor Lines */
.glowing-line-container {
    position: absolute;
    left: 0;
    width: 100vw;
    height: 1px;
    background: transparent; /* Removed the visible track line! */
    z-index: 2;
}

.top-line { top: 25%; }
.bottom-line { bottom: 25%; }

body:not(.dark-mode) .glowing-line-container { background: transparent; }

.glowing-orb {
    position: absolute;
    top: -1px;
    width: 300px; 
    height: 2px;
    display: flex;
    align-items: center;
}

.orb-left-right {
    left: -300px;
    background: linear-gradient(90deg, transparent, var(--c1), #fff);
    animation: meteorSweepLR 10s linear infinite; /* Smooth, constant, slow speed */
    justify-content: flex-end; 
}

.orb-right-left {
    right: -300px;
    background: linear-gradient(270deg, transparent, var(--c2), #fff);
    animation: meteorSweepRL 10s linear infinite; /* Smooth, constant, slow speed */
    /* Removed animation delay so they start at the exact same time */
    justify-content: flex-start; 
}

/* The brilliant glowing circle at the head of the light */
.orb-head {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--c1), 0 0 40px var(--c2);
    transform: translateY(-0.5px);
}

@keyframes meteorSweepLR {
    0% { left: -300px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 100vw; opacity: 0; }
}

@keyframes meteorSweepRL {
    0% { right: -300px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { right: 100vw; opacity: 0; }
}
@media (max-width: 768px) {
    .final-cta-title { font-size: 2.5rem; }
    .watermark-bg { font-size: 24vw; }
    .final-cta-section { padding: 6rem 1.5rem; }
    /* Push the lines further out on mobile to give text breathing room */
    .top-line { top: 12%; }
    .bottom-line { bottom: 12%; }
}
/* =========================================
   19. CONTACT PAGE HERO BANNER
========================================= */
.contact-banner-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Forces true edge-to-edge full width */
    margin-top: 0rem; /* Gives a little breathing room under the nav */
    margin-bottom: 0rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-banner-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Make it invisible on mobile devices (tablets and phones) */
@media (max-width: 900px) {
    .contact-banner-wrapper {
        display: none !important;
    }
}
