/* General Body and Container Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth; /* For smooth scrolling to sections */
}

.container {
    max-width: 1200px; /* Max width for content */
    margin: 20px auto; /* Center the container with vertical margin */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box; /* Include padding in element's total width */
}

/* Header Styles */
header {
    background-color: #007bff; /* Blue header background */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .stand {
    margin-bottom: 10px; /* Space below logo */
}

header img {
    max-width: 100px; /* Size of the logo */
    height: auto;
    border-radius: 50%; /* If you want a circular logo */
    border: 2px solid white; /* Border around logo */
}

header p {
    font-size: 1.2em;
    font-weight: 300;
    margin: 0;
    padding: 0 15px; /* Add horizontal padding to text */
}

/* Navigation Bar Styles */
nav {
    background-color: #0056b3; /* Slightly darker blue than header */
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on small screens */
    justify-content: center;
    gap: 10px; /* Space between nav items */
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    font-size: 1em;
    flex-grow: 1; /* Allow items to grow to fill space */
    text-align: center;
    min-width: 80px; /* Minimum width for nav items */
}

nav a:hover {
    background-color: #004085; /* Even darker blue on hover */
    transform: translateY(-2px); /* Subtle lift */
}

/* Section Headings */
h2 {
    color: #007bff;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 2em;
    border-bottom: 2px solid #eee; /* Subtle underline */
    padding-bottom: 10px;
}

h3 {
    color: #0056b3;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Service List (OPERATIONS) */
.service-list ul {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Space between list items */
}

.service-list li {
    background-color: #e9f7fe; /* Light blue background */
    border: 1px solid #b2ebf2;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.05em;
    color: #0056b3;
    flex: 1 1 calc(50% - 30px); /* Two columns on larger screens */
    min-width: 280px; /* Prevent items from getting too narrow */
    text-align: center;
}

/* Service Detail Grid */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 30px; /* Space between grid items */
    margin-top: 30px;
}

.service-detail-grid > div {
    background-color: #f8fafd; /* Very light blue background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-detail-grid p {
    font-size: 0.95em;
    color: #555;
}

/* Projects and Contact Sections */
#projects ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}

#projects li {
    margin-bottom: 10px;
}

#contact p {
    text-align: center;
    font-size: 1.1em;
}

#contact a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Support Section */
#support p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.support-button {
    display: block;
    width: fit-content; /* Adjust width to content */
    margin: 0 auto; /* Center the button */
    padding: 12px 30px;
    background-color: #FF0000; /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.support-button:hover {
    background-color: #3CB371;
    transform: translateY(-2px);
}

/* Section Separator */
.section-separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 50px 0; /* More vertical space */
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.9em;
}

/* Constant Change Toggle Section Specific Styles */
.constant-change-section {
    padding: 20px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center; /* Center the button */
}

.constant-change-section button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Make button full width within its container */
    max-width: 400px; /* Limit button width */
    box-sizing: border-box;
    display: flex; /* Use flex to center h2 content */
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 0 auto; /* Center button horizontally */
}

.constant-change-section button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.constant-change-section button:active {
    background-color: #004085;
    transform: translateY(0);
}

.constant-change-section button h2 {
    margin: 0; /* Remove default margin from h2 inside button */
    font-size: 1.5em; /* Adjust font size for better appearance */
    color: inherit; /* Inherit color from button */
    border-bottom: none; /* No underline */
    padding-bottom: 0;
}

#infoBox {
    max-height: 0; /* Start hidden with no height */
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transition for height and opacity */
    opacity: 0; /* Start fully transparent */
    padding: 0 15px; /* Add horizontal padding, vertical will be added on reveal */
    box-sizing: border-box;
}

#infoBox.show {
    max-height: 200px; /* Max height when shown (adjust as needed for content) */
    opacity: 1; /* Fully visible */
    margin-top: 20px; /* Add space when visible */
    padding-bottom: 15px; /* Add bottom padding when visible */
}

#infoBox p {
    line-height: 1.6;
    color: #555;
    text-align: left;
}

/* --- Media Queries for Responsiveness --- */

/* Tablets and larger phones (landscape) */
@media (min-width: 768px) {
    nav a {
        flex-grow: 0; /* Don't force growth, let gap handle spacing */
    }

    .service-list li {
        flex: 1 1 calc(33% - 30px); /* Three columns on larger screens */
    }

    .service-detail-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for service details */
    }
}

/* Desktops */
@media (min-width: 1024px) {
    nav {
        padding: 15px 0; /* Slightly more padding on larger screens */
    }

    nav a {
        padding: 12px 25px; /* Larger padding for nav links */
    }

    header p {
        font-size: 1.5em;
    }

    h2 {
        font-size: 2.5em;
    }

    .service-detail-grid {
        grid-template-columns: 1fr 1fr 1fr; /* Three columns for service details */
    }
}