/* ============================================
   DESIGN SYSTEM — CSS Custom Properties
   ============================================ */
:root {
    /* Backgrounds */
    --bg-primary: #fbfbfe;
    --bg-secondary: #f1f3f8;
    --bg-tertiary: #e8ebf2;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --bg-nav-solid: rgba(255, 255, 255, 0.98);
    --bg-mobile-menu: rgba(255, 255, 255, 0.98);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-accent: #ffffff;

    /* Accents */
    --accent-primary: #7c3aed;
    --accent-secondary: #06b6d4;
    --accent-warm: #f59e0b;
    --gradient-accent: linear-gradient(135deg, #7c3aed, #06b6d4);
    --gradient-accent-hover: linear-gradient(135deg, #6d28d9, #0891b2);

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-card: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
    --shadow-glow: none;
    --shadow-card-hover: 0 20px 50px rgba(124, 58, 237, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);

    /* Hero */
    --hero-bg: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --hero-radial-1: rgba(124, 58, 237, 0.25);
    --hero-radial-2: rgba(6, 182, 212, 0.25);

    /* Misc */
    --tech-tag-bg: rgba(124, 58, 237, 0.1);
    --tech-tag-color: #6d28d9;
    --skill-bar-bg: #e5e7eb;
    --footer-bg: #0f172a;
    --profile-ring: rgba(255, 255, 255, 0.2);
    --profile-bg: rgba(255, 255, 255, 0.1);
    --input-bg: #ffffff;
    --form-status-success-bg: #e6fff7;
    --form-status-success-border: #a7f3d0;
    --form-status-error-bg: #fff0f0;
    --form-status-error-border: #fca5a5;
    --form-status-loading-bg: #eef2ff;
    --form-status-loading-border: #c7d2fe;
    --scroll-progress: linear-gradient(90deg, #7c3aed, #06b6d4);
}

/* ============================================
   DARK MODE TOKENS
   ============================================ */
[data-theme="dark"] {
    --bg-primary: #0a0f1e;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2332;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-card-hover: rgba(26, 35, 50, 0.95);
    --bg-nav: rgba(10, 15, 30, 0.88);
    --bg-nav-solid: rgba(10, 15, 30, 0.98);
    --bg-mobile-menu: rgba(10, 15, 30, 0.98);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;

    --accent-primary: #a78bfa;
    --accent-secondary: #22d3ee;
    --accent-warm: #fbbf24;
    --gradient-accent: linear-gradient(135deg, #a78bfa, #22d3ee);
    --gradient-accent-hover: linear-gradient(135deg, #8b5cf6, #06b6d4);

    --border-color: rgba(71, 85, 105, 0.3);
    --border-card: rgba(71, 85, 105, 0.25);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(167, 139, 250, 0.15), 0 0 60px rgba(34, 211, 238, 0.08);
    --shadow-card-hover: 0 20px 50px rgba(167, 139, 250, 0.15), 0 0 40px rgba(34, 211, 238, 0.08);

    --hero-bg: linear-gradient(135deg, #0f172a 0%, #111827 100%);
    --hero-radial-1: rgba(124, 58, 237, 0.12);
    --hero-radial-2: rgba(6, 182, 212, 0.12);

    --tech-tag-bg: rgba(167, 139, 250, 0.12);
    --tech-tag-color: #a78bfa;
    --skill-bar-bg: #1e293b;
    --footer-bg: #060a14;
    --profile-ring: rgba(167, 139, 250, 0.35);
    --profile-bg: rgba(167, 139, 250, 0.08);
    --input-bg: #1a2332;
    --form-status-success-bg: rgba(16, 185, 129, 0.1);
    --form-status-success-border: rgba(16, 185, 129, 0.3);
    --form-status-error-bg: rgba(239, 68, 68, 0.1);
    --form-status-error-border: rgba(239, 68, 68, 0.3);
    --form-status-loading-bg: rgba(99, 102, 241, 0.1);
    --form-status-loading-border: rgba(99, 102, 241, 0.3);
    --scroll-progress: linear-gradient(90deg, #a78bfa, #22d3ee);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   SMOOTH THEME TRANSITIONS
   ============================================ */
body,
.navbar,
.nav-menu,
.nav-link,
.theme-toggle,
.bar,
.hero,
section,
.section-title,
.about,
.about-text p,
.stat h3,
.stat p,
.skill-card,
.skill-card h3,
.skill-card p,
.skill-level,
.projects,
.project-card,
.project-content h3,
.project-content p,
.tech-tag,
.project-link,
.contact-info h3,
.contact-info p,
.contact-method,
.contact-form,
.form-group input,
.form-group textarea,
.footer,
.btn,
.profile-image {
    transition: background-color 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: var(--bg-nav-solid);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--accent-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(15deg) scale(1.08);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.theme-toggle i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(1200px 600px at 10% 10%, var(--hero-radial-1), transparent 60%),
        radial-gradient(900px 500px at 90% 20%, var(--hero-radial-2), transparent 60%),
        var(--hero-bg);
    color: white;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background particles for dark mode */
[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(167, 139, 250, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(34, 211, 238, 0.2), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(167, 139, 250, 0.2), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(34, 211, 238, 0.3), transparent),
        radial-gradient(2px 2px at 15% 80%, rgba(167, 139, 250, 0.15), transparent),
        radial-gradient(2px 2px at 70% 45%, rgba(34, 211, 238, 0.15), transparent);
    animation: starTwinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes starTwinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--accent-warm);
    position: relative;
}

[data-theme="dark"] .highlight {
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-on-accent);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.25);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 12px 35px rgba(167, 139, 250, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Profile Card */
.profile-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    background: var(--profile-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 2px solid var(--profile-ring);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

[data-theme="dark"] .profile-image {
    box-shadow:
        0 0 40px rgba(167, 139, 250, 0.15),
        0 0 80px rgba(34, 211, 238, 0.08),
        inset 0 0 30px rgba(167, 139, 250, 0.05);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: shimmerBar 3s ease-in-out infinite;
}

@keyframes shimmerBar {

    0%,
    100% {
        opacity: 1;
        width: 60px;
    }

    50% {
        opacity: 0.7;
        width: 80px;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

[data-theme="dark"] .about-card {
    backdrop-filter: blur(12px);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

[data-theme="dark"] .stat {
    backdrop-filter: blur(12px);
}

.stat:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .stat:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.stat h3 {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-card);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism shine effect */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.04),
            transparent);
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.skill-card:hover::before {
    left: 125%;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .skill-card {
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .skill-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: var(--shadow-card-hover);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-icon i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.skill-level {
    background: var(--skill-bar-bg);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 0;
    position: relative;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: skillShimmer 2s ease-in-out infinite;
}

@keyframes skillShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-card);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

[data-theme="dark"] .project-card {
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .project-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.project-image {
    height: 200px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.project-content {
    padding: 1.75rem;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    background: var(--tech-tag-bg);
    color: var(--tech-tag-color);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .tech-tag:hover {
    box-shadow: 0 2px 12px rgba(167, 139, 250, 0.2);
}

.project-links {
    display: flex;
    gap: 1.25rem;
}

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-link:hover {
    color: var(--accent-secondary);
    transform: translateX(2px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-method:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

[data-theme="dark"] .contact-method:hover {
    background: var(--bg-tertiary);
}

.contact-method i {
    color: var(--accent-secondary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-method span {
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
}

[data-theme="dark"] .contact-form {
    backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
    font-size: 0.95rem;
}

.form-status.success {
    background: var(--form-status-success-bg);
    color: #065f46;
    border: 1px solid var(--form-status-success-border);
    display: block;
}

[data-theme="dark"] .form-status.success {
    color: #6ee7b7;
}

.form-status.error {
    background: var(--form-status-error-bg);
    color: #991b1b;
    border: 1px solid var(--form-status-error-border);
    display: block;
}

[data-theme="dark"] .form-status.error {
    color: #fca5a5;
}

.form-status.loading {
    background: var(--form-status-loading-bg);
    color: #3730a3;
    border: 1px solid var(--form-status-loading-border);
    display: block;
}

[data-theme="dark"] .form-status.loading {
    color: #a5b4fc;
}

/* ============================================
   CERTIFICATES SECTION
   ============================================ */
.certificates {
    background: var(--bg-primary);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .certificate-card {
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .certificate-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.certificate-preview {
    position: relative;
    height: 200px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certificate-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* When using real images, add this to the certificate-preview:
   <img src="cert.jpg" class="certificate-img" alt="Certificate"> */
.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    backdrop-filter: blur(4px);
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay i {
    font-size: 2rem;
}

.certificate-overlay span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.certificate-info {
    padding: 1.5rem;
}

.certificate-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.certificate-issuer,
.certificate-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.certificate-issuer i,
.certificate-date i {
    color: var(--accent-secondary);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0.5rem;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--accent-secondary);
    transform: scale(1.2) rotate(90deg);
}

.lightbox-content {
    max-width: 800px;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-pdf {
    width: 80vw;
    height: 85vh;
    max-width: 900px;
    border: none;
    border-radius: 12px;
    background: white;
}

.lightbox-fallback {
    width: 80vw;
    max-width: 500px;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.lightbox-fallback i {
    font-size: 4rem;
    color: #e74c3c;
}

.lightbox-fallback p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lightbox-fallback .btn {
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-controls {
        gap: 0.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-mobile-menu);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.75rem 0;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 8px 16px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    section {
        padding: 70px 0;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .lightbox-pdf {
        width: 95vw;
        height: 70vh;
    }
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* Scroll Progress Bar (created via JS, styled here for reference) */

/* Ripple effect (injected via JS) */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Focus visible outline for accessibility */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] ::selection {
    background: rgba(167, 139, 250, 0.3);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}