:root {
    /* Elite Professional Dark Palette */
    --bg-white: #09090b;
    /* Zinc 950 */
    --bg-alt: #141417;
    /* Zinc 900+ */
    --text-main: #fafafa;
    /* Zinc 50 */
    --text-sec: #a1a1aa;
    /* Zinc 400 */
    --text-dim: #71717a;
    /* Zinc 500 */
    --accent: #3b82f6;
    /* Blue 500 */
    --accent-dark: #2563eb;
    /* Blue 600 */
    --accent-light: rgba(59, 130, 246, 0.1);
    --border: #27272a;
    /* Zinc 800 */
    --border-light: #1d1d21;
    /* Zinc 900 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    --font-sans: 'Outfit', -apple-system, sans-serif;
    --font-heading: 'Syne', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard */
}

html {
    scroll-behavior: smooth;
}

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

/* Professional Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

section {
    padding: 120px 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

/* Progress Indicator */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    z-index: 10001;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* --- PREMIUM PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #09090b; /* Zinc 950 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.cyber-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: loader-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.loader-brand {
    text-align: center;
}

.loader-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 8px;
}

.loader-status {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: loader-pulse 2s infinite;
}

.loader-bar-wrap {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.loader-bar {
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    animation: loader-progress 3s ease-in-out forwards;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes loader-progress {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(-40%); }
    100% { transform: translateX(0); }
}

/* Elite Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(9, 9, 11, 0.85);
    /* Matches --bg-white */
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 10000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s var(--ease-smooth);
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(9, 9, 11, 0.95);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.nav-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0 auto;
    padding-right: 48px;
    /* Account for brand width to visually center links */
}

/* Mobile Menu Setup */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s var(--ease-smooth);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.5s var(--ease-smooth);
        padding-right: 0;
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 24px;
        font-weight: 700;
    }

    /* Burger Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-sec);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s var(--ease-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

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

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-top: 180px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at center, rgba(59, 130, 246, 0.18) 0%, transparent 75%),
        /* Layer 2: Glow on top */
        linear-gradient(transparent 39px, var(--border-light) 40px, transparent 41px),
        /* Layer 3: Grid */
        linear-gradient(90deg, transparent 39px, var(--border-light) 40px, transparent 41px);
    background-size: 100% 100%, 80px 80px, 80px 80px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);
}

.hero .container {
    margin: 0 auto;
}

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

@media (max-width: 900px) {
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-grid-layout {
        flex-direction: column; /* Text first, then image */
        gap: 32px;
    }

    .hero-image-frame {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
}

.hero-headline {
    font-family: var(--font-sans);
    font-size: clamp(32px, 5.5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 32px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ef4444, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

.hero-icon {
    font-size: 24px;
    color: #ef4444;
    animation: rotate-asterisk 8s linear infinite;
}

@keyframes rotate-asterisk {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.internship-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.hero-line {
    height: 1px;
    flex: 1;
    max-width: 300px;
    background: linear-gradient(to right, #ef4444, #3b82f6, transparent);
}

.hero-tagline {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 500;
    color: #fff;
    text-transform: capitalize;
    margin-top: 0;
    padding-left: 16px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-sec);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-image-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    width: 450px; /* Fixed width */
    height: 450px; /* Fixed height for square */
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    padding: 8px;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    border: 1px solid var(--border-light);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    overflow: hidden;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: block;
    object-fit: cover; /* Comfortable and proportionate fit */
}

.btn-decode {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #ef4444 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-decode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 1s;
}

.btn-decode:hover::before {
    left: 100%;
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-resume:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-resume i {
    font-size: 14px;
    transition: transform 0.3s var(--ease-smooth);
}

.btn-resume:hover i {
    transform: translateY(2px);
}

.hero-btns {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 640px) {
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-sec);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: var(--accent-light);
    border-radius: 100px;
}

.title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
    line-height: 1.1;
}

/* --- PROFESSIONAL EXPERIENCE (CYBER VOYAGE EXACT STYLE) --- */
.exp-gallery-section {
    position: relative;
    background: #000;
    color: #fff;
    overflow: visible;
    /* Required for position: sticky to work properly */
    padding: 60px 0; /* Reduced from 100px */
}

.exp-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    /* Reduced for better framing */
    margin: 0 auto;
    padding: 0 60px;
    /* Increased side space */
    gap: 80px;
    /* Space between text and image */
}

.exp-content-scroll {
    width: 50%;
    padding-right: 80px;
}

.exp-entry {
    min-height: 60vh; /* Reduced from 80vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20vh;
    opacity: 1; /* Always static bright as requested */
    transition: none; /* No transition on text opacity */
}

.exp-icon-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

.exp-icon-wrap img {
    width: 100%;
    height: auto;
}

.exp-main-title {
    font-family: var(--font-sans);
    font-size: clamp(26px, 4.5vw, 48px); /* Reduced from 64px */
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    background: linear-gradient(to right, #ef4444, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px; /* Reduced margin from 40px */
    text-transform: uppercase;
    text-align: center;
    display: block;
    width: 100%;
}

.exp-title {
    font-family: var(--font-sans);
    font-size: clamp(20px, 3.5vw, 32px); /* Reduced from 42px */
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(to right, #ef4444, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.exp-description {
    font-size: 15px; /* Reduced from 18px */
    line-height: 1.8;
    color: #ffffff;
    font-weight: 400;
    max-width: 600px;
    text-align: justify;
}

.exp-visual-sticky {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.exp-photo-stack {
    width: 400px;
    height: 400px;
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.15);
    background: #0a0a0a;
}

.exp-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: inset(100% 0 0 0); /* Hidden at bottom by clipping */
    transition: none; /* Let GSAP handle transition for precision */
    z-index: 1;
    opacity: 1; /* Solid, no transparency */
}

.exp-photo.active {
    clip-path: inset(0 0 0 0); /* Fully revealed */
    z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .exp-container {
        flex-direction: column;
    }

    .exp-content-scroll {
        width: 100%;
        padding-right: 0;
    }

    .exp-visual-sticky {
        display: none;
    }

    .exp-entry {
        min-height: auto;
        margin-bottom: 80px;
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .exp-stack {
        grid-template-columns: 1fr;
    }

    .exp-right-column {
        display: none;
        /* Hide sticky visual on mobile for simple scroll */
    }

    .exp-entry {
        margin-bottom: 60px;
        opacity: 1;
    }
}

.card:hover::before {
    transform: scaleX(1);
}

@media (max-width: 900px) {
    .card {
        padding: 32px;
    }
}

.span-12 {
    grid-column: span 12;
}

.span-8 {
    grid-column: span 8;
}

.span-6 {
    grid-column: span 6;
}

.span-4 {
    grid-column: span 4;
}

@media (max-width: 900px) {

    .span-12,
    .span-8,
    .span-6,
    .span-4 {
        grid-column: span 1;
    }
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin: 6px;
    transition: all 0.3s var(--ease-smooth);
}

.skill-tag:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Professional Timeline */
.timeline-item {
    border-left: 3px solid var(--accent);
    padding: 0 0 48px 32px;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--accent-light);
}

.timeline-item h3 {
    font-size: 22px;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Work Showcase - Vertical Stack Layout */
.work-grid {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Reduced from 80px */
    align-items: center;
    width: 100%;
}

@media (max-width: 968px) {
    .work-grid {
        gap: 60px;
    }
    .work-card {
        flex-direction: column;
        gap: 32px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .work-left {
        width: 100%;
    }
    .work-right {
        width: 100%;
    }
}

.work-card {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 850px; /* Further reduced from 900px */
    width: 100%;
    margin: 0 auto;
    gap: 40px; /* Reduced from 48px */
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

/* Remove hover lift as requested by user */
.work-card:hover {
    transform: none;
}

.work-left {
    width: 38%; /* Reduced from 45% */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

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

/* Dynamic Alternating Rhythm: Visuals flip for even-numbered projects */
@media (min-width: 969px) {
    .work-grid > div:nth-child(even) {
        flex-direction: row-reverse;
    }
}

@media (min-width: 768px) {
    .work-card.expanded-card {
        max-width: 800px;
        flex-wrap: nowrap; /* Forces horizontal split instead of wrapping down */
        gap: 24px;
    }
}

.work-visual {
    aspect-ratio: 4 / 3; /* Medium rectangle shape */
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.work-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.work-slideshow img.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth), transform 4s var(--ease-out);
    transform: scale(1);
    z-index: 1;
}

.work-slideshow img.slide.active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.work-title {
    font-size: 22px;
    margin: 0;
    color: #ffffff;
    background: linear-gradient(to right, #ffffff, #e4e4e7); /* Brighter gradient pop */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulse-ring-accent {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); /* Subtle accent-colored glow */
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); /* Radiates outward */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.expand-btn {
    background: rgba(255, 255, 255, 0.1); /* Brighter background */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Stronger border contrast */
    color: #ffffff; /* Bright white arrow icon */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    flex-shrink: 0;
}

.expand-btn:not(.expanded) {
    animation: pulse-ring-accent 2.5s infinite; /* Slow, professional attention-drawer */
}

.expand-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.expand-btn i {
    transition: transform 0.4s var(--ease-smooth);
    pointer-events: none; /* Let the button handle clicks */
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

.work-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease-smooth);
    overflow: hidden;
}

.work-details.expanded {
    grid-template-rows: 1fr;
    margin-top: 16px;
}

.work-details-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.work-desc {
    color: #f4f4f5; /* Bright white/gray */
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 300;
    text-align: justify;
}

.work-links-inline {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.work-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.work-link-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.work-link-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.work-link-btn.secondary:hover {
    background: #fff;
    color: #000;
}

/* Refined Skill Tags for Works */
.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tags .skill-tag {
    margin: 0;
    padding: 6px 14px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05); /* Slight white fill */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Brighter border */
    color: #e4e4e7; /* Bright, clean text */
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s;
}

.work-tags .skill-tag:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* Academic Performance */
.grad-table {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-white);
}

.grad-row {
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s var(--ease-smooth);
}

.grad-row:hover {
    background: var(--bg-alt);
}

.grad-row:last-child {
    border-bottom: none;
}

.grad-row.peak {
    background: var(--accent);
    color: var(--text-main);
    font-weight: 700;
}

.grad-row.peak:hover {
    background: var(--accent-dark);
}

@media (max-width: 768px) {
    .grad-row {
        padding: 20px 24px;
        font-size: 14px;
    }
}

/* Premium Buttons */
.btn-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--text-main);
    color: var(--bg-white);
    /* High contrast */
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-md);
}

.btn-pro:hover {
    background: var(--accent);
    color: #fff;
    /* White text on blue accent */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-pro.secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
    box-shadow: none;
}

.btn-pro.secondary:hover {
    background: var(--text-main);
    color: var(--bg-white);
    border-color: var(--text-main);
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s var(--ease-out);
}

/* Link Styles */
a.link-accent {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s var(--ease-smooth);
    position: relative;
}

a.link-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

a.link-accent:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Form Styling */
input,
textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    outline: none;
    font-family: var(--font-sans);
    font-size: 15px;
    transition: all 0.3s var(--ease-smooth);
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px var(--accent-light);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-main);
    transition: all 0.3s var(--ease-smooth);
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-sec {
    color: var(--text-sec);
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

/* Grid Rocket Effects */
.grid-rocket {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    transition: transform 1.8s linear, opacity 1.8s ease-out;
    filter: drop-shadow(0 0 35px var(--accent)) drop-shadow(0 0 8px #fff);
}

.grid-rocket::after {
    content: '';
    position: absolute;
    border-radius: 4px;
}

.grid-rocket.up::after {
    width: 2px;
    height: 92px;
    background: linear-gradient(180deg, var(--accent), transparent);
    left: 2px;
    top: 6px;
}

.grid-rocket.down::after {
    width: 2px;
    height: 92px;
    background: linear-gradient(0deg, var(--accent), transparent);
    left: 2px;
    bottom: 6px;
}

.grid-rocket.left::after {
    width: 92px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    left: 6px;
    top: 2px;
}

.grid-rocket.right::after {
    width: 92px;
    height: 2px;
    background: linear-gradient(270deg, var(--accent), transparent);
    right: 6px;
    top: 2px;
}
/* --- CERTIFICATES SECTION --- */
.certs-section {
    background: var(--bg-white);
    padding: 120px 0;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); /* Executive Badge size */
    gap: 32px;
    margin-top: 60px;
    justify-content: center;
}

.cert-card {
    background: #111111; /* Executive dark matching the reference */
    border: 1px solid #222222;
    border-radius: 28px; /* Softer rounded corners */
    padding: 30px; /* Internal padding for the badge */
    transition: all 0.5s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Glassy Sweep Effect */
.cert-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 250%;
    height: 250%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0) 40%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 60%, 
        rgba(255, 255, 255, 0) 100%);
    transition: all 3s cubic-bezier(0.19, 1, 0.22, 1); /* Slowed down to 3s */
    pointer-events: none;
    z-index: 10;
}

.cert-card:hover::before {
    top: 50%;
    left: 50%;
}

.cert-card img.cert-full-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Badge fits comfortably inside the padding */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.cert-card:hover {
    cursor: pointer;
}

.cert-card .cert-link {
    display: none; /* Disable the link globally if they want truly static */
}

.cert-card:hover .cert-icon-box, 
.cert-card:hover .cert-issuer, 
.cert-card:hover .cert-title, 
.cert-card:hover .cert-footer {
    display: none; /* Secondary safety since text is being removed from HTML */
}

.cert-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* --- UNIVERSAL SQUARE CARDS --- */
.img-square-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.img-square-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Comfortably fills the container */
    transition: transform 0.6s var(--ease-out);
}

.cert-card:hover .img-square-card img {
    transform: scale(1.1);
}

/* Adjusting existing cert-issuer for the new square card context */
.cert-card .img-square-card i {
    font-size: 64px;
    color: var(--accent);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .certs-grid {
        grid-template-columns: 1fr;
    }
    .certs-section {
        padding: 80px 0;
    }
}

/* Contact Form Styling */
.contact-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sec);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    transition: all 0.4s var(--ease-smooth);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    overflow: hidden;
    position: relative;
}

.submit-btn i {
    font-size: 14px;
    transition: transform 0.4s var(--ease-smooth);
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover i {
    transform: translate(4px, -4px) scale(1.1);
}

.submit-btn:active {
    transform: scale(0.98);
}

.form-result {
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    text-align: center;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-result.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-result.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

/* Response for Form */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 24px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* OTP & Verification Styles */
.input-with-btn {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.input-with-btn input {
    flex: 1;
    min-width: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
}

.input-with-btn input:focus {
    outline: none;
    border-color: var(--accent);
}

.inline-btn {
    padding: 0 24px;
    height: 48px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.inline-btn:disabled {
    background: var(--text-dim);
    cursor: not-allowed;
    transform: none;
}

#submit-btn:disabled {
    background: var(--text-dim);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group label {
    display: flex;
    align-items: center;
}

/* Journey Section Overrides */
.journey-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(100% 0 0 0);
    z-index: 1;
}

.journey-photo.active {
    clip-path: inset(0 0 0 0);
    z-index: 10;
}

.journey-entry {
    min-height: 60vh; /* Reduced from 80vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 10vh; /* Reduced from 20vh */
}

/* --- CERTIFICATES SECTION PROFESSIONAL BACKGROUND ANIMATION --- */
.certs-section {
    position: relative;
    overflow: hidden;
    background: #09090b; /* Zinc 950 */
}

/* Base Ambient Glow */
.certs-ambient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 10s ease-in-out infinite alternate;
}

/* Strategic Cyber Grid */
.certs-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 10%, transparent 95%);
    pointer-events: none;
}

/* Kinetic Light Ray Animation */
.certs-light-ray {
    position: absolute;
    width: 400vw;
    height: 20vh;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.04) 45%, 
        rgba(59, 130, 246, 0.08) 50%, 
        rgba(59, 130, 246, 0.04) 55%, 
        transparent 100%);
    transform: rotate(-135deg) translateY(-200%);
    z-index: 2;
    pointer-events: none;
    animation: raySweep 12s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes glowPulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

@keyframes raySweep {
    0% { transform: rotate(-135deg) translateY(-200%); }
    20% { transform: rotate(-135deg) translateY(200%); }
    100% { transform: rotate(-135deg) translateY(200%); }
}

/* --- PREMIUM TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 23, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: all;
    max-width: 400px;
    min-width: 320px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
}

.toast-warning { border-left: 4px solid #facc15; }
.toast-warning .toast-icon { background: rgba(250, 204, 21, 0.2); color: #facc15; }

.toast-success { border-left: 4px solid #10b981; }
.toast-success .toast-icon { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.toast-error { border-left: 4px solid #ef4444; }
.toast-error .toast-icon { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.toast-content {
    flex: 1;
    line-height: 1.4;
}
/* Journey Skills & Tools Flow Ticker */
.journey-skills-box {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 0;
    width: 400px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, white 20px, white calc(100% - 20px), transparent);
}

.skills-grid-mini {
    display: flex;
    width: max-content;
    animation: scroll-right 25s linear infinite;
    gap: 32px;
    padding-left: 32px;
}

.skills-grid-mini i {
    font-size: 20px;
    color: #e2e8f0;
    transition: all 0.3s var(--ease-smooth);
    cursor: help;
}

.skills-grid-mini i:hover {
    color: var(--accent);
    transform: scale(1.25);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
/* Deployment Status Indicator */
.deployment-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(251, 191, 36, 0.08); /* Transparent yellow tint */
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 100px; /* Capsule shape */
    width: fit-content;
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24; /* Vibrant Yellow */
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--ease-smooth);
}

.deployment-status i {
    font-size: 16px;
    color: #fbbf24;
    filter: drop-shadow(0 0 5px #fbbf24);
}

.deployment-status:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    transform: translateY(-2px);
}

/* Internship Badge Styles */
.internship-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.08); /* Transparent emerald tint */
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    width: fit-content;
    font-size: 13px;
    font-weight: 600;
    color: #10b981; /* Emerald Green */
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--ease-smooth);
}

.internship-badge i {
    font-size: 14px;
    color: #10b981;
    animation: fa-spin-slow 8s linear infinite;
    filter: drop-shadow(0 0 3px #10b981);
}

@keyframes fa-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.internship-badge:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
