/* CSS Variables */
:root {
    /* Split-Complementary Color Scheme */
    --primary-color: #6366f1; /* Indigo */
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary-color: #f59e0b; /* Amber */
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    --accent-color: #10b981; /* Emerald */
    --accent-dark: #059669;
    --accent-light: #34d399;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --charcoal: #334155;
    --black: #1e293b;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1e293b;
    --bg-overlay: rgba(30, 41, 59, 0.6);
    
    /* Neumorphism Shadows */
    --shadow-neumorphic-light: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    --shadow-neumorphic-dark: inset 8px 8px 16px #d1d9e6, inset -8px -8px 16px #ffffff;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    --gradient-overlay: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.5));
    
    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* Global Button Styles */
.btn,
button,
.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.btn:hover,
button:hover,
.button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn:active,
button:active,
.button:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/* Neumorphic Button Variant */
.neumorphic-btn {
    background: var(--light-gray);
    color: var(--text-primary);
    box-shadow: var(--shadow-neumorphic-light);
    border: 1px solid var(--medium-gray);
}

.neumorphic-btn:hover {
    color: var(--text-primary);
    box-shadow: var(--shadow-neumorphic-dark);
}

.button.is-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.button.is-light {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--medium-gray);
}

.button.is-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Neumorphic Cards */
.neumorphic-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-neumorphic-light);
    transition: var(--transition-base);
    border: 1px solid var(--medium-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.neumorphic-card .card-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neumorphic-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

.neumorphic-card .card-content {
    padding: var(--spacing-md);
    text-align: center;
}

/* Neumorphic Inputs */
.neumorphic-input {
    background: var(--bg-primary);
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-md);
    box-shadow: inset 4px 4px 8px rgba(209, 217, 230, 0.5), inset -4px -4px 8px rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
    transition: var(--transition-base);
}

.neumorphic-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Header */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar-brand .navbar-item {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-item {
    color: var(--text-primary);
    transition: var(--transition-base);
    font-weight: 500;
}

.navbar-item:hover {
    color: var(--primary-color);
    background: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero .title {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-md);
}

.hero .subtitle {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-lg);
}

/* Particle Animation */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section.has-background-light {
    background: var(--bg-secondary);
}

/* Features Section */
#features .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#features .card-image {
    height: 400px;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#features .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

/* Research Section */
#research .progress {
    height: 12px;
    border-radius: var(--radius-md);
    background: var(--medium-gray);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

#research .progress::-webkit-progress-bar {
    background: var(--medium-gray);
    border-radius: var(--radius-md);
}

#research .progress::-webkit-progress-value {
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    transition: var(--transition-slow);
}

/* Methodology Section - Accordion */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    background: var(--bg-primary);
    transition: var(--transition-base);
}

.accordion-header:hover {
    background: var(--bg-secondary);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--spacing-md);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: var(--spacing-md);
}

/* Projects Section */
#projects .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#projects .card-image {
    height: 420px;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#projects .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

/* Behind the Scenes Section */
#behind-scenes {
    background: linear-gradient(135deg, var(--bg-secondary), var(--white));
}

/* Testimonials Section */
#testimonials .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

#testimonials blockquote {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding: var(--spacing-md);
}

#testimonials blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

#testimonials .media img {
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    object-fit: cover;
}

/* Pricing Section */
#pricing .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    transition: var(--transition-base);
}

#pricing .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

#pricing .card ul {
    list-style: none;
    margin: var(--spacing-md) 0;
}

#pricing .card ul li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

/* Press Section */
#press .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#press .card-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#press .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

#press .tags {
    margin-top: var(--spacing-sm);
}

#press .tag {
    background: var(--medium-gray);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin: 2px;
}

/* Resources Section */
#resources .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Contact Section */
#contact .contact-form {
    background: var(--bg-primary);
}

#contact .field {
    margin-bottom: var(--spacing-md);
}

#contact .label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links a {
    display: inline-block;
    padding: 8px 12px;
    margin-right: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 500;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-lg) 0;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

[data-animate].animate {
    opacity: 1;
    transform: translateY(0);
}

/* Success Page Styles */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.success-content {
    text-align: center;
    color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
}

/* Privacy and Terms Pages */
.content-page {
    padding-top: 100px;
    min-height: 100vh;
}

.content-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

/* Responsive Design */
@media screen and (max-width: 1023px) {
    .hero-background {
        background-attachment: scroll;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .navbar-menu {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-body {
        padding: var(--spacing-md);
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .neumorphic-card .card-content {
        padding: var(--spacing-sm);
    }
    
    .button.is-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-6 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-sm); }

.mt-6 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-sm); }

.p-6 { padding: var(--spacing-xl); }
.p-5 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-sm); }

/* Progress Bar Animation */
.progress-container .progress {
    opacity: 0;
    transform: translateX(-100%);
    transition: var(--transition-slow);
}

.progress-container .progress.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Hyperrealistic Texture Effects */
.texture-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
}