/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    width: 100%;
    /* height: 100%; */
}

body {
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f7fafc;
}

body > section {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Homepage override: disable sticky footer */
body.homepage {
    display: flex !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
}
body.homepage > section {
    max-width: 100% !important;
    align-self: center;
    flex: none !important;
    width: 100% !important;
}
body.homepage footer {
    display: none !important;
}

body.contact {
    display: flex !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
}
body.contact > section {
    max-width: 100% !important;
    align-self: center;
    flex: none !important;
    width: 100% !important;
}

/* Homepage specific hero overrides */
/* body.homepage .hero {
    height: 100vh;
} */

/* Navigation Bar */
.navbar {
    display: flex;
    flex-wrap: wrap;

    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #40215E;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar nav {
    display: flex;
    gap: 1.5rem;
}

.navbar nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar nav a:hover {
    color: #FBDB6B;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar nav a.active {
    color: #FBDB6B;
    border-bottom: 2px solid #FBDB6B;
}

.navbar .menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Logo container */
.logo {
    display: flex;
    justify-content: left;
    align-items: left;
    flex: 1;
}

.logo img {
    max-height: 50px;
    /* Adjust as needed */
    height: auto;
    width: auto;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 95vh;
    /* background: url('https://images.pexels.com/photos/547114/pexels-photo-547114.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260') center/cover no-repeat; */
    background: url('../images/home.png') center/cover no-repeat;
    color: #261438;
    text-align: center;
    padding: 0 1rem;
    /* opacity: 0.5; */
}

/* .hero img {
    opacity: 0.5
} */
/* .hero .hero-content {
    max-width: 800px;

} */

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .btn {
    padding: 0.75rem 2rem;
    background: #5a2e84;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

/* Sections */
section {
    padding: 4rem 2rem;
    margin-top: 64px;
    max-width: 1900px;
    align-self: center;
    /* adjust for fixed header */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #40215E;
}

/* About */
.about {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about .about-text {
    flex: 1 1 300px;
    text-align: justify;
}

.about .about-image {
    flex: 1 1 300px;
}

.about .about-image img {
    width: 100%;
    border-radius: 8px;
}

/* Services Cards */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4c51bf;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: #666;
}

/* Contact Form */
#contact {
    background: url('../images/plain.png') center/cover no-repeat;
}

.contact-form {
    width: 100vh;
    /* max-width: 1900px; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.contact-form iframe {
    height: 1500px;
    border: none;
    width: 100vh;
    /* max-width: 1900px; */
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: #40215E;
    color: #fff;
    /* margin-top: auto; */
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        align-items: center;
    }

    .navbar nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: #40215E;
        position: absolute;
        top: 64px;
        left: 0;
        padding: 1rem 0;
    }

    .navbar nav.active {
        display: flex;
    }

    .navbar .menu-toggle {
        display: block;
    }

    .about {
        flex-direction: column;
    }

    .logo {
        display: flex;
        justify-content: left;
        align-items: left;
    }

    .logo img {
        max-height: 50px;
    }
}