/* --- Global Styles & Variables --- */

/* #DB8084 - light pink
#23314A - dark blue
#8FA1b1 - light blue */
:root {
    --primary-dark: #23314A; 
    --accent-cyan: #F2C8CB;   
    --accent-purple: #DB8084; 
    --background-light: #F2C8CB; 
    --text-light: #F5F5F5;
    --text-dark: #333;
    --glass-bg: rgba(143, 161, 177, 0.1);
    --glass-border: rgba(143, 161, 177, 0.2);
    --font-primary: 'Poppins', sans-serif;
    --navbar-bg: rgba(143, 161, 177, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: var(--accent-cyan);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-purple);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    color: var(--primary-dark);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-light); /* Ensure text color remains on hover */
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #23314A; /* Semi-transparent light bg */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: #23314A;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}
#logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--accent-purple);
}


.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff; /* CHANGED: Set to white for visibility */
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px; /* Account for fixed navbar */
    background: url('images/hero-bg2.jpg') no-repeat center center/cover; /* Replace with your hero image */
    position: relative;
}

.hero-section::before { /* Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 79, 0.3); /* Dark overlay */
}

.hero-content {
    position: relative; /* To be on top of overlay */
    z-index: 1;
    animation: fadeInHero 1s ease-out;
}

.hero-content h1 {
    font-size: 6rem;
    font-family: 'Rougbelt', var(--font-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0; /* Padding top includes navbar height */
}
#home { padding-top: 0; } /* Hero section has its own padding logic */

/* --- About Section --- */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
/* .about-image { for bigger size
    flex: 1 1 300px; 
    border-radius: 10px;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
} */

.about-image {  
    flex: 1 1 350px;         
    max-width: 350px;        
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.about-text {
    flex: 2 1 400px;
}

/* --- Services Section --- */
.services-bg {
    background-color: #f9f9f9; /* Slightly different bg for contrast */
}
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.8rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Changed from center */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(40, 100, 130, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    display: inline-block; /* To align with H3 if needed */
}

.service-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-card ul {
    list-style: none; /* remove default */
    padding-left: 0;
}
.service-card ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #444;
    position: relative;
    padding-left: 20px;
}
.service-card ul li::before {
    content: '*'; /* Checkmark */
    color: var(--accent-purple);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Gallery Section (FIXED) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    /* This creates a square container for each image, making the grid uniform */
    aspect-ratio: 1 / 1; 
}

.gallery-item img {
    width: 100%;
    height: 100%; /* Make image fill the container's height */
    object-fit: cover; /* This scales the image to cover the container, cropping if necessary */
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Light white overlay */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Contact Section --- */
.contact-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2c5364 100%); /* Dark gradient */
    color: var(--text-light);
}
.contact-bg h2, .contact-bg h3 {
    color: var(--text-light);
}
.contact-bg p, .contact-bg .social-links a {
    color: #ddd;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form-container {
    flex: 2 1 400px;
    background: rgba(255, 255, 255, 0.05); /* Subtle glass on dark */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}
.contact-info {
    flex: 1 1 300px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--glass-border);
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ccc;
}
.form-group textarea {
    resize: vertical;
}
.contact-form-container .cta-button {
    width: 100%;
    font-size: 1.1rem;
}
.contact-info p {
    margin-bottom: 0.8rem;
}
.contact-info i {
    margin-right: 10px;
    color: var(--accent-cyan);
}
.social-links {
    margin-top: 1.5rem;
}
.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-cyan);
    transform: scale(1.2);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: var(--primary-dark);
    color: var(--background-light);
    font-size: 0.9rem;
}

footer p{
    color: #fff;
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%; /* Initially hidden */
        top: 70px; /* Below navbar */
        flex-direction: column;
        background-color: var(--primary-dark); /* CHANGED: To match navbar background */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 { font-size: 4rem; }
    .hero-content p { font-size: 1.2rem; }

    h1 { font-size: 4rem; }
    h2 { font-size: 1.8rem; }

    .about-content {
        flex-direction: column;
    }
    .contact-content {
        flex-direction: column;
    }
    .contact-info { text-align: center; }
    .social-links { justify-content: center; display: flex;}
}

@media (max-width: 480px) {
    #logo { height: 40px; }
    .hero-content h1 { font-size: 4rem; }
    .hero-content p { font-size: 1rem; }
    .cta-button { padding: 10px 20px; font-size: 0.9rem;}
    .service-card { padding: 1.5rem; }
    .service-icon { font-size: 2rem; }
    .service-card h3 { font-size: 1.2rem; }
}

/* --- WhatsApp Floating Button --- */
#whatsapp-float-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Make sure it's above other content */
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite; /* The continuous animation */
}

#whatsapp-float-button:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    animation: none; /* Stop pulsing on hover for better UX */
}

/* Keyframes for the continuous pulsing animation */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
/* Optional: Fine-tune the floating button for very small screens */
@media (max-width: 480px) {
    #whatsapp-float-button {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}