/* ============================================================
   DESIGN SYSTEM — DARK MODE (Default)
   Deep navy / charcoal palette, purple-teal gradient accents
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Core backgrounds */
    --bg-primary:    #0f172a;   /* deep-navy */
    --bg-secondary:  #1e293b;   /* charcoal */
    --bg-card:       rgba(30, 41, 59, 0.5);
    --bg-glass:      rgba(255, 255, 255, 0.03);

    /* Accent palette */
    --purple:        #a855f7;
    --purple-dim:    rgba(168, 85, 247, 0.15);
    --teal:          #2dd4bf;
    --teal-dim:      rgba(45, 212, 191, 0.15);
    --blue:          #3b82f6;
    --blue-dim:      rgba(59, 130, 246, 0.15);
    --pink:          #ec4899;
    --pink-dim:      rgba(236, 72, 153, 0.15);

    /* Gradient */
    --gradient-main: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #2dd4bf 100%);
    --gradient-hero: linear-gradient(135deg, #a855f7 0%, #2dd4bf 100%);

    /* Text */
    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    /* Borders */
    --border:         rgba(255, 255, 255, 0.07);
    --border-hover:   rgba(168, 85, 247, 0.4);

    /* Shadows */
    --shadow-sm:  0 4px 16px rgba(0,0,0,0.25);
    --shadow-md:  0 10px 40px rgba(0,0,0,0.4);
    --shadow-glow-purple: 0 0 40px rgba(168,85,247,0.15);
    --shadow-glow-teal:   0 0 40px rgba(45,212,191,0.12);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
    background: var(--purple);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

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




/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   SECTION LABELS / TITLES
   ============================================================ */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 560px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-slow);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-main);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

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

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

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    border-radius: 12px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 6rem;
    overflow: hidden;
}

/* Ambient glow */
.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(168,85,247,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.9s ease-out both;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.9s ease-out 0.1s both;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.9s ease-out 0.15s both;
}

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

#alternatingText {
    display: inline-block;
    padding-right: 4px;
    border-right: 3px solid var(--teal);
    animation: blink-cursor 0.75s step-end infinite;
    width: fit-content;
}

@keyframes blink-cursor {
    from, to { border-color: transparent }
    50% { border-color: var(--teal); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 0 2.5rem 0;
    line-height: 1.75;
    animation: fadeInUp 0.9s ease-out 0.2s both;
    text-align: left;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease-out 0.25s both;
}

/* ============================================================
   CLI TERMINAL COMPONENT
   ============================================================ */
.hero-terminal-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

.terminal-window {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.05);
    overflow: hidden;
    transition: var(--transition);
    text-align: left;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.terminal-window:hover {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(168, 85, 247, 0.12);
}

body.light-mode .terminal-window {
    background: rgba(15, 23, 42, 0.9);
}

.terminal-header {
    background: rgba(30, 41, 59, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close { background: #ef4444; }
.btn-minimize { background: #eab308; }
.btn-maximize { background: #22c55e; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: inherit;
}

.terminal-body {
    padding: 1.25rem;
    flex-grow: 1;
    font-family: 'Fira Code', Menlo, Monaco, Consolas, 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.terminal-line {
    word-break: break-all;
    white-space: pre-wrap;
}

/* Color codes */
.term-cyan   { color: #2dd4bf; }
.term-purple { color: #c084fc; }
.term-yellow { color: #facc15; }
.term-green  { color: #4ade80; }
.term-blue   { color: #60a5fa; }
.term-pink   { color: #f472b6; }
.term-gray   { color: #94a3b8; }
.term-red    { color: #f87171; }
.term-bold   { font-weight: 700; }

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.terminal-prompt {
    color: var(--teal);
    font-weight: 600;
    white-space: nowrap;
}

.terminal-input-field {
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font-family: inherit;
    font-size: inherit;
    flex-grow: 1;
    width: 100%;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 650px;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
        text-align: center;
    }

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

    .hero-terminal-wrapper {
        max-width: 580px;
        margin: 0 auto;
    }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    padding: 7rem 0;
    background: rgba(30, 41, 59, 0.25);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 5rem;
    align-items: center;
}

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

/* About skills mini-grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition);
}

.skill-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.skill-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.skill-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.skill-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Profile card */
.about-image {
    display: flex;
    justify-content: center;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow-purple);
    width: 100%;
    max-width: 320px;
    transition: var(--transition);
}

.profile-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.2);
}

.profile-img-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    padding: 3px;
    border-radius: 50%;
    background: var(--gradient-hero);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.profile-role {
    font-size: 0.9rem;
    color: var(--purple);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

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

.profile-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

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

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section {
    padding: 7rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-md), var(--shadow-glow-purple);
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(15%);
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(45,212,191,0.1));
}

.project-emoji {
    font-size: 3.5rem;
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.5) 0%, transparent 60%);
    pointer-events: none;
}

.project-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.project-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

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

.tag {
    padding: 0.3rem 0.75rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.link-primary {
    background: var(--purple);
    color: #fff;
}

.link-primary:hover {
    background: #9333ea;
    box-shadow: 0 4px 16px rgba(168,85,247,0.4);
}

.link-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.link-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-section {
    padding: 7rem 0;
    background: rgba(30, 41, 59, 0.25);
}

.skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Glassmorphism card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.skill-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.skill-card--purple:hover { border-color: rgba(168, 85, 247, 0.3); }
.skill-card--teal:hover   { border-color: rgba(45, 212, 191, 0.3); }
.skill-card--blue:hover   { border-color: rgba(59, 130, 246, 0.3); }
.skill-card--pink:hover   { border-color: rgba(236, 72, 153, 0.3); }

.skill-card-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card-icon--purple { background: var(--purple-dim); color: var(--purple); }
.skill-card-icon--teal   { background: var(--teal-dim);   color: var(--teal);   }
.skill-card-icon--blue   { background: var(--blue-dim);   color: var(--blue);   }
.skill-card-icon--pink   { background: var(--pink-dim);   color: var(--pink);   }

.skill-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.skill-card-body p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    padding: 7rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: var(--purple-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-details h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.contact-details p {
    font-size: 0.97rem;
    color: var(--text-primary);
}

.contact-details a {
    color: var(--purple);
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--teal);
}

/* Social links inside contact */
.contact-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: var(--transition);
    text-decoration: none;
}

.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(93%) sepia(6%) saturate(347%) hue-rotate(179deg) brightness(95%) contrast(92%);
    transition: var(--transition);
}

body.light-mode .social-link img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(12%) saturate(1234%) hue-rotate(182deg) brightness(95%) contrast(92%);
}

.social-link:hover {
    background: var(--gradient-main);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.social-link:hover img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.97rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    max-height: 220px;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: #f8fafc;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

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

.footer-links {
    display: flex;
    gap: 0.75rem;
}

.footer-social {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(93%) sepia(6%) saturate(347%) hue-rotate(179deg) brightness(95%) contrast(92%);
    transition: var(--transition);
}

body.light-mode .footer-social img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(12%) saturate(1234%) hue-rotate(182deg) brightness(95%) contrast(92%);
}

.footer-social:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-3px);
}

.footer-social:hover img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-up {
    animation: fadeInUp 0.65s ease-out both;
}

/* ============================================================
   LIGHT MODE ADJUSTMENTS
   ============================================================ */
body.light-mode .hero-section {
    background: none;
}

body.light-mode .hero-glow {
    background: radial-gradient(ellipse at center, rgba(168,85,247,0.07) 0%, transparent 70%);
}

body.light-mode .about-section,
body.light-mode .skills-section {
    background: rgba(241, 245, 249, 0.5);
}

body.light-mode .tag {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode footer {
    background: rgba(241, 245, 249, 0.8);
}

body.light-mode .contact-form-wrapper {
    background: #fff;
    border-color: #e2e8f0;
}

/* ============================================================
   NOTIFICATION
   ============================================================ */
.notification {
    position: fixed;
    top: 88px;
    right: 1.5rem;
    background: var(--gradient-main);
    color: #fff;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 10000;
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .profile-card {
        max-width: 280px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hamburger {
        display: flex;
    }

    .skills-cards-grid {
        grid-template-columns: 1fr;
    }

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

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

    .section-subtitle {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.97rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .navbar {
        padding: 0 1.25rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .about-section,
    .projects-section,
    .skills-section,
    .contact-section {
        padding: 4.5rem 0;
    }

    .contact-form-wrapper {
        padding: 1.75rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ============================================================
   PROJECT MODAL OVERLAY
   ============================================================ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-modal.modal-active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 580px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md), 0 0 60px rgba(168, 85, 247, 0.15);
}

.project-modal.modal-active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    display: block;
}

.modal-details-wrapper {
    padding: 3.5rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    padding-right: 2.25rem;
}

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

.modal-description {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.modal-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 12px;
}
