/* Importing Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fffafc;
    color: #333;
    line-height: 1.6;
}

/* Container Utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
/* ========== Navbar ========== */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(to right, #ffe1ec, #fff0f5);
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.05);
}

/* Nav links */
.navbar {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: 10px;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: #cc61a8;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Hover underline animation */
.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0%;
    background: #d63384;
    transition: width 0.3s ease-in-out;
}

.nav-links li a:hover {
    color: #d63384;
}
.nav-links li a:hover::after {
    width: 100%;
}

/* ========== Hamburger ========== */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #d63384;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
        position: absolute;
        top: 80px;
        right: 0;
        background: #fff0f5;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .navbar.open {
        max-height: 300px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* background image with opacity */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/backgroundindex.jpg') no-repeat center center/cover;
    opacity: 0.5; /* 👈 adjust opacity (0.1 - 1) */
    z-index: 1;
}

.hero-overlay,
.hero-content {
    position: relative;
    z-index: 2; /* text stays above background */
}

.hero-content {
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #d63384;
    animation: slideDown 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 10px 0 20px;
    color: #444;
    animation: slideUp 1s ease-in;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff69b4;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    background-color: #d63384;
    transform: scale(1.05);
}

/* Services Section */
#services {
    padding: 60px 20px;
    background: #fff0f5;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.service-box {
    background-color: white;
    width: 250px;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

.service-box:hover .service-image {
    transform: scale(1.1);
}

.service-box h2 {
    margin-top: 15px;
    color: #d63384;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #F8D0D5;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer .social-links {
    margin-top: 20px;
}

footer .social-links a {
    color: white;
    margin: 0 15px;
    font-size: 18px;
    transition: 0.3s ease-in-out;
}

footer .social-links a:hover {
    color: #F04A35;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        gap: 15px;
    }

    .navbar .nav-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 90%;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
