/* =========================================
   VARIABLES & THEME SYSTEM
   ========================================= */
:root {
    --bg-color: #0A1410;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --text-primary: #F8FAFC;
    --text-secondary: #f3d3a7;
    --accent-primary: #c34627;
    --accent-secondary: #060dd4;
    --accent-danger: #F43F5E;
    --accent-gradient: linear-gradient(135deg, #10B981, #06B6D4);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Text Gradient Utility */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Glassmorphism General Class */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-medium), background var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    overflow: hidden;
}

/* Spotlight Effect Layer */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.glass-card:hover::after {
    opacity: 1;
}

/* Ensure content stays above the spotlight */
.project-content,
.skill-icon,
.skill-tags,
.timeline-content,
.timeline-icon,
h3 {
    position: relative;
    z-index: 2;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.05);
}

/* Custom Curser */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
    transition: width 0.2s, height 0.2s;
}

body:hover .cursor-outline {
    width: 36px;
    height: 36px;
}

/* Animation Utilities for Intersection Observer */
.hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================
   LAYOUT STRUCTURE
   ========================================= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* =========================================
   ADVANCED ANIMATED BACKGROUNDS
   ========================================= */

[class*="pattern-"] {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* 1. 3D Cyberspace Grid */
.pattern-grid::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: 60px 60px;
    z-index: -1;
    transform-origin: center top;
    transform: perspective(1000px) rotateX(60deg) translateY(0);
    animation: gridMove 10s linear infinite;
    opacity: 0.4;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 80%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 80%);
}

@keyframes gridMove {
    0% {
        transform: perspective(1000px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(1000px) rotateX(60deg) translateY(60px);
    }
}

/* 2. Pulsating Neon Matrix */
.pattern-dots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 35px 35px;
    z-index: -1;
    animation: matrixPulse 3s ease-in-out infinite alternate;
    pointer-events: none;
    opacity: 0.15;
}

@keyframes matrixPulse {
    0% {
        opacity: 0.05;
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

/* 3. Massive Moving Light Orbs */
.pattern-waves::before,
.pattern-waves::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    filter: blur(80px);
}

.pattern-waves::before {
    top: -50px;
    left: -100px;
    background: rgba(255, 255, 255, 0.04);
    animation: orbMove1 12s infinite alternate ease-in-out;
}

.pattern-waves::after {
    bottom: -100px;
    right: -100px;
    background: rgba(255, 255, 255, 0.02);
    animation: orbMove2 15s infinite alternate ease-in-out;
}

@keyframes orbMove1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(300px, 200px) scale(1.3);
    }
}

@keyframes orbMove2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-300px, -200px) scale(1.4);
    }
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0 auto;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    transition: padding var(--transition-medium), background var(--transition-medium), backdrop-filter var(--transition-medium);
}

.navbar.scrolled {
    padding: 15px 40px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--accent-gradient);
    transition: width var(--transition-medium);
    border-radius: 2px;
}

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

.menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.mobile-menu-overlay .nav-links a {
    font-size: 2rem;
    font-weight: 600;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-image {
    opacity: 0;
    transform: scale(0.9) rotate(-2deg);
    animation: revealImg 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

@keyframes revealImg {
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Contact Badges */
.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, border-color 0.3s;
}

.badge:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.badge i {
    color: var(--accent-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    padding-top: 80px;
    /* Offset for navbar */
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    position: relative;
    flex: 1;
}

.hero-image {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Code Snippet Box Relocated */
.code-snippet-box {
    position: absolute;
    bottom: 40px;
    right: 40px;
    max-width: 380px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 10;
    backdrop-filter: blur(16px);
    transition: transform var(--transition-medium);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    animation: floatSnippet 6s ease-in-out infinite;
}

@keyframes floatSnippet {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.code-snippet-box:hover {
    transform: translateY(-10px) scale(1.02);
}

.mac-header {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.mac-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mac-btn.close {
    background: #555;
}

.mac-btn.minimize {
    background: #777;
}

.mac-btn.maximize {
    background: #999;
}

/* Monochrome Syntax Highlighting */
.code-snippet-box pre {
    margin: 0;
    color: #e0e0e0;
}

.code-kw {
    color: #888888;
    font-style: italic;
}

.code-var {
    color: #ffffff;
    font-weight: bold;
}

.code-prop {
    color: #aaaaaa;
}

.code-str {
    color: #cccccc;
}

.code-bool {
    color: #888888;
    font-style: italic;
}

.code-func {
    color: #ffffff;
}

/* Orbiting HUD Rings */
.profile-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    z-index: 0;
    animation: spinRing 25s linear infinite;
    pointer-events: none;
}

.profile-ring.secondary {
    width: 630px;
    height: 630px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    animation: spinRing 20s linear infinite reverse;
}

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

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

.hero-image-frame {
    position: relative;
    padding: 12px;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
    animation: pulseFrame 4s ease-in-out infinite alternate;
    box-shadow: 0 15px 45px rgba(255, 255, 255, 0.05);
}

@keyframes pulseFrame {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.02);
    }
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: linear-gradient(135deg, #10B981, #06B6D4, #34D399, #10B981);
    background-size: 200% auto;
    z-index: -1;
    filter: blur(15px);
    animation: rotateGradient 6s linear infinite, glowPulse 4s ease-in-out infinite alternate;
    opacity: 0.8;
}

@keyframes glowPulse {
    0% {
        filter: blur(10px);
        opacity: 0.4;
    }

    100% {
        filter: blur(25px);
        opacity: 0.7;
    }
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.profile-img {
    width: 270px;
    height: 350px;
    border-radius: 24px;
    object-fit: cover;
    object-position: top center;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.4);
    filter: grayscale(100%) contrast(110%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.profile-img:hover {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.03);
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.greeting {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.name {
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #34D399 100%, #10B981 200%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.role {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

.role span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-color);
    border: var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.primary-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.primary-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

/* Background Blobs for Hero */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.20);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.15);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    display: block;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.education-summary h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.edu-timeline {
    position: relative;
    padding-left: 30px;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.edu-timeline li {
    position: relative;
    margin-bottom: 30px;
}

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

.dot {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.edu-details h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.edu-details span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   TECH STACK MARQUEE
   ========================================= */
.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Track 1 moves horizontally (0 to -50%) */
.marquee-track.track-left {
    animation: scrollLeft 35s linear infinite;
}

/* Track 2 moves right horizontally (-50% to 0) */
.marquee-track.track-right {
    animation: scrollRight 35s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

    100% {
        transform: translateX(0%);
    }
}

.tech-pill.glass-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border-radius: 12px;
    min-width: 260px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* clean border, NO shadow overlay */
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.tech-pill.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-pill i {
    font-size: 2.8rem;
    color: var(--text-primary);
}

.tech-text {
    display: flex;
    flex-direction: column;
}

.tech-text h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 600;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 15px 40px rgba(234, 179, 8, 0.1), 0 5px 15px rgba(59, 130, 246, 0.15);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    transition: transform 0.5s ease, background 0.5s ease;
}

.project-card:hover::before {
    transform: scale(1.5);
    background: radial-gradient(circle at top right, rgba(234, 179, 8, 0.15), transparent 70%);
}

.project-img-wrapper {
    margin: -30px -30px 20px -30px;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.project-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: color var(--transition-fast);
}

.project-card:hover .project-content h3 {
    color: var(--accent-secondary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.project-features {
    margin-bottom: 24px;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.project-features li i {
    color: var(--accent-danger);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    flex-grow: 1;
    /* Pushes links to bottom */
}

.tech-stack span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.05);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-stack span:hover {
    background: var(--accent-danger);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    transform: translateY(-3px);
}

.project-links {
    margin-top: auto;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.link-btn:hover {
    color: var(--accent-primary);
}

/* =========================================
   EXPERIENCE & TRAINING
   ========================================= */
.timeline {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 30px 30px 30px 80px;
}

.timeline-icon {
    position: absolute;
    left: 17px;
    top: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.timeline-content .date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 16px;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Certifications */
.cert-title {
    text-align: center;
    margin: 60px 0 30px;
    font-size: 1.8rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.cert-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.cert-icon {
    font-size: 2rem;
    color: var(--accent-secondary);
}

.cert-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.cert-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 15, 25, 0.5);
}

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

.footer-content .logo {
    font-size: 2rem;
}

.footer-content p {
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.footer-social a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
@media screen and (max-width: 992px) {
    .code-snippet-box {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-icon {
        left: 7px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        justify-content: center;
    }

    .profile-img {
        max-width: 320px;
        margin-bottom: 20px;
    }
}

/* =========================================
   CERTIFICATIONS SECTION
   ========================================= */
.cert-card.glass-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.cert-card.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.05);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.cert-icon {
    font-size: 2.2rem;
    color: var(--text-primary);
}

.cert-download {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.3s;
}

.cert-download:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.cert-info h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cert-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
}

.cert-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding-top: 100px;
    }

    .name {
        font-size: 2.5rem;
    }

    .role {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        text-align: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .blob {
        display: none;
        /* Better performance on mobile */
    }
}