:root {
    --primary-bg: #0d0a14;
    --secondary-bg: #1a1625;
    --accent: #f38118;
    --accent-glow: rgba(243, 129, 24, 0.4);
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Image Effect */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-bg.png') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -1;
    filter: blur(100px);
}

.scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 480px) {
    .scroll-container {
        padding: 0 1rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    color: #fff;
    font-weight: 700;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    margin-left: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    width: 300px;
    height: 100vh;
    background: rgba(13, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 999;
    border-left: 1px solid var(--glass-border);
    gap: 0;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0.75rem 0;
    transition: var(--transition);
}

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

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sections */
section {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 12rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 0 40px var(--accent-glow);
    object-fit: cover;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.about-banner {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    margin: 2rem auto 0;
    display: block;
    box-shadow: 0 20px 40px -20px var(--accent-glow);
    object-fit: cover;
}

.quote-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.quote-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.quote-box blockquote {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-main);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
}

@media (max-width: 360px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.skill-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.4;
}

.skill-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Experience Tiles */
.experience-tiles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.exp-tile {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.exp-tile:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

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

@media (max-width: 768px) {
    .exp-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .exp-tile .period {
        order: -1;
        margin-bottom: 0.25rem;
    }
}

.exp-main h3 {
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
}

.exp-main .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.exp-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.exp-tile .period {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.exp-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
    margin-top: 0;
}

.exp-tile.expanded .exp-details {
    max-height: 1000px;
    opacity: 1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.exp-details p {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.exp-details ul {
    list-style: none;
    padding: 0;
}

.exp-details li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.exp-details li::before {
    content: '‣';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
}

.exp-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: right;
    opacity: 0.6;
}

.exp-tile.expanded .exp-footer {
    opacity: 1;
}

@media (max-width: 600px) {
    .exp-main h3 {
        font-size: 1.2rem;
    }

    .exp-main .role {
        font-size: 1rem;
    }
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
    width: 100%;
}

@media (max-width: 360px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
}

.edu-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.edu-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.edu-year {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(243, 129, 24, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.edu-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

/* Contact Section Enhancement */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 4rem;
}

.contact-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px var(--accent-glow);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(243, 129, 24, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(243, 129, 24, 0.1);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: rotate(5deg) scale(1.1);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    max-width: 240px;
}

.contact-link {
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.contact-link:hover {
    color: #fff;
    border-bottom-color: var(--accent);
}

.download-btn {
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    display: inline-block;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 3rem;
    margin-top: 4rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.footer-links span {
    color: var(--glass-border);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        width: 80%;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 7rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .quote-box {
        padding: 2rem;
    }

    .quote-box blockquote {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .exp-tile {
        padding: 1.5rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .logo img {
        height: 32px;
    }
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 0.5rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}