:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --card-bg: #111111;
    --border-color: #222222;
    --accent: #c9a96e;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.btn {
    background-color: #ffffff;
    color: #000000;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: #1a1a1a;
}

.section-padding {
    padding: 100px 5%;
}

.text-center {
    text-align: center;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.btn-contact {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* SCROLLY SECTIONS (General) */
.scrolly-container {
    position: relative;
    background-color: #000;
}

.scrolly-container.hero-scrolly {
    height: 600vh;
}

.scrolly-container.projects-scrolly {
    height: 500vh;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scrub-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Projects Scrolly Content */
.projects-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #d1d5db;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 650px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Content wrapper */
.content-wrapper {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

/* Section Header */
.section-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* About */
.about-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 10%;
    background: linear-gradient(rgba(5, 5, 5, 1), rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 1)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover fixed;
}

.about-section .subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.skill-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-icon {
    height: 140px;
    background-color: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 24px;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.project-link:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.project-link svg {
    width: 16px;
    height: 16px;
}

/* Experience / Internships */
.experience-section {
    background: linear-gradient(rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.8)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
}

.experience-timeline {
    max-width: 1000px;
    margin: 50px auto 0;
    position: relative;
}

.experience-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

@media (max-width: 768px) {
    .experience-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.exp-date {
    font-family: 'Space Mono', monospace;
    color: var(--accent);
    font-size: 0.9rem;
    padding-top: 5px;
}

.exp-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s;
}

.exp-content:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.exp-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.exp-company {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.exp-description {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.exp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-skill {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 100px;
    color: var(--text-muted);
}

/* Process */
.process-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.9)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2426&auto=format&fit=crop') center/cover fixed;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

.step-card {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    background: rgba(17, 17, 17, 0.8);
    transform: translateY(-5px);
}

.step-number {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.2;
    margin-bottom: 10px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-card p {
    color: #ccc;
}

/* Contact */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 28px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    min-width: 200px;
    justify-content: center;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    color: var(--accent);
}

.contact-card svg {
    width: 22px;
    height: 22px;
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

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

.faq-item summary::after {
    content: '+';
    font-family: 'Space Mono', monospace;
    transition: transform 0.3s;
    font-size: 1.5rem;
}

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

.faq-item p {
    margin-top: 15px;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--bg-color);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }

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

    footer {
        flex-direction: column;
        gap: 40px;
    }

    .nav-links {
        display: none;
    }

    .footer-links {
        gap: 30px;
    }
}
