:root {
    --primary-blue: #1e3a8a;
    --light-beige: #f5f1e6;
    --accent-red: #ad2e24;
    --dark: #0c120c;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-beige);
    color: var(--primary-blue);
    /* Changed from --dark to primary blue as requested */
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    /* Light Poppins */
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.section-padding {
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    /* Remove 'left: 50%' transform hack, use margin auto directly if block, or text-align center on parent */
    display: block;
    /* Ensure it takes full width to center text */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-family: var(--font-body);
    font-weight: 300;
    /* Light */
    font-size: 1.1rem;
    margin-bottom: 3rem;
    margin-top: -2rem;
    /* Pull closer to title */
    opacity: 0.8;
}

.highlight {
    color: var(--accent-red);
}

/* Glassmorphism */
.glass-header,
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    /* Subtle shadow based on blue */
    border-radius: 16px;
}

/* Header Custom */
.custom-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    background-color: var(--glass-bg);
    /* Light beige with opacity */
    backdrop-filter: blur(15px);
    /* Blurred background */
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: auto;
    padding: 0 10px;
    height: 40px;
    background-color: var(--primary-blue);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* Rounded square */
}

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

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
    /* Push nav to the right */
    margin-right: 3rem;
    /* Space before button */
}

.nav-links li a {
    color: #64748b;
    /* Slate grey for links */
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-links li a:hover {
    color: var(--primary-blue);
}

/* Header Button */
.btn-header {
    background: var(--primary-blue);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    /* Matching logo rounded corners */
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-header:hover {
    background: #152c6b;
    color: white;
}

/* Base Buttons */
.btn-primary,
.btn-cta,
.btn-submit {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background: #152c6b;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-cta {
    background: var(--accent-red);
    color: white;
    font-size: 1.1rem;
    margin-top: 2rem;
    border-radius: 5px;
    /* Square with small radius as requested */
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(173, 46, 36, 0.4);
    color: white;
    /* Ensure text stays white */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    /* Specific ratio for desktop */
    align-items: center;
    padding: 120px 5% 5rem;
    gap: 4rem;
    position: relative;
    overflow: hidden;
    text-align: left;
    /* Reset text align for grid */
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        order: 2;
        /* Content below visual on mobile */
    }

    .hero-visual {
        order: 1;
        /* Visual above content on mobile */
        min-height: 350px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-content {
    z-index: 2;
    padding: 0;
    max-width: none;
    /* Let grid handle width */
}

.hero h1 {
    font-size: 4rem;
    /* ~72px */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-animation {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Blooming Flower Styles */
.flower-svg {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
}

.flower-sway {
    transform-origin: 100px 280px;
    /* Base of the stem */
    animation: wind-sway 4s ease-in-out infinite;
}

@keyframes wind-sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    50% {
        transform: rotate(-1.5deg);
    }

    75% {
        transform: rotate(1deg);
    }
}

.leaf {
    transform-origin: center;
    animation: leaf-flutter 3s ease-in-out infinite;
}

.leaf-left {
    animation-delay: 0.2s;
}

.leaf-right {
    animation-delay: 0.5s;
}

@keyframes leaf-flutter {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(3deg) scale(1.02);
    }
}

.petal {
    transform-origin: center;
    animation: petal-breathe 5s ease-in-out infinite;
}

.petal:nth-child(1) {
    animation-delay: 0s;
}

.petal:nth-child(2) {
    animation-delay: 0.3s;
}

.petal:nth-child(3) {
    animation-delay: 0.6s;
}

.petal:nth-child(4) {
    animation-delay: 0.9s;
}

.petal:nth-child(5) {
    animation-delay: 1.2s;
}

@keyframes petal-breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.95;
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    /* Limit line length for readability */
    margin-left: 0;
    /* Align left */
}

/* Vision */
.vision-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Philosophy */
.philosophy {
    background-color: white;
    /* Clean spacing */
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-card {
    text-align: center;
    /* Center content as requested */
    padding: 2rem;
}

.philosophy-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.philosophy-card p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Abstract Background Shape */
.hero-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, rgba(245, 241, 230, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Services */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

/* Card Styles */
.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    /* Slightly smaller for 'Flat' look */
}

.btn-card {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 2px;
}

.btn-card::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.btn-card:hover::after {
    margin-left: 10px;
}

.btn-card:hover {
    color: var(--accent-red);
}

/* About */
.about {
    background-color: #ede9de;
    /* Slightly darker beige for contrast */
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact */
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.4;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.form-container,
.calendly-container {
    padding: 2.5rem;
}

.form-container h2,
.calendly-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Form Styles */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(12, 18, 12, 0.1);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
}

.btn-submit {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    font-size: 1rem;
}

.btn-submit:hover {
    background: #152c6b;
}

.status-msg {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Testimonials Slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.slider-container::before,
.slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--light-beige), transparent);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--light-beige), transparent);
}

.slider-track {
    display: flex;
    gap: 2rem;
    width: calc(350px * 12 + 2rem * 12);
    /* 350px card width * 12 items + gaps */
    animation: scroll 40s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 6 - 2rem * 6));
    }

    /* Scroll by half the total width (6 items) */
}

.testimonial-card {
    width: 350px;
    flex-shrink: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.testimonial-card .stars {
    color: #fbbf24;
    /* Amber/Gold for stars */
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.testimonial-card .author strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1rem;
}

.testimonial-card .author span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Founder Word Section */
.founder-word {
    background-color: var(--primary-blue);
    color: var(--light-beige);
    text-align: center;
}

.founder-title {
    color: var(--light-beige);
    /* Override default blue heading color */
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.founder-quote {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto;
}

/* Base Buttons */
@media screen and (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        gap: 3rem;
    }

    .hero-content {
        order: 1;
        padding: 0 1rem;
    }

    .hero-visual {
        order: 2;
        min-height: 300px;
    }

    .abstract-blob {
        height: 300px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--light-beige);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}