:root {
    --bg-main: #0b0906;
    --bg-secondary: #14100b;
    --bg-card: rgba(30, 24, 16, 0.6);
    --border-color: rgba(245, 190, 100, 0.1);

    --text-primary: #f9f6f0;
    --text-secondary: #ab9f8f;
    --text-muted: #6e6457;

    --primary-color: #f2a73d;
    --accent-color: #ffd23f;
    --accent-light: #ffe9a8;

    --gradient-1: linear-gradient(135deg, #ffd23f 0%, #f2a73d 55%, #e8790e 100%);

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.text-link {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link:hover {
    color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.dark-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary,
.btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: #1a1206;
    border: none;
    box-shadow: 0 4px 14px rgba(242, 167, 61, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 167, 61, 0.6);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-small {
    padding: 0.5rem 1.25rem;
    background: var(--gradient-1);
    color: #1a1206;
    font-size: 0.9rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(11, 9, 6, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-small) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:not(.btn-primary-small):hover {
    color: var(--text-primary);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bg-main) 0%, rgba(11, 9, 6, 0.9) 32%, rgba(11, 9, 6, 0.55) 60%, rgba(11, 9, 6, 0.15) 100%),
        linear-gradient(180deg, rgba(11, 9, 6, 0.75) 0%, rgba(11, 9, 6, 0) 25%, rgba(11, 9, 6, 0) 70%, var(--bg-main) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-subtitle {
    color: var(--accent-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-role {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-quote {
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-quote p {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.hero-quote-author {
    font-size: 0.95rem;
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: right;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(242, 167, 61, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.project-header h3 a {
    color: inherit;
}

.project-header h3 a:hover {
    color: var(--primary-color);
}

.project-role {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.project-bullets {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.project-bullets li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.project-visit {
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 600;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 13px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(242, 167, 61, 0.2);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.exp-header h3 {
    font-size: 1.5rem;
}

.exp-title {
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.exp-summary {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.exp-bullets {
    color: var(--text-secondary);
    padding-left: 1.25rem;
}

.exp-projects {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}

.exp-subproject h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.exp-subproject ul {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    font-size: 0.95rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.edu-icon {
    width: 48px;
    height: 48px;
    background: rgba(242, 167, 61, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 900px;
}

.faq-item h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-sub {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
}

footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .hero {
        align-items: flex-end;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .hero-scrim {
        background:
            linear-gradient(180deg, rgba(11, 9, 6, 0.15) 0%, rgba(11, 9, 6, 0.8) 55%, var(--bg-main) 100%);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-role {
        border-left: none;
        padding-left: 0;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-quote {
        margin: 0 auto;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    h1.hero-title {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -7px;
    }
}