/* Enhanced Color Palette Variables */
:root {
    /* Grayscale Foundation */
    --seasalt: #f8f9faff;
    --antiflash-white: #e9ecefff;
    --platinum: #dee2e6ff;
    --french-gray: #ced4daff;
    --french-gray-2: #adb5bdff;
    --slate-gray: #6c757dff;
    --outer-space: #495057ff;
    --onyx: #343a40ff;
    --eerie-black: #212529ff;
    
    /* Accent Colors - Deep & Sophisticated */
    --midnight-blue: #1a1d29ff;
    --prussian-blue: #2c3e50ff;
    --dark-slate-blue: #34495eff;
    --steel-blue: #4682b4ff;
    --dark-teal: #2c5f5dff;
    --charcoal-blue: #36454fff;
    --deep-purple: #2e2a54ff;
    --gunmetal: #2a3439ff;
    
    /* Subtle Highlights */
    --accent-blue: #5a7a9aff;
    --muted-teal: #5d8a8aff;
    --soft-purple: #6b5b95ff;
    
    /* Subtle Color Accents */
    --accent-gold: #f39c12;
    --accent-emerald: #2ecc71;
    --accent-coral: #e74c3c;
    --accent-violet: #9b59b6;
    --accent-cyan: #1abc9c;
    
    /* Enhanced UI Colors */
    --primary-gradient: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 50%, var(--charcoal-blue) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--steel-blue) 0%, var(--accent-blue) 50%, var(--muted-teal) 100%);
    --accent-gradient: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
    --warm-gradient: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-gold) 50%, var(--accent-violet) 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* 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);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s 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: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--onyx);
    background: linear-gradient(135deg, var(--seasalt) 0%, var(--seasalt) 50%, var(--antiflash-white) 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(108, 117, 125, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 58, 64, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(173, 181, 189, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    margin-bottom: 1rem;
    color: var(--slate-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 16px;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-md);
    background-size: 200% 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--accent-blue);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    transition: left var(--transition-normal);
    z-index: -1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-slate-blue);
    border-color: var(--accent-blue);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--dark-slate-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--dark-slate-blue);
}

/* Button Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--eerie-black) 50%, transparent 100%);
    transform: translateX(-50%);
    opacity: 0.1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 20%, var(--accent-blue) 60%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    filter: drop-shadow(0 2px 4px rgba(33, 37, 41, 0.1));
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(33, 37, 41, 0.05), transparent, rgba(33, 37, 41, 0.05));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--steel-blue), var(--accent-blue), var(--muted-teal));
    border-radius: 2px;
    opacity: 0;
    animation: slideInUp 0.8s ease 0.3s forwards;
}

.section-header:hover .section-title::before {
    opacity: 1;
    transform: scale(1);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--outer-space);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
    text-shadow: 0 1px 2px rgba(33, 37, 41, 0.05);
}

.section-subtitle::before {
    content: '"';
    position: absolute;
    left: -15px;
    top: -5px;
    font-size: 2rem;
    color: var(--platinum);
    font-family: serif;
}

.section-subtitle::after {
    content: '"';
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 2rem;
    color: var(--platinum);
    font-family: serif;
}

/* Utility Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}