:root {
    /* Light Theme (Default) */
    --bg-color: #f4f5f7;
    --text-color: #1a1a1a;
    --text-secondary: #666;
    --accent-color: #3b82f6;
    /* Beautiful Blue */
    --accent-hover: #2563eb;
    --card-bg: #ffffff;
    --border-radius: 24px;
    --gap: 20px;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --font-main: 'Manrope', sans-serif;
    --border-color: rgba(0, 0, 0, 0.05);
    --bg-subtle: #f0f0f0;
    --bg-input: white;
    --border-input: #eee;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --card-bg: #1e293b;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.05);
    --bg-subtle: rgba(255, 255, 255, 0.05);
    --bg-input: #0f172a;
    --border-input: #334155;

    /* Adjust accent for dark mode */
    --accent-color: #60a5fa;
    --accent-hover: #3b82f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    background: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-color);
}

.btn {
    padding: 12px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--bg-subtle);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Logic for icons */
.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    /* Ensure text is white */
}

.whatsapp-btn:hover {
    background-color: #20bd5a;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.telegram-btn {
    background-color: #229ED9;
    color: white;
    /* Ensure text is white */
}

.telegram-btn:hover {
    background-color: #1f8cb3;
    box-shadow: 0 5px 15px rgba(34, 158, 217, 0.4);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: var(--gap);
}

/* Modules General */
.module {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    /* Added subtle border */
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
}

/* Specific Modules Positioning */
.hero-module {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--card-bg);
    /* Clean white -> variable */
    display: flex;
    flex-direction: row;
    position: relative;
}

.service-module {
    grid-column: span 1;
    min-height: 250px;
}

.crm-card {
    grid-column: span 1;
    /* Light theme is default for .module, specific overrides removed */
}

.info-module {
    grid-column: span 1;
    background: var(--bg-subtle);
}

.contact-module {
    grid-column: span 1;
    background: var(--text-color);
    color: var(--bg-color);
}

/* Hero Content */
.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
    font-weight: 300;
    /* Lighter weight for contrast */
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 300px;
}

/* Hero Tech Info */
.hero-tech-info {
    margin-top: 30px;
    max-width: 480px;
}

.vibe-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vibe-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.vibe-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.tech-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tech-description strong {
    color: var(--text-color);
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.tech-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.tech-tag:hover {
    transform: translateY(-2px);
    color: var(--accent-color);
}

/* Hero Visual (Abstract) */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.c1 {
    width: 200px;
    height: 200px;
    background: rgba(59, 130, 246, 0.2);
    top: 20%;
    right: 20%;
}

.c2 {
    width: 150px;
    height: 150px;
    background: rgba(147, 51, 234, 0.2);
    bottom: 20%;
    left: 20%;
}

/* Service Cards */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.price-tag {
    background: var(--bg-subtle);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    /* Make icons accent color */
    background: rgba(59, 130, 246, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.icon-box svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.logo .icon {
    display: flex;
    align-items: center;
    color: var(--accent-color);
}


.service-module h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-module p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.module-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon.positive {
    background: var(--bg-subtle);
    color: var(--accent-color);
}

.btn-icon.positive:hover {
    background: var(--accent-color);
    color: white;
}

/* WP Card */
.tech-stack {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* Info Module */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border: none;
}

.info-row .label {
    color: var(--text-secondary);
}

.info-row .status {
    font-weight: 600;
    color: var(--accent-color);
}

/* Contact Module */
.phone-link {
    display: block;
    color: inherit;
    font-size: 1.5rem;
    text-decoration: none;
    margin: 20px 0;
    font-weight: 700;
}

.social-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}

.site-footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1000px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .hero-module {
        grid-column: span 1;
        flex-direction: column;
        grid-row: auto;
    }

    .hero-visual {
        min-height: 200px;
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    /* Mobile Reordering */
    /* Default order is 0. We want specific items at the end. */





    .contact-module {
        order: 12;
    }

    .site-footer {
        order: 13;
    }
}

/* Side Panel & Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-panel.active {
    transform: translateX(0);
    z-index: 1000;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-color);
}

.panel-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

.panel-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
    background: var(--bg-subtle);
    padding: 5px 15px;
    border-radius: 100px;
}

.panel-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 0 0 30px 0;
}

.order-form h3 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.panel-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input);
    color: var(--text-color);
    border: 2px solid var(--border-input);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}

.panel-input:focus {
    border-color: var(--accent-color);
}

.full-width {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
    margin-top: 10px;
}

@media (max-width: 500px) {
    .side-panel {
        width: 100%;
    }
}

.form-message {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    display: none;
}

.form-message:not(:empty) {
    display: block;
}

.form-message.success {
    background-color: rgba(37, 211, 102, 0.1);
    color: #1b9c4c;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}