/* General Styling */
:root {
    --primary-color: #4F86F7; /* Blue */
    --secondary-color: #6C5CE7; /* Purple */
    --accent-color: #2EC4B6; /* Teal for hover/active */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-color: #F9F9F9;
    --card-background: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.08);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5em;
}

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

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.btn-hero {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    font-size: 1.1em;
    padding: 15px 35px;
    border-radius: 40px;
}

.btn-hero:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.btn-nav {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn-nav:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.section-padding {
    padding: 80px 0;
}

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

.section-title {
    margin-bottom: 1.5em;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3em;
    font-size: 1.1em;
    color: #666;
}

/* Header & Navigation */
.main-header {
    background-color: var(--card-background);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    max-height: 150px; /* As per requirement */
    width: auto;
    display: block;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05em;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav ul li a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.desktop-nav ul li a:not(.btn):hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-nav-toggle:hover {
    transform: scale(1.1);
}

.mobile-nav {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    text-align: center;
    background: url('hero-800x400.png') no-repeat center center/cover;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Light overlay */
    z-index: 1;
}

.hero-section .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5em;
    margin-bottom: 0.2em;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-tagline {
    font-size: 1.8em;
    margin-bottom: 1.5em;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* About Us Section */
.about-section p {
    max-width: 900px;
    margin: 0 auto 1em;
    text-align: center;
    font-size: 1.1em;
}

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

.service-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-item p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin-top: 30px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info p i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.3em;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    font-size: 1.8em;
    color: var(--primary-color);
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Form Section */
.form-section form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-heading);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.form-section .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 30px 0;
    font-size: 0.95em;
}

footer p {
    margin-bottom: 5px;
}

footer a {
    color: var(--light-text-color);
    text-decoration: underline;
}

footer a:hover {
    color: var(--accent-color);
}

/* Accessibility: No scroll when mobile menu is active */
body.no-scroll {
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--card-background);
        box-shadow: -5px 0 15px var(--shadow-color);
        padding-top: 100px; /* Space for header */
        transition: right 0.4s ease-in-out;
        display: block; /* Make it block to slide in */
        z-index: 999;
        overflow-y: auto;
    }

    .mobile-nav.active {
        right: 0; /* Slide in */
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .mobile-nav ul li {
        margin-bottom: 25px;
    }

    .mobile-nav ul li a {
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--text-color);
        font-size: 1.4em;
        display: block;
        padding: 10px 0;
    }

    .mobile-nav ul li a:hover {
        color: var(--primary-color);
    }

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

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

    h2 {
        font-size: 2em;
    }

    .section-padding {
        padding: 60px 0;
    }

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

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }

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

    .hero-tagline {
        font-size: 1.2em;
    }

    .btn-hero {
        font-size: 1em;
        padding: 12px 30px;
    }

    h2 {
        font-size: 1.8em;
    }

    .form-section form {
        padding: 30px;
    }

    .contact-info p {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info p i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .main-header .logo img {
        max-height: 100px; /* Adjust logo size for smaller screens */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        height: 70vh;
    }

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

    .hero-tagline {
        font-size: 1em;
    }

    h2 {
        font-size: 1.6em;
    }

    .section-padding {
        padding: 40px 0;
    }

    .form-section form {
        padding: 20px;
    }
}
