/* Base Styles */
:root {
    /* Main color palette */
    --primary-color: #6610f2;
    --primary-light: #7c4dff;
    --primary-dark: #5e00c8;
    --secondary-color: #00e5ff;
    --secondary-light: #6effff;
    --secondary-dark: #00b0cc;
    --accent-color: #ff4081;
    
    /* Neutral colors */
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --light-bg: #f8f9fa;
    --light-surface: #ffffff;
    
    /* Text colors */
    --text-primary-dark: rgba(255, 255, 255, 0.87);
    --text-secondary-dark: rgba(255, 255, 255, 0.6);
    --text-primary-light: rgba(0, 0, 0, 0.87);
    --text-secondary-light: rgba(0, 0, 0, 0.6);
    
    /* Spacing system (8px grid) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Other */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    
    /* Base values */
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--space-md);
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary-dark);
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-bottom: 0;
}

.nav-links li {
    margin-left: var(--space-md);
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary-dark);
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary-dark);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: var(--text-primary-dark);
    box-shadow: 0 4px 15px rgba(102, 16, 242, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 16, 242, 0.5);
    color: var(--text-primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary-dark);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: rgba(102, 16, 242, 0.1);
    color: var(--text-primary-dark);
}

.btn-light {
    background: var(--light-surface);
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--light-bg);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Glassmorphism effect */
.glass {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Section styles */
section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Footer styles */
footer {
    background-color: var(--dark-surface);
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: var(--space-md);
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.footer-links, .footer-social {
    flex: 1;
    min-width: 200px;
    margin-bottom: var(--space-md);
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary-dark);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--text-secondary-dark);
    transition: color 0.3s ease;
}

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

.social-icons {
    display: flex;
    gap: var(--space-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-primary-dark);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--text-primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary-dark);
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        height: auto;
        padding: var(--space-md) 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: var(--space-sm) 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
}