/* ===================================================================
   SHOURYA KUMAR — PORTFOLIO WEBSITE v2
   Ultra-Premium Dark Theme | Full-Viewport Sections | Showstopper
   =================================================================== */

/* --- CSS Variables --- */
:root {
    --bg-primary: #030014;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(12, 12, 30, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(0, 212, 255, 0.12);
    --text-primary: #f0f0f8;
    --text-secondary: #a0a0c0;
    --text-muted: #5a5a80;
    --accent-cyan: #00e5ff;
    --accent-purple: #a855f7;
    --accent-pink: #f472b6;
    --accent-blue: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #00e5ff, #a855f7);
    --gradient-secondary: linear-gradient(135deg, #a855f7, #f472b6);
    --gradient-tri: linear-gradient(135deg, #00e5ff, #a855f7, #f472b6);
    --gradient-glow: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(168, 85, 247, 0.12));
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-primary);
    font-size: 16px;
}

html::-webkit-scrollbar { width: 5px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 3px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 80%, rgba(244, 114, 182, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
img { max-width: 100%; display: block; }

/* --- Custom Cursor --- */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

/* --- Loading Screen --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

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

.loader-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-tri);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.6; }
}

.loader-bar {
    width: 220px;
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    height: 100%;
    background: var(--gradient-tri);
    border-radius: 2px;
    animation: loaderFill 1.5s ease-in-out forwards;
}

@keyframes loaderFill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    z-index: 9999;
    padding: 12px 24px;
    background: rgba(12, 12, 30, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
    top: 16px;
    background: rgba(3, 0, 20, 0.75);
    backdrop-filter: blur(24px) saturate(1.2);
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-spring);
}
.nav-logo:hover { transform: scale(1.08); }

.logo-svg {
    filter: drop-shadow(0 2px 12px rgba(0, 229, 255, 0.35));
    transition: filter var(--transition-smooth);
}
.nav-logo:hover .logo-svg {
    filter: drop-shadow(0 4px 20px rgba(0, 229, 255, 0.6));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}
.nav-link:hover { 
    color: var(--text-primary); 
    background: rgba(255, 255, 255, 0.05);
}
.nav-link::after {
    display: none; /* Removed the underline effect for the pill style */
}

.btn-nav-contact {
    background: var(--gradient-primary);
    color: var(--bg-primary) !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
    transition: all var(--transition-smooth);
    margin-left: 8px;
}
.btn-nav-contact::after { display: none; }
.btn-nav-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10001;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-smooth);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 24px 60px;
}

/* Animated gradient orbs behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 60%);
    border-radius: 50%;
    animation: orbFloat1 12s ease-in-out infinite;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.07), transparent 60%);
    border-radius: 50%;
    animation: orbFloat2 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 3vh) scale(1.1); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4vw, -5vh) scale(1.15); }
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 850px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--accent-cyan);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 229, 255, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.08); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-tri);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle-wrapper {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-secondary);
    min-height: 2.8rem;
}
.hero-subtitle-prefix { color: var(--text-secondary); }

.typing-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.typing-cursor {
    color: var(--accent-cyan);
    animation: blink 0.7s step-end infinite;
    font-weight: 300;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 25px rgba(0, 229, 255, 0.25),
                0 0 80px rgba(0, 229, 255, 0.06);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.4),
                0 0 100px rgba(0, 229, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.1);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 36px 48px;
    background: rgba(0, 229, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.06);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    position: relative;
}
.hero-stats::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), transparent 40%, transparent 60%, rgba(168, 85, 247, 0.1));
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}

.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.stat-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

/* Scroll Indicator — Bottom Right */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    padding: 12px 14px 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 229, 255, 0.02);
    backdrop-filter: blur(12px);
    transition: all var(--transition-smooth);
    z-index: 2;
}
.hero-scroll-indicator:hover {
    border-color: rgba(0, 229, 255, 0.15);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
    transform: translateY(-3px);
}

.scroll-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    color: var(--accent-cyan);
}
.scroll-arrows svg:first-child {
    animation: chevronBounce 2s ease-in-out infinite;
    opacity: 0.9;
}
.scroll-arrows svg:last-child {
    animation: chevronBounce 2s ease-in-out infinite 0.25s;
    opacity: 0.4;
    margin-top: -8px;
}

@keyframes chevronBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Sections Common --- */
.section {
    padding: clamp(80px, 12vh, 140px) 0;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.section > .container {
    width: 100%;
}

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

/* Section Divider Animation */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: dividerGlow 3s ease-in-out infinite;
}
.divider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
    animation: dotBreathe 2.5s ease-in-out infinite;
}
@keyframes dividerGlow {
    0%, 100% { opacity: 0.3; width: 60px; }
    50% { opacity: 1; width: 100px; }
}
@keyframes dotBreathe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(0, 229, 255, 0.4); }
    50% { transform: scale(1.5); box-shadow: 0 0 28px rgba(0, 229, 255, 0.7), 0 0 56px rgba(168, 85, 247, 0.3); }
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 20px auto 0;
}

/* --- About Section --- */
.about {
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(168, 85, 247, 0.03), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.about-image-container {
    position: relative;
    width: clamp(220px, 25vw, 320px);
    height: clamp(270px, 30vw, 380px);
    margin: 0 auto;
}
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    border: 2px solid rgba(0, 229, 255, 0.1);
}
.about-image-border {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-cyan);
    border-radius: var(--radius-lg);
    z-index: 1;
    opacity: 0.2;
    transition: all var(--transition-smooth);
}
.about-image-container:hover .about-image-border {
    top: 10px;
    left: 10px;
    opacity: 0.5;
}
.about-image-dots {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--accent-cyan) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.15;
    z-index: 0;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.85;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}
.about-text strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 229, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.highlight-item:hover::before { opacity: 1; }
.highlight-item:hover {
    border-color: rgba(0, 229, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.highlight-icon { font-size: 1.4rem; flex-shrink: 0; position: relative; z-index: 1; }
.highlight-item strong { display: block; font-size: 0.88rem; margin-bottom: 2px; position: relative; z-index: 1; }
.highlight-item p { font-size: 0.78rem; color: var(--text-muted); position: relative; z-index: 1; }

/* --- Skills Section --- */
.skills {
    background:
        radial-gradient(ellipse 50% 50% at 20% 50%, rgba(0, 229, 255, 0.03), transparent),
        var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill-card {
    position: relative;
    padding: 28px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: default;
}
.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 229, 255, 0.04);
}

.skill-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.skill-card:hover .skill-card-glow { opacity: 1; }

.skill-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    color: var(--accent-cyan);
    transition: all var(--transition-smooth);
}
.skill-card:hover .skill-icon {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(168, 85, 247, 0.15));
    border-color: rgba(0, 229, 255, 0.25);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
}

.skill-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.skill-tag {
    padding: 4px 10px;
    font-size: 0.7rem;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 50px;
    color: var(--accent-cyan);
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.skill-card:hover .skill-tag {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.15);
}

.skill-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
}
.skill-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* --- Projects Section --- */
.projects {
    background: radial-gradient(ellipse 60% 40% at 70% 50%, rgba(168, 85, 247, 0.03), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.project-card {
    position: relative;
    padding: clamp(24px, 3vw, 40px);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-smooth);
}
.project-card:hover {
    border-color: rgba(0, 229, 255, 0.12);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 0 50px rgba(0, 229, 255, 0.03);
}

/* Gradient border on hover */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), transparent 40%, transparent 60%, rgba(168, 85, 247, 0.15));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}
.project-card:hover::before { opacity: 1; }

.project-card-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.04), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}
.project-card:hover .project-card-bg { opacity: 1; }

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.project-icon-wrapper {
    padding: 14px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    transition: all var(--transition-smooth);
}
.project-card:hover .project-icon-wrapper {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.project-year {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50px;
    border: 1px solid var(--border-glass);
}

.project-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.project-subtitle { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.75;
}

.project-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.metric {
    text-align: center;
    padding: 14px 8px;
    background: rgba(0, 229, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}
.project-card:hover .metric {
    background: rgba(0, 229, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.1);
}
.metric-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}
.metric-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-features { list-style: none; margin-bottom: 20px; }
.project-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}
.project-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tech-tag {
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 50px;
    color: var(--accent-purple);
    transition: all var(--transition-fast);
}
.project-card:hover .tech-tag {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.2);
}

.project-links { display: flex; gap: 12px; }
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    transition: all var(--transition-smooth);
}
.project-link:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.04);
    transform: translateY(-2px);
}

/* --- Research Section --- */
.research {
    background:
        radial-gradient(ellipse 50% 40% at 30% 60%, rgba(168, 85, 247, 0.03), transparent),
        var(--bg-secondary);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.research-card {
    position: relative;
    padding: clamp(24px, 3vw, 40px);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-smooth);
}
.research-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.12);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 0 50px rgba(168, 85, 247, 0.03);
}

.research-card-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.04), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}
.research-card:hover .research-card-bg { opacity: 1; }

.research-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), transparent 40%, transparent 60%, rgba(0, 229, 255, 0.15));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}
.research-card:hover::before { opacity: 1; }

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.research-icon-wrapper {
    padding: 14px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--accent-purple);
    transition: all var(--transition-smooth);
}
.research-card:hover .research-icon-wrapper {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.research-year {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50px;
    border: 1px solid var(--border-glass);
}

.research-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}
.research-subtitle { font-size: 0.82rem; color: var(--accent-purple); margin-bottom: 14px; font-weight: 500; }
.research-description {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.research-features { list-style: none; margin-bottom: 20px; }
.research-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}
.research-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-size: 0.9rem;
}

.research-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.research-topic {
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 50px;
    color: var(--accent-cyan);
}


/* --- Education Section --- */
.education {
    background: radial-gradient(ellipse 50% 40% at 70% 40%, rgba(0, 229, 255, 0.03), transparent);
}

.education-timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 44px;
}
.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0.25;
}

.timeline-item { position: relative; }
.timeline-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}
.timeline-dot-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.25;
    animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.4); opacity: 0; }
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
}
.timeline-content:hover {
    border-color: rgba(0, 229, 255, 0.1);
    transform: translateX(6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.timeline-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    margin-bottom: 6px;
}
.timeline-institution { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 16px; }

.timeline-cgpa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.06);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.cgpa-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cgpa-value { font-family: var(--font-heading); font-weight: 700; color: var(--accent-cyan); }

.timeline-courses h4 {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.course-tag {
    padding: 5px 12px;
    font-size: 0.72rem;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.08);
    border-radius: 50px;
    color: var(--accent-purple);
}

/* --- Contact Section --- */
.contact {
    background:
        radial-gradient(ellipse 50% 40% at 50% 60%, rgba(0, 229, 255, 0.03), transparent),
        var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
.contact-card {
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), transparent 50%, rgba(168, 85, 247, 0.2));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.contact-card:hover::before { opacity: 1; }
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 229, 255, 0.04);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin: 0 auto 16px;
    color: var(--accent-cyan);
    transition: all var(--transition-spring);
}
.contact-card:hover .contact-card-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.contact-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    word-break: break-all;
    position: relative;
    z-index: 1;
}

.contact-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
}
.footer-content { text-align: center; }
.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.footer-logo svg { filter: drop-shadow(0 2px 10px rgba(0, 229, 255, 0.3)); }
.footer-text { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}
.footer-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
}
.footer-socials a:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 229, 255, 0.15);
}
.footer-copyright { font-size: 0.72rem; color: var(--text-muted); }

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.36s; }

/* --- Custom Chatbot --- */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: var(--font-body);
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-primary);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
    position: relative;
    z-index: 2;
}
.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
}
.chat-icon-close { display: none; }
.chatbot-widget.open .chat-icon-open { display: none; }
.chatbot-widget.open .chat-icon-close { display: block; }

/* Chat Notification Bubble */
.chat-notification {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 240px;
    background: rgba(12, 12, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    pointer-events: none;
}

.chat-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.chat-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-notification-icon {
    font-size: 1.25rem;
    animation: sparkle-float 2s ease-in-out infinite;
}

.chat-notification p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
}

.chat-notification-arrow {
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: rgba(12, 12, 30, 0.9);
    border-right: 1px solid rgba(0, 229, 255, 0.15);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    transform: rotate(45deg);
}

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

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: rgba(12, 12, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 500px;
    height: 60vh;
}
.chatbot-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: rgba(0, 229, 255, 0.05);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-primary);
}
.chat-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.chat-status { font-size: 0.75rem; color: #22c55e; display: flex; align-items: center; gap: 4px; }
.chat-status::before { content: ''; width: 6px; height: 6px; background: #22c55e; border-radius: 50%; }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: messageIn 0.3s ease-out forwards;
}
@keyframes messageIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.bot-message {
    align-self: flex-start;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.1);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.bot-message strong { color: var(--accent-cyan); }
.bot-message ul { margin: 8px 0 8px 16px; padding: 0; }
.bot-message li { margin-bottom: 4px; }

.user-message {
    align-self: flex-end;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.suggestion-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: var(--accent-purple);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}
.suggestion-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-purple);
}

.chat-input-area {
    padding: 16px;
    background: rgba(3, 0, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    align-items: center;
}
.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition-fast);
}
.chat-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.02);
}
.chat-input::placeholder { color: var(--text-muted); }

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: none;
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}
.chat-send-btn svg { margin-left: -2px; }

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    align-self: flex-start;
    background: rgba(0, 229, 255, 0.05);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    margin-bottom: 8px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* --- Responsive — Media Queries Placeholder --- */
@media (max-width: 1024px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid, .research-grid { grid-template-columns: 1fr; max-width: 650px; margin: 0 auto; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .section { min-height: auto; }
}

/* --- Responsive — Mobile 768 --- */
@media (max-width: 768px) {
    .navbar {
        top: 16px;
        width: 92%;
        padding: 10px 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: 0;
        left: 0;
        margin: 0 auto;
        width: 92%;
        height: auto;
        border-radius: 24px;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        padding: 30px;
        gap: 16px;
        transition: all var(--transition-smooth);
        border: 1px solid rgba(0, 229, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.95);
    }
    .nav-links.active { 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0) scale(1);
    }
    .nav-toggle { display: flex; }

    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-image-container { width: 200px; height: 250px; }
    .about-highlights { grid-template-columns: 1fr; }

    .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .projects-grid, .research-grid { gap: 20px; }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 28px;
    }
    .stat-divider { width: 40px; height: 1px; }
    .hero-cta { flex-direction: column; align-items: center; }

    .project-metrics { grid-template-columns: 1fr; gap: 8px; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .research-card { padding: 24px; }
    .chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
    .chat-window {
        width: 320px;
        bottom: 70px;
    }
}

/* --- Responsive — Small Mobile 480 --- */
@media (max-width: 480px) {
    html { font-size: 15px; }
    .section { padding: 60px 0; }
    .hero { padding: 80px 16px 40px; }
    .hero-title { font-size: 2.2rem; }
    .project-card { padding: 20px; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { padding: 20px; gap: 16px; }
    .chatbot-widget {
        bottom: 16px;
        right: 16px;
        z-index: 10001; /* Above mobile nav */
    }
    .chat-toggle {
        width: 50px;
        height: 50px;
    }
    .chat-window {
        width: calc(100vw - 32px); /* Full width minus margins */
        bottom: 60px;
        height: 65vh;
        max-height: 450px;
        right: 0;
    }
}

/* --- Ultra-wide screens --- */
@media (min-width: 1600px) {
    .container { max-width: 1400px; }
    .skills-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
