/*--------------------------------------------------------------
# Root Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #6d28d9;
    --primary-dark: #4c1d95;
    --primary-light: #a78bfa;
    --secondary-color: #2dd4bf;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --gray-light: #e2e8f0;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s ease;
    
    /* Background & Text Colors (Light Theme Default) */
    --bg-primary: var(--light-color);
    --bg-secondary: var(--gray-light);
    --bg-card: white;
    --text-primary: var(--dark-color);
    --text-secondary: var(--gray-color);
    --border-color: var(--gray-light);
}

/* Dark Theme Variables */
.dark-theme {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-dark);
}

.theme-toggle i {
    font-size: 1.25rem;
}

/*--------------------------------------------------------------
# Loading Animation
--------------------------------------------------------------*/
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: 0.6s;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(109, 40, 217, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    margin-bottom: 0;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 1001;
    padding: 2rem;
    transition: 0.5s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    text-align: right;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav-link {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.mobile-footer {
    margin-top: 2rem;
}

.mobile-social {
    display: flex;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-light);
    color: var(--dark-color);
    margin: 0 0.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.7;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--primary-light), var(--secondary-color));
    filter: blur(40px);
}

.shape-1 {
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    top: 40%;
    right: 30%;
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/*--------------------------------------------------------------
# Products Section
--------------------------------------------------------------*/
.products {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    z-index: -1;
    opacity: 0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card:hover::before {
    top: 0;
    opacity: 1;
}

.product-card:hover .product-icon,
.product-card:hover h3,
.product-card:hover p {
    color: white;
}

.product-card:hover .product-link {
    color: white;
    opacity: 1;
}

.product-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.product-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.product-link {
    display: flex;
    align-items: center;
    font-weight: 600;
    opacity: 0.8;
    transition: var(--transition);
}

.product-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.product-link:hover i {
    transform: translateX(5px);
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.features .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.features-content {
    flex: 1;
}

.features-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.features-list {
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.features-list i {
    color: var(--success-color);
    margin-right: 1rem;
    font-size: 1.25rem;
}

.features-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    padding-top: 80%;
    overflow: hidden;
    border-radius: 10px;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.contact-social {
    margin-top: 2rem;
    display: flex;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-group {
    min-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.copyright {
    color: var(--gray-light);
    font-size: 0.875rem;
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: -60px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 99;
    opacity: 0;
}

.back-to-top.active {
    bottom: 20px;
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .features .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-info,
    .footer-links {
        flex: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/*--------------------------------------------------------------
# Page Banner
--------------------------------------------------------------*/
.page-banner {
    position: relative;
    padding: 8rem 0 4rem;
    background-color: var(--bg-secondary);
    text-align: center;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-banner p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/*--------------------------------------------------------------
# Page Content
--------------------------------------------------------------*/
.page-content {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.content-wrapper {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.content-wrapper h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.content-wrapper ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-wrapper ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.content-wrapper .last-updated {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 3rem;
} 