/* Global Styles */
:root {
    --primary-color: #8c43ff;
    --primary-light: #b47fff;
    --primary-dark: #6b24dd;
    --secondary-color: #2d3047;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #191919;
    --light-bg: #f5f5f5;
    --accent: #ff6b6b;
    --gradient: linear-gradient(135deg, #8c43ff 0%, #6b24dd 100%);
    --shadow: 0 4px 20px rgba(140, 67, 255, 0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

/* Header Styles */
header {
    background-color: var(--light-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 240px;
    height: 60px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Search Hero Section */
.search-hero {
    background: var(--gradient);
    color: var(--light-text);
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
}

.search-hero h1 {
    margin-bottom: 30px;
}

.search-hero h1 span {
    color: var(--light-text);
    background: rgba(0, 0, 0, 0.1);
    padding: 0 10px;
    border-radius: 5px;
}

.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto 20px;
}

.search-container input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-container button:hover {
    background: var(--primary-dark);
}

.search-container button svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.search-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--light-text);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Features Section */
.features {
    background-color: var(--light-text);
    padding: 100px 0;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-box {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(140, 67, 255, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-color);
    font-size: 1.05rem;
}

/* Trending Section */
.trending {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.tag {
    background: var(--light-text);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

/* About Section */
.about {
    background: var(--light-text);
    padding: 100px 0;
}

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

.about-text {
    font-size: 1.1rem;
}

.about-text p strong {
    color: var(--primary-color);
}

.about-graphic {
    display: flex;
    justify-content: center;
}

.about-graphic svg {
    max-width: 100%;
    height: auto;
}

.secondary-button {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.secondary-button:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    margin: 50px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

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

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    opacity: 0.8;
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-svg {
    width: 200px;
    height: 50px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-light);
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 40px;
    background: var(--primary-light);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-icon {
    margin-bottom: 20px;
}

.footer-bottom p {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-graphic {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--light-text);
        padding: 80px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .search-container input {
        padding: 15px 50px 15px 15px;
        font-size: 1rem;
    }
    
    .search-container button {
        width: 38px;
        height: 38px;
    }
    
    .search-container button svg {
        width: 20px;
        height: 20px;
    }
    
    .features-container {
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .search-hero {
        padding: 70px 0 50px;
    }
    
    .cta-button,
    .secondary-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
