html{
    scroll-padding-top: 75px;
}

/* When Tamil is active */
html[lang="ta"] * {
    font-family: 'Noto Sans Tamil', sans-serif !important;
}
html[lang="ta"] .navbar .nav-link {
    font-size: 0.90rem !important;  
    white-space: nowrap !important; 
    margin-top: -3px;
}

html[lang="ta"] body {
    font-size: 0.95rem !important;
    font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
}

html[lang="ta"] h1 {
    font-size: 2rem !important;
}

html[lang="ta"] h2 {
    font-size: 1.65rem !important;
}

html[lang="ta"] h3 {
    font-size: 1.35rem !important;
}

html[lang="ta"] p,
html[lang="ta"] li,
html[lang="ta"] a,
html[lang="ta"] span {
    font-size: 0.93rem !important; 
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: #444444;
    padding-top: 70px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

body h2 {
    color: darkgreen;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1140px;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.custom-shadow {
    box-shadow: 0 1px 3px rgba(254, 202, 33, 0.954);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar .nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    margin-left: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #ffc107;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link.active {
    color: #d08700 !important;
}

.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .btn-language {
    background-color: white;
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 15px;
    transition: 0.3s ease;
    cursor: pointer;
}

.navbar .btn-language span {
    transition: color 0.3s ease;
    opacity: 0.3s ease;
}

.active-lang {
    font-weight: 900;
    color: #1b5e20 !important; 
}

.inactive-lang {
    opacity: 0.4;
}

#langToggleBtnMobile {
    border: 2px solid #ff9800;
    background-color: white;
    color: #ff9800;
    font-weight: 400;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}

#about {
    background-color: antiquewhite;
}

#about .btn-warning:hover{
    color:#fff;
}

/* Products Cards */
#products .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

#products .card:hover {
    transform: translateY(-15px);
}

#products .btn-warning {
    border-color: #b67c1c;
    color: #b67c1c;
}

#products .card-body{
    text-align: left;
}

#products .btn-warning:hover {
    background-color: #b67c1c;
    color: #fff;
}

/* benefits */
#benefits {
    background-color: antiquewhite;
}

#benefits .img-fluid {
    width: 80%;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#missionvision{
    background-color: antiquewhite;
}
/* why choose us */
#whychoose .accordion-button {
    font-size: 1.1rem;
}

#whychoose .accordion-body {
    font-size: 0.95rem;
    color: #444;
}

/* Remove blue focus background */
.accordion-button:focus {
    box-shadow: none !important;
    background-color: white !important;
}

.accordion-button:not(.collapsed) {
    background-color: white !important;
    color: #000;
}

#contact {
    background-color: antiquewhite;
}

#contactForm {
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px;

}

/* footer */
footer {
    background-color: #1f5130;
}
footer .social-icons i{
    color: antiquewhite;
}

.footer-logo {
    width: 50px;  
    height: 50px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

/* Center only on mobile */
@media (max-width: 600px) {
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

.expand-social {
    position: fixed;
    right: 20px;
    bottom: -80px;
    z-index: 999;
}

.expand-social {
    display: none;
}

.expand-social .main-btn {
    width: 50px;
    height: 50px;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: 0.3s ease;
}

.expand-social .social-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    transform: translateY(-200px);
}

.expand-social .social-items a {
    width: 35px;
    height: 35px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

.expand-social .social-items a:hover {
    transform: scale(1.1);
    background: #ffc107;
    color: #000;
}

.expand-social.active .social-items {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-210px);
}

.expand-social{
    opacity: 1;
    transition: opacity 0.5s ease;
}

.expand-social.dim{
    opacity: 0.4;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .expand-social .main-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .expand-social .social-items a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Full-screen splash */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-content {
    text-align: center;
}

.splash-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 30px;
    color: #1f5130;
    font-family: 'Poppins', sans-serif;;
}

#splash img {
    width: 180px;
    animation: zoomFade 3s ease-in-out;
}

@keyframes zoomFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.5); }
}

@media (max-width: 991px) {
    #langToggleBtnMobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Tooltip style */
.lang-tooltip {
    position: absolute;
    top: 60px;
    right: 55px;
    background: #ffc107;
    color: #000;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
}

.lang-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.lang-tooltip::after {
    content: "";
    position: absolute;
    right: 10px;
    top: -8px;
    border-width: 0 6px 8px 6px;
    border-style: solid;
    border-color: transparent transparent #ffc107 transparent;
}

.fade-left, .fade-up {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-left {
    transform: translateX(-25px);
}

.fade-up {
    transform: translateY(25px);
}

.show {
    opacity: 1;
    transform: translate(0);
}

.fade-left, .fade-right {
    opacity: 0;
    transition: all 0.9s ease-out;
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

.show {
    opacity: 1;
    transform: translate(0);
}

.section-title {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.9s ease-out;
}

.section-title.from-left {
    transform: translateX(-40px);
}

.section-title.show {
    opacity: 1;
    transform: translateX(0);
}

