/* 1. CSS Variables and Base Setup */
:root {
    --primary-color: #00529B; /* A strong, professional blue */
    --primary-dark: #003d74;
    --dark-color: #1a202c; /* Dark text */
    --light-color: #ffffff;
    --bg-light: #f8f9fa; /* Light grey for sections */
    --border-color: #e2e8f0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 2. Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    overflow-x: hidden; /* Prevents horizontal scroll on animation */
}

/* 3. Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem; /* 48px */
    font-weight: 800;
    /* Height is set to allow for multi-line typing without layout shift */
    min-height: 115px; 
}

h2 {
    font-size: 2.25rem; /* 36px */
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    font-size: 1.25rem; /* 20px */
    color: var(--primary-color);
}

p {
    font-size: 1rem; /* 16px */
    color: #4a5568; /* Slightly lighter text */
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--primary-dark);
}

/* 4. Header & Navigation */
.site-header {
    background: var(--light-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.75rem; /* 28px */
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -1px;
}
.logo:hover {
    color: var(--dark-color);
}

.main-nav {
    display: none; /* Hidden on mobile */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    color: var(--dark-color);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.main-nav a.nav-cta {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: 6px;
    border-bottom: none;
}
.main-nav a.nav-cta:hover {
    background-color: var(--primary-dark);
    color: var(--light-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block; /* Shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 101; /* Above mobile nav panel */
}
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    background: var(--dark-color);
    height: 3px;
    width: 100%;
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}
.hamburger-icon {
    top: 10px;
}
.hamburger-icon::before {
    top: -8px;
}
.hamburger-icon::after {
    top: 8px;
}

/* Mobile Nav (The panel) */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--light-color);
    position: fixed; /* Use fixed for full-screen overlay feel */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 80px; /* Space for header */
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99;
}
.mobile-nav.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}
.mobile-nav ul {
    list-style: none;
}
.mobile-nav li {
    text-align: center;
}
.mobile-nav a {
    display: block;
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}
.mobile-nav a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* 5. Sections */

/* Hero Section */
#hero {
    padding: 100px 0;
    text-align: center;
}
#hero .container {
    max-width: 800px;
}
#hero h1 {
    color: var(--dark-color);
}
#hero p.subtitle {
    font-size: 1.25rem; /* 20px */
    color: #4a5568;
    margin: 20px 0 30px;
}
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Typewriter Animation */
#typewriter-heading .cursor {
    display: inline-block;
    background-color: var(--dark-color);
    width: 3px;
    animation: blink 1s infinite;
    /* Adjust vertical alignment */
    position: relative;
    top: 0.1em;
    height: 0.9em; /* Match font height */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Problem Section */
#problem {
    background-color: var(--bg-light);
}
#problem .container {
    max-width: 800px;
    text-align: center;
}

/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 30px;
}
.solution-card {
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    background: var(--light-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
}
.solution-card .icon {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 15px;
}

/* About Section */
#about {
    background-color: var(--bg-light);
}
.about-layout {
    display: flex;
    flex-direction: column; /* Mobile first */
    gap: 50px;
    align-items: center;
}
/* This is the CSS block you provided, with a placeholder image */
.about-image {
    flex: 1;
    background: #ccc;
    min-height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    /* I'm using a placeholder as I can't access 'assets/mick.png' */
    /* background-image: url(assets/mick.png); */
    background-image: url(assets/mick.png);
    background-size: cover;
    background-position: center;
    width: 100%; /* Ensure it takes full width in its flex container */
}
.about-text {
    flex: 1;
}
.about-text h3 {
    text-align: left;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.75rem;
}
.about-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.about-text li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-weight: 500;
}
.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.step {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}
.step .step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
    line-height: 1;
}
.step h3 {
    color: var(--dark-color);
}

/* CTA / Form Section */
#cta {
    background-color: var(--primary-color);
    color: var(--light-color);
}
#cta h2 {
    color: var(--light-color);
}
#cta .container {
    max-width: 800px;
    text-align: center;
}
#cta p {
    color: #e0e0e0;
    margin-bottom: 30px;
}
.hpy-form {
    background: var(--light-color);
    border-radius: 8px;
    padding: 40px;
    text-align: left;
    color: var(--dark-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group button {
    width: 100%;
}

/* 6. Footer */
.site-footer {
    background: var(--dark-color);
    color: #a0aec0;
    padding: 40px 0;
    text-align: center;
}

/* 7. Animations */

/* Fade-in-on-scroll */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* 8. Responsiveness */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem; /* 56px */
        min-height: 134px; /* Adjust height for larger font */
    }
    .menu-toggle {
        display: none; /* Hide hamburger on desktop */
    }
    .main-nav {
        display: block; /* Show desktop nav */
    }
    .solution-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-layout {
        flex-direction: row; /* Side-by-side on desktop */
    }
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    h1 {
        font-size: 4rem; /* 64px */
        min-height: 154px; /* Adjust height for larger font */
    }
}

/* Open state for hamburger menu */
.nav-open .hamburger-icon {
    transform: rotate(45deg);
    top: 10px;
}
.nav-open .hamburger-icon::before {
    transform: rotate(90deg);
    top: 0;
    opacity: 0;
}
.nav-open .hamburger-icon::after {
    transform: rotate(-90deg);
    top: 0;
}