/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #004aad;
    --secondary-color: #ffc107;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --bg-light: #f9f9f9;
    --border-radius: 8px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 5%;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    position: relative;
}

.top-bar-info {
    display: flex;
    gap: 20px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-socials {
    display: flex;
    gap: 15px;
}

.top-bar-socials a {
    color: var(--light-color);
    transition: var(--transition);
}

.top-bar-socials a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    background-color: var(--light-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 90px;
    /* Fixed height for consistency */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 60px;
    /* Slightly smaller to fit with text */
    width: auto;
    transition: var(--transition);
}

.logo-text {
    line-height: 1;
}

.logo-text h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo-text h1 span {
    color: var(--secondary-color);
}

.logo-text small {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Adjust content spacing for fixed header with topbar */
body {
    padding-top: 135px;
    /* approx 45px (topbar) + 90px (nav) */
}

/* Hero Slider Update */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    margin-top: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay */
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--light-color);
    max-width: 800px;
    padding: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease 0.5s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn.primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn.primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background: var(--light-color);
    transform: scale(1.2);
}

/* Sections */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Preview */
.about-preview {
    background-color: var(--light-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-image {
    flex: 1 1 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    border-radius: var(--border-radius);
    width: 100%;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1 1 400px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Cards (Mission/Values) */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 5% 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-logo h2 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #ccc;
}

.contact-info i {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    flex: 1 1 300px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.info-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-form {
    flex: 2 1 400px;
    background: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary-color);
}

.service-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon-circle {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px;
    /* Overlap image */
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--light-color);
    z-index: 2;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-btn {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: var(--transition);
}

.service-btn:hover {
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* Mobile Menu Close Button */
.nav-close-btn {
    display: none;
    /* Hidden on desktop */
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px;
    }

    .top-bar-info {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        /* Cover full screen */
        background: var(--light-color);
        height: 100vh;
        width: 80%;
        /* Partial width */
        max-width: 300px;
        flex-direction: column;
        align-items: flex-start;
        /* Align text left */
        justify-content: flex-start;
        padding: 60px 30px;
        /* Space for close button */
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 2000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        color: var(--dark-color);
        cursor: pointer;
    }

    .mobile-menu-btn {
        display: block;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    body {
        padding-top: 170px;
        /* Adjusted for taller mobile header */
    }
}