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

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    transition: background-color 1.2s ease, color 1.2s ease;
}

body.inverted {
    background: #fff;
    color: #000;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 1.2s ease;
    border-bottom: 1px solid #d4af37;
}

nav.inverted {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #d4af37;
}

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

.logo {
    font-size: 18px;
    font-weight: 400;
    color: #d4af37;
    letter-spacing: 1px;
    transition: color 1.2s ease;
}

.logo.inverted {
    color: #d4af37;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 1.2s ease;
    position: relative;
}

.nav-menu a.inverted {
    color: #666;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.4s ease, background-color 0.8s ease;
}

.nav-menu a.inverted::after {
    background: #d4af37;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: #d4af37;
}

.nav-menu a.inverted:hover,
.nav-menu a.inverted.active {
    color: #d4af37;
}

/* Hero Section */
header {
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem); /* fluid typography */
    font-weight: 100;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: #fff;
    transition: all 0.6s ease;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem); /* fluid typography */
    font-weight: 200;
    letter-spacing: 2px;
    color: #d4af37;
    opacity: 0.8;
    transition: all 0.6s ease;
    position: relative;
    z-index: 2;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    margin-top: 100vh;
}

section {
    margin-bottom: 200px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

#about {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
    padding-top: 0;
}

h2 {
    font-size: clamp(2rem, 6vw, 3rem); /* fluid typography */
    font-weight: 100;
    letter-spacing: -1px;
    color: #fff;
    text-align: center;
    margin-bottom: 100px;
    transition: all 1.2s ease;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #d4af37;
}

h2.inverted {
    color: #000;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem); /* fluid typography */
    font-weight: 200;
    letter-spacing: -0.5px;
    color: #d4af37;
    margin-bottom: 15px;
    transition: all 1.2s ease;
}

h3.inverted {
    color: #d4af37;
}

.content-box {
    background: #111;
    padding: 60px;
    border-radius: 0;
    margin-bottom: 40px;
    transition: all 1.2s ease;
    border: 1px solid #333;
    border-left: 4px solid #d4af37;
}

.content-box.inverted {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #d4af37;
}

.content-box:hover {
    background: #222;
    transform: translateY(-5px);
}

.content-box.inverted:hover {
    background: #f5f5f5;
    transform: translateY(-5px);
}

.content-box p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    font-weight: 400;
    transition: color 0.8s ease;
}

.content-box p.inverted {
    color: #555;
}

.experience-item, .project-item {
    background: #111;
    padding: 60px;
    border-radius: 0;
    margin-bottom: 40px;
    border: 1px solid #333;
    border-top: 3px solid #d4af37;
    transition: all 0.8s ease;
}

.experience-item.inverted, .project-item.inverted {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: 3px solid #d4af37;
}

.experience-item:hover, .project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

.experience-item.inverted:hover, .project-item.inverted:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.company {
    color: #bbb;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    transition: color 0.8s ease;
}

.company.inverted {
    color: #888;
}

.dates {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 400;
    transition: color 0.8s ease;
}

.dates.inverted {
    color: #aaa;
}

.tech {
    color: #d4af37;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    transition: color 0.8s ease;
}

.tech.inverted {
    color: #d4af37;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    position: relative;
    padding-left: 25px;
    font-weight: 400;
    transition: color 0.8s ease;
}

li.inverted {
    color: #555;
}

li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: 400;
    transition: color 0.8s ease;
}

li.inverted::before {
    color: #d4af37;
}

/* Footer */
footer {
    background: #111;
    text-align: center;
    padding: 80px 40px;
    margin-top: 150px;
    border-top: 1px solid #d4af37;
    transition: all 0.8s ease;
}

footer.inverted {
    background: #fafafa;
    border-top: 1px solid #d4af37;
}

footer p {
    color: #d4af37;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Contact Section */
.contact-info {
    margin: 30px 0;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ccc;
    transition: color 0.8s ease;
}

.contact-info p.inverted {
    color: #555;
}

.contact-info a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.8s ease;
}

.contact-info a.inverted {
    color: #d4af37;
}

.contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-info a.inverted:hover {
    color: #000;
    text-decoration: underline;
}

.contact-actions {
    margin-top: 40px;
    text-align: center;
}

.download-cv {
    display: inline-block;
    padding: 15px 40px;
    background: #d4af37;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.8s ease;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.download-cv.inverted {
    background: #d4af37;
    color: #000;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.download-cv:hover {
    background: transparent;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.download-cv.inverted:hover {
    background: transparent;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Animations */
.fade-out {
    opacity: 0;
    transform: translateY(50px);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }
    
    main {
        padding: 0 30px;
    }
    
    header {
        padding: 150px 30px 100px;
    }
    
    header h1 {
        font-size: 56px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    h2 {
        font-size: 40px;
        margin-bottom: 80px;
    }
    
    section {
        margin-bottom: 150px;
    }
    
    .content-box, .experience-item, .project-item {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 30px;
    }
    
    header h1 {
        font-size: 42px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    h2 {
        font-size: 32px;
        margin-bottom: 60px;
    }
    
    section {
        margin-bottom: 120px;
    }
    
    .content-box, .experience-item, .project-item {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
        height: 50px;
    }
    .nav-menu {
        gap: 20px;
        display: none; /* Hide nav menu on phones */
    }
    header {
        padding: 120px 20px 80px;
    }
    .content-box, .experience-item, .project-item {
        padding: 25px;
    }
    body {
        scroll-snap-type: none; /* Disable scroll snap on phones */
    }
}
header h1 {
    font-size: 32px;
}

.subtitle {
    font-size: 16px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}

.content-box, .experience-item, .project-item {
    padding: 25px;
}
