/* ===== VARIABLES ===== */
:root {
    --bg: #0a0f1e;
    --bg-alt: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1f2a40;
    --border: rgba(255,255,255,0.07);
    --accent: #38bdf8;
    --accent-dim: rgba(56,189,248,0.12);
    --indigo: #818cf8;
    --indigo-dim: rgba(129,140,248,0.12);
    --emerald: #34d399;
    --emerald-dim: rgba(52,211,153,0.12);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
    --shadow: 0 4px 24px rgba(0,0,0,0.35);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.5);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
strong { color: var(--text); font-weight: 600; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: rgba(10,15,30,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
    background: var(--accent) !important;
    color: var(--bg) !important;
    font-weight: 600 !important;
    padding: 6px 18px !important;
    border-radius: 8px !important;
}
.nav-cta:hover { opacity: 0.9; background: var(--accent) !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56,189,248,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(129,140,248,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.hero-greeting {
    font-size: 16px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.hero-name {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg);
}
.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56,189,248,0.3);
}
.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 96px 24px;
}
.section-alt {
    background: var(--bg-alt);
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--text);
}
.section-subtitle {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 16px;
}
.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ===== ACCENT ===== */
.accent { color: var(--accent); }

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.75;
}
.about-text p:last-child { margin-bottom: 0; }
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.about-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.info-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.info-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2px;
}
.info-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.about-btn { width: 100%; text-align: center; margin-top: 4px; }

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-category:hover {
    border-color: rgba(56,189,248,0.25);
    box-shadow: var(--shadow);
}
.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.cat-icon { font-size: 22px; }
.skill-cat-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.tag-cyan { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(56,189,248,0.2); }
.tag-indigo { background: var(--indigo-dim); color: var(--indigo); border: 1px solid rgba(129,140,248,0.2); }
.tag-emerald { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(52,211,153,0.2); }

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 32px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -29px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--text-dim);
    transition: border-color var(--transition), background var(--transition);
}
.timeline-dot.active {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
}
.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
    border-color: rgba(56,189,248,0.2);
    box-shadow: var(--shadow);
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.timeline-role {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.timeline-company {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}
.timeline-period {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
    white-space: nowrap;
    background: var(--bg-alt);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.timeline-bullets {
    padding-left: 18px;
    list-style: disc;
    margin-bottom: 18px;
}
.timeline-bullets li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}
.timeline-bullets li:last-child { margin-bottom: 0; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-sm {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.project-card:hover {
    border-color: rgba(56,189,248,0.25);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-icon { font-size: 28px; }
.icon-link {
    color: var(--text-dim);
    transition: color var(--transition);
}
.icon-link:hover { color: var(--accent); }
.project-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.project-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== EDUCATION ===== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: border-color var(--transition);
}
.edu-card:hover { border-color: rgba(56,189,248,0.2); }
.edu-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.edu-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.edu-institution { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 4px; }
.edu-period { font-size: 12px; color: var(--text-dim); }
.certs-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cert-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: border-color var(--transition);
}
.cert-card:hover { border-color: rgba(56,189,248,0.2); }
.cert-icon { font-size: 22px; flex-shrink: 0; }
.cert-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.cert-issuer { font-size: 12px; color: var(--text-dim); }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover {
    border-color: rgba(56,189,248,0.3);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.contact-icon { font-size: 32px; }
.contact-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.contact-card:hover .contact-value { color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
    padding: 28px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }
.fade-up:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .skills-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: rgba(10,15,30,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; border-radius: 8px; font-size: 16px; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; padding: 20px; }
    .stat-divider { display: none; }
    .timeline { padding-left: 20px; }
    .timeline::before { left: 5px; }
    .timeline-dot { left: -17px; }
    .timeline-header { flex-direction: column; gap: 8px; }
    .timeline-card { padding: 20px; }
    .certs-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 16px; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 36px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 200px; text-align: center; }
}
