/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-color: #3273dc;
    --primary-light: #4f8bea;
    --primary-dark: #2366d1;
    
    /* Secondary Colors */
    --secondary-color: #ff6b35;
    --secondary-light: #ff8559;
    --secondary-dark: #e55a2e;
    
    /* Accent Colors */
    --accent-color: #00d4aa;
    --accent-light: #1ae0b6;
    --accent-dark: #00c29a;
    
    /* Neutral Colors */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --grey-color: #6c757d;
    --grey-light: #e9ecef;
    --grey-dark: #495057;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #2c3e50;
    --bg-gradient: linear-gradient(135deg, #3273dc 0%, #00d4aa 100%);
    --bg-gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1 { font-size: 3rem; }
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-md);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Buttons */
.btn, button, input[type='submit'], .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before, button::before, input[type='submit']::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: var(--transition-slow);
    z-index: -1;
}

.btn:hover::before, button:hover::before, input[type='submit']:hover::before {
    left: 100%;
}

.btn:hover, button:hover, input[type='submit']:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary, .button.is-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

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

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

.navbar-item {
    font-family: var(--font-heading);
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.navbar-burger {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xxl) 0;
}

.hero .title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero p {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--grey-light);
}

.card-footer-item {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-fast);
}

.card-footer-item:hover {
    color: var(--primary-dark);
    background: var(--grey-light);
}

/* Sections */
.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

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

.section.has-background-dark {
    background: var(--bg-dark);
    color: white;
}

.section.has-background-primary {
    background: var(--bg-gradient);
    color: white;
}

/* Methodology Section */
#methodology {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#methodology::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e0e0e0" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    animation: rotate 20s linear infinite;
    z-index: 0;
}

/* Features Section */
#features {
    background: var(--bg-secondary);
    position: relative;
}

#features .card {
    background: white;
    border: 1px solid var(--grey-light);
    transition: all var(--transition-normal);
}

#features .card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(50, 115, 220, 0.1);
}

/* Insights Section */
#insights {
    background: white;
    position: relative;
}

#insights .card {
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#insights .card-content {
    padding: var(--spacing-lg);
}

/* Resources Section */
#resources {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
}

#resources .box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

#resources .box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.15);
}

/* Events Section */
#events {
    background: var(--bg-secondary);
}

#events .card {
    border-left: 4px solid var(--primary-color);
}

#events .tag {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* Community Section */
#community {
    background: white;
    position: relative;
}

#community img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

#community .title.is-2 {
    color: var(--primary-color);
}

/* Accolades Section */
#accolades {
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

#accolades::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 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 10s ease-in-out infinite;
}

#accolades .icon {
    transition: var(--transition-normal);
}

#accolades .column:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    position: relative;
}

#contact .card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

#contact .input, #contact .textarea, #contact .select select {
    border: 2px solid var(--grey-light);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

#contact .input:focus, #contact .textarea:focus, #contact .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}

#contact .label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
}

#contact .media {
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

#contact .media-content h4 {
    color: var(--primary-color);
}

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

.footer h3, .footer h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

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

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

.footer-links a {
    color: var(--grey-light);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer .button {
    margin-right: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer .button.is-dark {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer .button.is-dark:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.animate-card {
    animation: fadeInUp 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-icon {
    transition: var(--transition-normal);
}

.animate-icon:hover {
    transform: scale(1.2) rotate(10deg);
}

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

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

.text-right {
    text-align: right;
}

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

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

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Modal */
.modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-card-head {
    background: var(--bg-gradient);
    color: white;
}

.modal-card-body {
    padding: var(--spacing-xl);
}

.modal-card-foot {
    background: var(--bg-secondary);
    border-top: 1px solid var(--grey-light);
}

/* Cookie Consent */
#cookieConsent {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-body);
}

#cookieConsent button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
}

#cookieConsent button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-xxl: 2rem;
        --spacing-xl: 1.5rem;
        --spacing-lg: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-body {
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .card {
        margin-bottom: var(--spacing-lg);
    }
    
    .navbar-menu {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .hero-image {
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button {
        margin-bottom: var(--spacing-sm);
    }
    
    .columns.is-mobile {
        flex-direction: column;
    }
    
    .column {
        width: 100%;
    }
}

/* Page-specific styles */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: white;
}

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

.success-content h1 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.success-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

/* Read More Links */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: var(--spacing-sm);
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.read-more::after {
    content: '→';
    margin-left: var(--spacing-sm);
    transition: var(--transition-fast);
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Curved Grid Effects */
.curved-grid {
    position: relative;
    overflow: hidden;
}

.curved-grid::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 100"><defs><pattern id="curve" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 0 20 Q 10 0 20 20" fill="none" stroke="%23e0e0e0" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23curve)"/></svg>');
    opacity: 0.1;
    transform: rotate(15deg);
    z-index: 0;
}

/* Futuristic Elements */
.futuristic-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--bg-gradient) border-box;
    border-radius: var(--radius-lg);
}

.glowing-text {
    text-shadow: 0 0 10px rgba(50, 115, 220, 0.5);
}

.neon-glow {
    box-shadow: 0 0 20px rgba(50, 115, 220, 0.3);
}

.holographic {
    background: linear-gradient(45deg, 
        rgba(255, 0, 150, 0.1) 0%, 
        rgba(0, 255, 255, 0.1) 25%, 
        rgba(255, 255, 0, 0.1) 50%, 
        rgba(255, 0, 150, 0.1) 75%, 
        rgba(0, 255, 255, 0.1) 100%);
    background-size: 400% 400%;
    animation: hologram 3s ease-in-out infinite;
}

@keyframes hologram {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}