/* Color Variables - Deep Space Theme */
:root {
    --primary: #00adb5;       /* Cyber Teal */
    --accent: #71ebd2;        /* Soft Mint */
    --bg-dark: #0f172a;       /* Deep Navy */
    --bg-card: #1e293b;       /* Slate Blue */
    --text-main: #f8fafc;     /* Off White */
    --text-dim: #94a3b8;      /* Muted Grey */
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden; /* Prevents side-scrolling */
}

/* Navigation */
nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .logo { 
    color: var(--primary); 
    font-size: 1.6rem; 
    font-weight: 800; 
    letter-spacing: 2px; 
}

nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
nav ul li a:hover { color: var(--primary); }

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 20px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; color: #fff; }

/* Buttons */
.btn {
    background: var(--primary);
    color: #0f172a;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn:hover { 
    background: var(--accent); 
    box-shadow: 0 0 20px rgba(0, 173, 181, 0.4);
}

/* Layout Containers - The FIX for image_2caa59.png */
section {
    padding: 80px 5%;
    text-align: center;
}

.services-container, .portfolio-grid, .reviews-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

/* Card Styling */
.service-box, .portfolio-card, .review-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    width: 350px; /* Fixed width prevents the stretching in image_2caa59.png */
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card { padding: 0; overflow: hidden; } /* Portfolio needs specific padding 0 for images */

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

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    width: 100%;
}

.card-content { padding: 20px; text-align: left; }
.card-content h3, .service-box h3 { color: var(--primary); margin-bottom: 10px; }
.card-content p, .review-card p, .service-box p { color: var(--text-dim); }

/* FAQ Styles */
.faq-container { max-width: 800px; margin: 40px auto; }
.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary) !important;
    padding: 20px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    background: rgba(255, 255, 255, 0.02);
}
.faq-item.active .faq-answer { max-height: 200px; padding: 10px 20px; }

/* Forms */
input, textarea {
    width: 100%;
    padding: 15px;
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Footer */
footer {
    background: #070a13;
    padding: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    /* Shrink the Hero text so it doesn't wrap awkwardly */
    .hero h1 {
        font-size: 2.2rem;
    }

    /* Stack the Navigation links vertically or hide them */
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Ensure cards take up more width on small screens */
    .service-box, .portfolio-card, .review-card {
        width: 100%;
        max-width: 400px;
    }

    /* Add more breathing room for sections */
    section {
        padding: 40px 20px;
    }
}
