/* --- Global Styles & Variables --- */
:root {
    --dark-bg: #212535;
    --card-bg: #2A2E45;
    --primary-teal: #00f0c0;
    --light-text: #f0f0f0;
    --gray-text: #a0a0b0;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-teal);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

section {
    padding: 6rem 0;
}

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

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

/* --- Header & Navigation --- */
header {
    background-color: rgba(33, 37, 53, 0.95); /* Slightly less transparent */
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Added subtle shadow */
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 50px;
}

/* --- Mobile Navigation (Hamburger Menu) --- */
.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    cursor: pointer;
    padding: 10px 0;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--primary-teal);
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-cta {
    background-color: var(--primary-teal);
    color: var(--dark-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(33, 37, 53, 0.9), rgba(33, 37, 53, 0.9)), url('https://images.unsplash.com/photo-1555949963-ff9fe0c870eb?q=80&w=2070') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for fixed header */
    box-sizing: border-box; /* Ensures padding is included in height */
}

#hero h1 {
    font-size: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white); /* Ensure hero text is white */
}

.subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
    color: var(--gray-text);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-teal);
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--primary-teal);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-teal);
}

/* --- Grid & Card Layout --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-teal); /* Subtle padlock shape reference */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

/* Question mark shape integration */
#testimonials::before {
    content: '?';
    position: absolute;
    font-family: var(--font-heading);
    font-size: 30rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

#testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: var(--dark-bg);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 1.5rem auto;
    border-top: 4px solid var(--primary-teal);
}

blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-text);
    border-left: none;
    padding-left: 0;
}

cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 700;
    color: var(--light-text);
}


/* --- Contact Section --- */
#contact {
    text-align: center;
}

#contact form {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    gap: 1rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--dark-bg);
    border-radius: 5px;
    color: var(--light-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.contact-info {
    margin-top: 2rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    border-top: 1px solid var(--card-bg);
    padding: 2rem 0;
    text-align: center;
    color: var(--gray-text);
}

/* --- Responsive Design --- */
@media (max-width: 992px) { /* Adjust breakpoint for larger tablets/smaller desktops */
    .container {
        padding: 0 1.5rem; /* Slightly less padding */
    }

    h1 {
        font-size: 3.2rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    h3 {
        font-size: 1.8rem;
    }

    #hero h1 {
        font-size: 3.5rem; /* Slightly smaller on tablets */
    }
}

@media (max-width: 768px) {
    /* Header & Navigation */
    nav.container {
        flex-direction: row; /* Keep logo and hamburger on one line */
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        display: none; /* Hide navigation links by default */
        flex-direction: column;
        width: 100%;
        background-color: var(--dark-bg); /* Match header background */
        position: absolute;
        top: 80px; /* Below the header */
        left: 0;
        padding: 1rem 0;
        border-top: 1px solid var(--card-bg);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex; /* Show when active */
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }

    nav ul li a {
        padding: 0.8rem 1rem;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: flex; /* Show hamburger menu */
        z-index: 101; /* Ensure it's above other content */
    }

    /* Hero Section */
    #hero {
        height: auto; /* Adjust height dynamically */
        min-height: 70vh; /* Minimum height */
        padding: 120px 20px 60px; /* More padding top for fixed header, padding bottom */
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    /* General Sections */
    section {
        padding: 4rem 0; /* Reduced vertical padding */
    }
    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    h3 {
        font-size: 1.4rem;
    }

    /* Grid Layout */
    .grid-layout {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Contact Form */
    .form-group {
        flex-direction: column; /* Stack input fields */
        gap: 1rem;
    }

    input, textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    .container {
        padding: 0 1rem; /* Even less padding on very small screens */
    }
    #hero h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .logo-img {
        height: 40px; /* Slightly smaller logo */
    }
    nav {
        height: 70px; /* Slightly shorter header */
    }
}

/* JavaScript for Mobile Menu Toggle */
/* This part needs to go into a <script> tag in your index.html,
   preferably at the end of the <body>, just before the closing </body> tag. */
/*
document.addEventListener('DOMContentLoaded', function() {
    const menuToggle = document.querySelector('.menu-toggle');
    const navUl = document.querySelector('nav ul');

    if (menuToggle && navUl) {
        menuToggle.addEventListener('click', function() {
            navUl.classList.toggle('active');
            menuToggle.classList.toggle('open'); // Optional: for animating hamburger to X
        });
    }
});
*/
