:root {
    --navy: #001f3f;
    --navy-light: #2a4a6e;
    --navy-lighter: #3a5f8a;
    --teal: #0074a8;
    --teal-light: #00a0d1;
    --gold: #ffd700;
    --gold-light: #ffecb3;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray: #6c757d;
}

::selection{
    color: white;
    background-color: red;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: nunito;
}

body {
    background-color: var(--off-white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 50px;
    /* Space for toggle button */
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Language Toggle - Bottom Center */
.language-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--white);
    /* padding: 5px; */
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.toggle-btn {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--gold-light);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.toggle-btn .english-text {
    font-family: tamil-font-marutham;
}
.toggle-btn .tamil-text {
    font-family: nunito;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--teal) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toggle-btn i {
    margin-left: 10px;
    font-size: 1.1rem;
}

/* Header Styles */
header {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: headerSlideDown 1s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/assets/images/header.png") center/cover no-repeat;
    opacity: 0.6;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.header-logos img {
    height: 100px;
    width: auto;
    transition: all 0.5s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.header-logos img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
}

h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.location {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 10px;
    font-weight: 300;
}

/* Main Content Styles */
main {
    padding: 10px 0;
}

h2 {
    color: var(--navy);
    font-size: 2rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal-light);
    position: relative;
    animation: fadeInUp 1s ease-out;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--gold);
}

.underline {
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
}

/* unit Description Section */
.unit-description {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 1.5s ease-out;
}

.unit-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.unit-description h3 {
    color: var(--teal);
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.unit-description h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 3px;
}

.unit-description p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--navy-light);
    line-height: 1.8;
}

.unit-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-top: 3px solid var(--teal);
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: backwards;
}

.benefit-card:nth-child(1) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.6s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--gold);
}

.benefit-card h4 {
    color: var(--navy);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.benefit-card h4 i {
    margin-right: 12px;
    color: var(--teal);
    font-size: 1.3rem;
}

.benefit-card p {
    color: var(--navy-light);
    font-size: 0.95rem;
}

/* Image and Video Sections */
.main-image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: fadeIn 1.5s ease-out;
    border: 5px solid var(--white);
}

.main-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.8s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.1);
}

.image-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 1.6rem;
    color: var(--navy-light);
    font-weight: 800;
}

.image-caption a {
    color: var(--teal);
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.image-caption a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.image-caption a:hover {
    color: var(--navy);
}

.image-caption a:hover::after {
    width: 100%;
}

.tamil-text {
    font-family: tamil-font-marutham;
    font-size: 1.1rem;
    /* color: var(--navy); */
}

.unit-description .tamil-text{
    font-size: 1.1rem;
}

@font-face {
    font-family: tamil-font-marutham;
    src: url("/assets/files/font/TAU-Marutham.ttf");
}

/* Map Section */
.map-section {
    margin: 20px 0;
    animation: fadeIn 1.5s ease-out;
}

.map-container {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin: 25px 0;
    border: 5px solid var(--white);
    transition: all 0.5s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.coordinates {
    text-align: center;
    margin-top: 20px;
}

.coordinates a {
    color: var(--teal);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: rgba(0, 116, 168, 0.1);
}

.coordinates a:hover {
    color: var(--white);
    background-color: var(--teal);
    transform: translateY(-2px);
}

/* Contact Information - Table Style */
.contact-info {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    padding: 40px;
    border-radius: 15px;
    margin: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    animation: fadeInUp 1s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.contact-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-table th {
    text-align: left;
    padding: 10px 10px 10px 20px;
    width: 240px;
    color: var(--navy);
    font-weight: 600;
    vertical-align: top;
    font-size: 1.1rem;
    background-color: rgba(0, 31, 63, 0.03);
}

.contact-table td {
    padding: 10px 10px 10px 20px;
    vertical-align: top;
    color: var(--navy-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-table a {
    color: var(--teal);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.contact-table a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.contact-table a:hover {
    color: var(--navy);
}

.contact-table a:hover::after {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px solid var(--teal-light);
    color: var(--navy-light);
    font-size: 1rem;
    background-color: var(--off-white);
    border-radius: 20px 20px 0 0;
    animation: fadeIn 1.5s ease-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pulse {
    animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .header-logos {
        gap: 20px;
    }

    .header-logos img {
        height: 80px;
    }

    h1 {
        font-size: 2rem;
    }

    .map-container {
        height: 400px;
    }

    .contact-table th,
    .contact-table td {
        padding: 15px;
    }
    .unit-benefits{
        display: block;
    }
}

@media (max-width: 768px) {
    .header-logos {
        flex-direction: column;
        gap: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .contact-table th {
        width: 100%;
        padding: 5px 5px 5px 0;
        display: block;
        background: none;
        border-radius: 0;
    }

    .contact-table td {
        padding: 5px 5px 10px 0;
        display: block;
        border-radius: 0;
    }

    .contact-table tr:not(:last-child) {
        border-bottom: none;
        margin-bottom: 20px;
    }

    .map-container {
        height: 350px;
    }

    .language-toggle {
        bottom: 15px;
        /* padding: 3px; */
    }

    .toggle-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .unit-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    header {
        padding: 30px 0;
    }

    .header-logos img {
        height: 70px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .unit-description {
        padding: 25px;
    }

    .map-container {
        height: 300px;
    }

    .contact-info {
        padding: 25px;
    }

    .language-toggle {
        width: 30%;
    }

    .toggle-btn {
        width: 100%;
        justify-content: center;
    }
}