/* Base Styles - Matching Main Site */
:root {
    --bg: #070707;
    --panel: #131416;
    --muted: #9CA3AF;
    --accent: #00C2A8;
    --accent-2: #7C5CFF;
    --text: #E6EEF8;
    --card: #181c24;
    --glass: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.12);
    --primary: #7C5CFF;
    --secondary: #00C2A8;
    --text-muted: #9CA3AF;
}

/* Page transition animations */
body {
    animation: fadeIn 0.3s ease-in;
}

body.page-transitioning {
    animation: fadeOut 0.3s ease-out;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(124,92,255,0.05) 0%, transparent 50%), 
                radial-gradient(circle at 80% 80%, rgba(0,194,168,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Navigation - Matching Main Site */
.navbar {
    --nav-opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 10px 24px;
    box-sizing: border-box;
    z-index: 1000;
    transition: background-color 220ms ease, backdrop-filter 220ms ease, box-shadow 220ms ease;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.navbar.scrolled {
    --nav-opacity: 0.72;
    background-color: rgba(10, 11, 6, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

.navbar-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo img {
    width: 56px;
    height: 56px;
    display: block;
    object-fit: contain;
}

.nav-center {
    position: static;
    margin-left: auto;
    top: auto;
    transform: none;
}

.nav-center .nav-links {
    background: var(--panel);
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    border: 1px solid var(--border);
    height: 56px;
    display: flex;
    align-items: center;
}

.nav-links ul {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
}

.nav-links a {
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background 180ms;
    display: inline-block;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.08);
}

.navbar .logo {
    margin-left: 12px;
}

/* Language Switcher */
.language-dropdown {
    position: relative;
}

.lang-btn {
    background: transparent;
    cursor: pointer;
    border: none;
    font-family: inherit;
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
    transition: background 180ms;
    display: inline-block;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.08);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    min-width: 120px;
    z-index: 1000;
    overflow: hidden;
}

.lang-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background 180ms;
}

.lang-menu a:hover {
    background: rgba(255,255,255,0.05);
}

.lang-menu.active {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section - Matching Main Site */
.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 80px;
    background: var(--panel);
    border-radius: 0 0 40px 40px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Sections - Matching Main Site */
.service-section {
    padding: 100px 20px;
    position: relative;
}

.service-section.alt {
    background: var(--panel);
    border-radius: 40px;
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(0,194,168,0.3));
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .service-details {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.detail-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s;
}

.detail-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,194,168,0.2);
    border-color: var(--accent);
}

.detail-card:hover::before {
    opacity: 1;
}

.detail-card h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 18px;
    color: var(--accent);
    font-weight: 700;
}

.detail-card > p {
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card ul li:last-child {
    border-bottom: none;
}

.detail-card ul li strong {
    color: var(--text);
    font-weight: 600;
}

/* Calculator Section - Matching Main Site */
.calculator-section {
    padding: 100px 20px 80px;
    background: transparent;
}

.calculator-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-container {
    max-width: 1400px;
    margin: 60px auto 0;
}

.calculator-step {
    margin-bottom: 60px;
}

.calculator-step h3 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin-bottom: 30px;
    color: var(--accent-2);
    font-weight: 700;
    text-align: left;
    display: block;
}

/* Service Selector - Matching Main Site */
.service-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-option input {
    display: none;
}

.option-card {
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.05), rgba(0, 194, 168, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.option-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,194,168,0.2);
}

.option-card:hover::before {
    opacity: 1;
}

.service-option input:checked + .option-card {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 194, 168, 0.15));
    box-shadow: 0 15px 50px rgba(124, 92, 255, 0.4);
}

.option-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0,194,168,0.5));
}

.option-card h4 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.option-card p {
    color: var(--muted);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Features Grid - Matching Main Site */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 25px;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.feature-item input {
    display: none;
}

.feature-content {
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.feature-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-content:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,194,168,0.2);
}

.feature-content:hover::before {
    opacity: 1;
}

.feature-item input:checked + .feature-content {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 194, 168, 0.12), rgba(124, 92, 255, 0.08));
    box-shadow: 0 12px 35px rgba(124, 92, 255, 0.3);
}

.feature-content h4 {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--muted);
    flex-grow: 1;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-price {
    display: block;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.15rem;
}

/* Price Summary - Fixed Under Options */
.price-summary {
    position: relative;
    background: var(--panel);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 35px;
    margin-top: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.summary-content {
    max-width: 800px;
    margin: 0 auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--accent);
    margin-top: 15px;
    padding-top: 20px;
    font-size: 1.8rem;
    font-weight: 800;
}

.summary-row.total span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--accent);
}

.price-note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 20px;
    text-align: center;
    line-height: 1.6;
}

.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--text);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 8px 25px rgba(0,194,168,0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(124, 92, 255, 0.5);
}

.btn-secondary {
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(0,194,168,0.1);
    transform: translateY(-2px);
}

/* Quote Modal */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--panel);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--muted);
    margin-bottom: 30px;
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.quote-table thead th {
    background: rgba(0,194,168,0.1);
    color: var(--accent);
    padding: 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

.quote-table tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.quote-table tbody tr:hover {
    background: rgba(0,194,168,0.05);
}

.quote-table tfoot .total-row td {
    padding: 20px 15px;
    font-size: 1.3rem;
    border-top: 2px solid var(--accent);
    border-bottom: none;
}

.quote-table tfoot .total-row td:last-child {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer - Matching Main Site */
.footer {
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 60px 20px 40px;
    text-align: center;
    color: var(--muted);
    margin-top: 80px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s;
    font-weight: 600;
}

.footer a:hover {
    color: var(--accent-2);
    text-shadow: 0 0 10px rgba(0,194,168,0.5);
}

/* Responsive Design - Matching Main Site */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .navbar {
        padding: 10px 16px;
    }
    
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000;
    }
    
    .nav-center {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: var(--panel) !important;
        padding-top: 76px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.6);
        transform: translateX(100%) !important;
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0 !important;
    }
    
    .nav-center.active {
        transform: translateX(0) !important;
    }
    
    .nav-center .nav-links {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        display: block !important;
        width: 100% !important;
    }
    
    .nav-center .nav-links ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-center .nav-links ul li {
        width: 100% !important;
        border-bottom: 1px solid var(--border);
        list-style: none;
    }
    
    .nav-center .nav-links ul li:last-child {
        border-bottom: none;
    }
    
    .nav-center .nav-links a,
    .nav-center .lang-btn {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 20px !important;
        font-size: 16px !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .nav-center .nav-links a:hover,
    .nav-center .lang-btn:hover {
        background: rgba(255,255,255,0.05) !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .nav-center .language-dropdown {
        width: 100% !important;
    }
    
    .nav-center .language-dropdown .lang-menu {
        position: static !important;
        width: 100% !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-center .language-dropdown .lang-menu a {
        padding: 16px 32px !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero {
        padding: 120px 20px 60px;
        border-radius: 0 0 30px 30px;
    }

    .service-selector {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        box-sizing: border-box;
    }

    .service-details {
        grid-template-columns: 1fr;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 20px;
    }

    .summary-content {
        flex-direction: column;
        gap: 15px;
    }

    .summary-row.total {
        margin-left: 0;
        text-align: center;
    }

    .price-note {
        text-align: center;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero {
        padding: 100px 15px 50px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .calculator-section {
        padding: 60px 15px 50px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .service-section {
        padding: 60px 15px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .detail-card,
    .option-card,
    .feature-content {
        padding: 25px 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .price-summary {
        padding: 25px 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .calculator-step h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: 95%;
        box-sizing: border-box;
    }

    .quote-table {
        font-size: 0.9rem;
        max-width: 100%;
        overflow-x: auto;
    }

    .quote-table thead th,
    .quote-table tbody td {
        padding: 10px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
}
