/* ========================================
   BASE THEME STYLES - SHARED ACROSS ALL THEMES
   ======================================== */

/* CSS Reset & Normalize */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .nav-link:hover {
        opacity: 0.7;
    }
}

.cta-nav {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    transition: all 0.3s ease;
}

/* Theme Switcher */
.theme-switcher-btn {
    position: fixed;
    top: 6rem;
    right: 2rem;
    z-index: 1250;
    /* Above mobile menu (1200) */
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Remove hover transform on touch devices */
@media (hover: hover) {
    .theme-switcher-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    }
}

.theme-switcher-text {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.theme-switcher-cta {
    display: block;
    font-weight: bold;
}

/* Theme Modal */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Highest z-index to be above everything */
    padding: 2rem;
}

.theme-modal.active {
    display: flex;
}

/* Theme Previews with actual content */
.theme-preview-cyber {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid #00ff88;
    position: relative;
    overflow: hidden;
}

.theme-preview-cyber::before {
    content: 'DARK ELEGANCE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: #00ff88;
    letter-spacing: 0.05em;
}

.theme-modal-content {
    max-width: 800px;
    width: 100%;
    padding: 3rem;
    border-radius: 1rem;
    position: relative;
}

.theme-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-modal h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.theme-modal-desc {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.theme-option {
    cursor: pointer;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .theme-option:hover {
        transform: translateY(-4px);
    }
}

.theme-preview {
    width: 100%;
    height: 120px;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.theme-option h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.theme-option p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.theme-modal-footer {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-headline {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subheadline {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

@media (hover: hover) {
    .cta-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
}

.cta-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.hero-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Problem Section */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .problem-card:hover {
        transform: translateY(-8px);
    }
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.problem-transition {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.problem-transition p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.highlight {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Solution Section */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.solution-image img {
    width: 100%;
    border-radius: 1rem;
}

.solution-text h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.solution-text p {
    margin-bottom: 1rem;
}

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

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.guarantee {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0;
}

/* Services Section - Divided into two grids */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.service-card {
    padding: 2.5rem;
    border-radius: 1rem;
    width: 100%;
}

/* Remove hover transform on touch devices */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-8px);
    }
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.service-problem,
.service-solution,
.service-benefits,
.service-tech,
.service-ideal {
    margin-bottom: 1.5rem;
}

.service-benefits ul,
.service-benefits-list ul,
.pricing-tiers ul {
    list-style: none;
    margin-top: 0.5rem;
}

.service-benefits li,
.service-benefits-list li,
.pricing-tiers li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-benefits li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.case-study,
.differentiator {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.case-study h4,
.differentiator h4 {
    margin-bottom: 0.5rem;
}

.services-cta {
    text-align: center;
}

/* Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.process-step {
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.process-step h3 {
    font-size: 1.2rem;
    margin: 0;
}

.step-duration {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin: 0;
}

.process-step > p:not(.step-duration):not(.step-note) {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.step-list li {
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.9rem;
    opacity: 0.85;
}

.step-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.step-note {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.75;
}

.guarantee-box {
    text-align: center;
    padding: 2.5rem;
    border-radius: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.guarantee-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.guarantee-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 1rem;
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.client-logos {
    text-align: center;
}

.logos-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    align-items: center;
}

.logos-grid img {
    width: 100%;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.logos-grid img:hover {
    opacity: 1;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-question[aria-expanded="true"]+.faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 2px solid;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
}

.checkbox-group label {
    display: flex;
    gap: 0.5rem;
    align-items: start;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.error-message {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.form-success {
    display: none;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

.form-success.active {
    display: block;
}

.contact-alternatives {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-alternatives p {
    margin: 0.5rem 0;
}

.contact-alternatives a {
    font-weight: 600;
}

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

/* Footer */
.footer {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.footer a:hover {
    opacity: 0.7;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section .container {
        grid-template-columns: 1fr;
    }

    .solution-content {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Lateral Sidebar Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary, #0a0a0a);
        padding: 6rem 2rem 2rem;
        transition: left 0.3s ease;
        z-index: 1100;
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav-link {
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* Show mobile burger toggle */
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1200;
        position: relative;
    }

    /* Menu overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1050;
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .theme-switcher-btn {
        top: auto;
        bottom: 2rem;
        right: 1rem;
        padding: 0.8rem 1rem;
    }

    .theme-switcher-text {
        font-size: 0.7rem;
    }

    .theme-options {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .problem-cards,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-secondary {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .hero-section {
        padding-top: 6rem;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .trust-badges {
        flex-direction: column;
    }

    .cta-primary,
    .cta-secondary {
        display: block;
        text-align: center;
    }
}