/* ========== CSS RESET AND ROOT VARIABLES ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #22d3ee;
    --accent: #f472b6;
    --bg-dark: #030712;
    --bg-card: #0f172a;
    --bg-card2: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --border: rgba(99, 102, 241, 0.2);
    --glow: rgba(99, 102, 241, 0.4);
    --glow-cyan: rgba(34, 211, 238, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode {
    --bg-dark: #f0f4ff;
    --bg-card: #ffffff;
    --bg-card2: #e8edf8;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: rgba(99, 102, 241, 0.3);
    --glow: rgba(99, 102, 241, 0.2);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    transition: background 0.5s ease, color 0.5s ease;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 10px;
}

/* ========== NAVBAR ========== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(3, 7, 18, 0.7);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.light-mode nav { background: rgba(240, 244, 255, 0.8); }

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px; height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ========== HERO SECTION ========== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: badgeSlide 0.8s ease forwards;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.hero-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    animation: avatarFloat 0.8s ease 0.2s both;
}

.hero-avatar {
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)) border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    animation: avatarSpin 20s linear infinite;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3), 0 0 80px rgba(99, 102, 241, 0.1);
}

.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    top: 50%; left: 50%;
    animation: orbit 8s linear infinite;
}

.orbit-ring:nth-child(1) { width: 180px; height: 180px; transform: translate(-50%, -50%); }
.orbit-ring:nth-child(2) {
    width: 220px; height: 220px;
    transform: translate(-50%, -50%);
    animation-duration: 12s;
    animation-direction: reverse;
    border-color: rgba(34, 211, 238, 0.2);
}

.orbit-dot {
    width: 10px; height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    position: absolute;
    top: -5px; left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--secondary);
}

.orbit-dot-2 {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 40%, var(--secondary) 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameSlide 0.8s ease 0.3s both;
    line-height: 1.1;
}

.hero-role {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0.5rem 0;
    animation: nameSlide 0.8s ease 0.4s both;
}
.hero-role span { color: var(--secondary); }

.hero-typed {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem;
    animation: nameSlide 0.8s ease 0.5s both;
}

.typed-text { color: var(--secondary); font-weight: 600; }

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: nameSlide 0.8s ease 0.7s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s ease;
}

.btn-primary:hover::before { transform: translateX(100%) skewX(-15deg); }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.85rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}

/* ========== SECTION LAYOUT ========== */
section { padding: 7rem 2rem; }

.container { max-width: 1200px; margin: 0 auto; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
}

/* ========== ABOUT SECTION ========== */
#about { background: radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.05) 0%, transparent 60%); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.about-avatar-big {
    width: 180px; height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    animation: floatBob 3s ease-in-out infinite;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    background: var(--bg-card2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
}

.info-icon { color: var(--primary); font-size: 1rem; }
.info-label { color: var(--text-muted); font-size: 0.75rem; }
.info-value { color: var(--text-primary); font-weight: 500; }

/* ========== SKILLS SECTION ========== */
#skills {
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

#skills::before {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.skills-header { text-align: center; margin-bottom: 4rem; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.skill-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.skill-card:hover::before { opacity: 0.05; }

.skill-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-card:hover .skill-emoji { transform: scale(1.2) rotate(5deg); }
.skill-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); position: relative; z-index: 1; }
.skill-level { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; position: relative; z-index: 1; }

.skill-progress-ring {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--bg-card2);
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0 3px 0 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bars-section h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 2rem; color: var(--text-primary); }

.progress-item { margin-bottom: 1.5rem; }

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: var(--bg-card2);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 100px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(99,102,241,0.8);
}

/* ========== EDUCATION SECTION ========== */
#education { background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.04) 0%, transparent 70%); }

.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item { position: relative; padding-left: 2rem; padding-bottom: 3rem; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem; top: 0.4rem;
    width: 14px; height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 15px var(--glow);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.timeline-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.timeline-subtitle { color: var(--secondary); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.timeline-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ========== PROJECTS SECTION ========== */
#projects { background: radial-gradient(ellipse at bottom left, rgba(244, 114, 182, 0.05) 0%, transparent 60%); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
}

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-card:nth-child(1) .project-image { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.project-card:nth-child(2) .project-image { background: linear-gradient(135deg, #0d1b2a, #1b2a3b); }
.project-card:nth-child(3) .project-image { background: linear-gradient(135deg, #1a0533, #2d1b69); }
.project-card:nth-child(4) .project-image { background: linear-gradient(135deg, #0a1628, #1e293b); }
.project-card:nth-child(5) .project-image { background: linear-gradient(135deg, #0f2027, #203a43); }
.project-card:nth-child(6) .project-image { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); }

.project-image-icon {
    font-size: 5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-image-icon { transform: scale(1.15) rotate(-5deg); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-link {
    background: white;
    color: var(--primary);
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.project-link:hover { transform: scale(1.1); }

.project-content { padding: 1.5rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.project-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-title { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; font-family: 'Space Grotesk', sans-serif; }
.project-desc { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.5rem; }

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.project-stars { color: var(--text-muted); font-size: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.project-stars i { color: #fbbf24; }

/* ========== CONTACT SECTION ========== */
#contact { background: var(--bg-card); position: relative; overflow: hidden; }

#contact::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    color: var(--text-secondary);
}

.contact-link-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    color: var(--text-primary);
}

.contact-link-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.contact-link-text span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.1rem; }
.contact-link-text strong { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

.contact-form {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ========== FOOTER ========== */
.social-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.social-title { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1.5rem; }

.social-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.social-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.footer-copy { color: var(--text-muted); font-size: 0.8rem; }
.footer-copy span { color: var(--accent); }

/* ========== LIGHT THEME IMPROVEMENTS ========== */
.light-mode .hero-name {
    background: linear-gradient(135deg, #0f172a 0%, #334155 38%, #4f46e5 72%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode .skill-card,
.light-mode .contact-link-item,
.light-mode .contact-form,
.light-mode .social-btn,
.light-mode .timeline-card,
.light-mode .project-card,
.light-mode .info-item,
.light-mode .about-card {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.24);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.light-mode .section-tag,
.light-mode .project-tag,
.light-mode .hero-badge {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.3);
}

.light-mode #skills,
.light-mode #contact,
.light-mode .social-section {
    background: #eaf0ff;
}

.light-mode .project-card:nth-child(1) .project-image { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.light-mode .project-card:nth-child(2) .project-image { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.light-mode .project-card:nth-child(3) .project-image { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.light-mode .project-card:nth-child(4) .project-image { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.light-mode .project-card:nth-child(5) .project-image { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.light-mode .project-card:nth-child(6) .project-image { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }

.light-mode .project-image-icon {
    filter: saturate(1.1) contrast(1.05);
}

.light-mode .divider {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.32), transparent);
}

/* ========== UTILS ========== */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.counter-num { display: inline-block; }