/* ===================================
   CYNARAX - Base Styles
   Global resets and variables
   =================================== */

/* CSS Variables */
:root {
    /* Colors - Electric Tech Palette */
    --primary-blue: #00d4ff;
    --primary-cyan: #00ffff;
    --accent-electric: #0066ff;
    --accent-neon: #00ff88;
    --dark-bg: #0a0e1a;
    --dark-surface: #131826;
    --dark-card: #1a2135;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #6b7794;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-electric) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-neon) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1400px;
    
    /* Effects */
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
}

.section-header {
    margin-bottom: 80px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-cyan);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

.btn-primary-large,
.btn-secondary-large,
.btn-outline-large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Base */
@media (max-width: 1200px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}
