/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1001 !important;
    transform: translateY(-100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: auto;
}

.header.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo img {
    max-width: 200px;
    height: auto;
}

.header__nav {
    display: flex;
    align-items: center; 
    gap: 15px;         
}

.header__btn {
    display: inline-flex; 
    align-items: center;   
    justify-content: center; 
    
    height: 38px;      
    padding: 0 15px;     
    
    font-size: 14px; 
    line-height: 1;       
    text-decoration: none;
    box-sizing: border-box;  
    
    background: transparent;
    border: none;
    border-radius: 0 !important;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    transition: all 0.3s ease;
}

.header__btn--portfolio {
    background: transparent;
}

.header__btn--portfolio:hover {
    background-color: #ffffff;
    color: #000000;
}

.header__btn--cta {
    background-color: #fff !important;
    color: #000 !important;        
    
    border: 1px solid #fff;         
    border-radius: 0 !important;      
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 15px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.header__btn--cta:hover {
    background-color: transparent !important;
    color: #fff !important;               
    border-color: #fff;                
    opacity: 1;                           
}

.header__btn:hover {
    opacity: 0.7;
}

/* Header Trigger Area */
.header__trigger {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 1000;
    pointer-events: none;
}

.header__trigger:hover ~ .header,
.header:hover {
    transform: translateY(0);
}

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

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero__content {
    position: relative;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.hero__title {
    font-size: 72px;
    font-weight: 600;
    line-height: 1.17;
    margin: 0 0 24px;
}

.hero__subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 0;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.hero__scroll:hover {
    opacity: 0.6;
}

.hero__scroll svg {
    width: 38px;
    height: 19px;
    fill: #ffffff;
}

.hero__scroll svg {
    animation: scrollArrow 1.7s ease infinite;
}

/* Scroll arrow */
@keyframes scrollArrow {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* About Section */
.about {
    padding: 180px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.about__subtitle {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 0 0 40px;
}

.about__title {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.23;
    margin: 0 0 40px;
    color: #000000;
}

.about__description {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    color: #000000;
}

/* Projects Section */
.projects {
    padding: 0 0 30px;
    background-color: #f0f0f0;
}

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

.project-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.project-card--large {
    grid-column: span 2;
    height: 650px;
}

.project-card__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.25s ease;
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.project-card:hover .project-card__overlay {
    opacity: 0.8;
}

.project-card__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    width: 100%;
    padding: 20px 40px;
}

.project-card:hover .project-card__content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.project-card__title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.23;
    margin: 0 0 20px;
}

.project-card__text {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.55;
    margin: 0;
}

/* Contacts Section */
.contacts {
    padding: 40px 0;
    background-color: #1c1c1c;
    text-align: center;
}

.contacts__buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contacts__btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0px;
    background: linear-gradient(145deg, #2a2a2a, #151515);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
    transition: all 0.25s ease;
}

.contacts__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
}

/* Modal */
#modal-container {
    background: rgba(0, 0, 0, 0.6);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 600px;
    background: #1a1a1a;
    padding: 80px 20px 20px 20px;
    border-radius: 0px;
    border: 2px solid #fff;
    position: relative;
    box-shadow: 0 0 50px rgba(255,255,255,0.05);
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-form.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-form__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #000;
    font-size: 24px;
    border-radius: 0px;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.contact-form label {
    color: #fff;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    margin-top: 8px;
    padding: 14px 18px;
    background: #111;
    border: 2px solid #fff;
    border-radius: 0px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.contact-form button[type="submit"] {
    padding: 16px 25px;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    letter-spacing: 2px;
}

.contact-form button[type="submit"]:hover {
    background: #000;
    color: #fff;
    outline: 2px solid #fff;
}

/* Mobile adaptive */
@media (max-width: 430px) {
    /* Footer */
    .footer-btn, .contacts__btn {
        max-width: 210px;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 0px;
    }

    .footer-buttons, .contacts__buttons {
        gap: 6px;
    }

    /* Contacts */
    .contacts__buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Hero */
    .hero__title {
        font-size: 30px;
    }

    /* Header */
    .header {
        height: 60px;
        padding: 0 10px;
    }

    .header__logo img {
        max-width: 115px;
        height: auto;
    }

    .header__nav {
        gap: 10px;
    }

    .header__btn {
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }
}