body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f0f4f8, #e0e7f0);
    color: #1f2937;
}

.navbar {
    background: linear-gradient(135deg, #1a237e, #3f51b5);
    transition: all 0.3s ease;
    padding: 0;
}
.navbar.sticky {
    background: #1a237e;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0;
}
.navbar-brand img {
    transition: transform 0.3s ease;
    height: 40px;
    width: 120px;
    background-color: #ffffff;
}
.navbar-brand img:hover {
    transform: scale(1.15);
}
.nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-link:hover {
    color: #ffd700 !important;
    transform: translateY(-2px);
}

.hero-section {
    background: linear-gradient(135deg, #1a237e, #3f51b5);
    min-height: 50vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}
.hero-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px #90caf9, 0 0 30px #3f51b5;
}

.social-icons a {
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
.social-icons a:hover {
    color: #00cc00;
    transform: scale(1.2);
}

.services-section, .testimonials-section, .partners-section, .blogs-section {
    padding: 1rem 0;
    background: #fff;
}
.services-section h2, .testimonials-section h2, .partners-section h2, .blogs-section h2 {
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}
.service-card, .testimonial-card, .partner-card, .blog-card {
    background: #f5f7fa;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}
.service-card:hover, .testimonial-card:hover, .partner-card:hover, .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.card-icon, .service-card i, .partner-card i {
    max-height: 80px;
    max-width: 80px;
    margin-bottom: 1rem;
}
.partner-icon {
    height: 100px;
    width: 150px;
    margin-bottom: 1rem;
    object-fit: contain;
    border-radius: 20%;
}
.service-card h5, .testimonial-card h6, .partner-card h5, .blog-card h5 {
    font-size: clamp(1rem, 2.5vw, 1rem);
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-weight: bolder;
}
.service-card p, .testimonial-card p, .blog-card p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #4b5e7e;
}
.blog-image {
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    width: 100%;
}

.btn-custom {
    border-radius: 50px;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: #3f51b5;
    color: #fff;
    border: none;
}
.btn-custom:hover {
    background: #1a237e;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.btn-outline-light.btn-custom {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}
.btn-outline-light.btn-custom:hover {
    background: #ffffff;
    color: #1a237e;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.4);
}
.btn-custom:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Form Alignment Fixes */
.form-control, .form-select {
    border-radius: 10px;
    margin-bottom: 0.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e5e7eb;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 10px rgba(63, 81, 181, 0.3);
    outline: none;
}

.modal-body .row {
    margin-bottom: 0;
}

.modal-body .col-md-6 {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.modal-body .mb-3 {
    margin-bottom: 1rem !important;
}

/* Enhanced Blog Modal Specific Styles */
.blog-modal-content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 400px;
    border: 1px solid rgba(63, 81, 181, 0.2);
}
.blog-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px 0 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}
.blog-content:hover {
    transform: translateY(-5px);
}
.blog-images {
    padding: 1.5rem;
    background: #fff;
    border-radius: 0 15px 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.blog-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(1.1);
}
.blog-modal-image:hover {
    transform: scale(1.05);
    z-index: 1;
}

/* Handle Long Labels */
.form-label {
    font-size: 0.9rem;
    word-wrap: break-word;
    max-width: 100%;
    margin-bottom: 0.25rem;
}

/* Debug Class for Inspection */
.modal-debug {
    border: 2px dashed red;
    outline: 1px solid yellow;
}

/* Footer Styles for Designed by Tamil */
footer .container {
    position: relative;
}
footer .designed-by {
    transition: color 0.3s ease;
}
footer .designed-by:hover {
    color: #ffffff;
}
@media (max-width: 767.98px) {
    footer .designed-by {
        margin-bottom: 1rem;
    }
}

/* Contact Section Styling */
.contact-icons {
    display: flex;
    justify-content: center; /* Aligns links from the left with space between */
    gap: 1.5rem; /* Adds space between phone and email links */
    max-width: 600px; /* Increased to accommodate spacing */
    margin: 0 auto;
}
.contact-link {
    color: #111010;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: #00cc00;
}
.contact-text {
    font-weight: bold;
    text-decoration: underline; /* Underline only for phone number and email ID */
    margin-left: 0.5rem;
    color: #0c00fa;
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (min-width: 1200px) {
    .container { max-width: 1170px; }
    .hero-section { min-height: 70vh; }
    .modal-dialog { max-width: 85%; }
    .blog-modal-content { flex-wrap: nowrap; }
    .blog-content, .blog-images { flex: 0 0 50%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container { max-width: 1150px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .modal-dialog { max-width: 90%; }
    .blog-modal-content { flex-wrap: nowrap; }
    .blog-content, .blog-images { flex: 0 0 50%; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .container { max-width: 720px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .btn-custom { padding: 0.6rem 1.8rem; font-size: 0.95rem; }
    .modal-dialog { max-width: 95%; }
    .blog-modal-content { flex-wrap: nowrap; }
    .blog-content, .blog-images { flex: 0 0 50%; }
}
@media (max-width: 767.98px) {
    .container { padding: 0 10px; }
    .hero-section { min-height: 40vh; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 0.9rem; }
    .btn-custom { padding: 0.5rem 1.5rem; font-size: 0.85rem; }
    .social-icons a { font-size: 1.2rem; }
    .modal-dialog { margin: 0.5rem; max-width: 95%; }
    .modal-body .col-md-6 { flex: 0 0 100%; max-width: 100%; }
    .modal-body .p-4 { padding: 1rem; }
    .container.my-5 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
    .blog-modal-content { flex-direction: column; }
    .blog-content, .blog-images { flex: 0 0 100%; border-radius: 15px; }
    .blog-images { order: -1; }
    .contact-icons { flex-direction: column; gap: 1rem; } /* Stacks vertically on mobile */
    .contact-text { font-size: 0.9rem; }
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    height: 25px;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #3f51b5;
    border-radius: 50%;
    padding: 8px;
}

/* Enhanced Carousel for Blog Modal */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.carousel-fade .carousel-item.active {
    opacity: 1;
}
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 0;
}
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Enhanced Blog Card Styles */
.blog-card {
    border: 1px solid rgba(63, 81, 181, 0.1);
    transition: all 0.4s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.blog-card .blog-image {
    transition: filter 0.3s ease;
}
.blog-card:hover .blog-image {
    filter: brightness(1.2);
}