* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #0b0b0d;
    color: white;
    overflow-x: hidden;
}

/* HEADER */

header {
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    position: fixed;
    top: 0;
    z-index: 100;
    background: rgba(11,11,13,0.8);
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: #c89b3c;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: .3s;
}

nav a:hover {
    color: #c89b3c;
}

/* HERO SECTION */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 50px;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 65px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 20px;
    color: #cfcfcf;
    line-height: 1.6;
    margin-bottom: 35px;
}

button {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    background: #c89b3c;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(200,155,60,.4);
}

/* 3D MAILBOX */

.mailbox-3d {
    width: 400px;
    height: 400px;
    perspective: 1000px;
}

.mailbox-body {
    width: 260px;
    height: 170px;
    background: linear-gradient(145deg, #d8d8d8, #555);
    position: relative;
    top: 100px;
    left: 60px;
    border-radius: 20px 20px 5px 5px;
    transform: rotateY(-25deg) rotateX(10deg);
    box-shadow: 30px 40px 50px rgba(0,0,0,.6);
    animation: float 5s infinite ease-in-out;
}

.mailbox-body::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 90px;
    top: -45px;
    background: linear-gradient(90deg, #ddd, #777);
    border-radius: 130px 130px 0 0;
}

.mailbox-door {
    width: 200px;
    height: 120px;
    position: absolute;
    bottom: 0;
    left: 30px;
    border-radius: 10px;
    background: #222;
}

.mailbox-flag {
    width: 12px;
    height: 90px;
    background: #c89b3c;
    position: absolute;
    right: -20px;
    top: 30px;
}

.mailbox-flag::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 25px;
    background: #c89b3c;
    right: -15px;
    top: 0;
}

@keyframes float {
    0%, 100% {
        transform: rotateY(-25deg) rotateX(10deg) translateY(0);
    }
    50% {
        transform: rotateY(-25deg) rotateX(10deg) translateY(-25px);
    }
}

/* FEATURES */

.features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    padding: 80px 8%;
}

.feature-card {
    background: #15151a;
    padding: 40px;
    border-radius: 25px;
    transition: .3s;
    border: 1px solid rgba(255,255,255,.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #c89b3c;
}

.feature-card h2 {
    margin-bottom: 15px;
    color: #c89b3c;
}

.feature-card p {
    color: #ccc;
    line-height: 1.5;
}

/* ABOUT */

.about-preview {
    text-align: center;
    padding: 100px 20%;
}

.about-preview h2 {
    font-size: 45px;
    margin-bottom: 20px;
}

.about-preview p {
    color: #ccc;
    font-size: 20px;
    line-height: 1.7;
}

/* FOOTER */

footer {
    padding: 40px;
    text-align: center;
    background: #050506;
    color: #888;
}

/* CONTACT FORM */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 8% 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: #15151a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 15px 20px;
    color: white;
    font-size: 16px;
}

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

.contact-form button {
    align-self: center;
}

/* GALLERY */

.gallery-container {
    padding: 150px 8% 80px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.gallery-item {
    height: 350px;
    background: #15151a;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,.08);
    transition: .4s;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #c89b3c;
}

.gallery-item h2 {
    color: #c89b3c;
}

.gallery-item p {
    color: #ccc;
    padding: 20px;
}

/* MOBILE */

@media(max-width:900px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    nav {
        margin-top: 15px;
        gap: 15px;
    }

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

    .hero-text h1 {
        font-size: 42px;
    }

    .mailbox-3d {
        margin-top: 50px;
    }

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

    .about-preview {
        padding: 70px 10%;
    }

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