/* =============================
   CSS CUSTOM PROPERTIES
   ============================= */
:root {
    --bg:           #080c14;
    --bg-2:         #0d1525;
    --surface:      rgba(255,255,255,0.04);
    --surface-h:    rgba(255,255,255,0.08);
    --border:       rgba(255,255,255,0.08);
    --border-h:     rgba(255,255,255,0.16);

    --accent:       #3b82f6;
    --accent-glow:  rgba(59,130,246,0.35);
    --accent-2:     #6366f1;
    --gold:         #f59e0b;
    --army-green:   #22c55e;

    --text-primary:   #f0f4ff;
    --text-secondary: #94a3b8;
    --text-muted:     #475569;

    --font:         'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --radius-sm:    8px;
    --radius:       16px;
    --radius-lg:    24px;

    --shadow:       0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg:    0 8px 48px rgba(0,0,0,0.6);
    --glow:         0 0 40px var(--accent-glow);

    --nav-h:        70px;
    --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

/* =============================
   RESET & BASE
   ============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* =============================
   ANIMATED BACKGROUND
   ============================= */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    animation: orbFloat 18s ease-in-out infinite;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: -200px; left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6366f1, transparent);
    top: 40%; right: -150px;
    animation-delay: -6s;
    animation-duration: 22s;
}

.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #0ea5e9, transparent);
    bottom: -100px; left: 30%;
    animation-delay: -12s;
    animation-duration: 26s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* =============================
   LAYOUT UTILS
   ============================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
}

.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.glass:hover {
    border-color: var(--border-h);
    background: var(--surface-h);
    box-shadow: var(--shadow);
}

/* =============================
   TYPOGRAPHY HELPERS
   ============================= */
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* =============================
   BUTTONS
   ============================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
    background: var(--surface-h);
    color: var(--text-primary);
    border: 1px solid var(--border-h);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-h);
}

/* =============================
   NAVIGATION
   ============================= */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
    background: rgba(8,12,20,0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--surface-h);
}
.nav-link.active {
    color: var(--accent);
}

.nav-cta {
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff !important;
    box-shadow: 0 2px 16px var(--accent-glow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* =============================
   HERO
   ============================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--nav-h);
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 540px;
    margin-bottom: 24px;
}
.hero-tagline strong { color: var(--text-primary); }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.meta-item svg { color: var(--accent); flex-shrink: 0; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Hero image */
.hero-image-wrap {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.hero-image-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
    animation: spinRing 6s linear infinite;
    padding: 2px;
}
.hero-image-ring::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--bg);
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg);
}

.hero-image-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(59,130,246,0.45);
    white-space: nowrap;
}

/* Stats row */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    margin-bottom: 0;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 16px;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: -8px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
    flex-shrink: 0;
}

/* =============================
   EXPERIENCE / TIMELINE
   ============================= */
.experience-section {
    background: linear-gradient(180deg, transparent, rgba(13,21,37,0.5) 50%, transparent);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 24px;
    align-items: start;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 28px;
}

.marker-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 14px var(--accent-glow);
    flex-shrink: 0;
    z-index: 1;
}

.marker-dot--army {
    background: linear-gradient(135deg, var(--army-green), #16a34a);
    box-shadow: 0 0 14px rgba(34,197,94,0.4);
}

.marker-line {
    width: 2px;
    flex: 1;
    min-height: 40px;
    background: linear-gradient(180deg, var(--border-h), transparent);
    margin-top: 8px;
}

.timeline-card {
    padding: 28px 32px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card-role {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-company {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.card-company--army {
    color: var(--army-green);
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.card-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.card-location {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-bullets {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-bullets li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding-left: 18px;
    position: relative;
}

.card-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.card-bullets li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* =============================
   SKILLS
   ============================= */
.skills-section {
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.skill-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--surface-h);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.skill-tag:hover {
    color: var(--text-primary);
    border-color: var(--border-h);
}

.skill-tag--primary {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.3);
    color: var(--accent);
}

/* =============================
   EDUCATION
   ============================= */
.edu-section {
    background: linear-gradient(180deg, transparent, rgba(13,21,37,0.5) 50%, transparent);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.edu-card {
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.edu-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.cert-icon {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.25);
    color: var(--accent-2);
}

.achievement-icon {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.25);
    color: var(--gold);
}

.edu-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-degree {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.edu-school {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.edu-year {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.cert-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.achievement-card .edu-school {
    color: var(--gold);
}

/* =============================
   FOOTER
   ============================= */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-heading {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-sub {
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-link:hover { color: var(--accent); }

.footer-sep { color: var(--text-muted); }

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

/* =============================
   SCROLL ANIMATIONS
   ============================= */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
[data-animate="fade-in"] {
    transform: scale(0.96);
}
[data-animate].visible {
    opacity: 1 !important;
    transform: none !important;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image-wrap {
        margin: 0 auto;
        order: -1;
    }
    .hero-meta { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-stats {
        gap: 0;
        padding: 20px 16px;
    }
    .stat-divider { height: 40px; }
}

@media (max-width: 700px) {
    .section { padding: 72px 0; }
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(8,12,20,0.97);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .timeline-item {
        grid-template-columns: 28px 1fr;
        gap: 16px;
    }
    .timeline-card { padding: 20px; }
    .card-header { flex-direction: column; gap: 8px; }
    .card-meta { align-items: flex-start; }

    .hero-stats {
        flex-wrap: wrap;
        gap: 0;
    }
    .stat-card { flex: 0 0 50%; }
    .stat-divider { display: none; }
    .hero-image-wrap { width: 240px; height: 240px; }
    .hero-image { width: 240px; height: 240px; }
}

@media (max-width: 420px) {
    .hero-name { font-size: 2.4rem; }
    .edu-card { flex-direction: column; }
}

/* =============================
   SCROLLBAR
   ============================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
