/*reset + root tokens */

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

:root {
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #111;
    color: white;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

/*typography*/
h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
}

/*navigation*/

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #111;
    padding: 20px 40px;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #999;
}

/*layout + sections */
section {
    padding: var(--space-xl) var(--space-md);
}

footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #333;
}

/*hero section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 40px;

    background-image: url("../images/hero/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: #888;
    margin-bottom: 20px;
}

#hero h1 {
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.2rem;
    color: #bbb;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/*buttons*/
.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s ease;
    font-weight: bold;
}

.primary {
    background: white;
    color: black;
}

.primary:hover {
    transform: translateY(-2px);
}

.secondary {
    border: 1px solid white;
    color: white;
}

.secondary:hover {
    background: white;
    color: black;
}

/*video block*/
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/*portfolio grid*/
.portfolio-page {
    padding: 120px 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    color: white;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.project-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/*project page*/
.project-hero {
    text-align: center;
    padding: 140px 40px 80px;
}

.project-hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.project-hero p {
    color: #888;
    margin-bottom: 50px;
}

.project-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 80px 40px;
}

.project-block {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid #222;
}

.project-block h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

/*about */
.about-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-container img {
    width: 250px;
    border-radius: 8px;
    object-fit: cover;
}

/* logos + social*/
.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.logo-grid img {
    height: 150px;
    width: 100%;
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    object-fit: contain;
}

.social-links a {
    display: flex;
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-links img {
    width: 24px;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

/* contact */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/*photo grid*/
.photo-category {
    margin-bottom: 120px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.photo-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.02);
}

/*mobile override*/
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    #hero {
        padding: 0 20px;
        text-align: center;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1rem;
        margin: 0 auto 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-hero h1 {
        font-size: 2.5rem;
    }

    .project-content {
        padding: 60px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-grid img {
        height: 80px;
        padding: 10px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}