/* Global Variables and Theme Settings */
:root {
    /* Color Palette - Modern Minimalist */
    --bg-dark: #0b0e16;
    --bg-dark-secondary: #131926;
    --text-light: #f6f9ff;
    --text-secondary: #b3b9c5;
    --accent-neon-cyan: #22e3eb;
    --accent-neon-purple: #9055ff;
    --accent-neon-blue: #4284ff;
    --gradient-accent: linear-gradient(135deg, var(--accent-neon-cyan), var(--accent-neon-purple));
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Other */
    --border-radius: 14px;
    --transition-speed: 0.3s;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Unified Theme Variables */
    --bg-color: var(--bg-dark);
    --text-color: var(--text-light);
    --card-bg: var(--bg-dark-secondary);
    --primary-color: var(--accent-neon-cyan);
    --secondary-color: var(--accent-neon-purple);
    --header-bg: rgba(11, 14, 22, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --border-color: #20242f;
    --hover-color: rgba(34, 227, 235, 0.08);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-dark: #f7f9fc;
    --bg-dark-secondary: #ffffff;
    --text-light: #181b20;
    --text-secondary: #5a616e;
    --accent-neon-cyan: #0cbbc8;
    --accent-neon-purple: #7055e8;
    --gradient-accent: linear-gradient(135deg, var(--accent-neon-cyan), var(--accent-neon-purple));
    
    /* Unified Theme Variables for Light Mode */
    --bg-color: var(--bg-dark);
    --text-color: var(--text-light);
    --card-bg: var(--bg-dark-secondary);
    --header-bg: rgba(247, 249, 252, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.06);
    --border-color: #e9ecf2;
    --hover-color: rgba(12, 187, 200, 0.05);
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s, color 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.3s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* For fixed header links */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Hide default cursor when using custom cursor */
    letter-spacing: 0.01em;
    font-weight: 400;
}

/* Modern Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed);
    position: relative;
    font-weight: 500;
}

a:hover {
    color: var(--secondary-color);
}

/* Refined Container */
.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Accent Text Style */
.accent {
    color: var(--accent-neon-cyan);
    position: relative;
}

/* Enhanced Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
}

/* Button Styles - Minimalist but Distinctive */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(34, 227, 235, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--accent-neon-cyan);
    color: var(--text-light);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(34, 227, 235, 0.25);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary:hover {
    background-color: rgba(34, 227, 235, 0.08);
    color: var(--primary-color);
}

/* Subtle Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-neon-cyan), var(--accent-neon-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-neon-cyan);
}

/* Selection Styling */
::selection {
    background: var(--accent-neon-cyan);
    color: var(--bg-dark);
    text-shadow: none;
}

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

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

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 26px;
    }
}