/* --- Variables & Reset --- */
:root {
    /* Brand Colors */
    --primary: #5B4BEB; 
    --primary-dark: #4032b8;
    
    /* Light Mode (Default) */
    --bg-body: #f4f5f7; 
    --bg-surface: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --border-color: #e0e0e0;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    
    /* Dimensions */
    --radius: 12px;
    --nav-height: 70px;
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-body: #121212;
    --bg-surface: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-surface); 
    padding-top: var(--nav-height);
    transition: background-color 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(91, 75, 235, 0.3);
}
.btn-primary:hover { 
    background-color: var(--primary-dark); 
    transform: translateY(-2px); 
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
}
.btn-outline:hover { 
    background-color: var(--primary); 
    color: #ffffff !important; 
}

.full-width { width: 100%; }

/* --- Navbar --- */
.navbar {
    background: var(--bg-surface);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-right: auto;
}

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
    margin-left: 10px;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 30px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-links.active { transform: translateY(0); }
    body.menu-open { overflow: hidden; }
}

/* --- Hero Section --- */
.hero { 
    padding: 60px 0 40px; 
    text-align: center; 
    background: var(--bg-surface);
}
.hero h1 { 
    font-size: 2.8rem; 
    line-height: 1.2; 
    margin-bottom: 20px; 
    color: var(--text-main);
}
.hero p { 
    color: var(--text-muted); 
    margin-bottom: 30px; 
    max-width: 600px; 
    margin: 0 auto 30px; 
    padding: 0 10px;
}
.hero-buttons { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    flex-wrap: wrap;
}

/* Mobile Hero Fixes */
@media (max-width: 600px) {
    .hero { padding-top: 40px; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { 
        flex-direction: column; 
        align-items: stretch;
        padding: 0 40px; 
    } 
    .btn { width: 100%; }
}

/* --- Features Grid --- */
.features {
    padding: 60px 0;
    background: var(--bg-body);
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Product Cards (Services Page) --- */
.category-section { margin-bottom: 60px; }
.category-title { font-size: 1.8rem; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--border-color); color: var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.product-card { background: var(--bg-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.card-image-wrapper { width: 100%; height: 200px; background: #eee; }
.card-image { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-features { list-style: none; margin-bottom: 20px; text-align: left; }
.card-features li { padding-left: 15px; position: relative; margin-bottom: 5px; color: var(--text-muted); font-size: 0.9rem; }
.card-features li::before { content: "•"; color: var(--primary); position: absolute; left: 0; font-weight: bold; }

/* --- Order Form (RESTORED) --- */
.order-form {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto 60px;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block; /* Ensures Label is on its own line */
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; /* Ensures Input is full width */
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-body);
    color: var(--text-main);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface);
}

.form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Footer --- */
footer { background: #111; color: #888; text-align: center; padding: 30px 0; }