/* Base CSS Variables for Light/Dark Mode */
:root {
    /* Colors - Light Mode */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F9FAFB;
    --color-text-primary: #030712;
    --color-text-secondary: #4B5563;
    --color-text-tertiary: #6B7280;
    --color-accent-primary: #8B5CF6;
    --color-accent-primary-hover: #7C3AED;
    --color-accent-secondary: #6366F1;
    --color-accent-secondary-hover: #4F46E5;
    --color-border: #E5E7EB;
    --color-shadow: rgba(0, 0, 0, 0.05);
    --color-card-bg: #FFFFFF;
}

/* Dark Mode Variables */
.dark-mode {
    --color-bg-primary: #030712;
    --color-bg-secondary: #111827;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #D1D5DB;
    --color-text-tertiary: #9CA3AF;
    --color-accent-primary: #8B5CF6;
    --color-accent-primary-hover: #7C3AED;
    --color-accent-secondary: #6366F1;
    --color-accent-secondary-hover: #4F46E5;
    --color-border: #1F2937;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-card-bg: #1F2937;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.5;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-accent-primary-hover);
}

section {
    padding: 5rem 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}



img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

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

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

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

.btn-outline:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header .divider {
    height: 4px;
    width: 60px;
    background-color: var(--color-accent-primary);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 36rem;
    margin: 0 auto;
}

/* Card Styles */
.card {
    background-color: var(--color-card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--color-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px var(--color-shadow);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Flex Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* Spacing Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-primary {
    color: var(--color-text-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-tertiary {
    color: var(--color-text-tertiary);
}

.text-accent {
    color: var(--color-accent-primary);
}

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

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

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

@keyframes textLoop {
    0%, 15% {
        transform: translateY(0%);
    }
    20%, 35% {
        transform: translateY(-100%);
    }
    40%, 55% {
        transform: translateY(-200%);
    }
    60%, 75% {
        transform: translateY(-300%);
    }
    80%, 95% {
        transform: translateY(-400%);
    }
    100% {
        transform: translateY(-500%);
    }
}

/* Other Utilities */
.hidden {
    display: none;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .text-4xl {
        font-size: 1.875rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
}