/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

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

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #9c27b0, #673ab7);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4a148c;
}

p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    max-width: 220px;
}

.logo-svg {
    height: 40px;
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #9c27b0;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 500;
    color: #333;
    padding: 0.5rem;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #9c27b0, #673ab7);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(121, 85, 72, 0.1), rgba(156, 39, 176, 0.3)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23ffffff"/><path d="M0,50 Q25,20 50,50 T100,50" stroke="%239c27b0" stroke-width="0.5" fill="none" opacity="0.1" transform="scale(1,0.5)"/></svg>');
    background-size: cover;
    color: #333;
    text-align: center;
    padding: 7rem 1rem;
    position: relative;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.hero-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    color: #4a148c;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.5);
}

.cta-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Popular Section */
.popular-section {
    background-color: #fff;
    padding: 5rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05), rgba(103, 58, 183, 0.1));
    z-index: -1;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.category-card:hover:before {
    transform: scale(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

/* Features Section */
.features-section {
    background-color: #f8f9fa;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.features-section:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.1), transparent 70%);
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.feature-item:hover {
    border-bottom: 3px solid #9c27b0;
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
}

/* Technology Section */
.technology-section {
    background-color: #fff;
    padding: 6rem 0;
}

.technology-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.technology-text {
    flex: 1;
}

.technology-visual {
    flex: 1;
    max-width: 400px;
}

.secondary-button {
    display: inline-block;
    background: transparent;
    color: #9c27b0;
    border: 2px solid #9c27b0;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.9), rgba(74, 20, 140, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23ffffff"/><circle cx="50" cy="50" r="40" stroke="%23ffffff" stroke-width="0.5" fill="none" opacity="0.2"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section h2:after {
    background: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #1a0933;
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 2rem;
}

.footer-svg {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

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

.footer-column h4 {
    color: #bb86fc;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #9c27b0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.footer-column ul li a:hover {
    color: #bb86fc;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .technology-content {
        flex-direction: column;
    }
    
    .technology-visual {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        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;
        text-align: center;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .category-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 3rem 1rem;
    }
    
    .cta-button,
    .secondary-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-section {
        padding: 5rem 1rem;
    }
}
