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

/* === VARIABLES === */
:root {
    --bg: #0a0a0b;
    --bg-alt: #111113;
    --bg-card: #161618;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --success: #22c55e;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --transition: 0.2s ease;
}

/* === GLOBAL === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    top: 0;
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(10, 10, 11, 0.95);
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 999;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.mobile-cta {
    background: var(--accent) !important;
    color: white !important;
    text-align: center;
    margin-top: 0.5rem;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
}

.gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-light), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-lead strong {
    color: var(--text);
}

.hero-proof {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}

.proof-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 10px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: var(--text-dim);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span {
    padding: 0.375rem 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* === VALUE BANNER === */
.value-banner {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.value-text {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.value-text strong {
    color: var(--accent-light);
}

/* === SECTIONS === */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === IMPACT GRID === */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.impact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.impact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.impact-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.05));
    border-color: rgba(99, 102, 241, 0.2);
}

.impact-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.impact-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.impact-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* === APPROACH GRID === */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.approach-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.approach-card:hover {
    border-color: var(--accent);
}

.approach-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.approach-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.approach-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* === TIMELINE GRID === */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.timeline-featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.timeline-header {
    margin-bottom: 1.5rem;
}

.timeline-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.timeline-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* === MISTAKES GRID === */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mistake-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

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

.mistake-icon {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

.mistake-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.mistake-problem {
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.mistake-solution {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.mistake-solution strong {
    color: var(--success);
}

/* === EXPERIENCE === */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.exp-card:hover {
    border-color: var(--border-hover);
}

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

.exp-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.exp-company {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

.exp-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.exp-body p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.exp-body p strong {
    color: var(--text);
}

.exp-body ul {
    margin-bottom: 1.5rem;
}

.exp-body li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.exp-body li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.exp-body li strong {
    color: var(--text);
}

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

.exp-tech span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === PROJECTS === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
    position: relative;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.project-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.05));
    border-color: rgba(99, 102, 241, 0.2);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.625rem;
    background: var(--accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
}

.project-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-type {
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-card > p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.project-outcome {
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.project-outcome strong {
    color: var(--success);
}

.sites-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.sites-showcase h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sites-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.sites-grid a {
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.sites-grid a:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* === SKILLS === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.skill-group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

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

.skill-group li {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* === FAQ === */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* === CONTACT === */
.section-contact {
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card .section-header {
    margin-bottom: 2rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition);
}

.contact-link:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.contact-link svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-note {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* === FOOTER === */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

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

.footer-sub {
    color: var(--text-dim);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* === EDUCATION === */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.edu-card:hover {
    border-color: var(--border-hover);
}

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

.edu-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.edu-school {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

.edu-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.edu-body p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.edu-body p strong {
    color: var(--text);
}

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

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 7rem 0 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-proof {
        gap: 1.5rem;
    }

    .proof-value {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .impact-featured {
        grid-column: auto;
    }

    .project-featured {
        grid-column: auto;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
    .hero-content > * {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.6s ease forwards;
    }

    .hero-badge { animation-delay: 0.1s; }
    .hero h1 { animation-delay: 0.2s; }
    .hero-lead { animation-delay: 0.3s; }
    .hero-proof { animation-delay: 0.4s; }
    .hero-cta { animation-delay: 0.5s; }
    .hero-tags { animation-delay: 0.6s; }
}

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