/* ======================
   FONT FACES
====================== */
@font-face {
    font-family: "Baloo-Thambi-2";
    src: url("../tamil_fonts/Baloo_Thambi_2/BalooThambi2-VariableFont_wght.ttf") format("truetype");
}

@font-face {
    font-family: "karla_tamil";
    src: url("../tamil_fonts/Karla_Tamil_Upright/KarlaTamilUpright-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "meera_inimai";
    src: url("../tamil_fonts/Meera_Inimai/MeeraInimai-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "kavivanar";
    src: url("../tamil_fonts/Kavivanar/Kavivanar-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "anek";
    src: url("../tamil_fonts/Anek_Tamil/AnekTamil-VariableFont_wdth\,wght.ttf") format("truetype");
}

/* ======================
   TYPOGRAPHY CLASSES
====================== */
.ta_heading {
    font-family: "Baloo-Thambi-2", sans-serif;
    font-weight: 900;
}

.ta_sub_heading,
.ta_para {
    font-family: "karla_tamil", sans-serif;
}

.ta_menu {
    font-family: "meera_inimai", sans-serif;
}

.eng_para_heading {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.ta_para_heading {
    font-family: kavivanar;
}

.ta_para_sub_heading,
.eng_para_sub_heading {
    font-family: anek;
}

.eng_preview_title,
.eng_preview_subtitle {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.ta_preview_title {
    font-family: meera_inimai;
}

.ta_preview_subtitle {
    font-family: anek;
}

/* ======================
   LIGHT THEME (Default)
====================== */
body.light {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    color: #1a1a2e;
    transition: all 0.3s ease;
}

body.light a.btn-outline-primary {
    color: #0d21fc;
}

body.light a.btn-outline-primary:hover,
body.light a.btn-primary {
    color: #ffffff;
}

body.light .section-header h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fd8b00, #fbff00, #ff0202);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

body.light .section-header p {
    color: #444;
}

/* Light Theme - Project Cards */
body.light .project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 255, 0.9));
    border: 1px solid rgba(255, 180, 29, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light .project-card::before {
    background: linear-gradient(135deg, #ffff0a, #e47119, #fe9321);
}

body.light .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(106, 17, 203, 0.2), 0 0 80px rgba(182, 33, 254, 0.15);
}

body.light .project-image-container {
    height: 350px;
    border-radius: 20px;
}

body.light .project-image-container img {
    filter: brightness(1);
}

body.light .project-card:hover .project-image-container img {
    filter: brightness(1.1);
}

body.light .project-image-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.85) 0%, transparent 60%);
}

body.light .project-number {
    color: rgba(106, 17, 203, 0.08);
}

body.light .project-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 42, 0, 0.568), rgba(227, 247, 47, 0.587));
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 247, 0.3);
}

body.light .project-title {
    background: linear-gradient(135deg, #ff6200, #ffd013);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .project-description {
    color: #555;
}

body.light .btn-modern {
    background: linear-gradient(135deg, #f2ff3b, #ff3d3d);
    color: #fff;
    border: none;
}

body.light .btn-modern::before {
    background: linear-gradient(135deg, #f0e220, #ff0099);
}

body.light .btn-modern:hover {
    box-shadow: 0 10px 30px rgba(234, 247, 58, 0.568);
}

body.light .decorative-line {
    background: linear-gradient(90deg, #eeff00, #f02020);
}

/* ======================
   DARK THEME
====================== */
body.dark {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    color: #ddd;
    transition: all 0.3s ease;
}

body.dark a {
    color: #ffffff;
}

body.dark .section-header h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #00fff7, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

body.dark .hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('/assets/images/hero-bg.jpg');
}

body.dark .navbar-toggler {
    background-color: #333;
    border-color: #444;
}

body.dark .navbar-toggler-icon {
    filter: invert(1);
}

body.dark footer {
    background-color: #1e1e1e;
    color: #ddd;
    border-top: 1px solid #333;
}

body.dark .theme-toggle {
    background-color: #80cbc4;
    color: #121212;
}

/* ======================
   NAVBAR
====================== */
.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: #333;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #fff !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
    color: #80cbc4 !important;
}

[data-bs-theme="dark"] .navbar-brand {
    color: #fff !important;
}

/* ======================
   FOOTER
====================== */
footer {
    background-color: #f8f9fa;
    color: #333;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

/* ======================
   THEME TOGGLE BUTTON
====================== */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* ======================
   HERO SECTION
====================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-section-left img {
    width: 50%;
}

.hero-section-right {
    width: 50%;
}

/* ======================
   CONTENT SECTIONS
====================== */
.content-section {
    padding: 3rem 0;
}

.content-box {
    transition: box-shadow 0.3s ease;
}

.content-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ======================
   IMAGES & ANIMATIONS
====================== */
.image-wrapper {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hover-zoom {
    transition: transform 0.4s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.wwd-img {
    width: 80%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.content-box + div img,
div + .content-box img {
    transition: transform 0.3s ease;
}

.content-box + div:hover img,
div:hover + .content-box img,
div img:hover {
    transform: scale(1.02);
}

/* ======================
   BADGES
====================== */
.badge {
    transition: all 0.3s ease;
}

.content-box:hover .badge {
    transform: translateY(-2px);
}

/* ======================
   RESPONSIVE DESIGN
====================== */
@media (max-width: 967px) {
    #nav_title {
        font-size: 0.7em;
    }
}

@media (max-width: 991.98px) {
    .content-box {
        text-align: center;
    }
}

@media (max-width: 900px) {
    body.dark .section-header h1 {
        font-size: 2rem !important;
    }

    body.light .section-header h1 {
        font-size: 2rem !important;
    }

    body.light .project-title {
        font-size: 1.8rem;
    }

    body.light .project-image-container {
        height: 250px;
    }
}