/* ========================================
   Promise Bio Frontier Grant Landing Page
   Modern, Sleek Design with Brand Colors
   Dynamic Scroll Animations
   ======================================== */

/* CSS Custom Properties - Promise Bio Palette */
:root {
    /* Brand Colors */
    --color-navy: #101026;
    --color-navy-light: #1A1A36;
    --color-cyan: #5FD9D0;
    --color-cyan-light: #7FE3DC;
    --color-coral: #FF7676;
    --color-coral-light: #FF9999;
    --color-yellow: #FFD166;
    --color-purple: #9D84B7;
    --color-gray: #8B92A8;
    --color-gray-light: #C4C9D8;
    --color-gray-bg: #F5F6F9;
    --color-white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-coral) 0%, var(--color-yellow) 100%);
    --gradient-dark: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(30, 33, 64, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 33, 64, 0.12);
    --shadow-lg: 0 8px 32px rgba(30, 33, 64, 0.16);
    --shadow-xl: 0 16px 48px rgba(30, 33, 64, 0.2);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Scroll Animation Variables */
    --scroll-progress: 0;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

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

body {
    font-family: var(--font-primary);
    color: var(--color-navy);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-navy);
}

strong {
    color: var(--color-navy);
    font-weight: 600;
}

a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-cyan-light);
}

ul {
    list-style: none;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--spacing-md);
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--color-navy);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    background: var(--color-gray-bg);
    color: var(--color-cyan);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-navy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-navy);
    border: 2px solid var(--color-cyan);
}

.btn-secondary:hover {
    background: var(--color-cyan);
    color: var(--color-white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    color: var(--color-white);
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.floating-diamonds {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, var(--color-cyan) 2px, transparent 2px),
        radial-gradient(circle, var(--color-coral) 2px, transparent 2px),
        radial-gradient(circle, var(--color-gray) 3px, transparent 3px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    background-position: 0 0, 50px 50px, 100px 100px;
    opacity: 0.1;
    animation: float 60s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-cyan);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.highlight-cyan {
    color: var(--color-cyan) !important;
    -webkit-text-fill-color: var(--color-cyan);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-cyan);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-visual {
    position: relative;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-xl);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    color: var(--color-white);
}

.card-icon {
    font-size: 1.5rem;
}

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.focus-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.focus-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-cyan);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-cyan);
    border-bottom: 2px solid var(--color-cyan);
    transform: rotate(45deg);
    margin: 0.5rem auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header.center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(95, 217, 208, 0.1) 0%, rgba(157, 132, 183, 0.1) 100%);
    color: var(--color-cyan);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-navy);
    max-width: 700px;
}

/* ========================================
   About Section
   ======================================== */

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

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.about-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.card-icon-wrapper.cyan {
    background: linear-gradient(135deg, rgba(95, 217, 208, 0.2) 0%, rgba(95, 217, 208, 0.05) 100%);
    color: var(--color-cyan);
}

.card-icon-wrapper.coral {
    background: linear-gradient(135deg, rgba(255, 118, 118, 0.2) 0%, rgba(255, 118, 118, 0.05) 100%);
    color: var(--color-coral);
}

.card-icon-wrapper.yellow {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.2) 0%, rgba(255, 209, 102, 0.05) 100%);
    color: var(--color-yellow);
}

.about-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-navy);
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.benefit-card {
    position: relative;
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(95, 217, 208, 0.1);
    transition: var(--transition-base);
    overflow: hidden;
}

.benefit-card::before {
    content: attr(data-number);
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(95, 217, 208, 0.05);
    z-index: 0;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-cyan);
}

.benefit-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.benefit-icon.cyan {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.benefit-icon.coral {
    background: var(--gradient-secondary);
    color: var(--color-white);
}

.benefit-icon.yellow {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-coral) 100%);
    color: var(--color-white);
}

.benefit-icon.purple {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-cyan) 100%);
    color: var(--color-white);
}

.benefit-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.benefit-card p {
    position: relative;
    z-index: 1;
    margin-bottom: var(--spacing-md);
}

.benefit-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--color-navy);
    font-size: 0.9rem;
}

.benefit-features li::before {
    content: '→';
    color: var(--color-cyan);
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   Timeline Section
   ======================================== */

.timeline-section {
    background: var(--gradient-dark);
    color: var(--color-white);
}

.timeline-section .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.timeline-section .section-title {
    color: var(--color-white);
}

.timeline {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-purple) 100%);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 1;
}

.timeline-item .timeline-content {
    text-align: center;
}

.timeline-marker {
    display: none !important;
    position: relative;
    width: 20px;
    height: 20px;
    background: var(--color-cyan);
    border: 4px solid var(--color-navy);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-date {
    color: var(--color-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.timeline-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* ========================================
   FAQ Section
   ======================================== */

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

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
    transition: var(--transition-base);
}

.faq-question:hover {
    color: var(--color-cyan);
}

.faq-icon {
    flex-shrink: 0;
    transition: var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer > * {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.faq-answer ul, .faq-answer ol {
    padding-left: calc(var(--spacing-md) + 1.5rem);
    list-style: disc;
    color: var(--color-navy);
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* ========================================
   Application Form Section
   ======================================== */

.apply-section {
    background: var(--gradient-dark);
    color: var(--color-white);
}

.apply-section .section-title {
    color: var(--color-white);
}

.apply-section .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.apply-email {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

.apply-email a {
    color: var(--color-cyan);
    font-weight: 600;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.apply-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: var(--spacing-md);
}

.apply-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.apply-benefit svg {
    color: var(--color-cyan);
    flex-shrink: 0;
}

.apply-form-container {
    position: relative;
}

.apply-form {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--color-navy);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(95, 217, 208, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--color-coral);
}

.error-message {
    display: none;
    color: var(--color-coral);
    font-size: 0.875rem;
}

.form-group.error .error-message {
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-note {
    grid-column: 1 / -1;
    font-size: 0.875rem;
    color: var(--color-navy);
    text-align: center;
    margin: 0;
}

.form-success {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.success-icon {
    margin-bottom: var(--spacing-md);
}

.form-success h3 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 1.75rem;
}

.form-success .success-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-success p {
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
}

.form-success .success-quote {
    background: linear-gradient(135deg, rgba(95, 217, 208, 0.1) 0%, rgba(157, 132, 183, 0.1) 100%);
    border-left: 4px solid var(--color-cyan);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.form-success .success-quote p {
    font-style: italic;
    color: var(--color-navy);
    font-size: 1.1rem;
    margin: 0;
}

.form-success .success-message-main {
    color: var(--color-navy);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.form-success .success-id {
    color: var(--color-navy);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.form-success .success-next-steps {
    text-align: left;
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: var(--color-gray-bg);
    border-radius: var(--radius-lg);
}

.form-success .success-next-steps h4 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.form-success .success-next-steps ul {
    list-style: none;
    padding: 0;
}

.form-success .success-next-steps li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray);
}

.form-success .success-next-steps .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.form-success .success-note {
    font-size: 0.875rem;
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.form-success .next-step-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--color-navy);
}

.form-success .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-cyan);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-cyan);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-cyan);
    padding-left: 0.5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.visible {
    display: flex;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .apply-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0.75rem var(--spacing-sm);
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-gray-bg);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-links .btn {
        margin-top: var(--spacing-md);
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-container {
        gap: var(--spacing-md);
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .gradient-text {
        white-space: normal;
        display: block;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Timeline - Stack vertically on mobile */
    .timeline {
        flex-direction: column;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg) 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        text-align: left;
    }

    .timeline-content {
        padding: var(--spacing-md);
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-description {
        font-size: 0.875rem;
    }

    /* Apply Section */
    .apply-form {
        grid-template-columns: 1fr;
    }

    .btn-large {
        padding: 1rem;
        font-size: 1rem;
    }

    /* FAQ */
    .faq-item {
        padding: var(--spacing-md);
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    /* Visual Cards */
    .visual-card {
        padding: var(--spacing-md);
    }

    .visual-icon {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 1rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 0 2rem;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .timeline {
        gap: var(--spacing-md);
    }

    .benefit-card,
    .about-card,
    .visual-card {
        padding: var(--spacing-md);
    }
}

/* ========================================
   Animations & Transitions
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Scroll Progress Indicator
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--color-cyan), 0 0 20px rgba(95, 217, 208, 0.5);
}

/* ========================================
   Scroll-Linked Parallax Effects
   ======================================== */

.parallax-container {
    perspective: 1000px;
    perspective-origin: center;
}

/* Continuous scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.reveal-left {
    transform: translateX(-80px) translateY(0);
}

.scroll-reveal.reveal-left.revealed {
    transform: translateX(0) translateY(0);
}

.scroll-reveal.reveal-right {
    transform: translateX(80px) translateY(0);
}

.scroll-reveal.reveal-right.revealed {
    transform: translateX(0) translateY(0);
}

.scroll-reveal.reveal-scale {
    transform: scale(0.8);
}

.scroll-reveal.reveal-scale.revealed {
    transform: scale(1);
}

/* Staggered reveal delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ========================================
   Enhanced Hero Parallax
   ======================================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    transition: transform 0.1s ease-out;
}

.hero-visual {
    transition: transform 0.1s ease-out;
}

.hero-parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-parallax-layer.layer-1 {
    z-index: 1;
}

.hero-parallax-layer.layer-2 {
    z-index: 2;
}

/* ========================================
   Floating Elements Enhanced
   ======================================== */

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

@keyframes floatOrbit {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -15px) rotate(90deg); }
    50% { transform: translate(0, -30px) rotate(180deg); }
    75% { transform: translate(-15px, -15px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: var(--opacity, 0.3);
    }
    50% {
        transform: scale(1.2);
        opacity: calc(var(--opacity, 0.3) * 1.5);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.floating-element {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.floating-element.float-slow {
    animation: floatUpDown 8s ease-in-out infinite;
}

.floating-element.float-medium {
    animation: floatUpDown 5s ease-in-out infinite;
}

.floating-element.float-fast {
    animation: floatOrbit 12s linear infinite;
}

/* ========================================
   Section Reveal Animations
   ======================================== */

.section-header {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-badge {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.section-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* ========================================
   Card Hover & Scroll Effects
   ======================================== */

.about-card,
.benefit-card {
    position: relative;
    overflow: hidden;
}

.about-card::before,
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(95, 217, 208, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.about-card:hover::before,
.benefit-card:hover::before {
    left: 100%;
}

/* 3D tilt effect on hover */
.card-3d-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d-hover:hover {
    box-shadow:
        0 25px 50px -12px rgba(30, 33, 64, 0.25),
        0 0 0 1px rgba(95, 217, 208, 0.1);
}

/* ========================================
   Timeline Scroll Animation
   ======================================== */

.timeline::before {
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.5s ease-out;
}

.timeline.animate-line::before {
    transform: scaleY(1);
}

.timeline-item {
    opacity: 0;
}

.timeline-item.visible {
    opacity: 1;
}

.timeline-marker {
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.visible .timeline-marker {
    transform: scale(1);
}

.timeline-content {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:nth-child(even) .timeline-content {
    transform: translateX(-30px);
}

.timeline-item.visible .timeline-content {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   Form Success Celebration Animation
   ======================================== */

.form-success {
    position: relative;
    overflow: hidden;
}

.success-celebration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes checkmark-draw {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes circle-grow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success.celebrating {
    animation: success-pulse 2s ease-in-out infinite;
}

.form-success .success-icon svg circle {
    animation: circle-grow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.form-success .success-icon svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark-draw 0.8s ease-out 0.4s forwards;
}

.form-success h3 {
    animation: text-reveal 0.6s ease-out 0.6s backwards;
}

.form-success .success-message {
    animation: text-reveal 0.6s ease-out 0.8s backwards;
}

.form-success .success-cta {
    animation: text-reveal 0.6s ease-out 1s backwards;
}

/* Molecule/DNA floating particles for celebration */
.celebration-particle {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.celebration-particle.molecule {
    width: 12px;
    height: 12px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-cyan);
}

.celebration-particle.helix {
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ========================================
   Scroll-Triggered Number Counter
   ======================================== */

.stat-value {
    position: relative;
    display: inline-block;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.8s ease-out;
}

.stat-value.counted::after {
    width: 100%;
}

/* ========================================
   Button Ripple Effect
   ======================================== */

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   Smooth Section Transitions
   ======================================== */

section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, transparent);
    pointer-events: none;
}

/* ========================================
   Enhanced FAQ Animations
   ======================================== */

.faq-item {
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item:hover {
    transform: translateX(8px);
}

.faq-answer {
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   Magnetic Cursor Effect (hover areas)
   ======================================== */

.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   Loading Skeleton Animation
   ======================================== */

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-gray-bg) 25%,
        var(--color-gray-light) 50%,
        var(--color-gray-bg) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* ========================================
   Glow Effects
   ======================================== */

.glow-cyan {
    box-shadow: 0 0 20px rgba(95, 217, 208, 0.3),
                0 0 40px rgba(95, 217, 208, 0.2),
                0 0 60px rgba(95, 217, 208, 0.1);
}

.glow-coral {
    box-shadow: 0 0 20px rgba(255, 118, 118, 0.3),
                0 0 40px rgba(255, 118, 118, 0.2),
                0 0 60px rgba(255, 118, 118, 0.1);
}

/* Text glow for emphasis */
.text-glow {
    text-shadow: 0 0 20px rgba(95, 217, 208, 0.5),
                 0 0 40px rgba(95, 217, 208, 0.3);
}

/* ========================================
   Accessibility
   ======================================== */

:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .navbar,
    .hero-visual,
    .scroll-indicator,
    .back-to-top,
    .apply-section {
        display: none;
    }

    body {
        color: #000;
    }
}
