:root {
    --primary-color: #2a9d8f;
    --secondary-color: #264653;
    --background-color: #f8f9fa;
    --text-color: #333;
    --white-color: #ffffff;
    --light-gray-color: #e9ecef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust for fixed header */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(38, 70, 83, 0.95); /* --secondary-color with opacity */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header.scrolled .logo {
    color: var(--white-color);
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.header.scrolled .nav-link {
    color: var(--white-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white-color);
}

.header.scrolled .bar {
    background-color: var(--white-color);
}

/* Hero Section */
.hero-section {
    background: transparent;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #248a7f;
    transform: translateY(-2px);
}

/* General Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--white-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Solutions Section */
#solutions {
    background-color: transparent;
    border-radius: 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.solution-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* About Section */
.about-section {
    background-color: transparent;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background-color: rgba(38, 70, 83, 0.6);
    padding: 30px;
    border-radius: 10px;
}

/* Contact Section */
#contact {
    background-color: transparent;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-section p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: center;
    border: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: left 0.3s ease-out;
        padding-top: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-link,
    .header.scrolled .nav-link {
        color: var(--secondary-color);
        font-size: 1.5rem;
    }

    .nav-link::after {
        background-color: transparent; /* Disable underline on mobile nav */
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
}