/* FontAwesome font-display swap overrides */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
}

/* =========================================
   LUXURY CYBER-GOLD THEME
   ========================================= */

:root {
    --bg-void: #030303;
    --bg-card: rgba(10, 10, 15, 0.75);
    --bg-card-hover: rgba(18, 18, 26, 0.85);
    --text-white: #ffffff;
    --text-gold: #dfb750;
    --text-muted: #8e8e9f;
    --gold-gradient: linear-gradient(135deg, #b38728 0%, #fdf0cd 50%, #b38728 100%);
    --gold-glow: 0 0 20px rgba(223, 183, 80, 0.2);
    --neon-glow: 0 0 35px rgba(223, 183, 80, 0.35);
    --border-gold: rgba(223, 183, 80, 0.15);
    --border-gold-focus: rgba(223, 183, 80, 0.5);
    
    --font-royal: 'Cinzel', serif;
    --font-modern: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom Cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-void);
    color: var(--text-white);
    font-family: var(--font-modern);
    overflow-x: hidden;
}

/* Background elements styling */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-gold) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-gold) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(150px);
    opacity: 0.18;
    z-index: 0;
}

.bg-glow-1 {
    top: -250px;
    left: -250px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(223, 183, 80, 0.35) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -250px;
    right: -250px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(223, 183, 80, 0.25) 0%, transparent 70%);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.02);
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(223, 183, 80, 0.8);
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--text-gold);
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--text-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    box-shadow: var(--gold-glow);
    mix-blend-mode: difference;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #020202;
}
::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 5px;
    border: 2px solid #020202;
}



/* =========================================
   NAVIGATION
   ========================================= */
.royal-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2001;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-logo {
    font-family: var(--font-royal);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-gold);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-modern);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-gold);
    transition: 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* =========================================
   HERO SECTION
   ========================================= */
/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-void);
    overflow: hidden;
    padding-top: 80px;
}

.hero-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
    text-align: left;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Hero Image Styling (Base - Grayscale) */
.hero-img {
    width: 450px;
    height: 550px;
    object-fit: cover;
    border-radius: 200px 200px 20px 20px; /* Arch shape */
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
    box-shadow: 20px 20px 60px rgba(0,0,0,0.9), 
                0 0 0 1px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 5;
    transition: 0.5s;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Hero Image (Color Overlay - Lit Side) */
.hero-img-color {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 550px;
    object-fit: cover;
    border-radius: 200px 200px 20px 20px;
    z-index: 6; /* On top of base */
    filter: grayscale(0%) contrast(1.1) brightness(1.1); /* Full Color & Bright */
    /* Mask: Show only left side (Gradient from Opaque to Transparent) */
    mask-image: linear-gradient(110deg, black 30%, transparent 70%);
    -webkit-mask-image: linear-gradient(110deg, black 30%, transparent 70%);
    /* Inner Glow for the light hit */
    box-shadow: inset 30px 10px 80px rgba(255, 215, 0, 0.5);
    pointer-events: none; /* Let clicks pass through */
    transition: 0.5s;
    animation: streetLightFlicker 6s infinite;
}

.hero-visual:hover .hero-img-color {
    mask-image: linear-gradient(110deg, black 60%, transparent 100%); /* Reveal more on hover */
    -webkit-mask-image: linear-gradient(110deg, black 60%, transparent 100%);
    filter: grayscale(0%) contrast(1.1) brightness(1.2);
}

.hero-visual:hover .hero-img {
    transform: scale(1.02);
}
.hero-visual:hover .hero-img-color {
    transform: translate(-50%, -50%) scale(1.02);
}

/* =========================================
   REALISTIC STREET POLE & UTILITY WIRES
   ========================================= */
.street-pole-container {
    position: absolute;
    left: -440px; /* Adjusted slightly to the right for optimal spacing */
    bottom: -50px; /* Grounded */
    width: 500px;
    height: 700px;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through */
    transform: scale(0.9); /* Scaled down slightly on desktop as requested */
    transform-origin: 350px 100%; /* Pivot scale from the base of the pole shaft */
}

/* SVG Wires Layer - positioned to align with the pole and sit behind the photo */
.utility-wires {
    position: absolute;
    top: 0;
    left: -440px; /* Matches the desktop street-pole-container position */
    width: 1500px; /* Expanded width to ensure wires cross off-screen */
    height: 700px; /* Fixed height to match .street-pole-container exactly for wire alignment */
    z-index: 4; /* Positioned behind the profile image (z-index: 5/6) */
    pointer-events: none;
    transform: scale(0.9); /* Scaled in sync with the pole shaft */
    transform-origin: 350px 100%;
}

.wire {
    fill: none;
    stroke: #856024; /* Rich dark golden-bronze matching the cyber-gold theme */
    stroke-width: 1.5px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.9));
    opacity: 0.65; /* Slightly semi-transparent for a premium subtle look */
}

/* Wind sway animations for wires to create an organic, staggered feel */
.wire-1 {
    animation: wireSway1 7s ease-in-out infinite alternate;
    transform-origin: 380px 180px;
}
.wire-2 {
    animation: wireSway2 8s ease-in-out infinite alternate;
    transform-origin: 380px 230px;
}
.wire-3 {
    animation: wireSway3 6.5s ease-in-out infinite alternate;
    transform-origin: 380px 280px;
}
.wire-4 {
    animation: wireSway4 9s ease-in-out infinite alternate;
    transform-origin: 380px 330px;
}

@keyframes wireSway1 {
    0% { transform: rotate(0deg) scaleY(1); }
    100% { transform: rotate(0.06deg) scaleY(1.01) translateY(1px); }
}
@keyframes wireSway2 {
    0% { transform: rotate(0deg) scaleY(1); }
    100% { transform: rotate(-0.05deg) scaleY(1.015) translateY(1.2px); }
}
@keyframes wireSway3 {
    0% { transform: rotate(0deg) scaleY(1); }
    100% { transform: rotate(0.07deg) scaleY(1.008) translateY(0.7px); }
}
@keyframes wireSway4 {
    0% { transform: rotate(0deg) scaleY(1); }
    100% { transform: rotate(-0.06deg) scaleY(1.012) translateY(0.9px); }
}

/* Street Pole Shaft */
.street-pole {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
}

.pole-shaft {
    position: absolute;
    left: 350px;
    bottom: 0;
    width: 15px;
    height: 620px;
    background: linear-gradient(90deg, #2a160d, #4d2918 30%, #663a25 50%, #4d2918 70%, #1c0e08);
    border-radius: 4px 4px 0 0;
    box-shadow: 
        inset 1px 0 3px rgba(255, 255, 255, 0.05),
        5px 5px 15px rgba(0, 0, 0, 0.9),
        0 0 1px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.4);
}

/* Pole horizontal/slanted cross arm (extending right like the letter F) */
.pole-arm {
    position: absolute;
    left: 350px; /* Starts from the vertical pole shaft */
    top: 80px;
    width: 155px;
    height: 10px;
    background: linear-gradient(180deg, #331d14, #1c0e09);
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
    transform: rotate(-22deg); /* Slants upwards to the right */
    transform-origin: left center; /* Pivot from the shaft connection */
    z-index: 6;
}

/* Lamp Head (Boxy Sodium Streetlight) */
.lamp-head {
    position: absolute;
    left: 100%; /* Placed exactly at the outer end of the arm */
    right: auto;
    top: -14px; /* Centered vertically relative to the 10px thick arm */
    width: 78px;
    height: 38px;
    z-index: 7;
    pointer-events: auto;
    transform-origin: 0% 50%; /* Pivots exactly from the arm end center */
    transform: rotate(0deg); /* Perfectly parallel and aligned with the pole-arm */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.9));
}

/* Chaotic flying insects (flies) around streetlight */
.flies-container {
    position: absolute;
    top: 50%;
    left: 80%; /* near the light-emitter (which is on the right side of the lamp head) */
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 8;
}

.fly {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    background: #ffab24;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 4px #ffab24, 0 0 8px #ff7b00;
}

/* Individual fly speeds, sizes, and paths */
.fly-1 {
    left: 45%;
    top: 50%;
    animation: flySwarm1 4.5s infinite linear;
}

.fly-2 {
    left: 55%;
    top: 40%;
    animation: flySwarm2 3.8s infinite ease-in-out;
}

.fly-3 {
    left: 35%;
    top: 60%;
    animation: flySwarm3 5.2s infinite ease-in-out;
}

.fly-4 {
    left: 65%;
    top: 35%;
    animation: flySwarm4 4.2s infinite linear;
}

.fly-5 {
    left: 50%;
    top: 55%;
    animation: flySwarm1 3.9s infinite ease-in-out;
}

.fly-6 {
    left: 40%;
    top: 45%;
    animation: flySwarm3 4.7s infinite linear;
}

/* Chaotic Swarm Paths with scale/opacity changes to simulate 3D space */
@keyframes flySwarm1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.9; }
    20% { transform: translate(40px, -35px) scale(0.6); opacity: 0.3; }
    40% { transform: translate(-25px, -60px) scale(0.8); opacity: 0.5; }
    60% { transform: translate(-60px, 15px) scale(1.3); opacity: 0.95; }
    80% { transform: translate(15px, 50px) scale(0.5); opacity: 0.2; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
}

@keyframes flySwarm2 {
    0% { transform: translate(-40px, 25px) scale(0.7); opacity: 0.4; }
    25% { transform: translate(25px, -50px) scale(1.2); opacity: 0.95; }
    50% { transform: translate(-15px, 35px) scale(0.5); opacity: 0.25; }
    75% { transform: translate(50px, 5px) scale(1.0); opacity: 0.8; }
    100% { transform: translate(-40px, 25px) scale(0.7); opacity: 0.4; }
}

@keyframes flySwarm3 {
    0% { transform: translate(35px, -15px) scale(1.1); opacity: 0.85; }
    33% { transform: translate(-50px, -25px) scale(0.4); opacity: 0.2; }
    66% { transform: translate(5px, 45px) scale(1.4); opacity: 0.95; }
    100% { transform: translate(35px, -15px) scale(1.1); opacity: 0.85; }
}

@keyframes flySwarm4 {
    0% { transform: translate(-15px, -45px) scale(0.5); opacity: 0.25; }
    30% { transform: translate(45px, 25px) scale(1.4); opacity: 0.95; }
    65% { transform: translate(-35px, 55px) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-15px, -45px) scale(0.5); opacity: 0.25; }
}

.lamp-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b1c1e 0%, #0c0d0e 100%);
    border: 1.5px solid #2e2f32;
    border-radius: 12px 6px 6px 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
    z-index: 2; /* Place in front of light cone to act as a clean mask */
}

/* Light glowing source (inside the head - positioned on the front/right side) */
.light-emitter {
    position: absolute;
    right: 8px;
    left: auto;
    top: 6px;
    width: 48px;
    height: 22px;
    background: #ffab24;
    border-radius: 3px 6px 6px 3px;
    box-shadow: 
        0 0 10px #ff7b00, 
        0 0 25px #ffab24, 
        0 0 45px #fff;
    animation: streetLightFlicker 6s infinite;
}

/* Glass panel cover for lamp */
.lamp-body::after {
    content: '';
    position: absolute;
    right: 6px;
    left: auto;
    top: 4px;
    width: 54px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px 6px 6px 3px;
    pointer-events: none;
}

/* Volumetric light beam cone */
.light-cone {
    position: absolute;
    top: 50%;
    left: 45%; /* Starts inside the lamp casing for a seamless connection */
    width: 650px; /* Long warm beam */
    height: 380px; /* Wide spread */
    background: radial-gradient(circle at 0% 50%, 
        rgba(252, 152, 3, 0.638) 0%, 
        rgba(212, 130, 20, 0.15) 35%, 
        transparent 70%);
    transform: translateY(-53%) rotate(70deg); /* Tilted slightly more downwards/leftwards to point at the face */
    transform-origin: left center;
    clip-path: polygon(0% 45%, 100% 0%, 100% 100%, 0% 55%);
    filter: blur(12px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1; /* Positioned behind the solid lamp body */
    animation: streetLightFlicker 6s infinite;
}

/* Insulators Group & Brackets */
.insulators-group {
    position: absolute;
    left: 350px;
    top: 0;
    width: 60px;
    height: 100%;
}

.insulator-holder {
    position: absolute;
    display: flex;
    align-items: center;
    left: 10px; /* attach to pole body right side */
}

/* Stack vertically matching SVG wire anchors */
.holder-1 { top: 180px; }
.holder-2 { top: 230px; }
.holder-3 { top: 280px; }
.holder-4 { top: 330px; }

/* Metallic brackets extending from the pole */
.insulator-bracket {
    width: 20px;
    height: 6px;
    background: linear-gradient(180deg, #444, #222);
    border: 1px solid #111;
    border-radius: 2px;
    position: relative;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.6);
}

.insulator-bracket::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 5px;
    height: 12px;
    background: #333;
    border-radius: 1px;
}

/* White ceramic cups */
.insulator-cup {
    width: 14px;
    height: 18px;
    background: linear-gradient(135deg, #f0f0f3 0%, #cfcbd2 100%);
    border: 1px solid #a39ea8;
    border-radius: 6px 6px 3px 3px;
    margin-left: -2px; /* overlap with pin */
    position: relative;
    z-index: 6;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 2px 3px #fff;
}

.insulator-cup::before {
    /* Grooves on the ceramic cup */
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.15);
}

/* Sodium lamp flicker keyframes with rapid, realistic fluctuations */
@keyframes streetLightFlicker {
    0%, 100% { opacity: 0.98; filter: drop-shadow(0 0 15px rgba(255, 120, 0, 0.6)) blur(0px); }
    1.5% { opacity: 0.3; filter: drop-shadow(0 0 3px rgba(255, 120, 0, 0.1)) blur(1px); }
    2.0% { opacity: 0.95; }
    2.5% { opacity: 0.25; }
    3.0% { opacity: 0.98; }
    9.0% { opacity: 0.95; }
    9.2% { opacity: 0.1; }
    9.6% { opacity: 0.98; }
    15.0% { opacity: 0.95; }
    15.3% { opacity: 0.3; }
    15.8% { opacity: 0.95; }
    28.0% { opacity: 0.95; }
    28.2% { opacity: 0.4; }
    28.5% { opacity: 0.95; }
    40.0% { opacity: 0.98; }
    40.2% { opacity: 0.2; }
    40.5% { opacity: 0.95; }
    40.8% { opacity: 0.3; }
    41.2% { opacity: 0.98; }
    60.0% { opacity: 0.95; }
    60.2% { opacity: 0.15; filter: drop-shadow(0 0 2px rgba(255, 120, 0, 0.1)); }
    60.7% { opacity: 0.70; }
    61.1% { opacity: 0.98; }
    75.0% { opacity: 0.98; }
    75.2% { opacity: 0.3; }
    75.6% { opacity: 0.98; }
    88.0% { opacity: 0.95; }
    88.2% { opacity: 0.25; }
    88.6% { opacity: 0.95; }
    89.0% { opacity: 0.15; }
    89.5% { opacity: 0.98; }
}

/* Gold Rings Animation */
.gold-ring {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid var(--text-gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateRing 20s linear infinite;
    opacity: 0.3;
}

.gold-ring-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateRing 30s linear infinite reverse;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(50px);
}

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

.sub-headline {
    font-family: var(--font-modern);
    color: var(--text-gold);
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.headline {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    display: flex;
    flex-direction: column;
}

.eng-prefix {
    display: block;
    font-size: 1.5rem;
    color: var(--text-gold);
    font-family: var(--font-royal);
    margin-bottom: -10px;
    letter-spacing: 5px;
    opacity: 0.9;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.white-text {
    color: #fff;
}

.hero-quote {
    font-style: italic;
    color: #888;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.gold-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--text-gold);
    color: var(--text-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.gold-btn:hover {
    background: var(--text-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.outline-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: 0.3s;
    margin-left: 20px;
}

.outline-btn:hover {
    border-color: var(--text-gold);
    color: var(--text-gold);
}

/* =========================================
   RIBBON SCROLL
   ========================================= */
.ribbon-container {
    width: 100%;
    background: #000;
    overflow: hidden;
    position: relative;
    border-top: 1.5px solid var(--text-gold);
    border-bottom: 1.5px solid var(--text-gold);
    transform: rotate(-2.5deg) scale(1.03);
    z-index: 10;
    box-shadow: var(--neon-glow);
    margin: -30px 0 70px 0;
}

.scrolling-ribbon {
    display: flex;
    white-space: nowrap;
    animation: scroll 18s linear infinite;
    background: repeating-linear-gradient(
        45deg,
        #000,
        #000 15px,
        #050508 15px,
        #050508 30px
    );
}

.scrolling-ribbon span {
    font-family: var(--font-modern);
    font-weight: 700;
    color: var(--text-gold);
    font-size: 1.1rem;
    padding: 12px 40px;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(223, 183, 80, 0.6);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   SECTIONS GENERAL
   ========================================= */
.section {
    padding: 130px 0;
    position: relative;
    z-index: 1; /* Above background elements */
}

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

.section-header {
    margin-bottom: 85px;
}

.section-title {
    font-family: var(--font-royal);
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
}

.title-line {
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    box-shadow: var(--gold-glow);
}

.center-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-line {
    width: 100px;
}

/* =========================================
   ABOUT ("THE ARCHITECT")
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: center;
}

.about-image-frame {
    position: relative;
}

.profile-pic {
    width: 100%;
    border-radius: 6px;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid var(--border-gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.about-image-frame:hover .profile-pic {
    filter: grayscale(0%) contrast(1) brightness(1);
    border-color: var(--text-gold);
    box-shadow: 0 20px 45px rgba(223, 183, 80, 0.15);
}

.frame-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--text-gold);
    border-radius: 6px;
    z-index: -1;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.6;
}

.about-image-frame:hover .frame-border {
    top: 12px;
    left: 12px;
    opacity: 1;
    box-shadow: var(--gold-glow);
}

.about-text h3 {
    font-family: var(--font-royal);
    color: var(--text-gold);
    margin-bottom: 25px;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.85;
}

.about-text p strong {
    color: #fff;
    font-weight: 600;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    border-top: 1px solid rgba(223, 183, 80, 0.15);
    padding-top: 35px;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num-wrapper {
    display: flex;
    align-items: baseline;
}

.stat-num {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-royal);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-suffix {
    font-size: 2rem;
    font-family: var(--font-royal);
    color: var(--text-gold);
    margin-left: 2px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* =========================================
   UI/UX SHOWCASE (STICKY)
   ========================================= */
.showcase-section {
    padding: 0;
    overflow: hidden;
    position: relative;
    background: transparent;
    z-index: 2;
}

.showcase-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gallery-wrapper {
    position: relative;
    width: 75%;
    height: 55vh;
    margin-top: 35px;
    perspective: 1500px;
}

.gallery-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    opacity: 0; /* Hidden initially, controlled by GSAP */
    transform: scale(0.85);
    background: #08080c;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    border-color: var(--text-gold);
    box-shadow: 0 25px 60px rgba(223, 183, 80, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: transform 0.8s;
}

.gallery-card:hover img {
    transform: scale(1.03);
}

.card-caption {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-white);
    padding: 12px 24px;
    font-family: var(--font-royal);
    font-size: 1.1rem;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    letter-spacing: 1px;
}

/* =========================================
   SKILLS ("THE ARSENAL")
   ========================================= */
.skills-section {
    position: relative;
    background: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(223, 183, 80, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.skill-card:hover {
    border-color: var(--border-gold-focus);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), var(--gold-glow);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card-inner {
    padding: 45px 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.skill-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(223, 183, 80, 0.06);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    border: 1px solid rgba(223, 183, 80, 0.1);
    transition: all 0.4s;
}

.skill-card:hover .skill-icon-wrapper {
    background: rgba(223, 183, 80, 0.12);
    border-color: var(--text-gold);
    transform: scale(1.1);
    box-shadow: var(--gold-glow);
}

.skill-icon {
    font-size: 2.3rem;
    color: var(--text-gold);
    text-shadow: var(--gold-glow);
}

.skill-card h4 {
    font-family: var(--font-royal);
    margin-bottom: 12px;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.skill-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0%; /* Animated on scroll via JS */
    background: var(--gold-gradient);
    border-radius: 2px;
}
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.featured-project {
    grid-column: span 2;
}

.project-featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.project-featured-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(223, 183, 80, 0.1);
    color: var(--text-gold);
    border: 1px solid var(--border-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.project-image-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: all 0.5s;
    background: #000;
}

.project-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-project:hover .project-image-wrapper {
    border-color: var(--text-gold);
    box-shadow: var(--neon-glow);
}

.featured-project:hover .project-featured-img {
    transform: scale(1.02);
}

.project-details-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.project-frame {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid var(--border-gold);
    padding: 45px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.project-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(223, 183, 80, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.project-frame:hover {
    border-color: var(--border-gold-focus);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), var(--gold-glow);
}

.project-frame:hover::before {
    opacity: 1;
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-family: var(--font-royal);
    font-size: 1.9rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.project-subtitle {
    color: var(--text-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 25px;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tech-tags {
    margin-bottom: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    border: 1px solid rgba(223, 183, 80, 0.15);
    background: rgba(223, 183, 80, 0.03);
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--text-gold);
    border-radius: 4px;
    font-weight: 500;
}

.gold-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gold-link i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.gold-link:hover {
    color: var(--text-gold);
    text-shadow: var(--gold-glow);
}

.gold-link:hover i {
    transform: translate(2px, -2px);
}

/* =========================================
   EXPERIENCE
   ========================================= */
.timeline-container {
    position: relative;
    margin-left: 20px;
}

.timeline-progress-line {
    position: absolute;
    left: 7px;
    top: 5px;
    width: 2px;
    height: 0%; /* Filled on scroll via JS */
    background: var(--gold-gradient);
    box-shadow: var(--gold-glow);
    z-index: 1;
}

.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 40px;
    position: relative;
    z-index: 2;
}

.timeline-item {
    padding-bottom: 60px;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--bg-void);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s;
    z-index: 3;
}

.timeline-item.active::before {
    border-color: var(--text-gold);
    background: var(--text-gold);
    box-shadow: var(--neon-glow);
    transform: scale(1.2);
}

.timeline-date {
    color: var(--text-gold);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-family: var(--font-royal);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.timeline-content h4 {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 120px 0 60px;
    border-top: 1px solid rgba(223, 183, 80, 0.1);
    text-align: center;
    background: transparent;
}

.footer-headline {
    font-family: var(--font-royal);
    font-size: 3.4rem;
    margin-bottom: 60px;
    color: #fff;
    letter-spacing: 1px;
}

.contact-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-gold);
    padding: 24px 48px;
    margin-bottom: 60px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: border-color 0.4s, box-shadow 0.4s;
}

.contact-box:hover {
    border-color: var(--text-gold);
    box-shadow: var(--neon-glow);
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: var(--font-modern);
    transition: 0.3s;
}

.contact-link:hover {
    color: var(--text-gold);
}

.separator {
    width: 1px;
    height: 30px;
    background: var(--text-gold);
    margin: 0 30px;
}

.social-links {
    margin-bottom: 50px;
}

.social-links a {
    color: #555;
    font-size: 1.5rem;
    margin: 0 20px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--text-gold);
    transform: scale(1.2);
}

.footer-bottom {
    font-size: 0.8rem;
    color: #444;
}

.gold-certs span {
    color: var(--text-gold);
}

/* =========================================
   EDUCATION SECTION
   ========================================= */
.education-section {
    background: transparent;
}
.education-grid {
    max-width: 900px;
    margin: 0 auto;
}
.education-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}
.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(223, 183, 80, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.education-card:hover {
    border-color: var(--border-gold-focus);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), var(--gold-glow);
}
.education-card:hover::before {
    opacity: 1;
}
.education-card-inner {
    padding: 45px;
    display: flex;
    gap: 35px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.education-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(223, 183, 80, 0.05);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(223, 183, 80, 0.15);
    transition: all 0.4s;
    flex-shrink: 0;
}
.education-card:hover .education-icon-wrapper {
    background: rgba(223, 183, 80, 0.12);
    border-color: var(--text-gold);
    transform: scale(1.1);
    box-shadow: var(--gold-glow);
}
.education-icon {
    font-size: 2.5rem;
    color: var(--text-gold);
    text-shadow: var(--gold-glow);
}
.education-details h3 {
    font-family: var(--font-royal);
    color: var(--text-gold);
    font-size: 1.8rem;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.education-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}
.education-details h4 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: #fff;
}
.education-details .gold-accent {
    color: var(--text-gold);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.education-details p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =========================================
   CERTIFICATIONS SECTION
   ========================================= */
.certifications-section {
    background: transparent;
}
.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cert-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}
.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(223, 183, 80, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.cert-card:hover {
    border-color: var(--border-gold-focus);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), var(--gold-glow);
}
.cert-card:hover::before {
    opacity: 1;
}
.cert-card-inner {
    padding: 35px 25px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.cert-year {
    font-family: var(--font-royal);
    font-size: 1.5rem;
    color: var(--text-gold);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 0.5px;
}
.cert-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 8px;
}
.cert-issuer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   ERP SHOWCASE — STICKY SCROLL (same as showcase-section)
   ========================================= */
.erp-showcase-section {
    background: transparent;
    position: relative;
}

/* Outer wrap — same role as .showcase-container */
.erp-showcase-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 40px 60px;
    position: relative;
}

/* Sticky Header */
.erp-sticky-header {
    text-align: center;
    margin-bottom: 40px;
    z-index: 2;
    position: relative;
}

.erp-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-gold);
    border: 1px solid var(--border-gold);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: rgba(223, 183, 80, 0.05);
}

.erp-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Badge (shared with slides) */
.erp-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(223, 183, 80, 0.08);
    color: var(--text-gold);
    border: 1px solid var(--border-gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Slider Viewport — clips overflow */
.erp-slider-viewport {
    position: relative;
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    border-radius: 24px;
}

/* Sliding Track — holds all slides in a row */
.erp-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

/* Each Slide — full viewport width inside track */
.erp-slide {
    flex: 0 0 100%;
    min-height: 520px;
    display: flex;
    align-items: stretch;
    padding: 36px 40px;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.erp-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(223,183,80,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Navigation Arrow Buttons */
.erp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    background: rgba(3, 3, 5, 0.75);
    backdrop-filter: blur(10px);
    color: var(--text-gold);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.erp-nav-btn:hover {
    background: rgba(223, 183, 80, 0.12);
    border-color: var(--border-gold-focus);
    box-shadow: var(--gold-glow);
    transform: translateY(-50%) scale(1.1);
}

.erp-prev { left: 16px; }
.erp-next { right: 16px; }

.erp-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* Slide inner layout */
.erp-slide-inner {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
    height: 100%;
}

/* Image side */
.erp-slide-img {
    position: relative;
    flex: 0 0 55%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #050505;
}

.erp-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s;
}

.erp-slide:hover .erp-slide-img img {
    transform: scale(1.04);
    filter: brightness(1);
}

/* Expand overlay on image */
.erp-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3,3,5,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-gold);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 14px;
}

.erp-slide:hover .erp-slide-overlay {
    opacity: 1;
}

/* Info side */
.erp-slide-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.erp-slide-info h3 {
    font-family: var(--font-royal);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.erp-slide-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 22px;
}

/* Tech tags */
.erp-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.erp-tech-tags span {
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    letter-spacing: 0.4px;
    transition: border-color 0.3s, color 0.3s;
}

.erp-slide:hover .erp-tech-tags span {
    border-color: var(--border-gold);
    color: var(--text-gold);
}

/* Slide counter */
.erp-slide-counter {
    position: absolute;
    bottom: 20px;
    right: 28px;
    font-family: var(--font-royal);
    font-size: 0.8rem;
    color: var(--border-gold-focus);
    letter-spacing: 2px;
}

/* Progress Dots */
.erp-progress-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    z-index: 5;
    position: relative;
}

.erp-pdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid var(--border-gold);
    transition: all 0.35s ease;
    cursor: pointer;
}

.erp-pdot.active {
    background: var(--text-gold);
    box-shadow: var(--gold-glow);
    transform: scale(1.3);
}


/* =========================================
   LIGHTBOX MODAL
   ========================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(3, 3, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-modal.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75vh;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 50px rgba(223, 183, 80, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 35px;
    right: 45px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--text-gold);
    text-decoration: none;
    transform: scale(1.1);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 25px 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */

@media (max-width: 1024px) {
    .headline { font-size: 4rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .erp-slide-inner { gap: 30px; }
    .erp-slide-img { flex: 0 0 48%; }
    .erp-slide { min-height: 440px; }
}

@media (max-width: 768px) {
    /* Navigation Adjustments */
    .royal-nav {
        padding: 15px 20px;
        background: rgba(5, 5, 5, 0.95);
        justify-content: space-between;
    }
    .nav-logo { font-size: 1.5rem; }
    .nav-links { display: none; } 
    
    /* Hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 2005; /* Higher than menu z-index */
    }
    .bar {
        width: 30px;
        height: 2px;
        background-color: var(--text-gold);
        transition: 0.3s;
    }
    
    /* Hero Adjustments */
    .hero { 
        min-height: auto; /* Allow auto height on mobile */
        padding-top: 120px; 
        padding-bottom: 50px;
        text-align: center; 
    }
    
    .hero-container-flex { 
        flex-direction: column-reverse; 
        gap: 30px; 
        width: 100%;
    }
    
    .hero-text { 
        text-align: center; 
        width: 100%;
        padding: 0 10px;
    }
    
    .headline { 
        font-size: 2.5rem; /* Slightly smaller to prevent break */
        margin-bottom: 20px;
        line-height: 1.1;
    }
    
    .hero-img, .hero-img-color {
        width: 240px; /* Smaller for mobile */
        height: 300px;
        border-radius: 150px 150px 20px 20px;
    }
    
    .light-beam {
        width: 100px;
        height: 500px;
        right: -30px;
        top: -50px;
        filter: blur(30px);
    }
    
    .street-pole-container {
        left: -390px; /* Adjusted slightly to the right on mobile */
        bottom: -30px;
        transform: scale(0.55);
        transform-origin: 350px 100%; /* Pivot scale from the base of the pole shaft */
    }
    
    .utility-wires {
        left: -392px;
        transform: scale(0.55);
        transform-origin: 346px -15%;
    }
    
    .light-cone {
        transform: translateY(-53%) rotate(90deg); /* Fixed down-left on mobile screen viewports */
    }
    
    .gold-ring { width: 280px; height: 280px; }
    .gold-ring-2 { width: 330px; height: 330px; }
    .hero-glow { width: 250px; height: 250px; }

    .sub-headline { 
        font-size: 0.75rem; 
        letter-spacing: 2px; 
        margin-bottom: 15px;
    }
    .hero-quote {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 5px;
    }
    
    .hero-actions { 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
        width: 100%; 
        padding: 0 10px; 
    }
    
    .outline-btn { 
        margin-left: 0; 
        margin-top: 0; 
        display: block; 
        width: 100%; 
    }
    .gold-btn { 
        display: block; 
        width: 100%; 
    }
    
    /* Ribbon & Layout */
    .ribbon-container { margin: 20px 0 60px 0; }
    .scrolling-ribbon span { font-size: 0.9rem; padding: 10px 15px; }
    
    /* Sections */
    .section { padding: 60px 0; }
    .section-title { font-size: 2.2rem; }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .profile-pic { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
    .about-image-frame { text-align: center; padding: 0 20px; }
    .frame-border { left: 50%; transform: translateX(-50%); width: 300px; }
    
    .skills-grid { grid-template-columns: 1fr; padding: 0 20px; }
    
    .projects-gallery { grid-template-columns: 1fr; padding: 0 10px; }
    .featured-project { grid-column: span 1; }
    .project-featured-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .contact-box { flex-direction: column; gap: 20px; width: 100%; border-left: none; border-right: none; padding: 20px 10px; }
    .contact-link { font-size: 1rem; word-break: break-all; }
    .separator { display: none; }
    
    /* Stats */
    .stats-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 30px; }
    .stat-item { align-items: center; }
    
    /* Showcase Mobile */
    .gallery-wrapper { width: 95%; height: 50vh; }
    .card-caption { font-size: 1rem; padding: 5px 15px; }

    /* New Responsive Overrides */
    .education-card-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }
    .education-icon-wrapper {
        margin: 0 auto;
    }
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto; }
}

@media (max-width: 480px) {
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Overlay Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-royal);
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.mobile-link:hover {
    color: var(--text-gold);
}

/* Hamburger Animation Class */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   CYBER-GOLD PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #020202;
    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;
}

.preloader.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.preloader-logo {
    font-family: var(--font-royal);
    font-size: 3.5rem;
    font-weight: 900;
    color: transparent;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    text-shadow: 0 0 20px rgba(223, 183, 80, 0.3);
}

.preloader-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(223, 183, 80, 0.05);
    border-top: 2px solid var(--text-gold);
    border-radius: 50%;
    animation: preloaderRotate 1.2s linear infinite;
    box-shadow: 0 0 15px rgba(223, 183, 80, 0.2);
}

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

.preloader-progress-container {
    width: 280px;
    height: 2px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(223, 183, 80, 0.05);
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(223, 183, 80, 0.8);
    transition: width 0.08s ease-out;
}

.preloader-percent {
    font-family: var(--font-modern);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-gold);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: var(--gold-glow);
}

.preloader-status {
    font-family: var(--font-modern);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    height: 15px;
}
