/* SSPL - Sovereign Supercomputing Custom Styles */

:root {
    --sspl-blue: #1e40af;
    --sspl-green: #059669;
    --sspl-dark: #1f2937;
    --sspl-light: #f8fafc;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #1f2937;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--sspl-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Navigation Enhancements */
nav {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    transition: var(--transition-smooth);
}

/* Logo Styling */
.logo-hover {
    transition: var(--transition-smooth);
}

.logo-hover:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Hero Logo Animation */
.hero-logo {
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

/* Logo Filter for Dark Backgrounds */
.logo-invert {
    filter: brightness(0) invert(1);
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section Enhancements */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('../images/regional-pattern-bg.jpg') center/cover no-repeat,
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.3) 0%, transparent 50%);
    opacity: 0.15;
    pointer-events: none;
}

/* Animated gradient background */
.hero-bg {
    background: linear-gradient(-45deg, #1e40af, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card Hover Effects */
.hover-card {
    transition: var(--transition-smooth);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Form Styling Enhancements */
input[type="text"],
input[type="email"],
textarea,
select {
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* Radio Button Custom Styling */
input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

input[type="radio"]:checked {
    border-color: #fbbf24;
    background-color: #fbbf24;
}

input[type="radio"]:checked::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1e40af;
    display: block;
}

input[type="radio"]:hover {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    color: #1e40af;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 4rem 0;
}

/* Animated Icons */
.icon-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Loading Animation */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message-slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .founder-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Adjust background pattern for mobile */
    .regional-bg::before,
    .regional-bg-light::before {
        background-size: contain;
        background-repeat: repeat;
    }
    
    #home::before {
        background-size: cover, 400% 400%, 400% 400%, 400% 400%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .founder-grid {
        grid-template-columns: 1fr;
    }
    
    .survey-form {
        padding: 1.5rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Indicators */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .bg-gradient-to-br,
    .bg-gradient-to-r {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-white\/10 {
        background-color: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid white !important;
    }
    
    .text-blue-100 {
        color: white !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here for future enhancement */
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Regional Background Pattern */
.regional-bg {
    position: relative;
}

.regional-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/regional-pattern-bg.jpg') center/cover no-repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.regional-bg > * {
    position: relative;
    z-index: 1;
}

/* Alternative subtle pattern for light sections */
.regional-bg-light {
    position: relative;
    background: 
        url('../images/regional-pattern-bg.jpg') center/cover no-repeat,
        linear-gradient(135deg, rgba(249, 250, 251, 0.95), rgba(243, 244, 246, 0.98));
    background-blend-mode: soft-light;
}

.regional-bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/regional-pattern-bg.jpg') center/cover no-repeat;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

.regional-bg-light > * {
    position: relative;
    z-index: 1;
}

/* Custom Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation > * {
    animation: fadeInUp 0.8s ease-out;
}

.stagger-animation > *:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-animation > *:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-animation > *:nth-child(4) {
    animation-delay: 0.3s;
}

