/* General Styles */
body {
    font-family: 'Roboto', 'Segoe UI', 'Arial', sans-serif; /* Modern, clean font */
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Very light, almost white, modern background */
    color: #333; /* Standard dark gray for text */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #FF9933 0%, #FFBF80 50%, #FFFFFF 75%, #138808 100%); /* Softer Tricolor gradient */
    color: #002B5B; /* Deep Blue for text, inspired by Ashoka Chakra */
    padding: 15px 0; /* Slightly reduced padding */
    min-height: 70px;
    border-bottom: #FF9933 3px solid; /* Saffron border */
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    animation: fadeInDown 0.8s ease-out;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 55px; /* Adjusted logo size */
    margin-right: 15px;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

header h1 {
    margin: 0;
    font-size: 26px; /* Slightly larger */
    font-weight: 700; /* Bolder */
    color: #002B5B; /* Deep Blue */
    letter-spacing: 0.5px;
}

/* Navigation Menu Styles */
nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #002B5B; /* Deep Blue for nav links */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 50px; /* More pronounced pill shape */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #FF9933; /* Saffron accent */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #FF9933; /* Saffron on hover/active */
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 153, 51, 0.4);
}

nav ul li a.active::before,
nav ul li a:hover::before {
    width: 60%;
}

/* Main Content Area */
.main-content {
    padding: 40px 20px; /* Increased padding */
    min-height: 75vh; /* Ensure content pushes footer down */
    animation: fadeInUp 0.8s ease-out;
}

.main-content h2 {
    color: #005A31; /* Deep Green, inspired by Indian flag */
    text-align: center;
    margin-bottom: 40px; /* Increased margin */
    font-size: 36px; /* Larger heading */
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.main-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF9933; /* Saffron accent */
    border-radius: 2px;
}

.service-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    background: #ffffff;
    border: 1px solid #ddd; /* Lighter border */
    border-radius: 12px; /* Slightly less rounded */
    padding: 30px;
    width: 320px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* For potential pseudo-element effects */
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card i {
    font-size: 52px; /* Even larger icon */
    color: #FF9933; /* Saffron for icons */
    margin-bottom: 25px;
    transition: transform 0.4s ease, color 0.3s ease;
}

.service-card:hover i {
    color: #005A31; /* Deep Green on hover */
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: #002B5B; /* Deep Blue for card titles */
    margin-bottom: 15px;
    font-size: 23px;
    font-weight: 600;
}

.service-card p {
    font-size: 15px;
    color: #6c757d; /* Softer gray */
    flex-grow: 1; /* Allows p to take available space */
    margin-bottom: 15px;
}

.btn, .service-card a.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-image: linear-gradient(to right, #FF9933, #FFB366); /* Saffron gradient */
    color: #FFFFFF; /* White text for better contrast on gradient */
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 153, 51, 0.3);
    background-size: 200% auto;
    background-position: left center;
}

.btn:hover, .service-card a.btn:hover {
    background-position: right center; /* Change gradient direction on hover */
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 12px rgba(255, 153, 51, 0.4);
}

.btn-secondary {
    background-image: linear-gradient(to right, #138808, #28A745); /* Green gradient */
    color: white;
    box-shadow: 0 4px 10px rgba(19, 136, 8, 0.3);
}

.btn-secondary:hover {
    background-position: right center;
    color: white;
    box-shadow: 0 6px 12px rgba(19, 136, 8, 0.4);
}

.btn-secondary:hover {
    background-color: #0f6606; /* Darker Green */
    color: white;
}

/* Footer Styles */
footer {
    background: #002B5B; /* Deep Blue, matching header text */
    color: #e0e0e0; /* Lighter text for footer */
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out 0.3s;
    animation-fill-mode: backwards;
    border-top: 3px solid #FF9933; /* Saffron top border */
}

footer p {
    margin: 5px 0;
}

footer .social-media a {
    color: #FF9933; /* Saffron for social icons */
    margin: 0 12px;
    font-size: 22px;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-media a:hover {
    color: #FFFFFF; /* White on hover */
    transform: scale(1.2);
}

footer .social-media a:hover {
    color: #17a2b8; /* Info Blue - for a different accent */
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media(max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .service-card {
        width: 90%;
    }
}

/* Contact Page Specific Styles */
.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 650px;
    margin: 40px auto;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #005A31; /* Deep Green */
    font-size: 30px;
    font-weight: 700;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%; 
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box; /* Important for width 100% */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #FF9933; /* Saffron focus */
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25);
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px;
    background-image: linear-gradient(to right, #138808, #28A745); /* Green gradient for submit */
    color: #FFFFFF;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
    background-size: 200% auto;
    background-position: left center;
    box-shadow: 0 4px 10px rgba(19, 136, 8, 0.3);
}

.contact-form button[type="submit"]:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 12px rgba(19, 136, 8, 0.4);
}

.contact-info {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: #e6f7ff; /* Lighter, pleasant blue */
    border-radius: 12px;
    border-left: 5px solid #FF9933; /* Saffron accent border */
}

.contact-info h3 {
    color: #002B5B; /* Deep Blue */
    margin-bottom: 20px;
    font-size: 22px;
}

.contact-info p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

.contact-info i {
    margin-right: 10px;
    color: #FF9933; /* Saffron for icons */
    font-size: 1.2em;
}

/* Service Page Specific Styles */
.service-detail-page {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 950px;
}

.service-detail-page h2 {
    color: #005A31; /* Deep Green */
    border-bottom: 4px solid #FF9933; /* Saffron underline */
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    text-align: left; /* Align service titles left */
}

.service-detail-page h2::after {
    display: none; /* Remove general h2 styling for this specific one */
}

.service-detail-page img.service-banner {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.service-detail-page p {
    font-size: 17px; /* Slightly larger text */
    line-height: 1.9;
    margin-bottom: 20px;
    color: #454545;
}

.service-detail-page ul {
    list-style: none;
    padding-left: 0;
}

.service-detail-page ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.service-detail-page ul li::before {
    content: "\27A4"; /* Indian-style arrow/bullet, or use a SVG/FontAwesome icon */
    position: absolute;
    left: 0;
    color: #FF9933; /* Saffron for list bullets */
    font-size: 18px;
    line-height: 1.3; /* Adjust vertical alignment */
}

.bharat-emphasis {
    font-weight: bold;
    color: #D9534F; /* A warm, inviting red-orange */
    /* text-shadow: 1px 1px 1px rgba(0,0,0,0.1); */
}

.tricolor-text {
    background: linear-gradient(to right, #FF9933 25%, #FFFFFF 50%, #138808 75%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /* Standard property */
    font-weight: 700;
    /* Fallback for browsers that don't support background-clip: text */
    color: #FF9933; 
    padding: 2px 0; /* Add slight padding for better visual */
}

.hero-section {
    background: url('../images/hero-banner.svg') no-repeat center center/cover;
    /* Consider adding a subtle pattern overlay inspired by Indian textiles */
    /* background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/indian-pattern-light.png'), url('../images/hero-banner.svg'); */
    color: white;
    padding: 100px 20px; /* Increased padding */
    text-align: center;
    position: relative;
    animation: fadeInUp 1.2s ease-out;
    overflow: hidden; /* For potential parallax or animation effects */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 43, 91, 0.6) 0%, rgba(0, 43, 91, 0.8) 100%); /* Deep blue overlay */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-size: 56px; /* Even larger */
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Refined shadow */
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-section p {
    font-size: 24px; /* Larger */
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    background-image: linear-gradient(to right, #FF9933, #FFB366); /* Saffron gradient */
    color: #FFFFFF;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    transition: background-position 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.4);
    background-size: 200% auto;
    background-position: left center;
}

.hero-section .btn:hover {
    background-position: right center;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.5);
}

/* Subtle Scroll Animations for elements */
.animated-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* India-inspired patterns (placeholder - to be implemented with actual SVGs or images) */
.indian-pattern-bg {
    /* background-image: url('../images/patterns/paisley-light.svg'); */
    /* background-repeat: repeat; */
}

/* Additional utility classes */
.text-saffron {
    color: #FF9933;
}

.text-green {
    color: #138808;
}

.text-blue {
    color: #002B5B;
}

.section-padding {
    padding: 60px 0;
}

/* Example of a subtle hover effect for images */
img.hover-effect {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 8px; /* Ensure border-radius for shadow */
}

img.hover-effect:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}