/* ===================================
   Home Page Styles
   =================================== */

/* Critical Layout Fixes */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Semi-transparent overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Adjust opacity 0.3–0.6 as you like */
    z-index: 1;
}

/* Make sure text appears above the overlay */
.hero-content {
    position: relative;
    z-index: 2;
}


.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    opacity: 0.9;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 1.5rem;
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* About Section */
.about {
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-image-container {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #d4a574 0%, #c9965d 100%);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-style: italic;
}

.about-image::before {
    content: 'Add your photo here: images/about.jpg';
    opacity: 0.7;
}

/* When you add your about image, use this instead:
.about-image {
    background: url('../images/about.jpg') center/cover;
}
*/

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--accent);
    border-radius: 8px;
    z-index: -1;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-content .btn {
    margin-top: 1rem;
}

/* Portfolio Showcase Section (Combined Services + Featured) */
.portfolio-showcase {
    background: var(--secondary);
    padding: 6rem 5% 4rem;
    width: 100%;
    overflow-x: hidden;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--light-text);
    margin-top: -1.5rem;
    margin-bottom: 4rem;
}

.portfolio-category {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto 6rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.portfolio-category:last-of-type {
    margin-bottom: 4rem;
}

.category-content {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: stretch;
    min-height: 500px;
}

.category-content > * {
    flex: 1;
    min-width: 0;
}

.portfolio-category.reverse .category-content {
    flex-direction: row-reverse;
}

.category-info {
    padding: 4rem;
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.category-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.category-info p {
    color: var(--light-text);
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.category-features {
    list-style: none;
    margin-bottom: 2rem;
}

.category-features li {
    padding: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text);
}

.category-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.category-image {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.category-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4a574 0%, #c9965d 100%);
}

.placeholder-text {
    display: none;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.category-image.no-image .placeholder-text {
    display: block;
}

.category-image.no-image .image-caption {
    display: none;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-category:hover .category-image img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-category:hover .image-caption {
    opacity: 1;
}

/* Portfolio CTA */
.portfolio-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.portfolio-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.portfolio-cta p {
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a1a 100%);
    color: white;
    padding: 6rem 5%;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    font-weight: 400;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-section .cta-buttons {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 5%;
    }

    .about-image {
        height: 400px;
    }

    .about-image::after {
        display: none;
    }

    .category-content {
        flex-direction: column;
    }

    .portfolio-category.reverse .category-content {
        flex-direction: column;
    }

    .category-info {
        padding: 3rem 2rem;
    }

    .category-image {
        min-height: 350px;
    }

    .portfolio-showcase {
        padding: 4rem 4%;
    }

    .portfolio-category {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 100vh;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .about {
        padding: 3rem 4%;
    }

    .category-info {
        padding: 2rem 1.5rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .category-info h3 {
        font-size: 1.8rem;
    }

    .category-image {
        min-height: 300px;
    }

    .portfolio-cta {
        padding: 2rem 1.5rem;
    }
}