:root {
    --bg-dark: #dae2ee;
    --accent-amber: #d48806;
    --accent-cyan: #1e40af;
    --text-main: #2d2d2d;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    animation: page-fade-in 0.25s ease-out forwards;
    transition: opacity 0.22s ease-in-out;
}

body.page-transitioning {
    opacity: 0 !important;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animated Grid Overlay */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at center, rgba(239, 246, 255, 0.8) 0%, var(--bg-dark) 100%),
        linear-gradient(rgba(30, 64, 175, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 64, 175, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: -2;
    overflow: hidden;
}

/* Scanner line sweep effect */
.grid-bg::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 136, 6, 0.1), var(--accent-amber), rgba(212, 136, 6, 0.1), transparent);
    box-shadow: 0 0 8px var(--accent-amber), 0 0 15px rgba(212, 136, 6, 0.2);
    opacity: 0.35;
    animation: scanner-sweep 15s linear infinite;
    pointer-events: none;
}

@keyframes scanner-sweep {
    0% {
        top: -5px;
    }
    100% {
        top: 105%;
    }
}

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

#body-particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* PCB Trace Divider */
.pcb-divider {
    display: none;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-amber);
    display: inline-block;
    padding-bottom: 10px;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, nav ul li a.active {
    color: var(--accent-amber);
    text-shadow: 0 0 8px var(--accent-amber);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: none;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

nav.nav-hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.logo span {
    color: var(--accent-amber);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.4);
}

.btn.whatsapp-active {
    color: #25d366;
    border-color: #25d366;
}

.btn.whatsapp-active:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* Section Commons */
section {
    padding: 100px 10%;
    min-height: 100vh;
    position: relative;
}

/* Decorative Background SVGs */
.decorative-schematic {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    color: var(--accent-cyan);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    transition: all 0.3s ease;
}
.decorative-schematic.amber {
    color: var(--accent-amber);
    opacity: 0.04;
}
.decorative-schematic text {
    fill: currentColor;
    stroke: none;
}

/* Hide on mobile/tablet viewports to keep text clear */
@media screen and (max-width: 1024px) {
    .decorative-schematic {
        display: none !important;
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.pill-tag {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    padding: 8px 24px;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    font-family: var(--font-body);
    letter-spacing: 1px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    max-width: 1100px;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -1px;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.typewriter-container {
    font-size: 2.5rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 40px;
    min-height: 110px;
    font-family: var(--font-body);
    z-index: 2;
    white-space: pre-wrap;
}

.scroll-down-text {
    position: absolute;
    bottom: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    font-family: var(--font-body);
    z-index: 2;
}

/* --- OVERLAPPING HERO LAYERS (ONYEKACHI LEFT-TO-RIGHT STICKY PINNING) --- */
.hero-scroll-container {
    position: relative;
    height: 200vh; /* Pinned scroll track height */
    width: 100vw;
    background-color: #080d14;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-sticky-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Base Light Theme Layer */
.hero-base-layer {
    background-color: #ffffff;
    color: #000000;
    z-index: 1;
}

#robot-3d-container {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 55%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    overflow: hidden;
}

#robot-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    pointer-events: none;
}

/* Symmetrical Sizing & Alignment Grid */
.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Name on Left (Column 1), Robot on Right (Column 2) */
    grid-template-rows: auto 1fr;
    width: 100%;
    max-width: 1400px;
    height: 75%;
    padding: 80px 10% 0; /* Align left and right padding to 10% (matching sections) */
    text-align: left;
    align-items: end;
    gap: 40px;
    position: relative;
    z-index: 3;
}

.hero-text-group {
    grid-column: 1 / 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: end;
    width: 100%;
}

.hero-reveal-layer .hero-text-group {
    align-items: flex-end;
}

.hero-title {
    font-size: 8.5rem; /* Sized to perfectly fit "Rittu Ronald" on screen */
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    text-transform: none;
    margin-bottom: 20px;
    text-align: left;
}

.hero-description-block {
    text-align: left;
}

/* Specific overrides to place the Reveal (Dark/Black) Layer content on the right */
.hero-reveal-layer .hero-content {
    grid-template-columns: 0.8fr 1.2fr; /* Portrait on Left (Column 1), Name on Right (Column 2) */
    text-align: right;
}

.hero-reveal-layer .hero-title {
    text-align: right !important;  /* Force align name to the right corner */
    color: #ffffff !important;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1) !important;
}

.hero-reveal-layer .hero-description-block {
    text-align: right;
}

.hero-base-layer .hero-title {
    color: #000000;
    text-align: left;
}

.wave-emoji {
    display: inline-block;
    font-size: 0.55em;
    vertical-align: middle;
    animation: wave-shake 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-shake {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

.signature-drawing {
    position: absolute;
    width: 60%;
    max-width: 700px;
    left: 8%;
    top: 32%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
}

.typewriter-base {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 30px;
    font-family: var(--font-body);
    white-space: pre-wrap;
}

/* Reveal Dark Theme Layer */
.hero-reveal-layer {
    background-color: #080d14; /* Extreme dark blue/black background */
    color: #ffffff;
    z-index: 2;
    clip-path: inset(0 100% 0 0); /* Initial state: fully clipped on the right (0% width from left) */
    pointer-events: none; /* Mouse movements pass to base layout links */
}

/* Premium edge-to-edge full-height panel layout on the left side */
.hero-face-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 88% top;
    z-index: 1;
    transform: translate3d(0, 80px, 0) scale(0.85);
    opacity: 0;
    will-change: transform, opacity;
}

.hero-face-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, #080d14 0%, rgba(8, 13, 20, 0.95) 20%, rgba(8, 13, 20, 0.4) 50%, transparent 80%),
        linear-gradient(to left, #080d14 0%, rgba(8, 13, 20, 0.5) 45%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* ==========================================
   ADVANCED MECHATRONICS OVERHAUL STYLES
   ========================================== */

/* Disable default cursor for custom cursor experience on fine pointer devices */
@media (pointer: fine) {
    body, a, button, select, input, textarea, .logo-btn, .routing-btn, .close-btn, .switch-slider, .card, .timeline-card, .timeline-know-me-btn {
        cursor: none !important;
    }
}

/* ==========================================
   NAVBAR CONTROLS
   ========================================== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Audio Toggle Button styling */
.control-btn {
    background: transparent;
    border: 1px solid rgba(0, 122, 204, 0.3);
    color: var(--accent-cyan);
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(0, 122, 204, 0.05);
}

.control-btn:hover {
    background: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 122, 204, 0.4);
    transform: translateY(-1px);
}

/* ==========================================
   CUSTOM COORDINATE CURSOR (FLUID CIRCLE-DOT)
   ========================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0; /* Smooth fade-in handled by JS */
    transition: opacity 0.3s ease;
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
    box-shadow: 0 0 8px rgba(0, 122, 204, 0.6);
    transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.25s ease, 
                border-radius 0.25s ease, 
                box-shadow 0.25s ease;
}

.cursor-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(0, 122, 204, 0.5);
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
    background-color: rgba(0, 122, 204, 0.02);
    transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.25s ease, 
                border-style 0.25s ease,
                background-color 0.25s ease, 
                border-radius 0.25s ease;
}

/* Hide legacy coordinate guidelines, ticks and rotating rings */
.cursor-ring-outer,
.cursor-axis,
.cursor-reticle-tick {
    display: none !important;
}

.cursor-coords {
    position: absolute;
    font-family: var(--font-body); /* Monospace: JetBrains Mono */
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
    white-space: nowrap;
    background: rgba(8, 13, 20, 0.85);
    border: 1px solid rgba(0, 122, 204, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    transform: translate3d(20px, 20px, 0);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0; /* Hidden by default (no coordinates) */
    transition: color 0.25s ease, 
                border-color 0.25s ease, 
                background-color 0.25s ease,
                transform 0.2s ease,
                opacity 0.25s ease;
}

/* ===================================================
   INTERACTIVE CURSOR STATES
   =================================================== */

/* State 1: Target Lock (Hovering interactive elements like Links/Buttons) */
.custom-cursor.target-lock .cursor-dot {
    width: 0px;
    height: 0px;
    background-color: var(--accent-amber);
    box-shadow: none;
}

.custom-cursor.target-lock .cursor-ring {
    width: 44px;
    height: 44px;
    border-color: var(--accent-amber);
    background-color: rgba(212, 136, 6, 0.06);
    box-shadow: 0 0 12px rgba(212, 136, 6, 0.2);
}

.custom-cursor.target-lock .cursor-coords {
    opacity: 1; /* Show contextual badge label */
    color: var(--accent-amber);
    border-color: rgba(212, 136, 6, 0.45);
    background: rgba(14, 10, 5, 0.9);
}

/* State 2: Caliper/Input Mode (Hovering Input fields, Textareas, Selects) */
.custom-cursor.caliper-mode .cursor-dot {
    width: 2px;
    height: 16px;
    border-radius: 1px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 4px rgba(0, 122, 204, 0.5);
}

.custom-cursor.caliper-mode .cursor-ring {
    width: 0px;
    height: 0px;
    border-color: transparent;
    background-color: transparent;
}

.custom-cursor.caliper-mode .cursor-coords {
    opacity: 1; /* Show contextual badge label */
    color: var(--accent-cyan);
    border-color: rgba(0, 122, 204, 0.3);
    background: rgba(8, 13, 20, 0.85);
}

/* State 3: Scan Mode (Hovering Cards, Galleries, Timelines) */
.custom-cursor.scan-mode .cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.custom-cursor.scan-mode .cursor-ring {
    width: 58px;
    height: 58px;
    border-style: dashed;
    border-color: var(--accent-cyan);
    background-color: rgba(0, 122, 204, 0.03);
    box-shadow: 0 0 16px rgba(0, 122, 204, 0.15);
}

.custom-cursor.scan-mode .cursor-coords {
    opacity: 1; /* Show contextual badge label */
    color: var(--accent-cyan);
    border-color: rgba(0, 122, 204, 0.45);
}

/* State 4: Active Click (Mousedown) */
.custom-cursor.active-click .cursor-ring {
    width: 20px !important;
    height: 20px !important;
    background-color: rgba(0, 122, 204, 0.2);
    border-color: var(--accent-cyan);
    transition: width 0.1s ease, height 0.1s ease;
}

.custom-cursor.active-click.target-lock .cursor-ring {
    background-color: rgba(212, 136, 6, 0.2);
    border-color: var(--accent-amber);
}
.hero-description-text {
    grid-column: 2;
    grid-row: 2;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #cbd5e0;
    max-width: 520px;
    margin-bottom: 60px;
    font-family: var(--font-body);
    text-align: right !important;  /* Force align description to the right corner */
    margin-left: auto;
}

.hero-links-vertical {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 60px;
    padding-left: 40px;
    padding-right: 0;
}

.hero-links-vertical a {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-body);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    padding-bottom: 3px;
    pointer-events: auto; /* Re-enable pointer events for links in reveal layer when visible */
}

.hero-links-vertical a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-amber);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.hero-links-vertical a:hover {
    color: var(--accent-amber);
    text-shadow: 0 0 12px var(--accent-amber);
}

.mechatronics-anim {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    color: var(--accent-cyan);
}

.mechatronics-anim .gear {
    position: absolute;
    text-shadow: 0 0 20px rgba(0, 122, 204, 0.4);
}

.mechatronics-anim .gear-1 {
    font-size: 300px;
    top: -50px; left: 100px;
    animation: spin 12s linear infinite;
    color: #e0e0e0;
}

.mechatronics-anim .gear-2 {
    font-size: 200px;
    top: 210px; left: 15px;
    animation: spin-rev 8s linear infinite;
    color: var(--accent-cyan);
}

.mechatronics-anim .gear-3 {
    font-size: 150px;
    top: 240px; left: 195px;
    animation: spin 6s linear infinite;
    color: var(--accent-amber);
}

@keyframes float-centered {
    0% { transform: translate(-50%, -50%) }
    50% { transform: translate(-50%, -55%) }
    100% { transform: translate(-50%, -50%) }
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-rev { 100% { transform: rotate(-360deg); } }

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

/* --- About Section (Premium Solid Transition Panel) --- */
#about {
    background: linear-gradient(to bottom, #080d14 0%, #080d14 120px, var(--bg-dark) 120px, var(--bg-dark) 100%);
    position: relative;
    z-index: 5;
    padding: 120px 10% 100px;
}

/* Premium Profile Card (Akshet-style) */
.about-profile-card {
    display: flex;
    gap: 40px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-radius: 8px;
    padding: 40px;
    margin-top: 60px; /* Elegant 60px distance below the black hero transition panel */
    margin-bottom: 60px;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.04);
}

.profile-left {
    flex-shrink: 0;
}

.profile-pic {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: 88% top; /* Align portrait beautifully */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.profile-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    font-family: var(--font-head);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.profile-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.profile-tag {
    background: rgba(0, 122, 204, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 122, 204, 0.2);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.profile-tag:hover {
    background: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 122, 204, 0.2);
}

.profile-bio {
    margin-bottom: 30px;
    max-width: 800px;
}

.bio-heading {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    font-family: var(--font-head);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.profile-bio p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.profile-bio .about-intro {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.6;
}

.profile-bio .about-punchline {
    font-size: 1.15rem;
    font-family: var(--font-head);
    color: var(--accent-cyan);
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 0;
}

.profile-bio .about-punchline span {
    color: var(--accent-amber);
}

.profile-contacts {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #444444;
}

.profile-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-dark {
    background: #1e293b;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 0.85rem;
    border-radius: 4px;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid #1e293b;
    text-decoration: none;
    font-weight: 700;
}

.btn-dark:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .about-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
    .profile-tags {
        justify-content: center;
    }
    .profile-contacts {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .profile-buttons {
        justify-content: center;
    }
}

.about-header {
    margin-bottom: 80px;
    max-width: 800px;
}

.about-header h2 {
    font-size: 3rem;
    color: var(--text-main);
    border-bottom: none;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: -1px;
}

.about-header p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
}

.about-header .about-intro {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-header .about-punchline {
    font-size: 1.35rem;
    font-family: var(--font-head);
    color: var(--accent-cyan);
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: 20px;
    text-transform: uppercase;
}

.trajectory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.trajectory-block h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 122, 204, 0.3);
    padding-bottom: 10px;
    text-transform: none;
}

.trajectory-block p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.skills {
    margin-top: 30px;
}

.skill {
    margin-bottom: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--text-main);
}

.skill-bar {
    height: 8px;
    background: #e0e0e0;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent-cyan);
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.about-img {
    width: 100%;
    border: 2px solid var(--accent-amber);
    box-shadow: 10px 10px 0 rgba(212, 136, 6, 0.2);
    background: #fff url('photos/b0050c67-e4cf-47d4-a950-ee1bc180b336.jpg') center/cover;
    height: 350px;
    margin-top: 20px;
}

/* --- Education Section --- */
.education-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.04);
    max-width: 600px;
    margin: 40px auto;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(30, 64, 175, 0.12);
    font-family: var(--font-body);
}

.edu-images {
    position: relative;
    padding-bottom: 55px; /* Space for the overlapping logo */
}

.edu-campus {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.edu-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px;
}

.edu-details {
    padding: 15px 40px 40px;
    color: var(--text-main);
}

.edu-title {
    color: var(--accent-cyan);
    font-size: 1.6rem;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: none;
    padding-bottom: 0;
    font-family: var(--font-body);
    font-weight: 700;
}

.edu-location {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
}

.edu-degree {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
}

.edu-duration {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.edu-focus {
    text-align: left;
}

.edu-focus h4 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--font-body);
}

.edu-focus ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Projects & Blog Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 64, 175, 0.12);
    padding: 25px 20px 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.08);
}

/* Technical Corner Brackets */
.corner-tick {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--accent-cyan);
    border-style: solid;
    pointer-events: none;
    opacity: 0.3;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}
.card:hover .corner-tick, .timeline-card:hover .corner-tick {
    opacity: 0.95;
    border-color: var(--accent-amber);
}
.corner-tick.top-left {
    top: 6px;
    left: 6px;
    border-width: 1.5px 0 0 1.5px;
}
.corner-tick.top-right {
    top: 6px;
    right: 6px;
    border-width: 1.5px 1.5px 0 0;
}
.corner-tick.bottom-left {
    bottom: 6px;
    left: 6px;
    border-width: 0 0 1.5px 1.5px;
}
.corner-tick.bottom-right {
    bottom: 6px;
    right: 6px;
    border-width: 0 1.5px 1.5px 0;
}

/* Card tech identifier status label */
.card-tech-id {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--accent-cyan);
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.65;
    transition: all 0.3s ease;
}
.card:hover .card-tech-id {
    color: var(--accent-amber);
    opacity: 1;
}

.card-link:hover .project-know-more {
    color: var(--accent-amber) !important;
}

.card-link:hover .project-know-more i {
    transform: translateX(4px);
}

.card:hover::before {
    content: '';
    position: absolute;
    top: 0; left: -2px; right: -2px; bottom: 0;
    background: #ffffff;
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-cyan);
}

.card h3 {
    font-size: 1.2rem;
    color: var(--accent-amber);
    margin-bottom: 10px;
}

.card p {
    flex-grow: 1;
    margin-bottom: 10px;
}

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

.tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 2px;
}

/* --- Experiences Section (Card Grid Layout) --- */
.exp-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.exp-section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
    border-bottom: none;
    text-transform: uppercase;
    font-weight: 900;
}

.exp-section-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.exp-line {
    width: 50px;
    height: 3px;
    background-color: var(--accent-cyan);
    margin: 0 auto;
    margin-bottom: 50px;
}

/* Interactive Timeline Logo Switcher */
.timeline-logos-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.logo-btn {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.logo-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1; /* Keep fully visible, bright, and colorful at all times */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Individual Brand Logos and Card Outline Styling for Outstanding Contrast & Aesthetics */

/* 1. Ashok Leyland (Vibrant Blue Theme) */
.logo-btn.btn-ashok {
    border-color: rgba(30, 64, 175, 0.25);
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.03);
}
.logo-btn.btn-ashok:hover, .logo-btn.btn-ashok.active {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(30, 64, 175, 0.15);
}
.logo-btn.btn-ashok img {
    filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.1));
}

/* 2. IIT Madras (Premium Gold & Ochre Theme) */
.logo-btn.btn-iit {
    border-color: rgba(212, 136, 6, 0.25);
    box-shadow: 0 4px 10px rgba(212, 136, 6, 0.03);
}
.logo-btn.btn-iit:hover, .logo-btn.btn-iit.active {
    border-color: #d48806;
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(212, 136, 6, 0.15);
}
.logo-btn.btn-iit img {
    filter: drop-shadow(0 2px 4px rgba(212, 136, 6, 0.1));
}

/* 3. Rane Madras (High-Visibility Dark Slate Theme) */
.logo-btn.btn-rane {
    border-color: rgba(71, 85, 105, 0.25);
    box-shadow: 0 4px 10px rgba(71, 85, 105, 0.03);
}
.logo-btn.btn-rane:hover, .logo-btn.btn-rane.active {
    border-color: #475569;
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(71, 85, 105, 0.15);
}
.logo-btn.btn-rane img {
    /* Kept original clean corporate blue and black colors */
    filter: drop-shadow(0 2px 4px rgba(71, 85, 105, 0.08));
}

/* 4. ISRO (Vibrant Aerospace Metallic Orange Theme) */
.logo-btn.btn-isro {
    border-color: rgba(244, 114, 22, 0.25);
    box-shadow: 0 4px 10px rgba(244, 114, 22, 0.03);
}
.logo-btn.btn-isro:hover, .logo-btn.btn-isro.active {
    border-color: #f47216;
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(244, 114, 22, 0.15);
}
.logo-btn.btn-isro img {
    filter: drop-shadow(0 2px 4px rgba(244, 114, 22, 0.1));
}

/* 5. HumanoidXVITCC (Cyber Cyan/Blue Theme) */
.logo-btn.btn-humanoid {
    border-color: rgba(0, 200, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 200, 255, 0.03);
}
.logo-btn.btn-humanoid:hover, .logo-btn.btn-humanoid.active {
    border-color: #00c8ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 200, 255, 0.15);
}
.logo-btn.btn-humanoid img {
    filter: drop-shadow(0 2px 4px rgba(0, 200, 255, 0.08));
}

/* 6. Team MOVIS (Teal Theme) */
.logo-btn.btn-movis {
    border-color: rgba(20, 184, 166, 0.25);
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.03);
}
.logo-btn.btn-movis:hover, .logo-btn.btn-movis.active {
    border-color: #14b8a6;
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(20, 184, 166, 0.15);
}
.logo-btn.btn-movis img {
    filter: drop-shadow(0 2px 4px rgba(20, 184, 166, 0.08));
}

/* 6. IEEE RAS (Vibrant Indigo Theme) */
.logo-btn.btn-ieee {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.03);
}
.logo-btn.btn-ieee:hover, .logo-btn.btn-ieee.active {
    border-color: #6366f1;
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.15);
}
.logo-btn.btn-ieee img {
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.08));
}

/* 7. Zero Bugs Club (Sleek Dark Slate Theme) */
.logo-btn.btn-zbc {
    border-color: rgba(15, 23, 42, 0.25);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}
.logo-btn.btn-zbc:hover, .logo-btn.btn-zbc.active {
    border-color: #0f172a;
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
}
.logo-btn.btn-zbc img {
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
}

.logo-btn:hover img, .logo-btn.active img {
    transform: scale(1.05); /* Sleek interactive scaling */
}

/* Timeline Layout */
.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-vertical-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #cbd5e0;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.timeline-node {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    padding: 2px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Timeline Node Individual Brand Themes */

/* 1. Ashok Leyland Node */
#exp-ashok .timeline-node {
    border-color: var(--accent-cyan);
}
#exp-ashok .timeline-node img {
    filter: none;
}

/* 2. IIT Madras Node */
#exp-iit .timeline-node {
    border-color: #d48806;
}
#exp-iit .timeline-node img {
    filter: none;
}

/* 3. Rane Node */
#exp-rane .timeline-node {
    border-color: #475569;
}
#exp-rane .timeline-node img {
    filter: none;
}

/* 4. ISRO Node */
#exp-isro .timeline-node {
    border-color: #f47216;
}
#exp-isro .timeline-node img {
    filter: none;
}

/* 5. HumanoidX Node */
#exp-humanoid .timeline-node {
    border-color: #00c8ff;
}
#exp-humanoid .timeline-node img {
    filter: none;
}

/* 6. Team MOVIS Node */
#exp-movis .timeline-node {
    border-color: #14b8a6;
}
#exp-movis .timeline-node img {
    filter: none;
}

/* 7. IEEE RAS Node */
#exp-ieee .timeline-node {
    border-color: #6366f1;
}
#exp-ieee .timeline-node img {
    filter: none;
}

/* 8. Zero Bugs Club Node */
#exp-zbc .timeline-node {
    border-color: #0f172a;
}
#exp-zbc .timeline-node img {
    filter: none;
}

.timeline-date-location {
    display: flex;
    flex-direction: column;
}

.timeline-item.left-date .timeline-date-location {
    text-align: right;
    padding-right: 40px;
}

.timeline-item.right-date .timeline-date-location {
    text-align: left;
    padding-left: 40px;
}

.timeline-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: var(--font-body);
    margin-bottom: 5px;
}

.timeline-location {
    font-size: 0.95rem;
    color: #718096;
    font-family: var(--font-body);
}

.timeline-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.08);
}

.timeline-card-header {
    background: #ebf4fc;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.timeline-card-header h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: normal;
}

.timeline-card-header h4 {
    font-size: 1rem;
    color: var(--accent-cyan);
    font-family: var(--font-body);
    font-weight: 700;
}

.timeline-card-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.timeline-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-card:hover .timeline-card-img-container img {
    transform: scale(1.05);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(2px);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 8px 15px;
    font-family: var(--font-body);
}

.timeline-card-body {
    padding: 25px;
}

.timeline-bullet-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.timeline-bullet-list li {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    font-family: var(--font-body);
}

.timeline-bullet-list li:last-child {
    margin-bottom: 0;
}

.timeline-bullet-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Timeline Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .timeline-vertical-line {
        left: 30px;
    }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 60px;
        margin-bottom: 60px;
    }
    .timeline-node {
        position: absolute;
        left: 0;
        top: 0;
        width: 50px;
        height: 50px;
        margin-left: 5px;
    }
    .timeline-item.left-date .timeline-date-location,
    .timeline-item.right-date .timeline-date-location {
        text-align: left !important;
        padding: 0 !important;
        grid-row: 1;
    }
    .timeline-card {
        grid-row: 2;
    }
    .timeline-logos-row {
        gap: 15px;
    }
    .logo-btn {
        width: 70px;
        height: 70px;
        padding: 8px;
    }
}

/* --- Forms & Contact --- */
.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    background: #fcfcfc;
    border: 1px solid #ccc;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-amber);
}

/* Contact Routing Selector Styles */
.routing-protocols {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.routing-btn {
    flex: 1;
    padding: 12px;
    background: #fcfcfc;
    border: 1px solid #ccc;
    color: #64748b;
    font-family: var(--font-head);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
}

.routing-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.routing-btn.active {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 122, 204, 0.15);
}

.routing-btn[data-channel="whatsapp"].active {
    border-color: #25d366;
    color: #25d366;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.15);
}

@media screen and (max-width: 480px) {
    .routing-protocols {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Modals and Admin Drawer --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid var(--accent-cyan);
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    color: var(--accent-amber);
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}



/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    .trajectory-grid { grid-template-columns: 1fr; }
    
    /* Mobile Navigation Drawer */
    nav {
        padding: 15px 20px !important;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px; /* nav header height */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 122, 204, 0.15);
        padding: 30px 20px;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    nav.mobile-active ul {
        transform: translateY(0);
    }
    nav ul li {
        text-align: center;
        width: 100%;
    }
    nav ul li a {
        font-size: 1.05rem;
        display: block;
        padding: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }
    nav ul li:last-child a {
        border-bottom: none;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-float-img { display: none; }
    
    /* Disable 3D and portrait overlays on mobile for high performance */
    .hero-face-img-bg,
    #robot-3d-container {
        display: none !important;
    }

    /* Hide Hero Section on Mobile (Site starts directly at Profile Card) */
    #hero {
        display: none !important;
    }
    
    /* Adjust About Section to start cleanly at the top of the mobile screen */
    #about {
        background: var(--bg-dark) !important;
        padding: 80px 20px 60px !important;
    }
    
    .about-profile-card {
        margin-top: 0 !important;
    }
    
    /* Hide redundant Home link in mobile menu */
    nav ul li a[href="#hero"] {
        display: none !important;
    }
}

.mobile-nav-btn {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .mobile-nav-btn {
        display: flex !important;
    }
}

/* Utils - Premium Cinematic Entrance Reveals (Awwwards-style) */
.fade-in {
    opacity: 0;
    filter: blur(20px);
    transform: translate3d(0, 80px, 0) scale(0.96);
    will-change: transform, opacity, filter;
    transition: 
        opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
    opacity: 1;
    filter: blur(0px);
    transform: translate3d(0, 0, 0) scale(1);
}

/* --- Footer Area --- */
.footer-area {
    background: #004d80; /* Darker clean blue tone */
    color: #fff;
    padding: 60px 0 20px 0;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--accent-amber);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-title {
    font-size: 1.8rem;
    font-family: var(--font-head);
    color: var(--accent-amber);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-get-in-touch p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.footer-info {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-info li {
    font-size: 1rem;
}

.footer-info i {
    color: var(--accent-amber);
    margin-right: 8px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-cyan);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 122, 204, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-bottom strong {
    color: #fff;
}

.credits {
    margin-top: 5px;
    font-size: 0.8rem;
}

/* --- PREMIUM CUSTOM INTERACTIVE CURSOR REMOVED (SUPERSEDED BY UPGRADED MECHATRONICS RETICLE ABOVE) --- */

/* --- GALLERY SECTION --- */
#gallery {
    padding: 100px 10%;
    background-color: transparent;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
    text-align: center;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #555;
    font-family: var(--font-body);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 122, 204, 0.08);
}

.gallery-img-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #f1f5f9;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 128, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid #ffffff;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gallery-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(0, 122, 204, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 122, 204, 0.2);
    font-weight: 700;
}

.gallery-date {
    font-size: 0.75rem;
    color: #718096;
    font-family: var(--font-body);
}

.gallery-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-top: 5px;
}

/* --- FULLSCREEN LIGHTBOX MODAL --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 17, 26, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #a0aec0;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10002;
}

.lightbox-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.lightbox-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    gap: 30px;
}

.lightbox-image-container {
    flex-grow: 1;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    animation: zoomIn 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-prev, .lightbox-next {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: var(--font-body);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
}

.lightbox-caption-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0;
    padding: 20px 30px;
    border-radius: 6px;
    color: #ffffff;
    box-sizing: border-box;
}

.lightbox-caption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.lightbox-caption-header h3 {
    color: var(--accent-amber);
    font-size: 1.25rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
}

.lightbox-counter {
    font-size: 0.85rem;
    color: #a0aec0;
    font-family: var(--font-body);
    font-weight: 700;
}

#lightbox-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e0;
    font-family: var(--font-body);
}

/* Premium under-lining for nav links */
nav ul li a {
    position: relative;
    padding-bottom: 4px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-amber);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Lightbox responsiveness */
@media screen and (max-width: 768px) {
    .lightbox-modal {
        padding: 20px;
    }
    .lightbox-image-container {
        height: 50vh;
    }
    .lightbox-prev, .lightbox-next {
        position: absolute;
        bottom: -60px;
        padding: 10px 15px;
    }
    .lightbox-prev {
        left: 20px;
    }
    .lightbox-next {
        right: 20px;
    }
    .lightbox-caption-container {
        margin-top: 80px;
        padding: 15px;
    }
    .lightbox-caption-header h3 {
        font-size: 1.1rem;
    }
}

/* --- HERO RESPONSIVENESS OVERRIDES --- */
@media screen and (max-width: 1200px) {
    .hero-title {
        font-size: 6.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-scroll-container {
        height: auto !important;
        background-color: #080d14 !important;
    }
    
    .hero-sticky-wrapper {
        position: relative !important;
        height: calc(100vh - 68px) !important;
        min-height: 520px !important;
        overflow: visible !important;
    }
    
    .hero-base-layer {
        display: none !important;
    }
    
    .hero-reveal-layer {
        clip-path: none !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background-color: #080d14 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: -1px;
        text-align: center !important;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 40px 20px 0 !important;
        height: 100% !important;
        width: 100% !important;
        gap: 25px !important;
    }
    
    .hero-text-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }
    
    .hero-reveal-layer .hero-text-group {
        align-items: center !important;
    }
    
    .hero-reveal-layer .hero-title {
        text-align: center !important;
    }
    
    .hero-description-block {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-description-text {
        text-align: center !important;
        margin: 0 auto !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        max-width: 460px !important;
    }
    
    .hero-links-vertical {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        padding-left: 0 !important;
        margin-bottom: 0 !important;
        width: 100%;
    }
    
    .hero-links-vertical a {
        font-size: 1.1rem !important;
    }
    
    .hero-face-img-bg {
        display: none !important;
    }
    .signature-drawing {
        display: none !important;
    }
}

/* --- Interactive Skills Section --- */
.skills-section-wrapper {
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.04);
}

.skills-section-wrapper h3 {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    font-family: var(--font-head);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent-amber);
    display: inline-block;
    padding-bottom: 8px;
}

.skills-section-wrapper p {
    font-size: 1.05rem;
    color: #475569;
    font-family: var(--font-body);
}

.skills-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
    margin-top: 20px;
}

.skill-tab-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #334155;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 30px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-tab-btn:hover {
    background: rgba(0, 122, 204, 0.08);
    border-color: rgba(0, 122, 204, 0.3);
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

.skill-tab-btn.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.2);
}

.skills-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    min-height: 150px;
}

.skill-item-card {
    background: #ebf4fc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: translateY(10px);
}

.skill-item-card.show {
    opacity: 1;
    transform: translateY(0);
}

.skill-item-card:hover {
    border-color: rgba(0, 122, 204, 0.3);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 122, 204, 0.05);
    transform: translateY(-3px);
}

.skill-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.skill-item-card:hover .skill-item-img {
    transform: scale(1.1);
}

.skill-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    font-family: var(--font-body);
}

.skill-item-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: rgba(0, 122, 204, 0.08);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 122, 204, 0.15);
}

.skill-item-card:hover .skill-item-icon-wrapper {
    background: var(--accent-cyan);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

@media screen and (max-width: 768px) {
    .skills-section-wrapper {
        padding: 25px 20px;
    }
    .skills-display-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
}

/* --- Timeline Actions & Know Me Button --- */
.timeline-card-actions {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    text-align: right;
}

.timeline-know-me-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-know-me-btn i {
    font-size: 0.75rem;
}

.timeline-know-me-btn:hover {
    background: var(--accent-cyan);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
    transform: translateY(-2px);
}

/* --- Active Clubs Section Styles --- */
.clubs-section {
    background: transparent;
    padding: 100px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.clubs-section-title {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 2.2rem;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 10px;
}

.clubs-section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 50px;
    font-family: var(--font-body);
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.club-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.club-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 122, 204, 0.06);
}

.club-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.club-card-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px;
}

.club-card-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.club-card-role {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.club-card-body-list {
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
}

.club-card-body-list li {
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #475569;
    position: relative;
    padding-left: 15px;
    line-height: 1.6;
}

.club-card-body-list li:last-child {
    margin-bottom: 0;
}

.club-card-body-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.club-card-footer {
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.club-card-date {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .clubs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .club-card {
        padding: 30px 20px;
    }
}

/* --- Academic & Professional Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 10px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(0, 122, 204, 0.08);
}

.stat-label {
    font-size: 0.72rem;
    color: #64748b;
    font-family: var(--font-head);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.stat-number {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-cyan);
}

.stat-number.alt-color {
    color: var(--text-main);
}

.stat-subtext {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: var(--font-body);
    margin-top: 5px;
}

.stat-badge {
    font-size: 0.65rem;
    color: var(--accent-amber);
    font-weight: 700;
    font-family: var(--font-body);
    margin-top: 3px;
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

