/* General Resets and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #1E3A8A; /* Rich Navy Blue */
    --secondary-color: #FFFFFF; /* White */
    --accent-color: #FACC15; /* A subtle gold/yellow for highlights */
    --text-color: #333333;
    --light-bg: #F8F8F8;
    --dark-bg: #2C3E50; /* Darker tone for contrast */
    --border-radius: 8px;
    --transition-speed: 0.3s ease;

    /* Font families */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: darken(var(--accent-color), 10%); /* This won't work in pure CSS, need JS or preprocessor */
    background-color: #d1ac00; /* Manual darker shade */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Header and Navigation */
.main-header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    min-height: 80px; /* Ensure minimum height even if logo is smaller */
}

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

.logo {
    height: 100px; /* Adjusted height for better visual balance */
    width: auto;
    max-width: 250px;
    padding: 5px 0;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--dark-bg);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero-section {
    background: url('hero-800x400.png') center center / cover no-repeat;
    color: var(--secondary-color);
    height: 80vh; /* Responsive height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 138, 0.7); /* Navy Blue overlay with transparency */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.8rem;
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Section Common Styles */
section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* About Us Section */
.about-section .about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

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

.service-item {
    background-color: var(--secondary-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-item p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
}

.contact-section .section-title {
    color: var(--secondary-color);
}

.contact-section .section-title::after {
    background-color: var(--accent-color);
}

.contact-info {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.contact-info p i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-info a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 2rem;
    color: var(--secondary-color);
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Contact Form Section */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--secondary-color);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.95rem;
}

.main-footer p {
    margin-bottom: 0.5rem;
}

.main-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.main-footer a:hover {
    color: var(--secondary-color);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .navbar .nav-links {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    h2.section-title {
        font-size: 2.2rem;
    }

    .service-item {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        padding: 0.8rem 1.5rem;
    }

    .logo {
        height: 80px;
        max-width: 200px;
    }

    .hamburger {
        display: flex;
        order: 2;
        margin-left: auto; /* Push hamburger to the right */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        right: 0;
        padding: 1.5rem 0;
        display: none; /* Hidden by default */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-links a {
        color: var(--secondary-color);
        padding: 0.8rem 1rem;
        display: block;
        font-size: 1.1rem;
    }

    .nav-links a::after {
        background-color: var(--accent-color);
        left: 50%;
        transform: translateX(-50%);
        height: 2px;
        bottom: -5px;
    }

    .nav-links a:hover {
        color: var(--accent-color);
    }

    .nav-links .btn-primary {
        margin-top: 1rem;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        background-color: var(--accent-color);
        color: var(--primary-color);
    }

    .hero-section {
        height: 70vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info p, .social-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .contact-info p i {
        align-self: flex-start;
        margin-right: 0.5rem;
    }

    .contact-info p {
        align-items: flex-start;
        text-align: left;
    }

    .form-section .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 70px;
        max-width: 180px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    h2.section-title {
        font-size: 1.8rem;
    }

    .service-icon {
        font-size: 3rem;
    }
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Keyframe for mobile nav dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
