/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - HSL (Hue, Saturation, Lightness) */
    --hue-primary: 220; /* Slate / Steel Blue */
    --hue-accent: 174;  /* Teal */
    --hue-accent2: 262; /* Indigo/Purple */

    /* Transition speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(var(--color-accent-rgb), 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: hsl(var(--hue-primary), 35%, 97%);
    --bg-secondary: hsl(var(--hue-primary), 30%, 94%);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border-color: hsla(var(--hue-primary), 20%, 88%, 0.8);
    --border-glass: rgba(255, 255, 255, 0.4);
    
    --text-primary: hsl(var(--hue-primary), 30%, 15%);
    --text-secondary: hsl(var(--hue-primary), 15%, 45%);
    --text-muted: hsl(var(--hue-primary), 12%, 60%);
    
    --color-accent: hsl(var(--hue-accent), 85%, 35%);
    --color-accent-rgb: 9, 121, 105;
    --color-accent-hover: hsl(var(--hue-accent), 90%, 28%);
    --color-accent2: hsl(var(--hue-accent2), 70%, 55%);
    
    --gradient-hero: linear-gradient(135deg, hsl(var(--hue-primary), 35%, 90%) 0%, hsl(var(--hue-accent), 40%, 90%) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent2) 100%);
    
    --accent-glow: rgba(9, 121, 105, 0.15);
    --navbar-bg: rgba(241, 244, 249, 0.8);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-primary: hsl(var(--hue-primary), 25%, 8%);
    --bg-secondary: hsl(var(--hue-primary), 22%, 12%);
    --bg-card: rgba(20, 26, 38, 0.65);
    --bg-card-hover: rgba(28, 36, 52, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: hsl(var(--hue-primary), 15%, 94%);
    --text-secondary: hsl(var(--hue-primary), 10%, 75%);
    --text-muted: hsl(var(--hue-primary), 8%, 55%);
    
    --color-accent: hsl(var(--hue-accent), 75%, 45%);
    --color-accent-rgb: 29, 201, 178;
    --color-accent-hover: hsl(var(--hue-accent), 80%, 52%);
    --color-accent2: hsl(var(--hue-accent2), 75%, 68%);
    
    --gradient-hero: linear-gradient(135deg, hsl(var(--hue-primary), 25%, 10%) 0%, hsl(230, 20%, 15%) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent2) 100%);
    
    --accent-glow: rgba(29, 201, 178, 0.25);
    --navbar-bg: rgba(13, 17, 26, 0.8);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

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

a:hover {
    color: var(--color-accent-hover);
}

ul {
    list-style: none;
}

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

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   REUSABLE COMPONENTS & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-top: 1px solid var(--border-glass);
    border-left: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                background-color var(--transition-normal),
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(var(--color-accent-rgb), 0.08) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

/* Glowing top border line */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 30px rgba(var(--color-accent-rgb), 0.12);
    background: var(--bg-card-hover);
    border-color: rgba(var(--color-accent-rgb), 0.25);
}

.glass-card:hover::before {
    left: 150%;
}

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

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--color-accent-rgb), 0.25);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(var(--color-accent-rgb), 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Badge/Tag Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

/* Interactive Gradients & Background Shapes */
.bg-decor {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme & Print buttons */
.nav-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-btn:hover {
    background: var(--bg-secondary);
    color: var(--color-accent);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hamburger mobile menu */
.menu-toggle {
    display: none;
}

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

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-tag {
    align-self: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
}

.hero-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

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

.hero-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-accent);
    stroke-width: 2;
    fill: none;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Avatar / Profile Graphic */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: var(--radius-full);
    padding: 8px;
    background: var(--gradient-accent);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.profile-avatar-inner {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: var(--radius-full);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-avatar-inner svg {
    width: 70%;
    height: 70%;
    color: var(--text-muted);
}

.profile-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.15) translateY(8%);
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-badge-icon {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--color-accent);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-18px) rotate(1deg);
    }
}

/* ==========================================================================
   ABOUT / PROFILE SUMMARY
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon-box {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(var(--color-accent-rgb), 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: background 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.feature-item:hover .feature-icon-box {
    background: rgba(var(--color-accent-rgb), 0.2);
    transform: scale(1.18) rotate(-6deg);
    box-shadow: 0 6px 18px rgba(var(--color-accent-rgb), 0.25);
    animation: borderPulse 1.6s ease infinite;
}

.feature-icon-box svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   EDUCATION SECTION
   ========================================================================== */
.edu-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border-color);
}

.edu-item {
    position: relative;
    margin-bottom: 3.5rem;
}

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

.edu-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    border: 4px solid var(--color-accent);
    box-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.3);
    transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.edu-item:hover .edu-dot {
    background: var(--color-accent);
    transform: scale(1.5);
    box-shadow: 0 0 0 6px rgba(var(--color-accent-rgb), 0.15), 0 0 16px rgba(var(--color-accent-rgb), 0.4);
}

.edu-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-title {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.edu-inst {
    font-size: 1.05rem;
    color: var(--color-accent);
    font-weight: 500;
}

.edu-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.edu-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.edu-meta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.edu-cgpa {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(var(--color-accent-rgb), 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--color-accent-rgb), 0.15);
}

/* ==========================================================================
   EXPERIENCE SECTION (RESEARCH & PROFESSIONAL)
   ========================================================================== */
.experience-tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.filter-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--color-accent);
    border-color: rgba(var(--color-accent-rgb), 0.3);
}

.filter-btn.active {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.2);
}

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

/* Specific styling for Experience Card */
.exp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exp-type-badge {
    align-self: flex-start;
    margin-bottom: 1rem;
}

.exp-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.exp-org {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.exp-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.exp-date svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.exp-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.exp-bullets {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-bullet-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.exp-bullet-item::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
}

/* Animate card filtering */
.exp-card.hide {
    display: none;
}

.exp-card.show {
    animation: fadeIn var(--transition-slow) forwards;
}

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

/* ==========================================================================
   SCROLL-REVEAL ENTRANCE ANIMATIONS
   ========================================================================== */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes borderPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(var(--color-accent-rgb), 0); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30%       { transform: translateY(-6px) scale(1.12); }
    60%       { transform: translateY(-3px) scale(1.06); }
}

@keyframes shimmerBg {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Reveal class toggled by JS IntersectionObserver */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Staggered delays for grid children */
.reveal:nth-child(1)  { transition-delay: 0.05s; }
.reveal:nth-child(2)  { transition-delay: 0.12s; }
.reveal:nth-child(3)  { transition-delay: 0.19s; }
.reveal:nth-child(4)  { transition-delay: 0.26s; }
.reveal:nth-child(5)  { transition-delay: 0.33s; }
.reveal:nth-child(6)  { transition-delay: 0.40s; }

/* ==========================================================================
   VOLUNTEERING SECTION
   ========================================================================== */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.volunteer-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Pulse ring on volunteer icon hover */
.volunteer-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.volunteer-card:hover .volunteer-icon-wrapper {
    background: rgba(var(--color-accent-rgb), 0.22);
    transform: scale(1.15) rotate(-4deg);
    box-shadow: 0 0 0 6px rgba(var(--color-accent-rgb), 0.12);
    animation: borderPulse 1.4s ease infinite;
}

.volunteer-card:hover .volunteer-icon-wrapper svg {
    animation: iconBounce 0.7s ease;
}

.volunteer-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.volunteer-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.volunteer-role {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.volunteer-org {
    font-weight: 500;
    color: var(--color-accent);
}

.volunteer-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.skills-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills-card-title {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.skills-card-title svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent);
    stroke-width: 2;
    fill: none;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-name {
    color: var(--text-primary);
}

.skill-level {
    color: var(--color-accent);
}

.skill-bar-bg {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    width: 0; /* Animated via JS */
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* For language badges */
.language-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lang-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 100px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.lang-badge:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(var(--color-accent-rgb), 0.4);
    box-shadow: 0 8px 20px rgba(var(--color-accent-rgb), 0.15);
}

.lang-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.lang-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CERTIFICATIONS & AFFILIATIONS SECTION
   ========================================================================== */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cert-column-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-column-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
    stroke-width: 2;
    fill: none;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cert-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    position: relative;
}

.cert-card:hover {
    border-left-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.04);
    transform: translateX(4px);
}

.cert-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover .cert-icon {
    background: rgba(var(--color-accent-rgb), 0.2);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 14px rgba(var(--color-accent-rgb), 0.25);
}

.cert-card:hover .cert-icon svg {
    animation: iconBounce 0.6s ease;
}

.cert-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.cert-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.cert-org {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.95rem;
}

.cert-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-header-text p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(var(--color-accent-rgb), 0.08);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}

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

.form-status {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: rgb(16, 185, 129);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
}

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

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: #fff;
    background: var(--gradient-accent);
    border-color: transparent;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

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

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-grid, .about-grid, .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--navbar-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.25rem;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        transition: background-color var(--transition-fast);
    }

    .menu-toggle:hover {
        background: var(--bg-secondary);
        color: var(--color-accent);
    }

    .menu-toggle svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-tag {
        align-self: center;
    }
    
    .hero-contact-info {
        justify-content: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-grid, .contact-grid, .cert-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-features {
        margin-top: 1rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-avatar-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .edu-timeline {
        padding-left: 2rem;
    }
    
    .edu-timeline::before {
        left: 10px;
    }
    
    .edu-dot {
        left: -23px;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }
    
    .filter-nav {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   PRINT STYLES (OPTIMIZED FOR PDF RESUME EXPORT)
   ========================================================================== */
@media print {
    /* Hide all web-only interactive components */
    .navbar, 
    .bg-decor, 
    .hero-btns, 
    .hero-visual, 
    .filter-nav,
    .contact-form,
    .footer,
    .scroll-top-btn,
    .section-subtitle,
    .profile-badge {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
        font-family: 'Inter', sans-serif !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        font-family: 'Outfit', sans-serif !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .section {
        padding: 1.5rem 0 !important;
        page-break-inside: avoid;
    }
    
    .section-header {
        margin-bottom: 1.5rem !important;
        text-align: left !important;
    }

    .section-title {
        font-size: 16pt !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 4px !important;
        width: 100% !important;
        display: block !important;
    }

    .section-title::after {
        display: none !important;
    }

    /* Hero section styled as standard resume header */
    .hero {
        min-height: auto !important;
        padding-top: 0 !important;
        padding-bottom: 1.5rem !important;
        background: transparent !important;
        border-bottom: 2px solid #000 !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        text-align: left !important;
    }

    .hero-content {
        gap: 0.5rem !important;
    }

    .hero-tag {
        display: none !important;
    }

    .hero-title {
        font-size: 24pt !important;
        margin-bottom: 0.25rem !important;
    }

    .hero-title span {
        background: none !important;
        -webkit-text-fill-color: #000 !important;
        color: #000 !important;
    }

    .hero-subtitle {
        font-size: 13pt !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-desc {
        display: none !important;
    }

    .hero-contact-info {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }

    .hero-contact-item {
        font-size: 10pt !important;
        color: #000 !important;
    }

    .hero-contact-item svg {
        stroke: #000 !important;
    }

    /* Layout structural changes */
    .about-grid, .contact-grid, .cert-grid, .skills-layout, .experience-grid, .volunteer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Cards simplified to clean lists */
    .glass-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        backdrop-filter: none !important;
        margin-bottom: 1rem !important;
    }

    .glass-card:hover {
        transform: none !important;
    }

    /* Timeline Adjustments */
    .edu-timeline {
        padding-left: 0 !important;
    }

    .edu-timeline::before {
        display: none !important;
    }

    .edu-dot {
        display: none !important;
    }

    .edu-header, .edu-card {
        display: block !important;
    }

    .edu-header {
        margin-bottom: 0.25rem !important;
    }

    .edu-meta {
        margin-top: 0 !important;
        margin-bottom: 0.25rem !important;
        color: #555 !important;
    }

    .edu-cgpa {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        font-weight: bold !important;
        display: inline-block !important;
    }

    /* Experience lists */
    .exp-card {
        page-break-inside: avoid !important;
        margin-bottom: 1.5rem !important;
    }

    .exp-type-badge {
        display: none !important;
    }

    .exp-title {
        font-size: 12pt !important;
        font-weight: bold !important;
        margin-bottom: 0.1rem !important;
        display: inline-block !important;
    }

    .exp-org {
        font-size: 11pt !important;
        font-weight: 600 !important;
        color: #000 !important;
        margin-bottom: 0.1rem !important;
        display: inline-block !important;
    }

    .exp-org::before {
        content: " - " !important;
    }

    .exp-date {
        font-size: 10pt !important;
        color: #555 !important;
        margin-bottom: 0.4rem !important;
    }

    .exp-date svg {
        display: none !important;
    }

    .exp-bullets {
        margin-top: 0.25rem !important;
    }

    .exp-bullet-item {
        font-size: 10.5pt !important;
        color: #111 !important;
    }

    .exp-bullet-item::before {
        color: #000 !important;
    }

    /* Skills lists simplified */
    .skills-layout {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .skills-card {
        gap: 0.75rem !important;
    }

    .skills-card-title {
        font-size: 12pt !important;
        font-weight: bold !important;
        border-bottom: 1px solid #000 !important;
        padding-bottom: 2px !important;
    }

    .skills-card-title svg {
        display: none !important;
    }

    .skill-bar-bg {
        display: none !important;
    }

    .skill-info {
        font-size: 10pt !important;
    }

    .skill-level::before {
        content: " (" !important;
    }

    .skill-level::after {
        content: ")" !important;
    }

    .lang-badge {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        display: inline !important;
    }

    .lang-badge::after {
        content: ", " !important;
    }

    .lang-badge:last-child::after {
        content: "" !important;
    }

    .lang-name {
        display: inline !important;
        font-size: 10.5pt !important;
    }

    .lang-level {
        display: inline !important;
        font-size: 10pt !important;
        color: #555 !important;
    }

    .lang-level::before {
        content: " (" !important;
    }

    .lang-level::after {
        content: ")" !important;
    }

    /* Volunteering list */
    .volunteer-card {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        page-break-inside: avoid !important;
    }

    .volunteer-icon-wrapper {
        display: none !important;
    }

    .volunteer-role {
        font-size: 11pt !important;
        font-weight: bold !important;
    }

    .volunteer-org::before {
        content: " - " !important;
    }

    .volunteer-org {
        font-size: 11pt !important;
        color: #000 !important;
    }

    .volunteer-meta {
        font-size: 10pt !important;
        color: #555 !important;
        margin-left: auto !important;
    }

    /* Certifications & Affiliations */
    .cert-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .cert-column-title {
        font-size: 13pt !important;
        margin-bottom: 1rem !important;
        border-bottom: 1px solid #000 !important;
        padding-bottom: 2px !important;
    }

    .cert-column-title svg {
        display: none !important;
    }

    .cert-card {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .cert-icon {
        display: none !important;
    }

    .cert-title {
        font-size: 11pt !important;
        font-weight: bold !important;
    }

    .cert-org::before {
        content: " - " !important;
    }

    .cert-org {
        font-size: 11pt !important;
        color: #000 !important;
    }

    .cert-meta {
        font-size: 10pt !important;
        color: #555 !important;
    }

    /* Margins and page control */
    @page {
        margin: 1.5cm 1.5cm;
    }
}
