/* ---------------------------------------------------
   Global Design Tokens and Modern Theme
   --------------------------------------------------- */
:root {
    /* Primary brand colors */
    --primary: #204ECF;
    /* Royal Blue */
    --primary-light: #85A5F2;
    /* Cornflower Blue */
    --primary-dark: #1A3CAF;
    /* Deep Royal */

    /* Accent colors */
    --accent: #EA9836;
    /* Goldenrod */
    --accent-light: #EEB1D2;
    /* Light Orchid */
    --accent-dark: #F26749;
    /* Tomato */

    /* Neutral palette */
    --bg: #FCDED6;
    /* Seashell */
    --surface: #ffffff;
    /* Card / surface background */
    --surface-warm: #fdf3f0;
    /* Lighter Seashell for cards */
    --text: #1a2238;
    /* Dark contrast text */
    --ink: #1a2238;
    /* Alias for text */

    /* Sleek Bubble Properties */
    --radius-bubbly: 40px;
    --radius-pill: 50px;
    --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glass-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-glass: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dark mode – automatically switches when the OS prefers it */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #112240;
        --surface: #1a2e5c;
        --surface-warm: #203a70;
        --text: #FCDED6;
        --ink: #FCDED6;
        --border-glass: 1px solid rgba(255, 255, 255, 0.1);
        --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-glass-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
    }
}

/* ---------------------------------------------------
   Global Resets & Base Styles
   --------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ---------------------------------------------------
   Navigation – Sleek Bubble Header
   --------------------------------------------------- */
#main-nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    padding: 15px 35px;
    border-radius: var(--radius-pill);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links a {
    color: var(--primary);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------
   Hero Section – Bold Typography & Subtle Animation
   --------------------------------------------------- */
.hero-header {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.2) brightness(1.1);
    transform: scale(1.02);
    transition: transform 12s ease-out;
}

.hero-header:hover .hero-image {
    transform: scale(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--primary);
    /* Solid color instead of gradient */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Clean text shadow */
    animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    opacity: 0;
    text-transform: uppercase;
    font-family: var(--font-body);
    color: #ffffff;
    animation: fadeUp 0.8s 0.3s ease forwards;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

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

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* ---------------------------------------------------
   Hero Buttons Wrapper & Secondary Button
   --------------------------------------------------- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.hero-buttons .cta-button {
    margin-top: 0;
}

/* ---------------------------------------------------
   CTA Button – Bubbly Popped Button
   --------------------------------------------------- */
.cta-button {
    display: inline-block;
    margin-top: 35px;
    padding: 18px 48px;
    background: var(--primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeUp 0.8s 0.6s ease forwards;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: var(--primary-dark);
    color: #ffffff;
}

.cta-button:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass);
}

.cta-button.secondary-btn {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-button.secondary-btn:hover {
    background: var(--primary-dark);
}

/* ---------------------------------------------------
   Content Sections – Bubbly Popped Cards
   --------------------------------------------------- */
.content-section {
    max-width: 1100px;
    margin: -60px auto 100px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--ink);
    padding: 60px;
    border-radius: var(--radius-bubbly);
    position: relative;
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass-hover);
}

/* ---------------------------------------------------
   Pillars – Bubbly Blocks
   --------------------------------------------------- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.pillar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 30px;
    border-radius: var(--radius-bubbly);
    text-align: center;
    position: relative;
    border: var(--border-glass);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-shadow: var(--shadow-glass);
}

.pillar:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glass-hover);
    background: rgba(255, 255, 255, 0.2);
}

.pillar-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.pillar:hover .pillar-icon {
    transform: scale(1.1) rotate(3deg);
}

.pillar h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.pillar p {
    color: var(--text);
    font-size: 1.05rem;
}

/* ---------------------------------------------------
   Feature Cards – Bubbly Blocks
   --------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: rgba(32, 78, 207, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 35px 25px;
    border-radius: var(--radius-bubbly);
    text-align: center;
    position: relative;
    border: var(--border-glass);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-glass);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glass-hover);
    background: rgba(32, 78, 207, 0.2);
}

.feature-card h4 {
    color: var(--surface);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.feature-card.full-span {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    background: rgba(234, 152, 54, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    border-radius: var(--radius-bubbly);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.feature-card.full-span:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass-hover);
    background: rgba(234, 152, 54, 0.25);
}

.feature-card.full-span h4 {
    font-size: 2rem;
    color: var(--surface);
    margin: 0;
}

.feature-card.full-span p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 600;
}

/* ---------------------------------------------------
   Stats Section – Bubbly Block
   --------------------------------------------------- */
.stats-section {
    position: relative;
    background: rgba(26, 60, 175, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 70px 40px;
    border-radius: var(--radius-bubbly);
    margin: 80px 0;
    text-align: center;
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.stats-section h3 {
    font-size: 2.2rem;
    color: var(--surface);
    margin-bottom: 10px;
}

.stats-subtitle {
    font-size: 1rem;
    color: var(--surface);
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1px));
    gap: 40px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    /* Solid flat color */
    font-family: var(--font-heading);
    text-shadow: 3px 3px 0 var(--text);
}

.stat-label {
    font-size: 1rem;
    color: var(--surface);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ---------------------------------------------------
   Footer – Bubbly Corporate
   --------------------------------------------------- */
footer {
    text-align: center;
    padding: 60px;
    background: var(--primary-dark);
    color: var(--surface);
    border-top: var(--border-thick);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ---------------------------------------------------
   Responsive Adjustments
   --------------------------------------------------- */
/* ---------------------------------------------------
   Responsive Adjustments – Tablet & Mobile
   --------------------------------------------------- */
@media (max-width: 1199px) {

    /* General container padding */
    .content-section,
    .hero-header,
    .glass-nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        max-width: 95%;
    }

    /* Hero stays full-screen on tablets */
    .hero-header {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    /* Grid adjustments */
    .pillars-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    /* Nav links tighter */
    .nav-links a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .feature-card.full-span {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 30px;
    }
}

/* Phone */
@media (max-width: 767px) {

    .glass-nav,
    .nav-links {
        display: block;
    }

    .nav-links a {
        display: block;
        margin: 8px 0;
        text-align: center;
    }

    .hero-header {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        text-align: center;
    }

    .hero-buttons {
        margin-top: 2rem;
        gap: 15px;
    }

    .hero-buttons .cta-button {
        margin-top: 0;
    }

    .cta-button {
        /* Remove width: 100% so the button doesn't stretch weirdly */
        width: auto;
        display: inline-block;
        margin-top: 2rem;
        padding: 14px 32px;
        font-size: 1rem;
    }

    .card {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    body {
        font-size: 0.95rem;
    }

    footer {
        padding: 2rem 1rem;
        font-size: 0.8rem;
    }
}

/* ---------------------------------------------------
   Utility Classes (optional)
   --------------------------------------------------- */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}