@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0b10;
    --card-bg: rgba(20, 22, 32, 0.7);
    --primary-color: #00D084;
    --primary-glow: rgba(0, 208, 132, 0.4);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.05);
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Grid Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Glowing Orbs */
.glow-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.orb-1 { top: -100px; right: -100px; }
.orb-2 { bottom: -100px; left: -100px; }

/* Navbar */
nav {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Hero Section */
.hero {
    padding: 200px 10% 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 80vh;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Service Grid */
.services-section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 40%);
    opacity: 0;
    pointer-events: none; /* Prevents this overlay from blocking clicks on buttons inside the card */
    transition: var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 5px 0;
}

.service-card p {
    font-size: 0.8rem;
    display: none; /* Hide description to save space */
}

/* Order Form */
.order-section {
    padding: 100px 10%;
    background: rgba(255, 255, 255, 0.02);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Footer */
footer {
    padding: 80px 10% 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

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

/* Split Layout */
.main-wrapper {
    display: flex;
    padding-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

.left-content {
    flex: 1;
    margin-right: 450px;
    padding: 20px 40px;
    height: calc(100vh - var(--nav-height));
    overflow: hidden; /* No scrolling on the left side */
    display: flex;
    flex-direction: column;
}

.right-sidebar {
    width: 450px;
    padding: 40px;
    position: fixed;
    top: var(--nav-height);
    right: 0;
    height: calc(100vh - var(--nav-height));
    border-left: 1px solid var(--border-color);
    background: #0a0b10;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 10;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 50px var(--primary-glow);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.modal-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.modal-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.detail-item i {
    color: var(--primary-color);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Hamburger Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Mobile Optimization */
@media (max-width: 1024px) {
    nav { 
        padding: 0 5%;
        display: flex !important;
        justify-content: space-between;
    }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 999;
        display: flex !important;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a { font-size: 1.5rem; }
    .mobile-menu-toggle { display: block; }
    nav .btn-primary { display: none; }

    footer { display: none !important; }
    
    /* View Toggling */
    .main-wrapper .left-content { 
        display: none !important; 
        margin-right: 0 !important;
        width: 100% !important;
        padding: 20px !important;
    }
    .main-wrapper .right-sidebar { 
        display: flex !important; 
        width: 100% !important;
    }

    .main-wrapper[data-view="services"] .left-content { 
        display: block !important; 
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .service-card {
        padding: 12px !important;
    }

    .service-card h3 {
        font-size: 0.8rem !important;
    }

    .service-price {
        font-size: 0.9rem !important;
    }
    .main-wrapper[data-view="services"] .right-sidebar { 
        display: none !important; 
    }

    .main-wrapper { 
        padding-top: var(--nav-height); 
        flex-direction: column;
    }
    .right-sidebar { 
        width: 100%; 
        position: relative; 
        top: 0; 
        right: 0;
        height: calc(100vh - var(--nav-height)); 
        border-left: none; 
        padding: 40px 20px;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 5;
    }
    .right-sidebar .section-title h2 {
        font-size: 2.2rem;
    }
}
