:root {
    /* Colors - Deep Dark Theme */
    --bg-base: #E3EEE5;
    --bg-surface: #D5E5DA;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Vibrant Aurora Accents */
    --accent-blue: #38bdf8;
    --accent-indigo: #818cf8;
    --accent-purple: #c084fc;
    --accent-gold: #fbbf24;
    --accent-cyan: #22d3ee;
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-aurora: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    
    /* Glass Effect */
    --glass-bg: #EDF4EE;
    --glass-border: #BDD2C3;
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    
    /* Layout */
    --container-max: 1280px;
    --nav-height: 80px;
}


@media (max-width: 768px) {
    .focus-grid { grid-template-columns: 1fr; }
    .floating-tech, .maxi-text, .cursor-flashlight { display: none; }
    .hero-content { flex-direction: column; text-align: center; }
}

/* Gitty Up Badge Styles */
.achievement-badge.gitty-up {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.gitty-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    animation: bounce-small 2s infinite ease-in-out;
}

.gitty-icon-wrapper i {
    color: #000;
}

.badge-sparkle {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse-sparkle 2s infinite;
}

@keyframes bounce-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-sparkle {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.5); }
}

/* Animations Reveal Init */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-init.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Immersive Essentials */
.cursor-flashlight {
    position: fixed;
    top: 0; left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: soft-light;
}

.maxi-text {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    color: rgba(189, 210, 195, 0.1);
    -webkit-text-stroke: 1px rgba(189, 210, 195, 0.15);
    z-index: -2;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -2vw;
}

.chasing-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: flow-border 4s linear infinite;
    opacity: 0.8;
}

@keyframes flow-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* Typography Overrides */
h1, h2, h3, h4, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.glow-text {
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3), 0 0 40px rgba(168, 85, 247, 0.2);
    animation: text-pulse 4s infinite alternate;
}

@keyframes text-pulse {
    from { text-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }
    to { text-shadow: 0 0 40px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.3); }
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.dark-alt {
    background-color: rgba(17, 24, 39, 0.5);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-filters {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.project-item.hide {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.project-item.show {
    display: flex;
    animation: fadeInScale 0.5s forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Base Glass Element */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Background Mesh & Aurora Blobs */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(192, 132, 252, 0.1) 0%, transparent 50%);
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-aurora);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.3;
    animation: aurora-float 25s infinite alternate ease-in-out;
}

.blob-1 { top: -10%; left: -10%; }
.blob-2 { bottom: -10%; right: -10%; animation-delay: -5s; }
.blob-3 { top: 40%; left: 50%; width: 400px; height: 400px; animation-delay: -12s; }

@keyframes aurora-float {
    0% { transform: translate(-10%, -10%) rotate(0deg) scale(1); }
    100% { transform: translate(10%, 10%) rotate(180deg) scale(1.2); }
}

/* Nav */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--accent-purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

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

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

.nav-links a.resume-nav-link {
    color: #fff;
    padding: 0.4rem 1.25rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a.resume-nav-link:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.nav-links a.resume-nav-link::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    background-size: 200% auto;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: #BDD2C3;
    transform: translateY(-2px);
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--gradient-brand);
    color: #fff;
    transform: translateY(-3px);
    border-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    z-index: 10;
    overflow: hidden;
}

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

.floating-tech {
    position: relative;
    width: 40%;
    height: 400px;
}

.tech-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-blue);
    box-shadow: var(--glass-shadow);
    animation: float-icon 6s infinite ease-in-out;
}

.tech-icon i { filter: drop-shadow(0 0 8px currentColor); }

.t1 { top: 10%; left: 20%; animation-delay: 0s; color: var(--accent-blue); }
.t2 { top: 40%; left: 60%; animation-delay: -1s; color: var(--accent-purple); font-size: 2.5rem; }
.t3 { top: 70%; left: 30%; animation-delay: -2s; color: var(--accent-gold); }
.t4 { top: 20%; left: 70%; animation-delay: -3.5s; color: #FF9900; }
.t5 { top: 60%; left: 10%; animation-delay: -5s; color: var(--accent-cyan); }

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(10deg); }
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    color: var(--accent-purple);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.1); }
    50% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.3); }
    100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.1); }
}

.hero .name {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero .title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-links-hero {
    display: flex;
    gap: 1.5rem;
}

.social-links-hero a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links-hero a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text {
    padding: 3rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text strong {
    color: #fff;
}

.achievement-badge {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.achievement-badge i {
    font-size: 2.5rem;
}

.achievement-badge strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.achievement-badge span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Timeline */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem; top: 2.5rem;
    width: 16px; height: 16px;
    background: var(--bg-base);
    border: 3px solid var(--accent-purple);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.timeline-content .company {
    color: var(--accent-blue);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content .company a {
    color: inherit;
}

.timeline-content .company a:hover {
    text-decoration: underline;
}

.timeline-content .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
}

.skill-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tags span {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: rgba(189, 210, 195, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.skill-card:hover .tags span {
    border-color: rgba(99, 102, 241, 0.2);
    color: #fff;
}

/* Bento Grid System */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 1.5rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid var(--glass-border);
    will-change: transform;
}



/* Bento Spans */
.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .bento-large {
        grid-column: span 1;
    }
}

.project-item:hover {
    transform: translateY(-14px) scale(1.025) rotateX(2deg);
    border-color: transparent;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.project-category i {
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-item:hover .project-category i {
    transform: rotate(20deg) scale(1.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s ease;
    filter: brightness(0.9) saturate(1.1);
}

.project-item:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(0.7) saturate(1.3);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3,7,18,0.15) 0%, rgba(3,7,18,0.92) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}



.project-item:hover .img-overlay {
    opacity: 1;
}

/* Stagger view-btn entrance */
.view-btn {
    padding: 0.55rem 1.2rem;
    background: rgba(237, 244, 238, 0.98);
    color: #0a0a1a;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(16px);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.project-item:hover .view-btn {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover .view-btn:nth-child(1) { transition-delay: 0.05s; }
.project-item:hover .view-btn:nth-child(2) { transition-delay: 0.12s; }
.project-item:hover .view-btn:nth-child(3) { transition-delay: 0.19s; }

.view-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 12px rgba(168,85,247,0.3);
    background: var(--gradient-brand);
    color: #fff;
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.project-item:hover .project-info h3 {
    color: var(--card-glow, var(--accent-blue));
    text-shadow: 0 0 10px var(--card-glow, rgba(59, 130, 246, 0.3));
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    color: #fff;
    background: rgba(189, 210, 195, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-tags span {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

/* Cert Cards */
.cert-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.12);
}

/* Kaggle Cards */
#kaggle .glass:hover {
    transform: translateY(-8px);
    border-color: rgba(32, 190, 255, 0.3);
    box-shadow: 0 20px 40px rgba(32, 190, 255, 0.15);
}

/* Contact Section */
.contact-wrapper {
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-wrapper p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(189, 210, 195, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.method-icon {
    width: 50px; height: 50px;
    background: var(--gradient-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.method h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.method a {
    color: #fff;
    font-weight: 600;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 3rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: #030712;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal, .reveal-init {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%; bottom: 0;
        width: 80%;
        max-width: 400px;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .hero .name {
        font-size: 3rem;
    }
    
    .hero .title {
        font-size: 1.5rem;
    }
}

/* Note: Custom Cursor removed per user request */

/* Certifications */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.cert-subhead {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cert-subhead h3 {
    font-size: 1.5rem;
    color: #fff;
}

.cert-subhead::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.cert-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.12);
}

.cert-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.cert-card__head h4 {
    color: #fff;
    font-size: 1.05rem;
}

.cert-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
    white-space: nowrap;
}

.cert-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.cert-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.cert-card__thumb {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.cert-card__thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 0.75rem;
}

.cert-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cert-card__actions .btn {
    flex: 1;
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    justify-content: center;
    white-space: nowrap;
}

.cert-list {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.cert-list li {
    margin-bottom: 0.35rem;
}

.cert-list i {
    color: var(--accent-purple);
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

.cert-note {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2rem;
    text-align: center;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (max-width: 640px) {
  .hero-pfp { width: 140px !important; height: 140px !important; }
}








.cert-card__thumb img { width: 100%; height: 220px; object-fit: contain; object-position: center; border-radius: 12px; border: 1px solid var(--glass-border); background: #EDF4EE; }
@media (max-width: 640px) { .cert-card__thumb img { height: 180px; } }




.hero-profile { text-align: center; margin-bottom: 1.5rem; }
.hero-pfp { display: inline-block; }
@media (min-width: 1440px) { .hero-pfp { width: 200px !important; height: 200px !important; } }
@media (max-width: 768px) { .hero-pfp { width: 160px !important; height: 160px !important; } }
@media (max-width: 375px) { .hero-pfp { width: 130px !important; height: 130px !important; } .hero .name { font-size: 2rem; } .hero .title { font-size: 1.5rem; } }


.hero-profile { text-align: center; margin-bottom: 1.5rem; }
.hero-pfp { display: inline-block; width: 180px; height: 180px; object-fit: cover; object-position: top center; border-radius: 50%; border: 4px solid #138F8A; box-shadow: 0 8px 30px rgba(19,143,138,0.25); }
@media (min-width: 1440px) { .hero-pfp { width: 200px; height: 200px; } }
@media (max-width: 768px) { .hero-pfp { width: 160px; height: 160px; } }
@media (max-width: 375px) { .hero-pfp { width: 130px; height: 130px; } .hero .name { font-size: 2rem; } .hero .title { font-size: 1.5rem; } .hero-content { padding: 0 1rem; } }


@media (max-width: 768px) { .section { padding: 4rem 0; } .container { padding: 0 1rem; } .edu-card, .glass { padding: 1.5rem !important; } }
@media (max-width: 375px) { .section { padding: 3rem 0; } .edu-card, .glass { padding: 1.25rem !important; } .cert-card__thumb img { height: 150px; } }

/* =========================================================
   Sage / Teal readability + contrast audit overrides
   Dark, high-contrast text on the soft sage background.
   Palette: bg #E3EEE5, alt #D5E5DA, card #EDF4EE,
   heading #234638, body #344F43, secondary #425B50,
   teal #138F8A, teal-hover #0D716E, border #BDD2C3.
   ========================================================= */
:root {
  --bg-base: #E3EEE5;
  --bg-surface: #D5E5DA;
  --glass-bg: #EDF4EE;
  --glass-border: #BDD2C3;
  --card-bg: #EDF4EE;
  --text-primary: #344F43;
  --text-muted: #425B50;
  --heading: #234638;
  --accent-teal: #138F8A;
  --accent-teal-hover: #0D716E;
  --accent-blue: #138F8A;
  --accent-indigo: #138F8A;
  --accent-purple: #138F8A;
  --accent-cyan: #138F8A;
  --accent-gold: #138F8A;
  --gradient-brand: linear-gradient(135deg, #138F8A, #0D716E);
  --gradient-aurora: linear-gradient(135deg, #138F8A, #0D716E);
}

body { background-color: var(--bg-base); color: var(--text-primary); }

h1, h2, h3, h4, h5, h6 { color: var(--heading); }
.section-title { color: var(--heading); }
.section-subtitle { color: var(--text-muted); }
.dark-alt { background-color: var(--bg-surface); border-color: var(--glass-border); }

/* Navigation */
nav { background: rgba(227, 238, 229, 0.92); }
nav.scrolled { background: rgba(227, 238, 229, 0.96); border-bottom: 1px solid var(--glass-border); }
.bg-mesh { background: radial-gradient(circle at 0% 0%, rgba(19,143,138,0.10) 0%, transparent 50%), radial-gradient(circle at 100% 100%, rgba(19,143,138,0.08) 0%, transparent 50%); }
.logo { color: var(--heading); }
.logo .dot { color: var(--accent-teal); }
.nav-links a { color: var(--text-primary); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-teal); }
.nav-links a.resume-nav-link { color: var(--accent-teal-hover); background: rgba(19,143,138,0.10); border: 1px solid var(--accent-teal); }
.nav-links a.resume-nav-link:hover { color: #fff; background: var(--accent-teal); }
.mobile-menu-btn { color: var(--heading); }

/* Buttons */
.btn-primary { background: #0D716E; color: #fff; }
.btn-primary:hover { background: #0A5956; box-shadow: 0 10px 25px rgba(19,143,138,0.30); }
.btn-primary:focus-visible { background: #0D716E; color: #fff; }
.btn-secondary { background: rgba(19,143,138,0.08); color: var(--accent-teal-hover); border: 1px solid var(--accent-teal); }
.btn-secondary:hover { background: rgba(19,143,138,0.16); color: var(--accent-teal-hover); }

/* Filters */
.filter-btn { color: var(--text-muted); background: var(--card-bg); border-color: var(--glass-border); }
.filter-btn:hover, .filter-btn.active { background: var(--accent-teal); color: #fff; border-color: var(--accent-teal); box-shadow: 0 5px 15px rgba(19,143,138,0.25); }

/* Gradient / glow accents -> teal */
.gradient-text { background: none; -webkit-text-fill-color: var(--accent-teal); color: var(--accent-teal); }
.glow-text { text-shadow: none; animation: none; }
.hero .title { color: var(--accent-teal); }

/* Cards / body copy */
.about-text p, .about-text, .project-info p, .timeline-content .desc,
.skill-card p, .contact-wrapper p { color: var(--text-muted); }
.about-text strong { color: var(--accent-teal-hover); }
.project-info h3, .timeline-content h3, .timeline-content h4, .skill-card h3 { color: var(--heading); }
.project-category { color: var(--accent-teal-hover) !important; }
.project-item:hover .project-info h3 { color: var(--accent-teal); text-shadow: none; }
.project-tags span, .tags span { color: var(--text-primary); background: rgba(19,143,138,0.10); border: 1px solid var(--glass-border); }
.skill-card:hover .tags span { color: var(--heading); border-color: var(--accent-teal); }
.view-btn { color: var(--accent-teal-hover); }
.view-btn:hover { background: var(--accent-teal); color: #fff; }

/* Certifications */
.cert-subhead h3, .cert-card__head h4 { color: var(--heading); }
.cert-title { color: var(--accent-teal-hover) !important; }
.cert-meta, .cert-list, .cert-note { color: var(--text-muted); }
.cert-tag { background: rgba(19,143,138,0.12); color: var(--accent-teal-hover); }
.cert-card__thumb { background: var(--card-bg); border-color: var(--glass-border); }
.cert-card:hover { border-color: var(--accent-teal); box-shadow: 0 15px 35px rgba(19,143,138,0.12); }
.cert-list i { color: var(--accent-teal); }

/* Contact */
.method h4 { color: var(--text-muted); }
.method a { color: var(--accent-teal-hover); }
.method-icon, .contact-icon { background: linear-gradient(135deg, #138F8A, #0D716E); color: #fff; }
#contact-form input, #contact-form textarea { background: var(--card-bg) !important; color: var(--heading) !important; border: 1px solid var(--glass-border) !important; }
#contact-form input::placeholder, #contact-form textarea::placeholder { color: #6b8375; }
#contact-form label { color: var(--text-muted); }

/* Footer */
footer { background: var(--bg-surface); color: var(--text-muted); border-top: 1px solid var(--glass-border); }
footer p { color: var(--text-muted); }
footer a { color: var(--accent-teal); }

/* Badges */
.badge-pill { color: var(--accent-teal-hover); }

/* Prevent horizontal scroll from decorative blobs */
html { overflow-x: hidden; }

/* Mobile navigation drawer -> light sage panel with dark links */
@media (max-width: 768px) {
  .nav-links {
    background: rgba(227, 238, 229, 0.98);
    border-left: 1px solid var(--glass-border);
  }
  .nav-links a { color: var(--heading); }
  .nav-links a:hover, .nav-links a.active { color: var(--accent-teal); }
  .nav-links a.resume-nav-link { color: var(--accent-teal-hover); }
}

/* Education */
.edu-card h3 { color: var(--heading); }
.edu-org { color: var(--heading); }
.edu-cgpa { display: inline-block; margin-top: 1.25rem; padding: 0.45rem 1.1rem; border-radius: 50px; background: rgba(19, 143, 138, 0.12); color: var(--accent-teal-hover); font-weight: 600; border: 1px solid var(--accent-teal); }

/* Statistics */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.stat-card { text-align: center; padding: 1.75rem 1rem; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--glass-border); }
.stat-card .stat-number { display: block; font-size: 2.25rem; font-weight: 700; color: var(--accent-teal-hover); line-height: 1.1; }
.stat-card .stat-label { display: block; margin-top: 0.5rem; color: var(--text-primary); font-weight: 500; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } }

/* =========================================================
   HERO -> centered single-column layout
   Measured reference (1736x906): centered circular photo
   (~12% of width), centered headline/subtitle/CTAs, and three
   teal circular social icons near the bottom of the hero.
   Subtle light-sage background (center #DDEBE1 -> edges
   #D5E6DA/#D1E4D6), no saturated gradient blobs.
   NOTE: primary button colour stays #0D716E (WCAG AA 5.83:1);
   the reference teal #18A595 is intentionally NOT used because
   its contrast against white is only ~3.06:1 (fails AA).
   ========================================================= */

/* Light, low-saturation sage background with a subtly lighter centre */
body {
  background-color: #DCEADF;
  background-image: radial-gradient(circle at 50% 28%, #DDEBE1 0%, #DCEADF 48%, #D5E6DA 80%, #D1E4D6 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.bg-mesh { background: none !important; }
.blob { display: none !important; }

/* Replace the two-column hero with one centered column */
.hero-content {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.floating-tech { display: none !important; }

/* Centered circular profile photo (~12% of viewport width) */
.hero-profile { text-align: center; margin-bottom: 1.5rem; }
.hero-pfp {
  display: inline-block;
  width: 172px !important;
  height: 172px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--accent-teal);
  box-shadow: 0 8px 30px rgba(19,143,138,0.25);
}
@media (min-width: 1440px) { .hero-pfp { width: 176px !important; height: 176px !important; } }
@media (max-width: 768px) { .hero-pfp { width: 150px !important; height: 150px !important; } }
@media (max-width: 375px) { .hero-pfp { width: 128px !important; height: 128px !important; } }

/* Centered text block */
.hero .name, .hero .title, .hero .subtitle { text-align: center; }
/* Modest reduction to match measured reference headline height (~53px vs ~73px) */
.hero .name { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; }
.hero .subtitle { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Centered CTAs */
.hero-cta { justify-content: center; }
.hero .btn { padding: 1rem 2rem; }

/* Three teal circular social icons near the bottom.
   Reference: Ø~64px circles spaced widely (~20% of width between centres). */
.social-links-hero {
  justify-content: space-between;
  align-items: center;
  gap: 0;
  width: clamp(200px, 46vw, 640px);
  margin: 2.5rem auto 0;
}
.social-links-hero a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(19,143,138,0.28);
}
.social-links-hero a:hover { background: var(--accent-teal-hover); color: #fff; transform: translateY(-3px); }
@media (max-width: 768px) { .social-links-hero a { width: 56px; height: 56px; font-size: 1.35rem; } }
@media (max-width: 375px) { .social-links-hero a { width: 48px; height: 48px; font-size: 1.2rem; } }
/* Desktop: nudge the social row lower, toward the reference row centre (~89.5% H) */
@media (min-width: 769px) { .social-links-hero { margin-top: 4.5rem; } }
/* Phones: tighten the gap above the social row so all three icons sit inside the
   initial viewport (icons keep their 48px size; desktop placement untouched). */
@media (max-width: 480px) { .social-links-hero { margin-top: 1rem; } }

/* Mobile hero layout refinement */
@media screen and (max-width: 768px) {
    .hero {
        padding-top: 100px;
        overflow: hidden;
        min-height: auto;
    }

    .hero-content {
        padding-top: 20px;
        overflow: visible;
    }

    .hero-profile {
        position: relative;
        margin: 0 auto 24px;
        overflow: visible;
    }

    .hero-pfp {
        display: block;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .hero .name {
        margin-top: 0;
    }

    .hero-cta {
        justify-content: center;
    }
}

