/* Updated Color Palette and Variables */
:root {
    --palette-dark-blue: #00408C;
    --palette-peach: #F9B8AF;
    --palette-red: #e85234;
    --palette-light-blue: #96add6;
    --palette-cream: #f2eee9;
    --palette-light-pink: #f2d7d3;
    --spacing-unit: clamp(20px, 4vw, 50px);;
    --section-padding: clamp(20px, 4vw, 50px);
    --transition-standard: all 0.3s ease;
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 1024px;
    --font-primary: 'Cormorant Garamond', georgia, serif;
    --font-secondary: 'Montserrat', arial, sans-serif;
    --font-header: 'overlock', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-secondary);
    color: var(--palette-red);
    line-height: 1.6;
    background-color: var(--palette-light-pink);
    font-size: 1.2rem;
}

main {
    flex: 1 0 auto;
}

/* Typography */
h1,h2,h3,h4,h5 {
    font-family: var(--font-header);
    font-weight: 800;
    margin-bottom: var(--spacing-unit);
    color: var(--palette-dark-blue);
}

h1 {
    font-size: 2.8rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--palette-dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--palette-red);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

/* Common Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    position: relative;
    z-index: 1;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--palette-red);
    color: var(--palette-cream);
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    position: relative;
    z-index: 2;
        opacity: 1;
}

.btn:hover {
    background-color: var(--palette-light-blue);
    color: var(--palette-cream);
}


/* Header and Navigation */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: var(--palette-light-blue);
    transition: var(--transition-standard);
    height: 80px; /* Set explicit header height */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img,
.service-icon img{
    box-shadow: none;
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--palette-dark-blue);
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

/* stylelint-disable-next-line no-descending-specificity */
nav ul li a {
    color: var(--palette-dark-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--palette-peach);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
}

.section-header h2,
.section-header h4 {
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--palette-dark-blue);
}

/* Section Common Styles */
.about,
.services,
.portfolio,
.testimonials,
.contact {
    padding: var(--section-padding);
    scroll-margin-top: 80px; /* Match header height */
}

@media (width <= 768px) {
    .about,
    .services,
    .portfolio,
    .testimonials,
    .contact {
        scroll-margin-top: 60px; /* Match mobile header height */
    }
}

.hero {
    background-color: var(--palette-peach);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-unit); /* Responsive gap */
    align-items: center;
    width: 100%
}

.hero-content h1 {
font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font scaling */
    line-height: 1.2;
    color: var(--palette-dark-blue);
}

.hero-content p {
font-size: clamp(1rem, 2vw, 1.4rem); /* Responsive font scaling */
}

.hero-image {
    width: 100%;
    height: 100%;
}

/* About Section */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-unit);
    align-items: center;
}

.about-content h2 {
    position: relative;
    padding-bottom: 15px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--palette-dark-blue);
}

/* Services Section */
.services {
    padding: 25px 0;
    background-color: var(--palette-peach);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-unit);
}

.service-card {
    background-color: var(--palette-light-blue);
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
    transform: translateZ(0);
    backface-visibility: hidden;

}

.service-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 8px 12px rgb(0 0 0 / 15%);
}

.service-card p {
    color: var(--palette-cream);
    margin: 0.5rem 1.5rem 1.2rem;
}

/* Portfolio Section */
.portfolio {
    padding: 25px 0;
    background-color: var(--palette-light-pink);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-unit);
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    }

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    width: 300px;
    margin: 0 auto;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.portfolio-item:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 8px 12px rgb(0 0 0 / 15%);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-standard);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--palette-dark-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: .85;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: var(--palette-cream);
    margin: 10px;
}

.portfolio-overlay p {
    color: var(--palette-peach);
    margin: 20px;
}

/* Testimonials */
.testimonials {
    background-color: var(--palette-peach);
    text-align: center;
    padding: var(--section-padding);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    min-width: 100%;
    padding: 0 20px;
}

.testimonial-card {
    background-color: var(--palette-cream);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

.testimonial-content {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--palette-red);
}

.testimonial-author {
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--palette-dark-blue);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--palette-dark-blue);
    color: var(--palette-cream);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.carousel-button:hover {
    background-color: var(--palette-red);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-unit);
    align-items: center;
}

.content-left {
    display: grid;
    grid-template-rows: auto 1fr;
    gap:var(--spacing-unit);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info a[href^="mailto:"] {
    color: var(--palette-dark-blue);
    border-bottom: 1px solid var(--palette-red);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.contact-info a[href^="mailto:"]:hover {
    color: var(--palette-red);
    border-bottom-color: var(--palette-dark-blue);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: var(--palette-light-blue);
    color: var(--palette-dark-blue);
    padding: 60px 0 30px;
    margin-bottom: 0; /* Ensure no margin at bottom */
    flex-shrink: 0; /* Prevents footer from shrinking */
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column:first-child {
    flex: 3; /* Takes up more space */
}

.footer-column:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers both heading and social links */
    text-align: center;
}

.footer-column h3 {
    margin-bottom: 1.5rem; /* Consistent spacing below headings */
    position: relative;
    padding-bottom: 0.5rem; /* Space for the underline */
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--palette-dark-blue);
}

/* Center the social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-column:last-child h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--palette-dark-blue);
}

.footer-column:last-child h3 {
    text-align: center;
    width: 100%;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--palette-red);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: var(--palette-dark-blue);
    font-size: 0.9rem;
    margin-bottom: 0; /* Ensure no margin at bottom */
}



/* Responsive Styles */

/* Intermediate breakpoint */
@media (769px <=width <=1024px){
        .hero {
                padding-top: 60px;
            }

            .hero-grid {
                gap: 30px;
            }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width <= 768px) {
    .nav-toggle {
        display: block;
    }

    .hero-grid,
    .about-grid,
    .contact-grid,
    .services-grid,
    .portfolio-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--palette-cream);
        transition: right 0.3s ease;
        z-index: 1001;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 80px 30px;
    }

    nav ul li {
        margin: 0 0 20px;
    }

    header {
        height: 60px; /* Smaller header on mobile */
    }

    .hero {
        padding-top: 60px; /* Match mobile header height */
        min-height: auto;
        position: relative;
    }

    .hero-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .hero-image {
        position:absolute;
        overflow: hidden;
        top: 0;
        left: 0;
        opacity: 0.2;
    }

    .hero-content,
    .about-content {
        text-align: center;
    }

    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


