/* Mobile-first responsive design */

/* Base styles - Mobile first */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: -5%;
    scroll-behavior: smooth;
    font-family: "JetBrains Mono", sans-serif, monospace;
}

/* Prevent horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
    width: 100%;
    background-color: beige;
}

:root {
    --white: #efefef;
    --black: rgb(29, 29, 29);
}

.font-medium {
    font-size: medium;
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card {
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    max-width: 1024px;
}

main {
    position: relative;
    z-index: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
}

nav {
    position: fixed;
    z-index: 999;
    top: 0;
    height: 60px;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

#nav-logo {
    height: 50px;
}

.nav-links {
    display: none;
    gap: 16px;
}

nav a {
    text-decoration: none;
    color: black;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
    transition: 500ms;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: black;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 18px;
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #666;
}

/* Hero section - Mobile first */
.hero {
    background: url("../images/hero1.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 16px 60px;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
}

.hero h1 {
    font-size: 32px;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.hero h2 {
    font-size: 18px;
    line-height: 1.4;
}

/* Hero logo */
.hero-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 16px;
}

/* Download button */
.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #333;
}

/* No image placeholder */
.no-image {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

.no-projects {
    text-align: center;
    padding: 24px;
}

.contact {
    height: fit-content;
    flex-direction: column;
}

/* Form styles - Mobile first */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
}

.form textarea {
    height: 120px;
    resize: none;
}

.form input[type="submit"] {
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.form input[type="submit"]:hover {
    background: #333;
}

/* -----------alert message-------------- */
.alert {
    z-index: 99;
    color: greenyellow;
}

/* Projects section - Mobile first */
.projects {
    margin-top: 0;
    background: url("../images/hero1.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 16px 60px;
    gap: 24px;
}

.projects h1 {
    font-size: 28px;
    margin: 0 0 24px;
    text-align: center;
}

.project-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 16px;
}

.project-card {
    width: 100%;
    max-width: 350px;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.project-card h2 {
    font-size: 18px;
    margin: 8px 0;
}

.project-card p {
    font-size: 14px;
    margin: 4px 0;
}

.project-card a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 8px;
}

/* Project detail page - Mobile first */
.project-gallery {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-gallery h3 {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.gallery-card {
    margin-bottom: 16px;
}

.gallery-card img {
    width: 100%;
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.project-details-img {
    max-height: 50vw;
    border-radius: 8px;
    margin-bottom: 16px;
}

.project-details-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.reviews {
    flex-direction: column;
    gap: 32px;
}

/* Footer - Mobile first */
.footer-top {
    width: 100%;
    background-color: var(--black);
    color: var(--white);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

footer .typography {
    height: 80px;
    width: auto;
}

footer ul {
    list-style-type: none;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

footer ul li img {
    height: 24px;
}

footer .links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

footer a {
    text-decoration: none;
    color: var(--white);
    font-size: 14px;
}

.copyright {
    width: 100%;
    padding: 12px;
    background-color: rgb(40, 40, 40);
    color: var(--white);
    text-align: center;
    font-size: 12px;
}

/* Tablet styles */
@media (min-width: 768px) {
    nav {
        padding: 0 32px;
        height: 10vh;
    }

    #nav-logo {
        height: 9vh;
    }

    .nav-links {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .card {
        padding: 32px;
        gap: 8px;
    }

    .hero h1 {
        font-size: 80px;
        letter-spacing: -5px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .form {
        max-width: 500px;
    }

    .form input,
    .form textarea {
        padding: 16px;
        font-size: 16px;
    }

    .projects h1 {
        font-size: 60px;
    }

    .project-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .project-card {
        max-width: 300px;
    }

    .project-card img {
        height: 180px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .reviews {
        flex-direction: row;
        height: max-content;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        padding: 32px;
    }

    footer .typography {
        height: 120px;
    }

    footer ul {
        gap: 24px;
    }

    footer .links {
        flex-direction: row;
        gap: 32px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 120px;
        letter-spacing: -7px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .card {
        flex-direction: row;
        gap: 8px;
        text-align: left;
    }

    .projects h1 {
        font-size: 100px;
    }

    .project-list {
        gap: 24px;
    }

    .project-card {
        flex-direction: column;
        max-width: 350px;
    }

    .project-card img {
        height: 200px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .project-details-card {
        flex-direction: column;
    }

    .footer-top {
        padding: 40px 32px;
    }

    footer .typography {
        height: 150px;
    }

    footer ul {
        gap: 32px;
    }
}

/* Large desktop styles */
@media (min-width: 1440px) {
    .hero h1 {
        font-size: 200px;
    }

    .projects h1 {
        font-size: 120px;
    }

    .project-list {
        max-width: 1400px;
    }
}