/*
=================================================
Nirvalink - Consolidated Style Sheet (style.css)
=================================================
*/

/* --- 1. Variables and Base Styles --- */
:root {
    --primary-blue: #004d99; /* Dark Blue */
    --light-gray: #f9f9f9;
    --dark-gray: #333;
    --shadow-color: rgba(0, 77, 153, 0.25);
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    scroll-behavior: smooth; /* NEW */
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white; 
    color: var(--dark-gray); 
    line-height: 1.6;
    
}

/* --- 2. Navigation Bar (Sticky and Professional) --- */
.navbar {
    background-color: #ffffff; 
    border-bottom: 1px solid #eee; 
    padding: 25px 40px; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0;
    z-index: 1000; 
}

.logo {
    min-width: 150px; 
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.8em; 
    font-weight: 700;
    color: var(--primary-blue); 
}

.nav-list {
    list-style: none; 
    margin: 0;
    padding: 0;
    display: flex; 
    flex-grow: 0; 
}

.nav-list li {
    margin-left: 30px; 
}

.nav-link {
    text-decoration: none; 
    color: var(--dark-gray); 
    font-weight: 600;
    font-size: 1.25em; 
    padding: 8px 10px;
    transition: color 0.3s; 
}

.nav-link:hover {
    color: var(--primary-blue); 
}

/* --- 3. Hero Section and Call-to-Action (CTA) --- */
.hero {
    background-image: url('bckimg.jpg'); 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* NEW */
    background-size: cover;
    padding: 100px 40px;
    text-align: center;
    border-bottom: 5px solid var(--primary-blue); 
    position: relative; 
    overflow: hidden; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(2px); 
    -webkit-backdrop-filter: blur(2px); 
    z-index: 1; 
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; 
    z-index: 2; 
}

.hero h1 {
    font-size: 3em;
    color: #2c3e50; 
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); 
}

.hero p {
    font-size: 1.25em;
    color: #555;
    margin-bottom: 30px;
    text-shadow: none; 
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-blue); 
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.cta-button:hover {
    background-color: #ffffff;
    transform: translateY(-3px); /* Slightly more lift */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* NEW: Add Shadow */
    color: var(--text-dark);
}

/* --- 4. General Content Sections --- */
.section {
    padding: 60px 40px;
    text-align: center;
}

/* --- 5. Services Section (with Icons) --- */
.services-overview h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 40px;
}

.service-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px;
    max-width: 1200px; 
    margin: 0 auto;
}

.service-item {
    flex-basis: calc(33.33% - 30px); 
    min-width: 250px; 
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left; 
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 77, 153, 0.15); 
}

.service-item h3 {
    color: var(--primary-blue); 
    margin-top: 0;
    display: flex;
    align-items: center;
}

.service-item h3 i {
    font-size: 1.5em; 
    margin-right: 15px;
    color: #2c3e50; 
}

/* --- 5.5. Why Choose Us Section --- */
.why-choose-us {
    background-color: white; 
    /* Reduced top/bottom padding */
    padding: 60px 40px; 
}

.why-choose-us h2 {
    font-size: 2.2em;
    color: var(--primary-blue);
    /* Reduced margin below the heading */
    margin-bottom: 30px; 
}

.advantage-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Reduced gap */
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-item {
    flex-basis: calc(33.33% - 20px);
    /* Reduced internal padding significantly */
    padding: 20px; 
    
    /* Using a subtle left border for definition, similar to Core Values */
    border: none; 
    border-left: 3px solid var(--primary-blue); 
    border-radius: 4px;
    
    /* Added background for visual separation from white background */
    background-color: var(--light-gray); 
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left; /* Aligned text left for a list-like appearance */
}

.advantage-item:hover {
    transform: none; /* Removed the lift on hover */
    box-shadow: 0 0 0 1px var(--primary-blue); /* Subtle border on hover */
}

.advantage-item i {
    font-size: 2em; /* Slightly smaller icon */
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: block; 
}

.advantage-item h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.3em; /* Slightly smaller heading */
    /* Removed border and extra padding */
    padding-bottom: 0;
    margin-bottom: 10px; 
}

.advantage-item p {
    font-size: 0.95em; /* Smaller paragraph text */
    color: #555;
    margin-bottom: 0; /* Removed bottom margin */
}

/* --- 9. Media Queries (Responsiveness) --- */
/* The existing mobile stack remains, so on small screens, these will still stack vertically. */
/* --- 6. About Us Section (Detailed and Responsive) --- */
.about-us {
    background-color: var(--light-gray);
    padding: 80px 40px;
}

.about-us h2 {
    color: #2c3e50;
    margin-bottom: 50px;
}

.about-content-grid {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.mission-section {
    flex-basis: 40%;
}

.mission-section h3 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-top: 0;
}

.mission-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: #444;
}

.values-section {
    flex-basis: 60%;
}

.values-section h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-top: 0;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.values-list {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    flex-basis: calc(33.33% - 20px);
    padding: 15px;
    border-left: 3px solid var(--primary-blue);
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.value-item i {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.value-item h4 {
    margin: 0;
    color: var(--dark-gray);
    font-size: 1.2em;
}

/* --- 7. Contact Section and Form --- */
.contact-us {
    background-color: #ffffff;
}
.contact-us h2 {
    color: var(--primary-blue); 
}

.contact-form-container {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    background-color: var(--light-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1em;
    font-family: inherit; 
}

.form-group textarea {
    resize: vertical; 
}

/* --- 8. Detailed Footer Styling --- */
.detailed-footer {
    background-color: var(--dark-gray); 
    color: white;
    padding: 40px 40px;
    font-size: 0.95em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex-basis: 30%; 
    min-width: 200px;
}

.footer-brand {
    font-size: 1.1em;
}

.footer-moto {
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.footer-column h3 {
    color: white; 
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: white;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
    color: var(--primary-blue); 
}

.copyright {
    margin-top: 20px;
    font-size: 0.85em;
    opacity: 0.7;
}

/* --- 9. Media Queries (Responsiveness) --- */

/* Adjusting the Service Grid layout for tablets/smaller desktops */
@media (min-width: 1000px) {
    .service-grid > .service-item:nth-child(4),
    .service-grid > .service-item:nth-child(5) {
        flex-basis: calc(50% - 30px);
    }
}

/* Why Choose Us Mobile Stack */
    .advantage-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .advantage-item {
        flex-basis: 100%;
    }


/* Full responsiveness for mobile screens */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    /* Navbar stack and center */
    .navbar {
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    .nav-list {
        justify-content: space-around;
        width: 100%;
        margin-top: 15px;
    }
    .nav-list li {
        margin: 0 5px;
    }
    .nav-link {
        font-size: 1.1em;
    }
    
    /* Service grid stack */
    .service-item {
        flex-basis: 100%;
    }
    
    /* About Section Stack */
    .about-content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .values-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .value-item {
        flex-basis: 100%;
    }
    
    /* Footer layout stacked */
    .footer-content {
        flex-direction: column;
    }
    .footer-column {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}