/* Base styles and CSS reset */
:root {
    --primary-color: #8A2BE2;
    --secondary-color: #FF1493;
    --dark-bg: #121212;
    --light-text: #f5f5f5;
    --medium-gray: #555;
    --card-bg: #1e1e1e;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header styles */
header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

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

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    background: var(--dark-bg);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.1), transparent 70%);
    z-index: 0;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.4);
}

/* Featured section */
.featured-section {
    padding: 5rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin: 0 auto 1.5rem;
    max-width: 64px;
}

/* Categories section */
.categories-section {
    padding: 5rem 0;
    background-color: #0c0c0c;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-card:hover {
    transform: scale(1.05);
    background-color: #2a2a2a;
}

.category-card h3 {
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                radial-gradient(circle at top right, var(--primary-color) 0%, transparent 60%),
                radial-gradient(circle at bottom left, var(--secondary-color) 0%, transparent 60%);
    background-blend-mode: normal, screen, normal;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta-section p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature svg {
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 4rem 0 1.5rem;
    border-top: 1px solid #1c1c1c;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
}

.footer-link-group ul {
    list-style: none;
}

.footer-link-group li:not(:last-child) {
    margin-bottom: 0.7rem;
}

.footer-link-group a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link-group a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1c1c1c;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .featured-grid,
    .category-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Mobile menu display when active - will be toggled with JS */
    .mobile-menu-active nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        padding: 1.5rem;
        border-top: 1px solid #2a2a2a;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero::before {
        animation: none;
    }
    
    .cta-button:hover,
    .feature-card:hover,
    .category-card:hover {
        transform: none;
    }
}

/* Custom selection color */
::selection {
    background-color: var(--secondary-color);
    color: white;
}
