/* ===============================================
   VARIABLES & RESET
   =============================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --accent-primary: #00d9ff;
    --accent-secondary: #7b2cbf;
    --accent-success: #00ff88;
    --accent-warning: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-glow: 0 0 20px rgba(0, 217, 255, 0.3);
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --transition: all 0.3s ease;
}

/* Light Mode */
body.light-mode {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e8f0;
    --accent-primary: #0055aa;
    --accent-secondary: #7c3aed;
    --accent-success: #047857;
    --accent-warning: #d97706;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --gradient-primary: linear-gradient(135deg, #0055aa, #7c3aed);
    --gradient-glow: 0 5px 25px rgba(0, 85, 170, 0.25);
}

body.light-mode #particles {
    opacity: 1;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

body.light-mode .hero-terminal {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.15);
}

body.light-mode .terminal-header {
    background: #e2e8f0;
}

body.light-mode .terminal-dot.red { background: #ef4444; }
body.light-mode .terminal-dot.yellow { background: #f59e0b; }
body.light-mode .terminal-dot.green { background: #10b981; }

body.light-mode .pokemon-img {
    filter: drop-shadow(0 5px 25px rgba(255, 100, 0, 0.5));
}

body.light-mode .skill-category,
body.light-mode .stat-card,
body.light-mode .timeline-content,
body.light-mode .education-card,
body.light-mode .contact-item,
body.light-mode .contact-form {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .tag {
    background: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

body.light-mode .theme-toggle {
    background: var(--bg-tertiary);
    border-color: rgba(0, 102, 204, 0.2);
}

body.light-mode .social-link {
    background: var(--bg-tertiary);
}

body.light-mode .name-static {
    color: #0055aa;
}

body.light-mode .terminal-line,
body.light-mode .subtitle {
    color: #334155;
}

body.light-mode .prompt {
    color: #047857;
}

body.light-mode .skill-info span:first-child,
body.light-mode .timeline-content p,
body.light-mode .about-text p,
body.light-mode .contact-intro {
    color: #334155;
}

body.light-mode .timeline-tech span {
    background: #e2e8f0;
    color: #334155;
}

body.light-mode .nav-links a {
    color: #1e293b !important;
}

body.light-mode .nav-links a:hover {
    color: #0055aa !important;
}

body.light-mode .logo-text {
    color: #0f172a !important;
}

body.light-mode .logo-bracket {
    color: #0055aa !important;
}

body.light-mode .nav-toggle span {
    background: #0055aa;
}

body.light-mode .scroll-indicator {
    color: #0055aa;
}

/* Force all text colors in light mode */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode p,
body.light-mode span,
body.light-mode a,
body.light-mode li {
    color: #1e293b;
}

body.light-mode .section-title {
    color: #0f172a;
}

body.light-mode .title-decorator {
    color: #0055aa;
}

body.light-mode .highlight {
    color: #0055aa;
}

body.light-mode .stat-number {
    color: #0055aa;
}

body.light-mode .stat-label {
    color: #334155;
}

body.light-mode .category-header h3 {
    color: #0f172a;
}

body.light-mode .skill-info span:last-child {
    color: #0055aa;
}

body.light-mode .timeline-header h3 {
    color: #0055aa;
}

body.light-mode .timeline-role {
    color: #0f172a;
}

body.light-mode .timeline-date {
    color: #047857;
    background: rgba(4, 120, 87, 0.1);
}

body.light-mode .education-year {
    color: #0055aa;
}

body.light-mode .education-card h3 {
    color: #0f172a;
}

body.light-mode .education-field {
    color: #334155;
}

body.light-mode .education-school {
    color: #64748b;
}

body.light-mode .contact-label {
    color: #64748b;
}

body.light-mode .contact-value {
    color: #0f172a;
}

body.light-mode .form-group label {
    color: #64748b;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    color: #0f172a;
    border-bottom-color: #94a3b8;
}

body.light-mode .footer p {
    color: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===============================================
   CANVAS PARTICLES
   =============================================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===============================================
   NAVIGATION
   =============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.nav-logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-bracket {
    color: var(--accent-primary);
}

.logo-text {
    color: var(--text-primary);
    margin: 0 0.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--accent-primary);
    margin-right: 1rem;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--gradient-glow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

body.light-mode .theme-toggle .sun-icon {
    display: block;
}

body.light-mode .theme-toggle .moon-icon {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 5%;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
}

.hero-terminal {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--gradient-glow);
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-code);
}

.terminal-line {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--accent-success);
    margin-right: 0.5rem;
}

.typing-text {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.name-static {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    min-height: 1.5rem;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--accent-primary);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Main (Terminal + Pokemon) */
.hero-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-pokemon {
    display: flex;
    align-items: center;
}

.pokemon-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 100, 0, 0.6));
    animation: float 3s ease-in-out infinite, fireGlow 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fireGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 100, 0, 0.6)); }
    100% { filter: drop-shadow(0 0 40px rgba(255, 50, 0, 0.9)); }
}

@media (max-width: 768px) {
    .hero-main {
        flex-direction: column;
    }

    .pokemon-img {
        width: 120px;
        height: 120px;
    }
}

.hero-tech-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-icon {
    width: 50px;
    height: 50px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--accent-primary);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.tech-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--gradient-glow);
    border-color: var(--accent-primary);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.tech-icon:hover::after {
    opacity: 1;
    bottom: -35px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 3px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-success), transparent);
    animation: scrollMove 1.5s infinite;
}

@keyframes scrollMove {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ===============================================
   SECTIONS COMMON
   =============================================== */
.section {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.title-decorator {
    color: var(--accent-primary);
    font-family: var(--font-code);
}

/* ===============================================
   ABOUT SECTION
   =============================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-intro {
    font-size: 1.3rem !important;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--gradient-glow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    font-family: var(--font-code);
}

.stat-number::after {
    content: '+';
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

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

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(0, 217, 255, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 50px;
    height: 50px;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-icon.frontend {
    background: rgba(0, 217, 255, 0.2);
    color: var(--accent-primary);
}

.category-icon.backend {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-success);
}

.category-icon.cloud {
    background: rgba(123, 44, 191, 0.2);
    color: var(--accent-secondary);
}

.category-icon.database {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-warning);
}

.category-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

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

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

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

.skill-info span:first-child {
    color: var(--text-secondary);
}

.skill-info span:last-child {
    color: var(--accent-primary);
    font-family: var(--font-code);
}

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

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease;
}

/* ===============================================
   EXPERIENCE SECTION
   =============================================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -34px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-primary);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--gradient-glow);
}

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

.timeline-header h3 {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.timeline-date {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-success);
    background: rgba(0, 255, 136, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.timeline-role {
    display: block;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tech span {
    padding: 0.3rem 0.8rem;
    background: var(--bg-tertiary);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-code);
}

/* ===============================================
   EDUCATION SECTION
   =============================================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.education-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.education-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--accent-primary);
    box-shadow: var(--gradient-glow);
}

.education-year {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-field {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

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

.contact-intro {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    padding: 12px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    color: var(--accent-primary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

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

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

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--gradient-glow);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* LinkedIn specific color on hover */
.social-link:first-child:hover {
    color: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.3);
}

/* GitHub specific color on hover */
.social-link:nth-child(2):hover,
.social-link:nth-child(3):hover {
    color: #fff;
    background: #333;
    border-color: #333;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.8rem;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-notification {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-notification.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-success);
    color: var(--accent-success);
}

.form-notification.error {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid #ff5050;
    color: #ff5050;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    padding: 2rem 5%;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-code);
    font-size: 1.2rem;
}

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

/* ===============================================
   REVEAL ANIMATION
   =============================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1024px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-primary);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .about-content,
    .skills-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .timeline-header {
        flex-direction: column;
    }

    .hero-tech-icons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Scroll indicator responsive */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 15px;
        font-size: 0.8rem;
    }

    .scroll-line {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        display: none;
    }
}

/* ===============================================
   POPUP NOTIFICATION
   =============================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-overlay.active .popup-box {
    transform: scale(1) translateY(0);
}

.popup-box.success {
    border-top: 4px solid var(--accent-success);
}

.popup-box.error {
    border-top: 4px solid #ff4757;
}

.popup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-box.success .popup-icon {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-success);
}

.popup-box.error .popup-icon {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.popup-icon svg {
    width: 40px;
    height: 40px;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.popup-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.popup-close {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--gradient-glow);
}

/* Light mode popup adjustments */
body.light-mode .popup-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.light-mode .popup-box {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .popup-box.success .popup-icon {
    background: rgba(4, 120, 87, 0.15);
}

body.light-mode .popup-box.error .popup-icon {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

body.light-mode .popup-box.error {
    border-top-color: #dc2626;
}

/* Popup responsive */
@media (max-width: 480px) {
    .popup-box {
        padding: 2rem 1.5rem;
    }

    .popup-icon {
        width: 60px;
        height: 60px;
    }

    .popup-icon svg {
        width: 32px;
        height: 32px;
    }

    .popup-title {
        font-size: 1.25rem;
    }
}

/* ===============================================
   SPINNER BOUTON ENVOI
   =============================================== */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}
