@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght=400;700&display=swap');

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.7rem 3.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 1.275rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.55rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8075rem;
    font-weight: 700;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.6;
}

.contact-btn {
    background: #fff;
    color: #000;
    padding: 0.68rem 1.7rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.765rem;
    transition: transform 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-btn:hover {
    transform: scale(1.05);
}

/* Hero Section with Carousel Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6.8rem 3.4rem 3.4rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3.4rem, 10.2vw, 10.2rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 1.7rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: clamp(1.02rem, 2.125vw, 1.7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    max-width: 680px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

/* Section Styles */
.section {
    min-height: 100vh;
    padding: 5.1rem 3.4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.55rem, 6.8vw, 6.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.7rem;
    line-height: 0.9;
}

.section-subtitle {
    font-size: 1.105rem;
    opacity: 0.7;
    margin-bottom: 3.4rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5.1rem;
    margin-top: 3.4rem;
    min-width: 0;
}

.about-text {
    font-size: 1.19rem;
    line-height: 1.6;
    font-weight: 400;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.about-text p {
    margin-bottom: 1.275rem;
}

.about-text img {
    max-width: 100%;
    height: auto;
}

.about-text strong {
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.275rem;
}

.skill-item {
    font-size: 1.36rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1.275rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    letter-spacing: -0.01em;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(297.5px, 1fr));
    gap: 2px;
    margin-top: 2.55rem;
    background: #000;
}

.work-item {
    position: relative;
    aspect-ratio: 3/2;
    background: #111;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s;
}

.work-item:hover {
    opacity: 0.95;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.7rem;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-item:hover .work-item-overlay {
    opacity: 1;
}

.work-item h3 {
    font-size: 1.275rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
}

.work-item-meta {
    font-size: 0.765rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-item-meta p {
    margin: 0.17rem 0;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
}

.video-modal video,
.video-modal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 8px;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.55rem;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    transition: opacity 0.3s;
}

.video-modal-close:hover {
    opacity: 0.6;
}

/* Contact Section */
.contact-content {
    margin-top: 3.4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5.1rem;
}

.contact-info h3 {
    font-size: 2.125rem;
    font-weight: 700;
    margin-bottom: 1.7rem;
    text-transform: uppercase;
}

.contact-info p {
    font-size: 1.105rem;
    line-height: 1.8;
    margin-bottom: 2.55rem;
}

.contact-details a {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.85rem;
    transition: opacity 0.3s;
}

.contact-details a:hover {
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 968px) {
    nav {
        padding: 1.275rem 1.7rem;
    }
    
    .nav-links {
        gap: 1.275rem;
        font-size: 0.68rem;
    }
    
    .hero, .section {
        padding: 3.4rem 1.7rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.55rem;
    }

    .section-container,
    .about-text,
    .contact-info,
    .section-subtitle {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    
    nav {
        justify-content: space-between;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    font-weight: 300;
    z-index: 1001;
}

@media (max-width: 640px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0,0,0,0.98);
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}