:root {
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

a { color: var(--accent-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: #818cf8; }
strong { color: #fff; font-weight: 600; }

/* ── Background Blobs ── */
.blob-bg {
    position: fixed;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.45;
    animation: drift 25s infinite alternate ease-in-out;
    pointer-events: none;
}
.blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, #4f46e5 0%, transparent 70%); top: -100px; left: -100px; }
.blob-2 { width: 600px; height: 600px; background: radial-gradient(circle, #7c3aed 0%, transparent 70%); bottom: 30%; right: -200px; animation-delay: -12s; }
.blob-3 { width: 400px; height: 400px; background: radial-gradient(circle, #06b6d4 0%, transparent 70%); bottom: -100px; left: 30%; animation-delay: -6s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.08); }
}

/* ── Glass Effect ── */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-heading); }

h2.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ══════════════════════════════
   NAVBAR
   ══════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s, box-shadow 0.3s;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: #fff; }
.logo span { color: var(--accent-color); }
.nav-links { display: flex; list-style: none; gap: 1.8rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; white-space: nowrap; }
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--accent-color); }

/* Hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════
   HERO
   ══════════════════════════════ */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-content { display: flex; justify-content: center; }
.hero-text {
    max-width: 800px;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; transform: translateY(30px);
}
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.greeting { color: var(--accent-color); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.8rem; letter-spacing: 0.05em; }
.main-title { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; margin-bottom: 0.8rem; color: #fff; }
.sub-title { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--text-secondary); margin-bottom: 1.2rem; }
.description { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 650px; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-quick-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Buttons ── */
.btn { display: inline-block; padding: 0.75rem 1.6rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; cursor: pointer; font-size: 0.95rem; }
.btn-primary { background: var(--accent-color); color: #fff; border: 1px solid var(--accent-color); box-shadow: 0 4px 14px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }

/* ══════════════════════════════
   ABOUT
   ══════════════════════════════ */
.about-section { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.about-text { padding: 2rem; border-radius: 16px; }
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; }
.about-text .philosophy { color: var(--accent-color); font-style: italic; font-size: 1.1rem; margin-top: 1.5rem; }
.about-text .philosophy .fa-quote-left { margin-right: 0.5rem; }
.about-text .philosophy .fa-quote-right { margin-left: 0.5rem; }

.hidden-experience { display: none; }

.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.highlight-card { padding: 1.5rem; border-radius: 12px; text-align: center; transition: transform 0.3s, border-color 0.3s; }
.highlight-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); }
.highlight-card i { font-size: 1.8rem; color: var(--accent-color); margin-bottom: 0.8rem; }
.highlight-card h3 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.highlight-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* ══════════════════════════════
   EXPERIENCE TIMELINE
   ══════════════════════════════ */
.experience-section { padding: 6rem 0; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 0; left: 20px; height: 100%; width: 2px; background: linear-gradient(to bottom, var(--accent-color), transparent); }
.timeline-item { position: relative; margin-bottom: 2rem; margin-left: 55px; padding: 2rem; border-radius: 12px; transition: transform 0.3s, border-color 0.3s; }
.timeline-item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); }
.timeline-dot { position: absolute; left: -42px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-color); border: 3px solid var(--bg-dark); box-shadow: 0 0 12px var(--accent-glow); }
.timeline-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.timeline-content h4 { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; margin-bottom: 0.4rem; }
.timeline-content h4 span { opacity: 0.7; }
.timeline-content .date { color: var(--accent-color); font-size: 0.85rem; margin-bottom: 1rem; font-weight: 500; }
.timeline-content ul { list-style: none; padding: 0; }
.timeline-content ul li { color: var(--text-secondary); margin-bottom: 0.5rem; padding-left: 1.2rem; position: relative; font-size: 0.95rem; }
.timeline-content ul li::before { content: '▹'; position: absolute; left: 0; color: var(--accent-color); }

/* ══════════════════════════════
   SKILLS
   ══════════════════════════════ */
.skills-section { padding: 6rem 0; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.skill-category { padding: 1.8rem; border-radius: 12px; }
.skill-category h3 { color: var(--accent-color); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tags span { background: rgba(255, 255, 255, 0.05); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s; }
.skill-tags span:hover { background: rgba(165, 180, 252, 0.1); border-color: var(--accent-color); transform: translateY(-2px); }

.hidden-skill { display: none; }
.show-more-skills-btn { margin-top: 1rem; color: var(--accent-color); font-size: 0.85rem; padding: 0.3rem 0; width: 100%; text-align: left; display: flex; align-items: center; gap: 0.4rem; font-weight: 500; transition: color 0.3s; background: transparent; border: none; cursor: pointer; outline: none; }
.show-more-skills-btn:hover { color: var(--primary-color); }
.show-more-skills-btn i { transition: transform 0.3s; }
.show-more-skills-btn.expanded i { transform: rotate(180deg); }

/* ══════════════════════════════
   COMMUNITY
   ══════════════════════════════ */
.community-section { padding: 6rem 0; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.community-card { padding: 2rem; border-radius: 12px; transition: transform 0.3s, border-color 0.3s; }
.community-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); }
.community-icon { margin-bottom: 1rem; }
.community-icon i { font-size: 2rem; color: var(--accent-color); }
.community-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.7rem; }
.community-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ══════════════════════════════
   EDUCATION
   ══════════════════════════════ */
.education-section { padding: 4rem 0; }
.education-card { display: flex; align-items: center; gap: 1.5rem; padding: 2rem; border-radius: 12px; max-width: 700px; margin: 0 auto 2rem; }
.edu-icon i { font-size: 2.5rem; color: var(--accent-color); }
.edu-details h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.3rem; }
.edu-details h4 { color: var(--text-secondary); font-size: 0.95rem; font-weight: 400; margin-bottom: 0.3rem; }
.edu-details .date { color: var(--accent-color); font-size: 0.85rem; }

.languages-row { text-align: center; max-width: 700px; margin: 0 auto; }
.languages-row h3 { color: #fff; font-family: var(--font-heading); margin-bottom: 1rem; font-size: 1.2rem; }
.lang-tags { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.lang-tag { background: rgba(99, 102, 241, 0.08); color: #a5b4fc; padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 0.9rem; border: 1px solid rgba(99, 102, 241, 0.15); }
.lang-tag em { color: var(--text-secondary); font-style: normal; }

/* ══════════════════════════════
   CONTACT
   ══════════════════════════════ */
.contact-section { padding: 6rem 0; }
.contact-box { text-align: center; max-width: 650px; margin: 0 auto; padding: 3.5rem 2rem; border-radius: 16px; }
.contact-box p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }
.social-links { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.social-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.3rem; border-radius: 8px; text-decoration: none;
    color: var(--text-primary); background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border); font-size: 0.9rem;
    transition: all 0.3s ease;
}
.social-btn:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; transform: translateY(-2px); }

/* ── Footer ── */
footer { text-align: center; padding: 2rem 0; border-top: 1px solid var(--glass-border); color: var(--text-secondary); font-size: 0.85rem; }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr 1fr; }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem;
        gap: 1.2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--glass-border);
    }
    .nav-links.active { right: 0; }
    .nav-link { font-size: 1.1rem; }

    .hero-section { min-height: auto; padding: 7rem 0 3rem; }
    .hero-quick-stats { gap: 1.5rem; }
    .stat-number { font-size: 1.5rem; }

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

    .timeline::before { left: 12px; }
    .timeline-item { margin-left: 40px; padding: 1.5rem; }
    .timeline-dot { left: -34px; width: 12px; height: 12px; }
    .timeline-content h3 { font-size: 1.15rem; }

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

    .education-card { flex-direction: column; text-align: center; }
    .social-links { gap: 0.5rem; }
    .social-btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* Small phones */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .main-title { font-size: 2.2rem; }
    .sub-title { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }
    .btn-secondary { margin-left: 0; }
    .hero-quick-stats { justify-content: space-between; gap: 0; }
    .timeline-item { margin-left: 32px; padding: 1.2rem; }
    .contact-box { padding: 2rem 1.2rem; }
    .social-links { flex-direction: column; align-items: center; }
    .social-btn { width: 100%; justify-content: center; }
}
