--- START OF FILE creative-studio.css ---

/* Page-Specific CSS for Creative Studio */

/* ====================================================== */
/*  HERO SECTION                                          */
/* ====================================================== */
/* ====================================================== */
/*  HERO SECTION (FIXED ALIGNMENT & IMAGE)                */
/* ====================================================== */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center; /* Vertically center */
    /* Changed from center to flex-start to align content to the left */
    justify-content: flex-start; 
    text-align: left; /* Ensures text aligns left */
    
    /* BACKGROUND IMAGE PATH CHECK: 
       Ensure 'creative-studio-img.webp' exists in your 'images' folder. 
       If your image is a JPG, change this to .jpg */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/creative-studio-img.webp') no-repeat center center/cover;
    
    /* Padding: Top/Bottom 100px, Sides calculated */
    padding: 100px max(20px, calc((100% - 1150px) / 2));
}                                                                            

.hero-content {
    max-width: 900px;
    width: 100%;
    /* ADDED: The lime/yellow border from your screenshot */
    border-left: 5px solid #ccff00; 
    padding-left: 40px; /* Space between the border line and text */
}

.hero-content h1 { 
    font-size: 3.8rem;
    font-weight: 800; 
    text-transform: uppercase; 
    margin-bottom: 1rem; 
    line-height: 1.2;
    color: #fff;
}

/* Optional: If you use a <span> for "BUSINESS" to make it green */
.hero-content h1 span {
    color: #ccff00;
}

.hero-content p { 
    font-size: 1.4rem; 
    color: var(--text-grey); 
    margin-bottom: 2rem; 
    max-width: 700px; 
    /* REMOVED: auto margins that were forcing it to center */
    margin-left: 0; 
    margin-right: 0; 
    line-height: 1.6;
}

/* --- Responsive Adjustments for Hero --- */
@media (max-width: 768px) {
    #home {
        /* On mobile, we reduce side padding */
        padding: 100px 20px;
        background-position: center; /* Keeps image centered on mobile */
    }
    
    .hero-content {
        /* Reduce gap between border and text on mobile */
        padding-left: 25px;
        border-left-width: 4px; 
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}
/* ====================================================== */
/*  ABOUT STUDIO SECTION                                  */
/* ====================================================== */
#about-studio {
    background-color: var(--bg-darker);
    padding: 100px max(20px, calc((100% - 1150px) / 2));
}

.content-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.content-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.content-image img { 
    /* FIXED: Changed from 200% to 100% to prevent overflow */
    width: 100%; 
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px; 
}

.content-text h2 { 
    font-size: 3.4rem; 
    font-weight: 700;
    text-transform: uppercase; 
    margin-bottom: 20px; 
    line-height: 1.2;
}

.content-text p { 
    font-size: 1.4rem; 
    margin-bottom: 20px; 
    color: var(--text-grey); 
    line-height: 1.6;
}

/* ====================================================== */
/*  CREATIVE SERVICES SECTION                             */
/* ====================================================== */
#creative-services { 
    background-color: var(--bg-dark); 
    padding: 100px max(20px, calc((100% - 1150px) / 2));
}

.services-grid-creative { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; 
}

.service-card-creative { 
    background: #1a1a1a; 
    padding: 35px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    transition: all 0.4s ease; 
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.service-card-creative:hover { 
    transform: translateY(-10px); 
    border-color: var(--accent-green); 
}

.service-icon-container {
    flex-shrink: 0;
}

.service-icon-container svg {
    width: 60px;
    height: 60px;
    stroke: var(--accent-green);
}

.service-text-container h3 { 
    font-size: 1.5rem; 
    margin-bottom: 10px; 
    color: var(--text-light);
}

.service-text-container p { 
    color: var(--text-grey); 
    font-size: 1.2rem; 
    line-height: 1.6;
    margin: 0;
}

/* ====================================================== */
/*  LATEST WORK SECTION                                   */
/* ====================================================== */
#work {
    padding: 100px max(20px, calc((100% - 1150px) / 2));
}

#work .video-container {
    max-width: 1000px;
    margin: 40px auto 60px; /* Added bottom margin */
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

#work .video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#work .portfolio-grid { 
    display: grid; 
    /* Improved minmax for better responsiveness on small phones */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

#work .portfolio-item { 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    aspect-ratio: 4 / 3; 
    cursor: pointer;
}

#work .portfolio-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
}

#work .portfolio-item:hover img { 
    transform: scale(1.05); 
}

#work .portfolio-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.1)); 
    opacity: 0; 
    transition: opacity 0.4s ease; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 20px; 
    text-align: left; 
}

#work .portfolio-item:hover .portfolio-overlay { 
    opacity: 1; 
}

#work .portfolio-overlay h4 { 
    color: var(--accent-green); 
    margin-bottom: 5px; 
    transform: translateY(10px); 
    transition: transform 0.4s 0.1s ease; 
    font-size: 1.2rem;
}

#work .portfolio-overlay p { 
    color: var(--text-light); 
    transform: translateY(10px); 
    transition: transform 0.4s 0.2s ease; 
    font-size: 0.9rem; 
}

#work .portfolio-item:hover .portfolio-overlay h4, 
#work .portfolio-item:hover .portfolio-overlay p { 
    transform: translateY(0); 
}

/* ====================================================== */
/*  FINAL CTA SECTION                                     */
/* ====================================================== */
#final-cta { 
    padding: 100px max(20px, calc((100% - 1150px) / 2));
    background: linear-gradient(45deg, #1e1e1e, #000000); 
}

.cta-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    align-items: center; 
    gap: 40px; 
}

.cta-text h2 { 
    font-size: 3.8rem; 
    font-weight: 700;
    margin-bottom: 15px; 
    text-transform: uppercase; 
    color: #fff;
    line-height: 1.2;
}

.cta-text p { 
    color: var(--text-grey); 
    max-width: 450px; 
    font-size: 1.4rem; 
    line-height: 1.6;
}

.cta-button { 
    text-align: right; 
}

.cta-button .btn-primary { 
    padding: 10px 25px; 
    font-size: 1.2rem; 
    display: inline-block;
    background-color: var(--accent-green);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
}

/* ====================================================== */
/*  RESPONSIVE MEDIA QUERIES                              */
/* ====================================================== */

/* --- Tablet (max-width: 992px) --- */
@media (max-width: 992px) {
    /* General Padding adjustment */
    #about-studio, #creative-services, #work, #final-cta {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* About Section */
    .content-grid { 
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center; 
        gap: 40px;
    }
    .content-image { 
        margin-bottom: 0; 
        max-width: 600px; /* Limit image width when stacked */
        margin-left: auto;
        margin-right: auto;
    }
    .content-text h2 {
        font-size: 2.8rem; /* Scale down heading */
    }

    /* Services Section */
    .services-grid-creative {
        gap: 20px;
    }

    /* CTA Section */
    .cta-grid { 
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center; 
    }
    .cta-text p {
        margin: 0 auto; /* Center paragraph */
    }
    .cta-button { 
        text-align: center; 
        margin-top: 30px; 
    }
}

/* --- Mobile Landscape / Large Phone (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    /* Services Section */
    .services-grid-creative {
        grid-template-columns: 1fr; /* 1 Column for services */
    }
    .service-card-creative {
        flex-direction: column; /* Icon top, text bottom */
        align-items: center;
        text-align: center;
        padding: 30px;
    }
    .service-icon-container svg {
        margin-bottom: 10px;
    }

    /* CTA Section */
    .cta-text h2 {
        font-size: 2.5rem;
    }
}

/* --- Mobile Portrait / Small Phone (max-width: 576px) --- */
@media (max-width: 576px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    /* About Section */
    .content-text h2 {
        font-size: 2.2rem;
    }
    .content-text p {
        font-size: 1rem;
    }

    /* Work Section */
    #work .portfolio-grid {
        grid-template-columns: 1fr; /* Force 1 column on small screens */
    }
    
    /* CTA Section */
    .cta-text h2 {
        font-size: 2rem;
    }
    .cta-text p {
        font-size: 1rem;
    }
    .cta-button .btn-primary {
        width: 100%; /* Full width button */
        text-align: center;
    }
}