/* assets/css/global.css */

/* Import Inter and Sora fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
    /* Color System */
    --primary-blue: #2484c6;
    --primary-blue-light: #3a9bdc;
    --primary-blue-dark: #1a5fa6;
    --deep-bg-start: #1e2f8f;
    --deep-bg-mid: #0f1e4a;
    --deep-bg-end: #020617;
    
    /* Typography */
        --font-body: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Sora', sans-serif;
    
    /* Spacing */
    --header-height: 85px;
    --container-max: 1400px;
    --section-padding: 100px 24px;
    
    /* Glass Effects */
    --glass-bg: rgba(45, 63, 148, 0.25);
    --glass-border: rgba(255, 255, 255, 0.15);
    --blur-amount: 20px;
    
    /* Shadows */
    --shadow-sm: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 15px 35px -8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    --glow-blue: 0 0 30px rgba(36, 132, 198, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: white;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: radial-gradient(
        circle at 50% 30%,
        #1e2f8f 0%,
        #0f1e4a 30%,
        #070f2a 55%,
        #020617 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at 50% 20%,
        rgba(120, 150, 255, 0.12),
        transparent 60%
    );
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 9vw, 5.2rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Base */
.section {
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-blue-light);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(36, 132, 198, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(36, 132, 198, 0.3);
}

.section-title {
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 8px 20px -5px rgba(36, 132, 198, 0.4);
}

.btn-primary:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(36, 132, 198, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Glass Card */
.glass-card {
    background: rgba(45, 63, 148, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    transition: var(--transition-base);
}

.glass-card:hover {
    background: rgba(45, 63, 148, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #aad0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-light);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    :root { --section-padding: 80px 20px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    :root { --section-padding: 60px 16px; }
    .section-header { margin-bottom: 40px; }
}

/* Fix horizontal overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* Ensure no element overflows */
img, video, iframe, .container, section, div {
    max-width: 100%;
}