@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');

body {
    position: relative;
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Background Overlay Layer */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/axiom-pattern.png');
    background-size: auto;
    background-repeat: repeat;
    background-attachment: scroll;
    opacity: 0.4; /* Adjust for transparency */
    z-index: -1; /* Moves it behind content */
}
.page {
    max-width: 80%;
    margin: 0 auto;
    padding-bottom: 100px;
}
header {
    background: linear-gradient(to bottom, #FFD633 50%, #E6A700 100%);
    color: #121212;
    padding: 44px 20px;
    position: relative;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 30vh;
}
header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/noisy.png');
    opacity: 0.75;
    pointer-events: none;
}
h1 {
    font-size: 8vw;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}
h1::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #121212;
    margin: 8px auto 0 auto;
}
.tagline {
    font-size: 2.5vw;
    font-weight: 700;
    opacity: 1;
    color: #FFEE99;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    max-width: 100%;
    display: block;
}
.video-frame {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    margin: 60px 0;
    background: #000;
}
.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.section {
    margin-bottom: 100px;
}
.section-header {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}
.content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}
.content-grid img {
    width: 30%;
    height: auto;
    border-radius: 10px;
    background: #444;
}
.text-block {
    width: 65%;
}
.text-left {
    text-align: left;
}
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.portfolio-item {
    width: 48%;
    text-align: center;
}
.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.contact {
    text-align: center;
    margin-top: 80px;
}
.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.contact input, .contact textarea, .contact button {
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
}
.portfolio-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.portfolio-item {
    flex: 1;
    margin: 10px;
    text-align: center;
}

/* Ensure images are responsive */
.portfolio-item img {
    max-width: 100%;
    height: auto;
}
a img {
    transition: transform 0.3s ease-in-out;
}

a img:hover {
    transform: scale(1.05);
}

/* Default hidden state */
.scroll-fade {
    opacity: 0; /* Hide initially */
    transform: translateY(30px); /* Slight vertical movement */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When the element becomes visible */
.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Mobile Layout Adjustments */
@media (max-width: 768px) {  
    /* Reduce padding and margins */
    body {
        font-size: 16px;
        padding: 0;
        margin: 0;
    }

    /* Adjust header size */
    header {
        height: 20vh; /* Make the header shorter on mobile */
        padding: 20px;
        text-align: center;
    }

    h1 {
        font-size: 6vw; /* Reduce font size */
    }

    /* Make the layout single-column */
    .content-grid {
        display: block; /* Stack elements vertically */
        text-align: center;
    }

    .content-grid img {
        width: 80%; /* Make images smaller */
        margin-bottom: 20px;
    }

    .text-block {
        width: 100%;
        padding: 0 10px;
    }

    /* Make portfolio items stack in one column */
    .portfolio-grid {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }

    .portfolio-item {
        width: 90%; /* Make portfolio images take up more space */
        margin-bottom: 20px;
    }

    /* Adjust contact form */
    .contact form {
        width: 90%;
    }
}

/* Smaller Phones (Less than 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 7vw;
    }

    .content-grid img {
        width: 100%;
    }
}

/* Default (Desktop) Image Size */
.workspace-image {
    width: 40%;  /* Keep the existing desktop width */
    max-width: 600px; /* Prevent it from getting too large */
    height: auto;
    display: block;
    margin: 0 auto; /* Centers the image */
}

/* Mobile-Specific Adjustments */
@media (max-width: 768px) {
    .workspace-image {
        width: 80%;  /* Increase size for better mobile display */
        max-width: 350px; /* Keeps the image from being too large */
    }
}