/* ── Tokens ── */
:root {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --accent: #f97316;
    --accent-dark: #ea6a0a;
    --text: #0d0d0d;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 2px 16px rgba(0, 0, 0, .08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, .14);
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .25s;
}

a:hover {
    color: var(--accent-dark);
}

ul {
    list-style: none;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ── Utilities ── */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.ml-2 {
    margin-left: .5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: .8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all .25s;
    border: none;
    letter-spacing: .5px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, .35);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, .45);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
}

.btn-secondary:hover {
    background: var(--text);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Cards ── */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all .3s;
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
}

.logo span.logo-code {
    font-family: 'Courier New', monospace;
    font-size: .85em;
    font-weight: 700;
    color: var(--accent);
    background: rgba(249, 115, 22, .1);
    border: 1px solid rgba(249, 115, 22, .3);
    border-radius: 6px;
    padding: 2px 7px;
    letter-spacing: 0;
}

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

.nav-links li a {
    color: var(--text);
    font-size: .95rem;
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--bg);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    max-width: 650px;
    flex: 1;
}

.hero-photo {
    flex-shrink: 0;
}

.profile-photo-wrapper {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    padding: 4px;
    background: var(--accent);
    box-shadow: 0 0 40px rgba(249, 115, 22, .25), 0 0 80px rgba(249, 115, 22, .1);
    animation: photoGlow 4s ease-in-out infinite alternate;
    overflow: hidden;
}

.profile-photo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

@keyframes photoGlow {
    0% {
        box-shadow: 0 0 30px rgba(249, 115, 22, .2), 0 0 60px rgba(249, 115, 22, .08);
    }

    100% {
        box-shadow: 0 0 50px rgba(249, 115, 22, .4), 0 0 100px rgba(249, 115, 22, .2);
    }
}

.subtitle {
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title span {
    color: var(--accent);
}

.role {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.summary {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: all .25s;
    box-shadow: var(--shadow);
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ── About ── */
.about-card p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    color: var(--accent);
    font-weight: 500;
}

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

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card h3 i {
    color: var(--accent);
}

.full-width {
    grid-column: 1 / -1;
    background: rgba(249, 115, 22, .05);
    border-color: rgba(249, 115, 22, .25);
}

/* ── Timeline ── */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--accent);
    z-index: 2;
    transition: all .3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(249, 115, 22, .5);
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: .2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.location {
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-weight: 400;
}

.timeline-role {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(249, 115, 22, .08);
    border-radius: 20px;
    font-size: .85rem;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .8rem;
    font-size: .95rem;
}

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

/* ── Education / Projects / Community ── */
.education-grid,
.projects-grid,
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

.ed-header h3 {
    font-size: 1.3rem;
}

.ed-date,
.ed-notes {
    font-size: .85rem;
    color: var(--text-muted);
}

.ed-degree {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

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

/* ── Projects ── */
.project-card {
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: .5rem;
}

.project-meta {
    font-size: .85rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card ul,
.project-card p {
    font-size: .95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-card ul li {
    margin-bottom: .5rem;
    list-style-type: disc;
    margin-left: 1.2rem;
}

.project-link {
    display: inline-block;
    margin-top: auto;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
}

.project-link i {
    transition: transform .3s;
}

.project-card:hover .project-link i {
    transform: translateX(5px);
}

/* ── Community ── */
.clean-list li {
    margin-bottom: .8rem;
    font-size: .95rem;
}

.community-card h3 i {
    color: var(--accent);
    margin-right: 10px;
}

/* ── Contact ── */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ── Footer ── */
footer {
    padding: 2rem 0;
    background: var(--text);
    color: #fff;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

footer p {
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, .5);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color .25s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease-out, transform .7s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(12px);
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        text-align: center;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .profile-photo-wrapper {
        width: 280px;
        height: 350px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-dot {
        left: -9px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-content h3 {
        flex-direction: column;
        align-items: flex-start;
    }
}