* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #0a0a0a;
    --bg-light: #141414;
    --text: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    z-index: -1;
}

.hero-content {
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
}

/* Work Section */
.work {
    padding: 6rem 4rem;
}

.work h2 {
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--bg-light);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.slide-container img.active {
    opacity: 1;
}

.project:hover .slide-container img.active {
    transform: scale(1.05);
    opacity: 0.7;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.project:hover .slide-arrow {
    opacity: 1;
}

.slide-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-arrow.prev {
    left: 0;
}

.slide-arrow.next {
    right: 0;
}

.slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* About Section */
.about {
    padding: 8rem 4rem;
    background: var(--bg-light);
}

.about-content {
    max-width: 700px;
}

.about h2 {
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.about a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.about a:hover {
    color: var(--text);
}

/* Contact Section */
.contact {
    padding: 8rem 4rem;
    text-align: center;
}

.contact h2 {
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid #333;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.email-alt {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.email-alt a {
    color: var(--text);
    text-decoration: underline;
}

.email-link {
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    padding-bottom: 0.25rem;
    transition: opacity 0.3s;
}

.email-link:hover {
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 2rem 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .work,
    .about,
    .contact {
        padding: 4rem 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .project {
        aspect-ratio: 16/9;
    }

    .project-info {
        transform: translateY(0);
    }

    .slide-arrow {
        opacity: 1;
    }

    .email-link {
        font-size: 1.25rem;
    }
}
