/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #A50044;
    --accent-hover: #c4185e;
    --accent-gold: #EDBB00;
    --border: #222222;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 120% 50% at 0% 0%, rgba(165, 0, 68, 0.18) 0%, transparent 100%),
        radial-gradient(ellipse 120% 50% at 100% 100%, rgba(237, 187, 0, 0.10) 0%, transparent 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-text {
    flex: 1;
}

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

.hero-image img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    border: 3px solid var(--border);
    box-shadow: 0 0 40px rgba(165, 0, 68, 0.12);
}

.hero-greeting {
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hero-cta:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.hero-cta-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.hero-cta-outline:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== Sections ===== */
.section {
    padding: 56px 0;
}

.section-alt {
    background-color: rgba(17, 17, 17, 0.7);
    position: relative;
}


.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

/* ===== Timeline / Experience ===== */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

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

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--accent-gold);
    z-index: 1;
}

.section-alt .timeline-marker {
    background-color: var(--bg-secondary);
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

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

.timeline-role {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 0.925rem;
    color: var(--accent);
    margin-top: 2px;
}

.timeline-company a {
    color: inherit;
}

.timeline-company a:hover {
    text-decoration: underline;
}

.timeline-date {
    font-size: 0.825rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 4px;
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.7;
}

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

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.timeline-details a {
    color: var(--accent);
    font-weight: 500;
}

.timeline-details a:hover {
    text-decoration: underline;
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.skill-category {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.skill-category-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(165, 0, 68, 0.1);
    border: 1px solid rgba(165, 0, 68, 0.18);
    border-radius: 6px;
    font-size: 0.825rem;
    color: var(--accent);
    font-weight: 500;
}

/* ===== Projects ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

a.project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.25s ease;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(165, 0, 68, 0.08);
}

.project-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ===== Education ===== */
.education-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

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

.education-degree {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.education-school {
    font-size: 0.925rem;
    color: var(--accent);
    margin-top: 4px;
}

.education-date {
    font-size: 0.825rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 4px;
}

.education-gpa {
    margin-top: 12px;
    font-size: 0.925rem;
    color: var(--text-secondary);
}

/* ===== Contact ===== */
.contact-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link svg {
    flex-shrink: 0;
}

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

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

/* ===== Scroll Animations ===== */
.timeline-item,
.skill-category,
.project-card,
.education-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible,
.skill-category.visible,
.project-card.visible,
.education-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 24px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 90px 0 32px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-image img {
        width: 180px;
        height: 180px;
    }

    .section {
        padding: 44px 0;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        flex-direction: column;
        gap: 4px;
    }

    .education-header {
        flex-direction: column;
        gap: 4px;
    }
}

