/* --- 1. Global Variables & Base Styling --- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-dark: #0a0e17;       /* Deep charcoal/black */
    --bg-card: #131b2b;       /* Slightly lighter server rack color */
    --accent-blue: #0052ff;   /* Deep LED blue */
    --accent-cyan: #00d2ff;   /* Bright LED cyan */
    --text-light: #e2e8f0;    /* Crisp white for readability */
    --text-muted: #94a3b8;    /* Grey for secondary text */
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling to the form */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3, .logo, .service-header {
    font-family: 'Fira Code', monospace; /* Technical, terminal-style font */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 2. Header & Navigation --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-cyan);
}

/* --- 3. Hero Section (The Server Room) --- */
.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Dims the image so text is readable */
    z-index: -1;
}

.hero-text-container {
    text-align: center;
    max-width: 800px;
    padding: 40px;
    background: rgba(10, 14, 23, 0.7); /* Dark glass effect */
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-description p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- 4. Service Offerings --- */
.services-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-header {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-top: 40px;
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    margin-bottom: 40px;
}

/* Service Card Interactive Styling */
.service-item {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    width: 275px;
    
    /* Layout fix for uniform card structure */
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.15); /* Cyan glow */
}

.service-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 210, 255, 0.3);
}

.service-item img {
    width: 100%;
    height: 180px; /* Force a fixed height */
    object-fit: cover; /* Keeps the image from looking stretched/squashed */
    border-radius: 4px;
}

.service-item:hover img {
    filter: grayscale(0%) contrast(1);
}

.service-title {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 15px 0 10px;
}

.service-desc, .service-included {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-price {
    margin-top: auto; 
    padding-top: 20px;
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: auto;
}

/* --- 5. Consultation Form --- */
.consultation-section {
    background-color: var(--bg-card);
    padding: 80px 20px;
    scroll-margin-top: 50px;
}

.consultation-container {
    max-width: 800px;
    margin: 0 auto;
}

.consultation-text h2 {
    color: var(--accent-cyan);
    text-align: center;
}

.consultation-text p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.form-name-group {
    display: flex;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-light);
}

.sub-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
textarea {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 12px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
}

/* --- 6. Footer --- */
.site-footer {
    background-color: #05080f; /* Darkest shade */
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.footer-title {
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-email, .social-icons a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.made-with {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

.category-wrapper {
    margin: 60px 0;
    width: 100%;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Creates lines on the left and right of the text */
.section-divider::before, 
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 210, 255, 0.3);
    margin: 0 20px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch; /* This makes all cards the same height as the tallest one */
}
.service-included {
    list-style: none; /* Removes the default bullet points */
    padding: 0;
    margin: 15px 0;
}

.service-included li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Creates a subtle line under each item */
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Optional: Removes the border from the very last item so it looks clean */
.service-included li:last-child {
    border-bottom: none;
}
.service-included {
    list-style: none; /* Removes the default bullet points */
    padding: 0;
    margin: 15px 0;
}

.service-included li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Creates a subtle line under each item */
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Optional: Removes the border from the very last item so it looks clean */
.service-included li:last-child {
    border-bottom: none;
}
#formStatus{
    margin-top:15px;
    font-weight:600;
    text-align:center;
    min-height:24px;
}

.autocomplete-container {
    position: relative; /* Crucial: allows the dropdown to float below the input */
    width: 100%;
    margin-bottom: 20px;
}

.suggestions-list {
    position: absolute;
    top: 100%; /* Positions it exactly at the bottom of the input field */
    left: 0;
    right: 0;
    background-color: var(--bg-card, #131b2b); /* Using your existing variables */
    border: 1px solid var(--accent-cyan, #00d2ff);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    list-style: none; /* Removes bullet points */
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto; /* Adds a scrollbar if there are many results */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Hide the list by default */
.suggestions-list:empty {
    display: none;
}

.suggestions-list li {
    padding: 12px 15px;
    cursor: pointer;
    color: var(--text-light, #e2e8f0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background-color: rgba(0, 210, 255, 0.1); /* Subtle cyan highlight */
    color: var(--accent-cyan, #00d2ff);
}


/* --- 7. Mobile Responsiveness (Vertical Stack) --- */
@media (max-width: 768px) {
    


    .site-header{
        display: grid;
        padding: 10px 20px;
        align-items: center;
    }
    .logo{
        display: flex;
        flex-direction: column;
        letter-spacing: normal;
        text-align: center;
    }
    .hero-description p{
        display: flex;
        justify-content: center;
        font-size: 1rem;
        text-align: center;
        align-items: center;
    }

    .hero-title{
        margin: 0 0 0%;
        font-size: 1.4rem;
        padding: 1%;
    }
    .hero-text-container{

        gap: 1px;
        padding-top: 20%;
        height: auto;
        
    }
    .main-nav a {
        margin-left: 0px;
    }
    p{
     display: flex;   
    }
    /* 1. Shrink the main grid container */
    .services-grid {
        transform: scale(0.01); /* Shrinks the grid to 60% of its desktop size */
        transform-origin: top center; /* Keeps the grid pinned to the top */
        margin-top: -80px; /* Pulls the grid up to close the gap created by scaling */
        margin-bottom: -150px; /* Pulls the footer up */
        width: 100vw; /* Keeps it within the viewport width */
    }


    /* 2. Fix the wrapper so it doesn't leave huge whitespace */
    .category-wrapper {
        height: 80px; /* You may need to adjust this height to fit your scaled cards */
        overflow: hidden;
        margin: 0 0 -10%;
    }
    .main-nav{
        display: flex;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }


    .section-divider{
        font-size: medium;
    }
    .services-section{
        padding: 10px;
    }
    #services{
        display: grid;
        place-items: center;
        gap: 10px;
    }

    .consultation-section{
        padding: 20px 20px;
    }


    .form-name-group{
        gap: 0px;
        padding-right: 50%;
    
    }
    .consultation-section{
        padding-left: 10px;
        padding-right: 10px;
    }
    .made-with{
        justify-content: center;
    }

}