/* 🚀 NEW FONT IMPORT: Rajdhani (Modern, condensed, technical look) */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@700&display=swap');

/* CSS STYLES */
:root {
    --primary-color: #121212; 
    --secondary-color: #ffffff; 
    --accent-color: #00bcd4; 
    --content-bg: rgba(0, 0, 0, 0.7); 
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; 
    min-height: 100vh;
    text-align: center;
    position: relative; 
    
    /* Subtle repeating grid background pattern */
    background-image: linear-gradient(to right, #222 1px, transparent 1px),
                      linear-gradient(to bottom, #222 1px, transparent 1px);
    background-size: 30px 30px;
}

/* --- PAGE WRAPPER TO CONSTRAIN ALL CENTRAL CONTENT --- */
.page-wrapper {
    max-width: 900px; 
    margin: 0 auto; 
    width: 100%;
}


/* --- REVISED: NAVIGATION BAR STYLING (Integrated Look) --- */
.nav-bar {
    position: relative; 
    width: 100%;
    background: rgba(18, 18, 18, 0.4); 
    border-top: none; 
    border-radius: 0 0 6px 6px; 
    
    /* MODIFIED: Flexbox to distribute links across the width */
    display: flex; 
    justify-content: space-between;
}


/* --- MODIFIED: Nav Links now look like Secondary Buttons --- */

.nav-link {
    display: inline-block;
    padding: 12px 25px; 
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px; 
    transition: all 0.2s ease;
    letter-spacing: 1px;
    
    /* MODIFIED: Allow link to take up equal space */
    min-width: auto; 
    flex-grow: 1;
    
    text-align: center;
    box-sizing: border-box; 
    background-color: transparent;
    color: var(--accent-color); 
    border: none; 
}

.nav-link:hover {
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
    border: none; 
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3); 
} 

/* --- END NAVIGATION BAR STYLING --- */

/* --- CONTENT CONTAINER --- */
.container {
    padding: 40px 30px;
    background: var(--content-bg); 
    border: 1px solid var(--accent-color); 
    border-radius: 6px; 
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2); 
    /* REVISED: Negative margin to pull the container up and meet the nav-bar */
    margin-top: 20px; 
    margin-bottom: 20px; 
    margin-left: 0; 
    margin-right: 0; 
    z-index: 10; 
    position: relative; 
    transition: transform 0.6s ease, opacity 0.6s ease; 
}

.container.slide-up-active {
    transform: translateY(-5px);
    opacity: 0.9;
}

/* --- HEADER STYLING --- */
.header-section {
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left; 
    padding: 20px 0 0 0;
}

.company-identity {
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    margin-bottom: 5px;
}

.header-text {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
}

.logo-header {
    max-width: 164px; 
    height: auto;
    margin-right: 20px; 
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.company-name {
    font-size: 2.5em; 
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif; 
    color: var(--secondary-color); 
    margin-top: 0;
    margin-bottom: 2px; 
    letter-spacing: 3px; 
    text-transform: uppercase;
    line-height: 1; 
}

.tagline {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--accent-color); 
    margin-top: 2px; 
    margin-bottom: 0; 
    text-transform: none;
    padding-top: 0; 
    display: inline-block;
    margin-left: 0; 
    text-align: left; 
}
/* --- END HEADER STYLING --- */

/* NEW CONTAINER FOR DESCRIPTION/SERVICE DETAIL */
#infoDisplay {
    min-height: 100px; 
    font-size: 1.0em;
    line-height: 1.7;
    margin-bottom: 40px; 
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color); 
    text-align: center; 
    transition: opacity 0.6s ease; 
}

#infoDisplay strong {
    color: var(--accent-color);
    font-weight: 800; 
    text-transform: uppercase; 
}

#infoDisplay a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

#infoDisplay a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* --- SERVICES LIST STYLING --- */
.services-list {
    margin-bottom: 20px; /* MODIFIED: Decreased space above buttons */
    padding: 20px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1); 
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1); 
    text-align: center; 
    transition: margin-top 0.5s ease;
}

.services-list h3 {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--accent-color); 
    margin-bottom: 30px; /* MODIFIED: Increased space below the title */
    display: block;
}

.services-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px; 
}

.services-list li {
    font-size: 0.95em;
    color: var(--secondary-color);
    
    /* MODIFIED: Added Flexbox for Vertical Centering */
    display: flex;
    align-items: center; /* Vertically centers the content */
    
    padding: 8px 15px; /* Added padding for space inside the border */
    margin: 5px 0;    /* Added vertical margin to space out items */
    cursor: pointer; 
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    
    /* MODIFIED: Border Definition */
    border: 1px solid var(--accent-color);
    border-radius: 50px; /* MODIFIED: Changed dramatically for the oval/pill shape */
    
    /* MODIFIED: Center the text inside the border box (Horizontally) */
    text-align: center; 
}

.services-list li:hover {
    color: var(--accent-color);
}

.services-list li.active-service {
    color: var(--primary-color); 
    font-weight: 700;
    background-color: var(--accent-color); 
    border-color: var(--accent-color); 
}

/* --- BUTTONS (Common Styles) --- */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px; 
}

.cta-button, .secondary-button, #homeButton, #historyButton { 
    display: inline-block;
    padding: 12px 25px; 
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px; 
    transition: all 0.2s ease;
    letter-spacing: 1px;
    min-width: 160px; 
    text-align: center;
    box-sizing: border-box; 
    cursor: pointer;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color); 
    border: 2px solid var(--accent-color); 
}

.cta-button:hover {
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3); 
}

.secondary-button {
    background-color: transparent;
    color: var(--accent-color); 
    border: 2px solid var(--accent-color); 
}

.secondary-button:hover {
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
    border: 2px solid var(--secondary-color); 
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3); 
}

#homeButton {
    display: none; 
}

#learnMoreButton.hidden, #historyButton.hidden { 
    display: none;
}


.footer {
    color: rgba(255, 255, 255, 0.2); 
    font-size: 0.8em;
    padding: 20px 0;
    position: relative;
    width: 100%;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .logo-header {
        max-width: 98px; 
    }
    .company-name {
        font-size: 1.8em;
    }
    .tagline {
        font-size: 0.9em;
    }
    .services-items {
        flex-direction: column; 
        gap: 10px;
    }
    .services-list li {
         width: 80%;
         margin: 0 auto;
    }
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    .nav-bar {
        padding: 10px 0;
        max-width: 100%; 
        /* Ensure responsive nav bar is also a column */
        flex-direction: column; 
    }
    .nav-link {
        min-width: 0;
        padding: 8px 15px; 
        /* On small screens, let them take full width */
        width: 100%;
        margin-bottom: 5px;
    }
}
/* --- FOUNDATIONS SECTION STYLING --- */

.foundation-image {
    /* Ensures the image doesn't overflow the main content box on smaller screens */
    max-width: 50%; 
    height: auto;
    display: block; /* Centers the image */
    margin: 15px auto 25px auto; /* Adds vertical spacing and centers horizontally */
    
    /* Optional: Adds subtle styling to match your theme */
    border-radius: 6px; 
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.foundation-content p {
    /* Ensures the text is left-aligned and separated from the image/heading */
    text-align: left;
    max-width: 700px;
    margin: 15px auto;
}