/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0d47a1; /* Deep Blue */
    --secondary-color: #1565c0; /* Bright Blue */
    --accent-color: #ff8f00; /* Amber for CTAs */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
}

/* --- Basic Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden; /* <-- THIS IS THE FIX */
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Shared Components: Header, Footer, Buttons --- */
.main-header, .main-footer {
    padding: 1rem 0;
    color: var(--white);
}

.main-header {
    background-color: var(--white);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: none; /* Hidden on mobile by default */
    flex-direction: column;
    position: absolute;
    top: 70px; /* Header height */
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

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

.nav-links li {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.nav-links li a {
    color: var(--primary-color);
    font-weight: 500;
}

.hamburger-menu {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    padding-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 0.8rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section li a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e67e22;
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Page Specific Styles --- */

/* Hero Section */
.hero {
    background: linear-gradient(rgba(13, 71, 161, 0.7), rgba(13, 71, 161, 0.7)), url('https://images.pexels.com/photos/3760067/pexels-photo-3760067.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Sections & Cards */
.section {
    padding: 4rem 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.card img {
    max-width: 80px;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

/* Service Page */
.product-feature {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Contact Page */
.contact-form {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

/* Generic Content Page (About, Privacy, Terms) */
.content-page {
    padding: 4rem 0;
}

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    margin-bottom: 2rem;
}

/* --- Media Queries for Responsiveness --- */

/* Tablet */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }

    .hamburger-menu {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        width: auto;
    }

    .nav-links li {
        padding: 0 1rem;
        border: none;
    }

    .nav-links li a:hover {
        color: var(--accent-color);
        text-decoration: none;
    }
    
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .grid-layout {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
}