/* ---
--- Google Fonts ---
--- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=DM+Sans:wght@400;500;700&display=swap');

/* ---
--- CSS Variables ---
--- */
:root {
    /* Fonts */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;

    /* Colors - Complementary Scheme */
    --color-bg: #e0e5ec;
    --color-primary: #4a86e8;
    --color-primary-dark: #3a6bc7;
    --color-accent: #e67e22;
    --color-accent-dark: #d35400;
    --color-text-dark: #333745;
    --color-text-light: #ffffff;
    --color-text-subtle: #5c6273;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Neomorphism Shadows */
    --shadow-light: rgba(255, 255, 255, 0.7);
    --shadow-dark: rgba(163, 177, 198, 0.6);
    --shadow-neumorphic: -10px -10px 20px var(--shadow-light), 10px 10px 20px var(--shadow-dark);
    --shadow-inset-neumorphic: inset 7px 7px 14px var(--shadow-dark), inset -7px -7px 14px var(--shadow-light);

    /* Layout */
    --container-width: 1140px;
    --header-height: 80px;
    --border-radius: 20px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---
--- Typography & Base Elements ---
--- */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ---
--- Layout & Helpers ---
--- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-text-subtle);
}

.columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.column {
    flex: 1;
    min-width: 300px;
}

.column.is-two-thirds {
    flex-basis: 66%;
}

/* ---
--- Header & Navigation ---
--- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-text-subtle);
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}

/* ---
--- Hero Section ---
--- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--color-text-light);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ---
--- Global Button Styles ---
--- */
.btn, button[type="submit"] {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-neumorphic);
    background-color: var(--color-bg);
    color: var(--color-text-dark);
}

.btn:hover, button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: -12px -12px 24px var(--shadow-light), 12px 12px 24px var(--shadow-dark);
}

.btn:active, button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-inset-neumorphic);
}

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

/* ---
--- Cards ---
--- */
.card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-neumorphic);
    transition: all var(--transition-speed) ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: -15px -15px 30px var(--shadow-light), 15px 15px 30px var(--shadow-dark);
}

.card-content {
    margin-top: 15px;
    width: 100%;
}

.card-image {
    width: 100%;
    border-radius: calc(var(--border-radius) - 5px);
    overflow: hidden;
    margin-bottom: 20px;
}
.card-image img {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover;
    object-position: center;
}

/* Specific Card Grids */
.info-cards-grid, .gallery-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card .card-icon {
    margin-bottom: 20px;
    background-color: var(--color-bg);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-inset-neumorphic);
}

.testimonial-card {
    text-align: left;
}
.testimonial-author {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-neumorphic);
}

/* ---
--- External Resources Section ---
--- */
.resources-list {
    max-width: 800px;
    margin: 0 auto;
}
.resources-list li {
    background-color: var(--color-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-neumorphic);
    transition: transform var(--transition-speed) ease;
}
.resources-list li:hover {
    transform: scale(1.02);
}
.resources-list a {
    font-weight: 500;
    font-size: 1.1rem;
}

/* ---
--- Contact Form ---
--- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px;
    border: none;
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text-dark);
    box-shadow: var(--shadow-inset-neumorphic);
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: inset 9px 9px 18px var(--shadow-dark), inset -9px -9px 18px var(--shadow-light);
}

.contact-form label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--color-text-subtle);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -25px;
    left: 10px;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.contact-form button[type="submit"] {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
.contact-form button[type="submit"]:hover {
    background-color: var(--color-primary-dark);
}

/* ---
--- Footer ---
--- */
.site-footer {
    background-color: #d1d9e6;
    padding: 60px 0 30px 0;
    color: var(--color-text-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: var(--color-text-subtle);
}

.footer-column ul a:hover {
    color: var(--color-primary);
}

.social-links a {
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ---
--- Animation on Scroll ---
--- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---
--- Special Pages ---
--- */

/* For success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}
.success-page-container .icon {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* For privacy.html, terms.html */
.static-page-content {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}
.static-page-content h1 {
    margin-bottom: 2rem;
}
.static-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ---
--- Responsive Design ---
--- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    body {
        padding-top: var(--header-height);
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: left var(--transition-speed) ease-in-out;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: block;
    }
    
    /* Animated burger icon */
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-section { height: 80vh; }
    .hero-title { font-size: 2.5rem; }
    
    .columns-container {
        flex-direction: column;
    }
    
    .column.is-two-thirds {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .hero-title { font-size: 2rem; }
    h2 { font-size: 2rem; }
}