:root {
    --bg-main: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1c1c1c;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: #2a2a2a;
    --accent: #e0e0e0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
}

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

a:hover {
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section {
    padding: 10rem 0;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5rem;
    text-align: center;
}

.section-title span {
    display: block;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
    font-family: var(--font-body);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    transition: background-color 0.5s ease, padding 0.5s ease;
    background: transparent;
}

nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: var(--text-main);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6) contrast(1.1);
    transform: scale(1.05); /* Slight scale to prevent edge issues during animation */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 2rem;
    max-width: 1000px;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: block;
}

.hero-title {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* About Section */
.about {
    background-color: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    margin-top: 4rem;
}

.about-image {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.skills-list {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Services */
.services {
    background-color: var(--bg-secondary);
}

.expertise-list {
    display: flex;
    flex-direction: column;
}

.expertise-item {
    display: flex;
    gap: 4rem;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, padding-left 0.4s ease;
}

.expertise-item:first-child {
    border-top: 1px solid var(--border-color);
}

.expertise-item:hover {
    background-color: var(--bg-main);
    padding-left: 2rem;
}

.expertise-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

.expertise-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.expertise-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
}

@media (max-width: 768px) {
    .expertise-item {
        flex-direction: column;
        gap: 1rem;
    }
    .expertise-item:hover {
        padding-left: 0;
    }
    .expertise-content h3 {
        font-size: 2rem;
    }
}

/* Portfolio Gallery */
.portfolio {
    background-color: var(--bg-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-grid .gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--bg-secondary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.2, 1), filter 1.2s ease;
    filter: brightness(0.8) grayscale(10%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) grayscale(0%);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    text-align: center;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-secondary);
    text-align: center;
}

.testimonial-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 3rem;
}

.testimonial-author {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Experience Timeline */
.experience {
    background-color: var(--bg-main);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 3rem 4rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 3.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--text-main);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -6px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
}

.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.timeline-description {
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Footer */
.contact {
    background-color: var(--bg-tertiary);
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding: 8rem 0 4rem 0;
}

.contact-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 4rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.contact-link {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-link i {
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
    .about-grid { gap: 4rem; }
    .container { padding: 0 2rem; }
    .nav-content { padding: 0 2rem; }
}

@media (max-width: 768px) {
    .section { padding: 6rem 0; }
    .nav-links { display: none; } /* Simplified mobile nav */
    .hero-title { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid .gallery-item:first-child { aspect-ratio: 4/5; }
    .timeline::before { left: 0; }
    .timeline-item { width: 100%; padding: 2rem 0 2rem 3rem; text-align: left !important; left: 0 !important; }
    .timeline-dot { left: -6px !important; }
    .contact-links { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
