/* ========== CSS Variables (Dark Theme Default) ========== */
:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --accent: #8B5CF6;
    --accent-hover: #7C3AED;
    --border: #334155;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
}

/* ========== Light Theme Override ========== */
body.light-theme {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --border: #E2E8F0;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

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

/* ========== THEME TOGGLE (FIXED) ========== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#themeToggleDesktop {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

#themeToggleDesktop:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

body.light-theme #themeToggleDesktop {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

body.light-theme #themeToggleDesktop:hover {
    background: rgba(139, 92, 246, 0.2);
}

@media (max-width: 768px) {
    .theme-toggle {
        display: none;
    }
}

/* ========== NAVIGATION (FIXED - WORKS ON ALL PAGES) ========== */
.main-header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a78bfa;
    text-decoration: none;
}

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

.desktop-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #a78bfa;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-btn span {
    width: 25px;
    height: 2px;
    background: #a78bfa;
    transition: 0.3s;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 1.5rem 0;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #a78bfa;
}

/* Mobile Theme Button */
.mobile-theme-toggle {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

#themeToggleMobile {
    width: 100%;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

#themeToggleMobile:hover {
    background: rgba(139, 92, 246, 0.4);
}

/* Light Theme Navigation */
body.light-theme .main-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(139, 92, 246, 0.3);
}

body.light-theme .desktop-nav a {
    color: #1a1a2e;
}

body.light-theme .desktop-nav a:hover,
body.light-theme .desktop-nav a.active {
    color: #6d28d9;
}

body.light-theme .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

body.light-theme .mobile-nav a {
    color: #1a1a2e;
}

body.light-theme .mobile-nav a:hover {
    color: #6d28d9;
}

body.light-theme #themeToggleMobile {
    background: rgba(139, 92, 246, 0.1);
    color: #1a1a2e;
}

body.light-theme #themeToggleMobile:hover {
    background: rgba(139, 92, 246, 0.2);
}

body.light-theme .hamburger-btn span {
    background: #1a1a2e;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .header-content {
        gap: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-theme-toggle {
        display: none;
    }
}

/* ========== Hero Section ========== */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(139,92,246,.15);
    color: #a78bfa;
    padding: .5rem 1.1rem;
    border-radius: 50px;
    font-size: .82rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139,92,246,.3);
}

body.light-theme .badge {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
    border-color: rgba(139, 92, 246, 0.3);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 .purple {
    color: #a78bfa;
}

body.light-theme .hero h1 .purple {
    color: #6d28d9;
}

.subheadline {
    font-size: 1.15rem;
    color: #9090b8;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ========== Trust Bar ========== */
.trust-bar {
    background: rgba(139,92,246,.05);
    padding: 1.25rem;
    border-radius: 16px;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid rgba(139,92,246,.1);
}

.trust-bar p { 
    color: #a78bfa; 
    font-weight: 600; 
    margin-bottom: .75rem; 
}

.trust-icons { 
    display: flex; 
    justify-content: center; 
    gap: 2rem; 
    flex-wrap: wrap; 
}

.trust-icons span { 
    color: #9090b8; 
    font-size: .88rem; 
}

body.light-theme .trust-bar {
    background: rgba(139, 92, 246, 0.08);
}

body.light-theme .trust-bar p {
    color: #6d28d9;
}

body.light-theme .trust-icons span {
    color: #4a4a6a;
}

/* ========== Brands Section ========== */
.brands-section { 
    margin: 3rem 0; 
    text-align: center; 
}

.brands-title { 
    color: #a78bfa; 
    font-size: .78rem; 
    letter-spacing: 1.5px; 
    margin-bottom: 1.5rem; 
}

.brands-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2rem;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    width: 80px;
    transition: transform .25s;
}

.brand-item:hover { 
    transform: translateY(-3px); 
}

.brand-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255,255,255,.05);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.07);
}

.brand-item span {
    font-size: .62rem;
    color: #6060a0;
    text-align: center;
}

body.light-theme .brands-title {
    color: #6d28d9;
}

body.light-theme .brand-item img {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .brand-item span {
    color: #8a8aaa;
}

/* ========== Services Grid (Homepage) ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #a78bfa;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.problem-line {
    font-size: .82rem;
    color: #6060a0;
    font-style: italic;
    margin-bottom: .6rem;
    border-left: 2px solid rgba(139,92,246,.3);
    padding-left: .6rem;
}

.feature-list {
    list-style: none;
    margin: .5rem 0;
}

.feature-list li {
    color: #8080a8;
    font-size: .82rem;
    padding: .2rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.feature-list li::before {
    content: "✓";
    color: #8b5cf6;
}

.quote-btn {
    display: inline-block;
    margin-top: .5rem;
    padding: .45rem 1rem;
    background: rgba(139,92,246,.1);
    border: 1px solid rgba(139,92,246,.3);
    border-radius: 6px;
    color: #a78bfa;
    text-decoration: none;
    font-size: .82rem;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background: #8b5cf6;
    color: #fff;
}

body.light-theme .service-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .service-card h3 {
    color: #6d28d9;
}

/* ========== Page Hero ========== */
.page-hero {
    padding: 80px 0 50px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Services Page ========== */
.services-section {
    padding: 60px 0;
}

.services-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card-full {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.service-card-full:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-card-full .service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card-full h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-price {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-weight: 600;
    color: var(--accent);
}

/* Steps */
.how-it-works {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* ========== Contact Page ========== */
.contact-section {
    padding: 60px 0;
}

.contact-grid-full {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card-large {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.contact-card-large i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.btn-whatsapp, .btn-email, .btn-call {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-email, .btn-call {
    background: var(--accent);
    color: white;
}

.contact-form-full {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form-full input,
.contact-form-full select,
.contact-form-full textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.faq-item h3 {
    color: var(--accent);
    margin-bottom: 12px;
}

/* ========== About Page ========== */
.about-section {
    padding: 80px 0;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 1.8rem;
}

.tools-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-items span {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* ========== Products Page ========== */
.products-section {
    padding: 60px 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-price-tag {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

/* ========== Guarantee, Course, CTA ========== */
.guarantee-banner {
    background: #12121a;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.course-highlight {
    background: #0e0e1a;
    border-radius: 24px;
    padding: 2rem;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.final-cta {
    text-align: center;
    margin: 2rem 0 4rem;
    padding: 2.5rem;
    background: rgba(139,92,246,.05);
    border-radius: 24px;
}

.cta-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

/* ========== Footer ========== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========== WhatsApp Float ========== */
.whatsapp-float {
    position: fixed; 
    bottom: 20px; 
    right: 20px;
    background: #25D366;
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: transform .3s;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 32px;
    color: white;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .services-grid,
    .services-grid-full,
    .contact-grid-full,
    .about-grid,
    .course-highlight {
        grid-template-columns: 1fr;
    }
    
    .hero h1,
    .page-hero h1,
    .section-title {
        font-size: 1.8rem;
    }
    
    .brand-item {
        width: 65px;
    }
    
    .brand-item img {
        width: 50px;
        height: 50px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-input {
        width: 100%;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .step-card, .faq-item, .product-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
