/* CSS Variables - Triadic Color Scheme */
:root {
    /* Primary Triadic Colors */
    --primary-blue: #2563eb;
    --primary-orange: #ea580c;
    --primary-purple: #9333ea;
    
    /* Darker variants */
    --primary-blue-dark: #1d4ed8;
    --primary-orange-dark: #c2410c;
    --primary-purple-dark: #7c3aed;
    
    /* Lighter variants */
    --primary-blue-light: #3b82f6;
    --primary-orange-light: #f97316;
    --primary-purple-light: #a855f7;
    
    /* Neutral colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    --gradient-orange: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    --gradient-purple: linear-gradient(135deg, var(--primary-purple), var(--primary-orange));
    --gradient-overlay: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(147, 51, 234, 0.8));
    
    /* 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-retro: 0 8px 32px rgba(37, 99, 235, 0.15), 0 4px 16px rgba(147, 51, 234, 0.1);
    
    /* Transitions */
    --transition-fast: all 0.2s ease-out;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Fonts */
    --font-poppins: 'Poppins', sans-serif;
    --font-work-sans: 'Work Sans', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-work-sans);
    line-height: 1.6;
    color: var(--gray-700);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-poppins);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

/* Button Styles - Global */
.btn,
button,
input[type='submit'],
.retro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-work-sans);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 120px;
}

.btn:before,
button:before,
input[type='submit']:before,
.retro-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 ease;
}

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

.btn:hover,
button:hover,
input[type='submit']:hover,
.retro-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn:active,
button:active,
input[type='submit']:active,
.retro-button:active {
    transform: translateY(0) scale(0.98);
}

/* Button Variants */
.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
}

.btn-secondary {
    background: var(--gradient-orange);
    color: var(--white);
}

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

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

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

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

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-orange);
    transition: var(--transition-normal);
    margin-top: var(--space-sm);
}

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

.read-more:after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition-normal);
}

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

/* Card Styles */
.card,
.retro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-retro);
    transition: var(--transition-normal);
    overflow: hidden;
    position: relative;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.card:hover,
.retro-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

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

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

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

.card-content {
    padding: var(--space-lg);
    text-align: center;
    width: 100%;
}

/* Navigation */
header {
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--gray-700);
    border-radius: 1px;
    transition: var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

/* Hero Section */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(0.7);
}

#hero {
    position: relative;
    background: var(--gradient-overlay);
    color: var(--white);
    text-align: center;
}

#hero h1,
#hero h2,
#hero h3,
#hero p {
    color: var(--white);
}

.retro-text {
    background: linear-gradient(45deg, var(--white), var(--gray-100));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

/* Statistics Section */
.stat-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-retro);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.stat-widget:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
}

.stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    animation: countUp 2s ease-out forwards;
}

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

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover:after {
    opacity: 0.8;
}

/* Testimonials */
.testimonial-carousel .card {
    height: 100%;
    justify-content: space-between;
}

.testimonial-carousel .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Content Carousel */
.content-carousel .card {
    height: 100%;
    transition: var(--transition-bounce);
}

.content-carousel .card:hover {
    transform: translateY(-10px);
}

/* Forms */
.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: var(--font-work-sans);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form label {
    font-weight: 600;
    color: var(--gray-700);
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
}

footer h3 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

footer a {
    color: var(--gray-300);
    transition: var(--transition-normal);
}

footer a:hover {
    color: var(--white);
    transform: translateX(2px);
}

/* Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-blue);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-bounce);
    margin-right: var(--space-xs);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

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

.success-page h1,
.success-page h2,
.success-page p {
    color: var(--white);
}

/* Privacy and Terms Pages */
.privacy-content,
.terms-content {
    padding-top: 100px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    padding-bottom: var(--space-2xl);
}

.privacy-content h1,
.privacy-content h2,
.privacy-content h3,
.terms-content h1,
.terms-content h2,
.terms-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.privacy-content p,
.terms-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.privacy-content ul,
.privacy-content ol,
.terms-content ul,
.terms-content ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.privacy-content li,
.terms-content li {
    margin-bottom: var(--space-xs);
}

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

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

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

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .card-image,
    .image-container {
        height: 200px;
    }
    
    .hero-bg {
        background-attachment: scroll;
    }
    
    .parallax {
        background-attachment: scroll;
    }
    
    .privacy-content,
    .terms-content {
        padding-top: 80px;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn,
    button,
    input[type='submit'],
    .retro-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-image,
    .image-container {
        height: 180px;
    }
}

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

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

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

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-retro);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0047AB;
        --primary-orange: #CC5500;
        --primary-purple: #6B2C91;
        --gray-700: #000000;
        --gray-900: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax {
        background-attachment: scroll;
    }
    
    .hero-bg {
        background-attachment: scroll;
    }
}