/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --light-blue: #60a5fa;
    --dark-blue: #1e40af;
    --accent-blue: #3b82f6;
    --success-green: #10b981;
    --dark-green: #059669;

    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--neutral-700);
    background: var(--neutral-50);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--neutral-200);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    background: transparent;
    /* Option for JPEG logos with white background */
    filter: drop-shadow(0 0 0 transparent);
    max-height: 60px
}

/* Top Menu */
.top-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu-item {
    color: var(--neutral-600);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.menu-item:hover {
    background: var(--neutral-100);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.menu-item.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.menu-icon {
    width: 18px;
    height: 18px;
}

.login-menu {
    background: var(--success-green);
    color: white;
}

.login-menu:hover {
    background: var(--dark-green);
    color: white;
}

/* Hero Section - Professional Options */
.hero-section {
    /* Option 1: Your suggested cyan with dark blue text */
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="rgba(120,119,198,0.3)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    /* color: white; */
    /* Option 2: Dark blue text on cyan background */
    color: #1e40af;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Interactive Navigation */
.interactive-nav {
    background: white;
    padding: 80px 0;
    position: relative;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.nav-buttons-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.nav-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: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    background: var(--dark-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.nav-button.active {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-button.active:hover {
    background: var(--accent-blue);
}

/* Rotating Logo */
.rotating-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-logo {
    width: 140px;
    height: 140px;
    background: var(--gradient-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--neutral-200);
}

.goggles-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, var(--primary-blue), var(--light-blue), var(--accent-blue), var(--primary-blue));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    filter: blur(20px);
}

.rotating-logo:hover + .logo-glow {
    opacity: 0.3;
}

/* Content Display */
.content-display {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: var(--gradient-card);
    border-radius: 20px;
    min-height: 200px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.content-section {
    display: none;
    text-align: center;
}

.content-section.active {
    display: block;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--neutral-800);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-600);
    font-weight: 400;
}

/* Charts Section */
.charts-section {
    background: var(--neutral-800);
    color: white;
    margin: 0;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.charts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    opacity: 0.9;
}

.charts-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
}

.charts-subtitle {
    font-size: 1.25rem;
    text-align: center;
    opacity: 0.8;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure slides are properly stacked */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.chart-img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Changed from cover to contain to show full image */
    background: white;
}

.chart-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    text-align: left;
}

.chart-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.chart-overlay p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    transform: translateY(-50%);
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--light-blue);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Features Section */
.features-section {
    background: var(--neutral-50);
    padding: 100px 0;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.features-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--neutral-600);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    padding: 12px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.feature-card p {
    color: var(--neutral-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Page Content */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-hero {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e40af;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

.page-text {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-600);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.close {
    color: var(--neutral-400);
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--neutral-700);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    padding: 16px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.login-description {
    color: var(--neutral-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--neutral-50);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-focus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.form-input:focus + .input-focus {
    width: 100%;
}

.login-button {
    background: var(--success-green);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-icon {
    width: 20px;
    height: 20px;
}

/* Authentication Result Modal */
.auth-result-modal {
    max-width: 400px;
    text-align: center;
}

.auth-result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-result-icon.success {
    background: var(--success-green);
}

.auth-result-icon.error {
    background: #ef4444;
}

.auth-result-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.auth-result-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.auth-result-message {
    color: var(--neutral-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-result-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-result-button.success {
    background: var(--success-green);
    color: white;
}

.auth-result-button.success:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.auth-result-button.error {
    background: #ef4444;
    color: white;
}

.auth-result-button.error:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Demo Section */
.demo-section {
    padding: 60px 0;
    background: var(--neutral-50);
}

.demo-selector {
    max-width: 1000px;
    margin: 0 auto;
}

.demo-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.demo-btn {
    background: white;
    color: var(--neutral-600);
    border: 2px solid var(--neutral-200);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 140px;
}

.demo-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.demo-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-video-container {
    position: relative;
}

.demo-video {
    display: none;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo-video.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.demo-video video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}

.demo-description {
    padding: 2rem;
    text-align: center;
}

.demo-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.demo-description p {
    color: var(--neutral-600);
    line-height: 1.6;
    font-size: 1rem;
}

/* Definitions Section */
.definitions-section {
    padding: 60px 0;
    background: var(--neutral-50);
}

.definitions-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    color: var(--neutral-600);
    border: 2px solid var(--neutral-200);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 140px;
}

.tab-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-content {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 3rem;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.definition-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--neutral-200);
}

.definition-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.definition-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.definition-item p {
    color: var(--neutral-700);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.definition-notes {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    margin-top: 1rem;
}

.definition-notes h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--neutral-800);
}

.definition-notes ul {
    margin-left: 1.25rem;
    margin-bottom: 0;
}

.definition-notes li {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.definition-notes li:last-child {
    margin-bottom: 0;
}

.definition-notes p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--neutral-800);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact a {
    color: var(--light-blue);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .charts-title {
        font-size: 2rem;
    }

    .nav-buttons-row {
        flex-direction: column;
        gap: 1rem;
    }

    .top-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .nav-button {
        min-width: 160px;
        padding: 14px 20px;
    }

    .rotating-logo {
        width: 100px;
        height: 100px;
    }

    .goggles-img {
        width: 60px;
        height: 60px;
    }
}