/* Nueva School Style Theme */
:root {
    /* Colors */
    --color-primary: #0028BC;
    --color-primary-dark: #002094;
    --color-primary-light: #3352C9;
    --color-secondary: #FF9E1B;
    --color-secondary-dark: #E08000;
    --color-secondary-light: #FFBB66;
    --color-accent: #40A9FF;
    --color-success: #52C41A;
    --color-warning: #FAAD14;
    --color-error: #F5222D;
    --color-text: #1A1A1A;
    --color-text-secondary: #666666;
    --color-text-tertiary: #999999;
    --color-background: #F8FAFC;
    --color-background-light: #FFFFFF;
    --color-background-dark: #E5E7EB;
    --color-border: #D9D9D9;
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-text: 'Freight Text', Georgia, serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 1.875rem;  /* 30px */
    --font-size-3xl: 2.25rem;   /* 36px */
    --font-size-4xl: 3rem;      /* 48px */
    
    /* Font size aliases for semantic naming */
    --font-size-h1: var(--font-size-4xl);
    --font-size-h2: var(--font-size-3xl);
    --font-size-h3: var(--font-size-2xl);
    --font-size-h4: var(--font-size-xl);
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-heading: var(--line-height-tight);
    --line-height-base: var(--line-height-normal);
    
    /* Spacing */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-2xl: 2.5rem;  /* 40px */
    --spacing-3xl: 3rem;    /* 48px */
    
    /* Borders */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --border-width: 1px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Mobile-specific spacing */
    --spacing-mobile-xs: 0.25rem;
    --spacing-mobile-sm: 0.5rem;
    --spacing-mobile-md: 1rem;
    --spacing-mobile-lg: 1.5rem;
    --spacing-mobile-xl: 2rem;
    
    /* Mobile-specific font sizes */
    --font-size-mobile-h1: 2rem;
    --font-size-mobile-h2: 1.75rem;
    --font-size-mobile-h3: 1.5rem;
    --font-size-mobile-h4: 1.25rem;
    
    /* Touch targets */
    --touch-target-size: 44px;
}

/*--------------------------------------------------------------
# Reset and Base Styles
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Add smooth scrolling to the entire page */
html {
    scroll-behavior: smooth;
    font-size: 100%;  /* Ensures 1rem = 16px by default */
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-background-light);
    padding: 0;
    margin: 0;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    overflow-x: hidden;
}

/* Container class for consistent width and padding */
.container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Section container styles */
.container section {
    width: 100%;
    min-height: 80vh; /* Reduced from 100vh */
    padding: 0;
    position: relative;
    scroll-margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove margin from first section after showcase */
.container section:first-of-type {
    margin-top: 0;
}

/* Remove padding from the first section */
.container section:first-child {
    padding-top: 0;
}

/* Typography Scale */
h1, .h1 { 
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: var(--font-size-h1);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-md);
}

h2, .h2 { 
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: var(--font-size-h2);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-sm);
}

h3, .h3 { 
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: var(--font-size-h3);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-sm);
}

h4, .h4 { 
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: var(--font-size-h4);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-xs);
}

p {
    font-family: var(--font-family-text);
    margin-bottom: 1rem;
    max-width: 70ch; /* Optimal line length for readability */
}

/* Section container styles */
.container section {
    padding: var(--spacing-xl) 0;
    position: relative;
    scroll-margin-top: 80px;
}

.container section.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.container section.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Remove section dividers */
.container section:not(:last-child)::after {
    content: none; /* Remove the divider line */
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    opacity: 1;
    transform: none;
    transition: none;
}

.section-header.visible {
    opacity: 1;
    transform: none;
}

.section-header h2 {
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-family: var(--font-family-text);
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.section-description {
    font-family: var(--font-family-text);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Remove section divider styles */
.section-divider {
    position: relative;
    margin-top: 0; /* Removed margin */
    padding-bottom: 0; /* Removed padding */
}

/* Fade-in animation for content */
.fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Grid spacing standardization */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 350px));
    gap: var(--spacing-lg);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-lg);
    justify-content: center;
    max-width: calc(3 * 350px + 2 * var(--spacing-lg));
}

.examples-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
}

/* Card spacing standardization */
.example-card,
.tool-card,
.getting-started-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Animation utility classes */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-slide-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Animation delay utility classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll animations */
.scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
}

.scroll-animate.visible {
    opacity: 1;
    transform: none;
}

/*--------------------------------------------------------------
# Main Navigation Section
--------------------------------------------------------------*/
.main-nav-section {
    padding: var(--spacing-md) 0;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: -30px; /* Increased negative margin from -20px to -30px */
    margin-bottom: 0; /* Reduced from 10px to 0 */
}

.main-nav-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin: 0 auto;
}

.main-nav-item {
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    position: relative;
    border-radius: var(--border-radius);
    height: 50px;
    font-size: 1rem;
    white-space: nowrap;
    background: transparent;
}

.main-nav-item:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.main-nav-item span {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.main-nav-item:hover span {
    transform: translateY(-1px);
}

.main-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.main-nav-item:hover::after {
    width: 80%;
}

.main-nav-item i {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
    display: inline-block;
}

.main-nav-item:hover i {
    transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Safety Section
--------------------------------------------------------------*/
.safety-section {
    background-color: #ffffff;
    padding: 1rem 0;
}

.safety-content-wrapper {
    display: flex;
    gap: 6rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem; /* Increased from 2rem to 4rem */
}

.safety-image {
    flex: 0 0 65%;
}

.safety-content {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.safety-content h2 {
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #202124;
    margin-bottom: 1.5rem;
    text-align: left;
}

.safety-content .section-description {
    font-family: var(--font-family-text);
    font-size: 1.5rem;
    line-height: 1.7;
    color: #5f6368;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 90%;
}

.safety-feature-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Safety Section */
.safety-animation-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 2rem 0;
    overflow: hidden;
}

.safety-background-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* Sandbox shapes */
.sandbox-shapes {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.sandbox-shapes.animate {
    opacity: 1;
}

.sandbox-shape {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.sandbox-shape.circle {
    transition-delay: 0.2s;
}

.sandbox-shape.square {
    transition-delay: 0.4s;
}

.sandbox-shape.triangle {
    transition-delay: 0.6s;
}

.safety-section.animate .sandbox-shapes {
    opacity: 1;
}

.safety-section.animate .sandbox-shape {
    opacity: 1;
    transform: scale(1);
}

/* Add rotation animation for shapes */
.safety-section.animate .sandbox-shape.circle {
    animation: rotateShape 2s ease-out forwards;
}

.safety-section.animate .sandbox-shape.square {
    animation: rotateShape 2s ease-out forwards;
}

.safety-section.animate .sandbox-shape.triangle {
    animation: rotateShape 2s ease-out forwards;
}

@keyframes rotateShape {
    0% {
        transform: rotate(0deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.safety-card {
    background: var(--color-background-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.safety-card h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.safety-card h3 i {
    color: var(--color-primary);
}

.safety-card p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
    .safety-section {
        padding: 2rem 1rem; /* Reduced from 3rem to 2rem to match desktop */
    }
    
    .safety-grid {
        grid-template-columns: 1fr;
    }
    
    .safety-header h2 {
        font-size: 1.75rem;
    }
}

/*--------------------------------------------------------------
# Tools Section
--------------------------------------------------------------*/
.tools-section {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(to bottom, var(--color-background), var(--color-background-light));
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.tool-card {
    background: var(--color-background-light);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 1.25rem;
    opacity: 1;
    transform: none;
    position: relative;
}

.tool-card.visible {
    display: flex;
    opacity: 1;
    transform: none;
}

.tool-card.hidden {
    display: none;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-light);
}

.tool-card i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--color-text);
}

.tool-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.try-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-weight: 600;
    text-align: center;
    width: fit-content;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.try-button:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/*--------------------------------------------------------------
# Examples Section
--------------------------------------------------------------*/
.examples-section {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 0; /* Reduced from 2rem */
}

.examples-section .section-header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.examples-section .section-header h2 {
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #202124;
    margin-bottom: 1.5rem;
    text-align: center;
}

.examples-section .section-description {
    font-family: var(--font-family-text);
    font-size: 1.5rem;
    line-height: 1.7;
    color: #5f6368;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.examples-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
}

.discipline-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    background: var(--color-background);
    color: var(--color-primary);
    border-color: var(--color-primary-light);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Update examples grid to show only 3 cards by default */
.examples-grid .example-card:nth-child(n+7) {
    display: none;
}

/* Card Styles Standardization */
.tool-card,
.example-card,
.faq-item,
.resource-link {
    background: var(--color-background-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}

.tool-card:hover,
.example-card:hover,
.faq-item.active,
.resource-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

/* Button Styles Standardization */
.try-button,
.show-more-btn,
.feedback-button,
.learn-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

/* Section Spacing Standardization */
.safety-section,
.tools-section,
.examples-section,
.resources-section,
.faq-section {
    padding: var(--spacing-md) 0; /* Remove horizontal padding since container will handle it */
}

/* Update grids to use container */
.tools-grid,
.examples-grid {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .safety-section,
    .tools-section,
    .examples-section,
    .resources-section,
    .faq-section {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .section-header h2,
    .faq-header h2,
    .matrix-section h2,
    .tool-header h1,
    .feedback-content h2 {
        font-size: var(--font-size-h4);
    }
    
    .section-description,
    .section-header p,
    .faq-header p,
    .matrix-section p {
        font-size: var(--font-size-base);
    }

    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .tools-grid,
    .examples-grid {
        padding: var(--spacing-sm) var(--spacing-md);
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .examples-grid {
        grid-template-columns: repeat(2, minmax(300px, 350px));
        max-width: calc(2 * 350px + var(--spacing-lg));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .examples-grid,
    .tools-grid,
    .getting-started-grid {
        padding: var(--spacing-sm) var(--spacing-md);
        grid-template-columns: minmax(300px, 350px);
        max-width: 350px;
    }
}

/*--------------------------------------------------------------
# About Page
--------------------------------------------------------------*/
.about-section,
.acknowledgements-section,
.license-section {
    padding: var(--spacing-lg) 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Add decorative background elements */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 40, 188, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    background: var(--color-background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-top: var(--spacing-md);
    border: 1px solid rgba(0, 40, 188, 0.1);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.about-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Enhanced section headers */
.about-section .section-header h1,
.acknowledgements-section .section-header h2,
.license-section .section-header h2 {
    background: linear-gradient(135deg, var(--color-primary), #1E88E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
    margin: var(--spacing-md) 0;
}

.about-content li {
    padding: var(--spacing-sm) 0;
    padding-left: 2rem;
    position: relative;
    transition: transform var(--transition-fast);
}

.about-content li:hover {
    transform: translateX(5px);
}

.about-content li::before {
    content: '→';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    transition: transform var(--transition-fast);
}

.about-content li:hover::before {
    transform: translateX(3px);
}

/* Enhanced license section */
.license-details {
    margin-top: var(--spacing-md);
    background: linear-gradient(to bottom right, rgba(0, 40, 188, 0.03), rgba(51, 82, 201, 0.03));
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.license-details h3 {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.license-details h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--color-primary);
    border-radius: 2px;
    margin-right: var(--spacing-xs);
}

.license-notice {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(0, 40, 188, 0.05), rgba(51, 82, 201, 0.05));
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(0, 40, 188, 0.1);
    backdrop-filter: blur(10px);
}

.license-notice i {
    color: var(--color-primary);
    margin-right: var(--spacing-xs);
    font-size: 1.2em;
}

/* Acknowledgements enhancements */
.acknowledgements-section .about-content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.acknowledgements-section .about-content li {
    background: rgba(0, 40, 188, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(0, 40, 188, 0.1);
}

.acknowledgements-section .about-content li::before {
    display: none;
}

.acknowledgements-section .about-content li:hover {
    transform: translateY(-5px);
    background: rgba(0, 40, 188, 0.05);
}

@media (max-width: 768px) {
    .about-section,
    .acknowledgements-section,
    .license-section {
        padding: var(--spacing-md);
    }

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

    .acknowledgements-section .about-content ul {
        grid-template-columns: 1fr;
    }

    .about-section::before {
        left: -100px;
        width: 200px;
        height: 200px;
    }
}

/*--------------------------------------------------------------
# Hero Carousel Navigation
--------------------------------------------------------------*/
.hero-image-slider {
    position: relative;
    overflow: hidden;
}

.hero-nav-prev,
.hero-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.hero-nav-prev {
    left: 15px;
}

.hero-nav-next {
    right: 15px;
}

.hero-nav-prev:hover,
.hero-nav-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-nav-prev i,
.hero-nav-next i {
    font-size: 16px;
}

.hero-dots {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-dot:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
    background: white;
}

.hero.paused::after {
    display: none;
}

.hero.paused::before {
    display: none;
}

header[class*="hero"].paused::after,
header[class*="hero"].paused::before {
    display: none;
}

/*--------------------------------------------------------------
# Showcase Section
--------------------------------------------------------------*/
.showcase-section {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0028BC;
    z-index: 1;  /* Lower z-index to stay below mobile menu */
}

.showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(1400px, 90vw);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
    animation-delay: 0s;
    margin-top: 0;
    margin-left: 0;
}

.showcase-text-container {
    flex: 1;
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
    text-align: left;
    position: relative;
    left: 0;
    transform: none;
}

.showcase-title {
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: clamp(2.5rem, calc(1.5rem + 6vw), 10rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-align: left;
    white-space: normal;
    letter-spacing: -0.02em;
    word-break: keep-all;
    hyphens: none;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.showcase-title .ai-playground-container {
    white-space: nowrap;
    display: inline-block;
}

.showcase-title span.ai-playground {
    white-space: nowrap;
    display: inline-block;
}

.showcase-title span.ai-highlight {
    color: #B8E81E;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-title span.ai-highlight::before {
    content: '✦';
    position: absolute;
    top: 0.2em;
    left: -0.05em;
    font-size: 1.5rem;
    color: #B8E81E;
    transition: all 0.3s ease;
}

.showcase-title span.ai-highlight::after {
    content: '✦';
    position: absolute;
    top: 0.6em;
    left: -0.8em;
    font-size: 2rem;
    color: #B8E81E;
    transition: all 0.3s ease;
}

/* Hover effects for AI text and stars */
.showcase-title span.ai-highlight:hover {
    text-shadow: 0 0 10px rgba(184, 232, 30, 0.5);
    transform: scale(1.05);
}

.showcase-title span.ai-highlight:hover::before,
.showcase-title span.ai-highlight:hover::after {
    animation: enhancedSparkle 1s infinite;
    opacity: 1;
}

@keyframes enhancedSparkle {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.2) rotate(270deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

/* Add a subtle glow effect on hover */
.showcase-title span.ai-highlight::before,
.showcase-title span.ai-highlight::after {
    text-shadow: 0 0 5px rgba(184, 232, 30, 0.3);
}

.showcase-title span.ai-highlight:hover::before,
.showcase-title span.ai-highlight:hover::after {
    text-shadow: 0 0 15px rgba(184, 232, 30, 0.8);
}

.showcase-subtitle {
    font-family: var(--font-family-text);
    font-size: 1.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 600px;
    letter-spacing: -0.01em;
}

.showcase-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .showcase-content {
        padding: 0 1.5rem;
        margin-left: 0;
        justify-content: center;
    }
    
    .showcase-text-container {
        padding: 1.5rem;
        text-align: left;
        left: 0;
        transform: none;
    }
    
    .showcase-title {
        font-size: clamp(2.25rem, 7vw, 6rem);
        word-break: keep-all;
        hyphens: none;
        text-align: left;
    }
    
    .showcase-title .ai-playground-container {
        white-space: nowrap;
    }
    
    .showcase-title span.ai-playground {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .showcase-section {
        height: auto;
        min-height: 100vh;
        padding: 1rem 1rem 2rem; /* Reduced top padding since body now has padding */
        padding-top: 0; /* Header is fixed, no extra padding needed */
        z-index: 1; /* Keep it low */
        position: relative; /* Add this */
    }
    
    /* Add this new rule */
    body.mobile-menu-open .showcase-section {
        pointer-events: none; /* Prevent clicks when menu is open */
    }

    .showcase-content {
        flex-direction: column;
        text-align: left;
        padding: 0 1rem;
        margin: 0;
        width: 100%;
        align-items: center;
        gap: 1.5rem;
    }
    
    .showcase-text-container {
        padding: 1rem;
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        text-align: left;
        left: 0;
        transform: none;
    }
    
    .showcase-title {
        text-align: left;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0;
        font-size: clamp(2rem, 6vw, 4rem);
        word-break: keep-all;
        hyphens: none;
    }
    
    .showcase-title .ai-playground-container {
        white-space: nowrap;
    }
    
    .showcase-title span.ai-playground {
        white-space: nowrap;
    }
    
    .showcase-subtitle {
        text-align: left;
        margin: 0 auto;
        font-size: clamp(1rem, 2vw, 1.5rem);
        padding: 0 1rem;
        max-width: 100%;
        line-height: 1.4;
    }
    
    /* Adjust star positioning for medium mobile screens */
    .showcase-title span.ai-highlight::before {
        font-size: 1rem;
        top: 0.15em;
        left: -0.4em;
    }
    
    .showcase-title span.ai-highlight::after {
        font-size: 1.2rem;
        top: 0.55em;
        left: -1em;
    }
}

@media (max-width: 480px) {
    .showcase-section {
        padding: 3rem 0.75rem 1.5rem;
    }

    .showcase-content {
        padding: 0 0.75rem;
        justify-content: center;
    }

    .showcase-text-container {
        padding: 0.75rem;
        text-align: left;
        left: 0;
        transform: none;
    }

    .showcase-title {
        font-size: clamp(1.75rem, 5vw, 3rem);
        line-height: 1.3;
        word-break: keep-all;
        hyphens: none;
        text-align: left;
    }
    
    .showcase-subtitle {
        font-size: clamp(0.875rem, 1.75vw, 1.25rem);
        padding: 0 0.5rem;
        line-height: 1.4;
        text-align: left;
    }

    .showcase-title .ai-playground-container {
        white-space: nowrap;
    }
    
    .showcase-title span.ai-playground {
        white-space: nowrap;
    }
    
    /* Fix star positioning on mobile to prevent overlap */
    .showcase-title span.ai-highlight::before {
        font-size: 0.8rem;
        top: 0.1em;
        left: -0.5em;
    }
    
    .showcase-title span.ai-highlight::after {
        font-size: 1rem;
        top: 0.5em;
        left: -1.2em;
    }
}

/* Add the fadeInUp animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Ensure the progress bar stays above other elements */
.scroll-progress {
    z-index: 9999;
}

.see-all-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.see-all-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.see-all-button:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.see-all-button:hover::before {
    left: 100%;
}

.see-all-button i {
    transition: transform var(--transition-fast);
    font-size: 1.1rem;
}

.see-all-button:hover i {
    transform: translateX(4px);
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.getting-started-section {
    background-color: #ffffff;
    padding: 1rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.getting-started-content-wrapper {
    display: flex;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6rem;
}

.getting-started-image {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.getting-started-content {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 0;
}

.getting-started-content h2 {
    font-family: var(--font-family-display);
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #202124;
    margin-bottom: 1.5rem;
    text-align: center;
}

.getting-started-content .section-description {
    font-family: var(--font-family-text);
    font-size: 1.5rem;
    line-height: 1.7;
    color: #5f6368;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.getting-started-feature-image {
    width: 600px; /* Set a fixed width */
    height: 600px; /* Set a fixed height */
    object-fit: cover; /* This will maintain aspect ratio while filling the space */
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .getting-started-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .getting-started-image,
    .getting-started-content {
        flex: 0 0 100%;
    }
    
    .getting-started-content h2,
    .getting-started-content .section-description {
        text-align: center;
    }
    
    .getting-started-feature-image {
        width: 100%; /* Full width on mobile */
        height: 300px; /* Smaller height on mobile */
        object-fit: cover;
    }
    
    .getting-started-content {
        padding-left: 0; /* Remove padding on mobile */
    }
}

@media (max-width: 768px) {
    .safety-content-wrapper,
    .getting-started-content-wrapper {
        padding: 0 2rem; /* Keep mobile padding at 2rem */
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: var(--font-size-mobile-h2);
        line-height: 1.3;
    }

    .section-description {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .example-card {
        padding: 1.25rem;
    }

    .example-card h3 {
        font-size: var(--font-size-lg);
    }

    .example-card p {
        font-size: var(--font-size-base);
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-card h3 {
        font-size: var(--font-size-lg);
    }

    .tool-card p {
        font-size: var(--font-size-base);
    }

    .try-button {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-base);
    }

    .safety-section {
        padding: 2rem 1rem;
    }

    .safety-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .safety-content {
        padding: 1rem;
    }

    .safety-content h2 {
        font-size: var(--font-size-mobile-h2);
    }

    .safety-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .safety-card {
        padding: 1.5rem;
    }

    .safety-card h3 {
        font-size: var(--font-size-lg);
    }

    .safety-card p {
        font-size: var(--font-size-base);
    }

    /* Improve touch targets */
    .nav-link,
    .dropdown-content a,
    .try-button,
    .example-card,
    .tool-card,
    .safety-card {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Adjust spacing for better mobile readability */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-description {
        margin-bottom: 2rem;
    }

    /* Optimize images for mobile */
    .safety-image,
    .getting-started-image {
        max-width: 100%;
        height: auto;
    }

    /* Improve form elements for touch */
    input,
    select,
    textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }

    /* Adjust animations for mobile */
    .fade-in-section {
        opacity: 1;
        transform: none;
    }

    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .section-header h2 {
        font-size: var(--font-size-mobile-h3);
    }

    .section-description {
        font-size: var(--font-size-sm);
    }

    .example-card,
    .tool-card,
    .safety-card {
        padding: 1rem;
    }

    .try-button {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 1600px) {
    .showcase-content {
        max-width: min(1800px, 85vw);
    }
    
    .showcase-text-container {
        max-width: 1200px;
    }
}

