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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Blush & Navy Theme */
  --bg: #fff5f5; /* Light blush pink background */
  --text: #1a1a2e; /* Navy blue text */
  --text-muted: #4a4a6a;
  --accent: #000080; /* Navy accent */
  --accent-soft: #e6e6fa;
  --white: #ffffff;

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.05);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.1);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 15px; /* Compact text */
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

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

/* === PAGE LAYOUT: Centered Floating Content === */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #fffafa 0%, #fff5f5 100%);
    z-index: -1;
}

.main-content {
    max-width: 1200px;
    margin: 40px auto;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* === NAVIGATION: Hidden Until Scroll Pill === */
.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 10px 30px;
    border-radius: var(--radius-pill);
    z-index: 1000;
    display: flex;
    gap: 24px;
    box-shadow: var(--shadow-glass);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-pill.visible {
    transform: translateX(-50%) translateY(0);
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    position: relative;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* === HERO: Stacked & Radial Gradient === */
.hero-section {
    padding: 100px 20px;
    text-align: center;
    background: radial-gradient(circle at center, #fff5f5 0%, #ffe4e4 40%, #f0f0ff 70%, #fff5f5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.hero-heading {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    max-width: 900px;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    color: var(--text-muted);
}

/* === CTA STYLE: Underline === */
.cta-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent);
}

.cta-link:hover {
    color: var(--accent);
    border-bottom-color: transparent;
}

/* === SECTION DIVIDERS === */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.divider-line {
    flex-grow: 1;
    border-top: 2px dashed var(--accent-soft);
}

.divider-icon {
    color: var(--accent-soft);
    font-size: 20px;
}

/* === ZIGZAG ALTERNATING SECTIONS === */
.split-section {
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    gap: 40px;
}

@media (min-width: 768px) {
    .split-section {
        flex-direction: row;
        align-items: center;
    }
    .split-section.odd { flex-direction: row; }
    .split-section.even { flex-direction: row-reverse; }

    .split-image { width: 55%; }
    .split-content { width: 45%; padding: 0 40px; }
}

/* === GRADIENT GLOW BORDER === */
.glow-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: -2px; bottom: -2px; left: -2px; right: -2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(45deg, #ffc0cb, #000080, #ffc0cb);
    background-size: 200% 200%;
    animation: glow-animation 5s linear infinite;
}

@keyframes glow-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* === MASONRY GRID (CSS Columns) === */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
    padding: 40px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (min-width: 600px) { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }

/* === INTERACTIVE TIMELINE === */
.timeline-container {
    padding: 60px 40px;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--accent-soft);
    transform: translateY(-50%);
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.timeline-node {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-node.active {
    transform: scale(1.5);
    background: var(--accent);
}

.timeline-content-panel {
    margin-top: 40px;
    min-height: 200px;
    padding: 30px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
}

/* === COMPARISON SECTION === */
.comparison-container {
    padding: 60px 40px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comp-column {
    padding: 30px;
    border-radius: var(--radius-md);
}

.comp-us {
    background: var(--accent);
    color: var(--white);
}

.comp-them {
    background: var(--accent-soft);
}

.comp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--accent);
    display: block;
}

/* === FOOTER: Glassmorphism === */
footer {
    background: rgba(255, 245, 245, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 80px 40px 40px;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,128,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 20px 40px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a:hover { color: var(--accent); }

/* === NEWSLETTER === */
.newsletter-section {
    padding: 80px 40px;
    text-align: center;
    background: var(--accent-soft);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    gap: 10px;
}

.newsletter-input {
    flex-grow: 1;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-soft);
    font-family: var(--font-body);
}

.newsletter-btn {
    background: var(--accent);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    cursor: pointer;
}

/* === MOBILE NAV TOGGLE === */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 767px) {
    .mobile-toggle { display: flex; }
    .nav-pill {
        flex-direction: column;
        width: 80%;
        top: 80px;
        transform: translateX(-50%) translateY(-200%);
        padding: 40px;
    }
    .nav-pill.mobile-active {
        transform: translateX(-50%) translateY(0);
    }
    .split-image { width: 100%; order: -1; }
    .split-content { width: 100%; }
}

/* Sidebar for Inner Pages */
.inner-layout {
    display: flex;
    flex-direction: column;
    padding: 40px;
}

@media (min-width: 1024px) {
    .inner-layout {
        flex-direction: row;
        gap: 60px;
    }
    .inner-main { flex: 1; }
    .inner-sidebar { width: 300px; }
}

.sidebar-box {
    background: var(--accent-soft);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
