/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gold: #fbbf24;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #06b6d4 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --gradient-pink: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #e11d48 100%);
    --shadow-primary: 0 10px 30px rgba(14, 165, 233, 0.3);
    --shadow-gold: 0 10px 30px rgba(251, 191, 36, 0.3);
    --transition: all 0.3s ease;
}

/* DARK MODE (Default) */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-light: #1e293b;
    --card: #334155;
    --card-hover: #475569;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --input-bg: #1e293b;
    --input-border: #475569;
    --input-focus: #0ea5e9;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --modal-overlay: rgba(0, 0, 0, 0.8);
}

/* LIGHT MODE */
[data-theme="light"] {
    --bg: #f8fafc;
    --bg-light: #ffffff;
    --card: #f1f5f9;
    --card-hover: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus: #0ea5e9;
    --nav-bg: rgba(248, 250, 252, 0.95);
    --modal-overlay: rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ==================== BACKGROUND ANIMATION ==================== */
.bg-animation {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; overflow: hidden;
}
.bg-animation .circle {
    position: absolute; border-radius: 50%;
    background: rgba(14, 165, 233, 0.03);
    animation: float 20s infinite ease-in-out;
}
.bg-animation .circle:nth-child(1) { width: 400px; height: 400px; top: -100px; left: -100px; }
.bg-animation .circle:nth-child(2) { width: 300px; height: 300px; top: 50%; right: -100px; animation-delay: -5s; }
.bg-animation .circle:nth-child(3) { width: 250px; height: 250px; bottom: -50px; left: 30%; animation-delay: -10s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ==================== NAVIGATION ==================== */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: var(--transition); background: transparent;
}
nav.scrolled {
    background: var(--nav-bg); backdrop-filter: blur(20px);
    padding: 15px 5%; box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.logo {
    font-size: 1.5rem; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-right { display: flex; align-items: center; gap: 15px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
    color: var(--text); text-decoration: none; font-weight: 500;
    font-size: 0.9rem; position: relative; transition: var(--transition);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

/* Theme Toggle */
.theme-toggle {
    width: 45px; height: 45px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--bg-light);
    color: var(--text); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); transform: rotate(20deg); }

/* Language Toggle */
.lang-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 50px;
    border: 2px solid var(--border); background: var(--bg-light);
    color: var(--text); cursor: pointer; font-weight: 600;
    font-size: 0.85rem; transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--primary); }
.lang-toggle i { font-size: 0.9rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: var(--text); transition: var(--transition); }

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 0 5%; position: relative;
}
.hero-content { text-align: center; max-width: 900px; animation: fadeInUp 1s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block; padding: 8px 20px;
    background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50px; color: var(--primary); font-size: 0.9rem;
    font-weight: 500; margin-bottom: 25px; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 15px; line-height: 1.1; }
.hero h1 .highlight {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .tagline {
    font-size: 1.3rem; color: var(--text-muted); font-style: italic;
    margin-bottom: 30px; position: relative; display: inline-block;
}
.hero .tagline::before, .hero .tagline::after {
    content: '"'; color: var(--primary); font-size: 2rem; position: absolute;
}
.hero .tagline::before { top: -15px; left: -20px; }
.hero .tagline::after { bottom: -25px; right: -20px; }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Download CV Button */
.btn-cv {
    padding: 14px 35px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; text-decoration: none; transition: var(--transition);
    cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 10px;
    background: var(--gradient-gold); color: #1e293b;
    box-shadow: var(--shadow-gold);
}
.btn-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
}

.btn {
    padding: 14px 35px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; text-decoration: none; transition: var(--transition);
    cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary { background: var(--gradient); color: white; box-shadow: var(--shadow-primary); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%); animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}
.scroll-indicator i { font-size: 1.5rem; color: var(--primary); }

/* ==================== SECTIONS ==================== */
section { padding: 100px 5%; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 15px; }
.section-header h2 span {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-line { width: 60px; height: 4px; background: var(--gradient); margin: 20px auto 0; border-radius: 2px; }

/* ==================== STATS COUNTER SECTION ==================== */
.stats-section {
    background: var(--bg);
    padding: 80px 5%;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.stat-box {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.stat-box:hover::before { transform: scaleX(1); }
.stat-box:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1);
}
.stat-box .stat-icon {
    width: 60px; height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}
.stat-box:hover .stat-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}
.stat-box .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-box .stat-number .suffix {
    font-size: 1.5rem;
    font-weight: 600;
}
.stat-box .stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==================== ABOUT ==================== */
.about { background: var(--bg-light); }
.about-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.about-image { position: relative; }
.about-image .img-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.about-image .img-wrapper img { width: 100%; height: 450px; object-fit: cover; display: block; }
.about-image .img-overlay { position: absolute; inset: 0; background: var(--gradient); opacity: 0.1; }
.about-image .experience-badge {
    position: absolute; bottom: -20px; right: -20px; background: var(--bg);
    border: 2px solid var(--primary); padding: 20px 25px; border-radius: 15px;
    text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.experience-badge .number { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.experience-badge .text { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }
.about-content h3 { font-size: 2rem; margin-bottom: 20px; }
.about-content h3 span { color: var(--primary); }
.about-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat-item {
    text-align: center; padding: 20px; background: var(--bg);
    border-radius: 15px; border: 1px solid var(--border); transition: var(--transition);
}
.stat-item:hover { border-color: var(--primary); transform: translateY(-5px); }
.stat-item .stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-item .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }

/* ==================== SKILLS ==================== */
.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.skill-card {
    background: var(--bg-light); border-radius: 20px; padding: 40px 30px;
    border: 1px solid var(--border); transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.skill-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px; background: var(--gradient);
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1); }
.skill-icon {
    width: 60px; height: 60px; background: rgba(14, 165, 233, 0.1);
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.5rem; color: var(--primary);
}
.skill-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.skill-list { list-style: none; }
.skill-list li {
    padding: 8px 0; color: var(--text-muted); display: flex;
    align-items: center; gap: 10px; font-size: 0.95rem;
}
.skill-list li i { color: var(--success); font-size: 0.8rem; }

/* ==================== CERTIFICATES & BADGES ==================== */
.certificates { background: var(--bg-light); }
.cert-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.cert-card {
    background: var(--bg); border-radius: 20px; padding: 35px;
    border: 1px solid var(--border); transition: all 0.4s ease;
    position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.cert-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1); }

/* Certificate Badge */
.cert-badge-display {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-gold);
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold);
    z-index: 2;
}
.cert-badge-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 10px;
    background: #b45309;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.cert-badge-display::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 10px;
    background: #b45309;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.cert-icon {
    width: 55px; height: 55px; background: rgba(14, 165, 233, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--primary); font-size: 1.4rem;
}
.cert-card h3 { font-size: 1.15rem; margin-bottom: 8px; padding-right: 50px; }
.cert-issuer { color: var(--primary); font-weight: 500; font-size: 0.9rem; margin-bottom: 10px; }
.cert-date {
    display: inline-block; padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1); color: var(--success);
    border-radius: 50px; font-size: 0.8rem; font-weight: 500; margin-bottom: 12px;
}
.cert-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; margin-bottom: 20px; }
.cert-tag {
    padding: 4px 10px; background: var(--bg-light);
    border: 1px solid var(--border); border-radius: 50px;
    font-size: 0.75rem; color: var(--text-muted);
}

/* View Certificate Button */
.view-cert-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}
.view-cert-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}
.view-cert-btn i { font-size: 0.9rem; }

.edu-view-btn {
    margin-top: 20px;
    width: auto;
    align-self: flex-start;
}

/* Badge Showcase Section */
.badge-showcase {
    background: var(--bg);
    padding: 80px 5%;
}
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}
.badge-item {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}
.badge-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.15);
}
.badge-item .badge-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: #1e293b;
    box-shadow: var(--shadow-gold);
    position: relative;
}
.badge-item .badge-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed var(--gold);
    animation: spin 10s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.badge-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text);
}
.badge-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== MODAL / POPUP PREVIEW ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active {
    display: flex;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    position: relative;
    background: var(--bg-light);
    border-radius: 24px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 10;
}
.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: rotate(90deg);
}
.modal-header {
    padding: 30px 30px 0;
    text-align: center;
}
.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.modal-header h3 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.modal-body {
    padding: 25px 30px;
}
.modal-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--bg);
    border-radius: 16px;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 25px;
}
.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}
.modal-image-container img.loaded {
    display: block;
}
.modal-loading {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.modal-loading i {
    font-size: 2rem;
    color: var(--primary);
}
.modal-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}
.modal-placeholder i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 5px;
}
.modal-placeholder p {
    font-weight: 600;
    color: var(--text);
}
.modal-placeholder span {
    font-size: 0.8rem;
}
.modal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.modal-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.modal-info-item i {
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}
.modal-info-item div { text-align: left; }
.modal-info-item div span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.modal-info-item div strong {
    font-size: 0.9rem;
    font-weight: 600;
}
.modal-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.modal-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}
.modal-btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}
.modal-btn-secondary:hover {
    border-color: var(--danger);
    color: var(--danger);
}
.modal-btn-primary {
    background: var(--gradient);
    color: white;
}
.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* ==================== EXPERIENCE ==================== */
.experience { background: var(--bg-light); }
.timeline { max-width: 900px; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: 2px; height: 100%; background: var(--border);
}
.timeline-item { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: 50px; }
.timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
.timeline-content {
    background: var(--bg); padding: 30px; border-radius: 20px;
    border: 1px solid var(--border); max-width: 400px; position: relative; transition: var(--transition);
}
.timeline-content:hover { border-color: var(--primary); transform: scale(1.02); }
.timeline-dot {
    position: absolute; width: 20px; height: 20px; background: var(--primary);
    border-radius: 50%; top: 30px; left: 50%; transform: translateX(-50%);
    border: 4px solid var(--bg); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}
.timeline-item:nth-child(even) .timeline-content::before,
.timeline-item:nth-child(odd) .timeline-content::before {
    content: ''; position: absolute; width: 20px; height: 20px;
    background: var(--bg); transform: rotate(45deg); top: 30px;
}
.timeline-item:nth-child(even) .timeline-content::before { left: -10px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline-item:nth-child(odd) .timeline-content::before { right: -10px; border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
.timeline-date {
    display: inline-block; padding: 5px 15px;
    background: rgba(14, 165, 233, 0.1); color: var(--primary);
    border-radius: 50px; font-size: 0.85rem; font-weight: 500; margin-bottom: 10px;
}
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 5px; }
.timeline-content .company { color: var(--primary); font-weight: 500; margin-bottom: 15px; display: block; }
.timeline-content ul { list-style: none; }
.timeline-content ul li { color: var(--text-muted); padding: 5px 0; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 8px; }
.timeline-content ul li i { color: var(--success); margin-top: 5px; font-size: 0.7rem; }

/* ==================== EDUCATION ==================== */
.education-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; max-width: 1000px; margin: 0 auto;
}
.edu-card {
    background: var(--bg-light); border-radius: 20px; padding: 40px;
    border: 1px solid var(--border); transition: var(--transition);
    position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.edu-card::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 100px; height: 100px; background: var(--gradient);
    opacity: 0.05; border-radius: 0 0 0 100%;
}
.edu-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.edu-icon {
    width: 50px; height: 50px; background: rgba(14, 165, 233, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--primary); font-size: 1.3rem;
}
.edu-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.edu-card .institution { color: var(--primary); font-weight: 500; margin-bottom: 10px; }
.edu-card .description { color: var(--text-muted); font-size: 0.95rem; }

/* ==================== CONTACT ==================== */
.contact { background: var(--bg-light); }
.contact-wrapper {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
}
.contact-info h3 { font-size: 1.8rem; margin-bottom: 15px; }
.contact-info h3 span { color: var(--primary); }
.contact-info > p { color: var(--text-muted); margin-bottom: 30px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-item {
    display: flex; align-items: center; gap: 15px;
    padding: 18px 20px; background: var(--bg);
    border-radius: 15px; border: 1px solid var(--border);
    transition: var(--transition); text-decoration: none; color: var(--text);
}
.contact-detail-item:hover { border-color: var(--primary); transform: translateX(5px); }
.contact-detail-item .icon {
    width: 45px; height: 45px; background: rgba(14, 165, 233, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.contact-detail-item .info { text-align: left; }
.contact-detail-item .info span { display: block; font-size: 0.8rem; color: var(--text-muted); }
.contact-detail-item .info strong { font-weight: 600; font-size: 0.95rem; }

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg); border-radius: 25px; padding: 40px;
    border: 1px solid var(--border);
}
.contact-form-wrapper h3 { font-size: 1.4rem; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group label span { color: var(--danger); }
.form-group input,
.form-group textarea {
    width: 100%; padding: 14px 18px; border-radius: 12px;
    border: 2px solid var(--input-border); background: var(--input-bg);
    color: var(--text); font-family: 'Poppins', sans-serif;
    font-size: 0.95rem; transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--input-focus); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
    width: 100%; padding: 15px; background: var(--gradient); color: white;
    border: none; border-radius: 12px; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Form Status */
.form-status {
    padding: 15px; border-radius: 12px; margin-bottom: 20px;
    display: none; align-items: center; gap: 10px; font-size: 0.9rem;
}
.form-status.success {
    display: flex; background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3); color: var(--success);
}
.form-status.error {
    display: flex; background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger);
}

/* ==================== FOOTER ==================== */
footer {
    padding: 40px 5%; text-align: center;
    border-top: 1px solid var(--border); background: var(--bg);
}
footer p { color: var(--text-muted); font-size: 0.9rem; }
footer .heart { color: #ef4444; animation: heartbeat 1.5s infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ==================== SCROLL REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-image { max-width: 400px; margin: 0 auto; }
    .about-stats { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) {
        padding-left: 60px; padding-right: 0; justify-content: flex-start;
    }
    .timeline-dot { left: 20px; transform: translateX(-50%); }
    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -10px; right: auto;
        border-right: none; border-top: none;
        border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-content { max-width: 95%; }
    .modal-image-container { height: 300px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 70%; height: 100vh; background: var(--bg);
        flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.3s; gap: 30px;
    }
    .nav-links.active { right: 0; }
    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero h1 { font-size: 2.2rem; }
    section { padding: 60px 5%; }
    .contact-form-wrapper { padding: 25px; }
    .stats-grid { grid-template-columns: 1fr; }
    .badge-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-info { grid-template-columns: 1fr; }
    .modal-footer { flex-direction: column; }
    .modal-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .badge-grid { grid-template-columns: 1fr; }
    .btn-cv { width: 100%; justify-content: center; }
    .cert-grid { grid-template-columns: 1fr; }
    .education-grid { grid-template-columns: 1fr; }
    .modal-image-container { height: 250px; }
}

/* ==================== MODAL FOOTER SINGLE BUTTON ==================== */
.modal-footer:has(.modal-btn-secondary:only-child) {
    justify-content: center;
}

.modal-footer:has(.modal-btn-secondary:only-child) .modal-btn-secondary {
    min-width: 120px;
    justify-content: center;
}
