/* Modern CSS Reset & Variables */
:root {
    /* Color Palette - Violet / Deep Obsidian */
    --primary-color: #6A00FF;
    /* Requested Violet */
    --primary-dark: #4c00b0;
    /* Darker Violet */
    --secondary-color: #020617;
    /* Deep Obsidian */
    --accent-color: #a855f7;
    /* Lighter Purple */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --bg-white: #0f172a;
    --bg-light: #020617;
    --glass-bg: rgba(15, 23, 42, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --container-padding: 2rem;
    --max-width: 1200px;
    --border-radius: 1rem;
    --border-radius-lg: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.7);
    --shadow-glow: 0 0 25px rgba(106, 0, 255, 0.4);

    /* Component Backgrounds Dark */
    --product-bg: #0f172a;
    --input-bg: #1e293b;
    --input-border: #334155;
    --card-bg: rgba(15, 23, 42, 0.7);
    --hover-bg: #1e293b;
}

[data-theme="light"] {
    --primary-color: #6A00FF;
    --primary-dark: #5800cc;
    --secondary-color: #f3e8ff;
    --accent-color: #7c3aed;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(106, 0, 255, 0.1);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Component Backgrounds Light */
    --product-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --card-bg: rgba(255, 255, 255, 0.6);
    --hover-bg: #f3f4f6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.bg-white {
    background-color: var(--bg-white);
}

.section-padding {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--primary-dark);
    border: 2px solid transparent;
    /* Keeps sizing consistent */
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    /* Add padding for hover background */
    border-radius: 0.5rem;
    /* Rounded corners */
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
    background-color: var(--hover-bg);
    /* Apply the hover background */
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    margin-right: 1rem;
    margin-left: auto;
    /* Push to right on mobile if needed */
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    /* Top padding accounts for fixed nav */
    background: radial-gradient(circle at top right, var(--secondary-color), transparent 40%),
        radial-gradient(circle at bottom left, var(--bg-light), transparent 40%);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1581578731117-104f2a41272c?q=80&w=2070&auto=format&fit=crop');
    /* Placeholder clean interior */
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    /* Subtle texture */
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.badge-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.badge-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(168, 85, 247, 0.35);
}

/* Services */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--secondary-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    /* Center icon */
}

.service-card h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.service-card p {
    color: var(--text-secondary);
    text-align: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-image: url('https://images.unsplash.com/photo-1527513123882-b20f7a57a5P6?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stars {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.reviewer-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.reviewer-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.reviewer-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Contact */
.contact-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--secondary-color) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-white);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding-right: 2rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 0.5rem;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 0, 255, 0.1);
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.8;
}

.footer-social a:hover {
    opacity: 1;
}

[data-theme="dark"] .footer {
    background-color: var(--bg-white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

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

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        z-index: 1001;
        /* Above nav links */
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -5px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

.success {
    background-color: #22c55e !important;
    /* Green for success */
    border-color: #22c55e !important;
}

/* Products Section */
.products-section {
    background-color: var(--bg-light);
}

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

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: var(--product-bg);
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Experience Section */
.experience-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

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

.experience-content {
    padding-right: 2rem;
}

.experience-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.experience-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.experience-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.experience-image .image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
    border: 2px solid white;
}

.experience-image .image-wrapper:hover {
    transform: rotate(0);
}

.experience-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .experience-content {
        padding-right: 0;
        text-align: center;
    }

    .experience-stats {
        justify-content: center;
    }

    .experience-image .image-wrapper {
        transform: rotate(0);
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Logo Badge Style */
.logo {
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    opacity: 1;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;

    /* Universal Badge Strategy (Source: White BG / Black Text):
       1. grayscale(1) contrast(100): Force Pure White BG / Pure Black Text.
       2. invert(1): Swap to Pure Black BG / Pure White Text.
       3. mix-blend-mode: screen: Black BG becomes Transparent.
       Result: White Text on Violet Container.
    */
    filter: grayscale(1) contrast(100) invert(1);
    mix-blend-mode: screen;
}