:root {
    --bg-black: #050505;
    --dark-grey: #121212;
    --card-bg: #1a1a1a;
    --dmk-red: #dd1111;
    --dmk-yellow: #ffcc00;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Noto Sans Tamil', 'Catamaran', sans-serif;
    --font-body: 'Catamaran', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
}

.tamil-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.english-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.tamil-text-small {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Glowing text effect for Tamil headings */
.stroke-text {
    color: var(--bg-black);
    -webkit-text-stroke: 1px var(--dmk-yellow);
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
    position: relative;
}

.stroke-text span {
    color: var(--dmk-red);
    -webkit-text-stroke: 0;
    text-shadow: none;
    display: block;
    margin-top: 10px;
    font-size: 1.2em;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--dmk-yellow);
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--dmk-red), var(--dmk-yellow));
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--dmk-red), #aa0000);
    color: #fff;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--bg-black);
    color: var(--dmk-yellow);
    border: 2px solid var(--dmk-yellow);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--dmk-red);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--dmk-yellow);
}

.logo-text {
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--dmk-yellow);
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--dmk-yellow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--dmk-red);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dmk-yellow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 70px;
    background: radial-gradient(circle at center right, #110000 0%, var(--bg-black) 60%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 20px;
}

.sub-heading {
    color: var(--dmk-yellow);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-heading {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    border-left: 3px solid var(--dmk-red);
    padding-left: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-bottom: 5px solid var(--dmk-red);
    z-index: 2;
    mask-image: linear-gradient(to top, transparent 5%, black 20%);
    -webkit-mask-image: linear-gradient(to top, transparent 5%, black 20%);
}

.image-accent-circle {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 350px;
    height: 350px;
    border: 2px solid var(--dmk-yellow);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.2;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--dmk-yellow);
    font-size: 1.8rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Sections Common */
section {
    padding: 100px 0;
    position: relative;
}

/* About Section */
.about {
    background-color: var(--dark-grey);
    border-top: 1px solid #222;
}

.bg-map-shape {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 60%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23dd1111" fill-opacity="0.05" d="M20,20 Q40,10 60,30 T90,50 T70,80 T30,70 Z"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    pointer-events: none;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-image {
    flex: 1;
}

.placeholder-box {
    width: 100%;
    height: 450px;
    background-color: var(--card-bg);
    border: 2px solid #333;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.about-text {
    flex: 1.2;
}

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 8px;
    border-left: 4px solid var(--dmk-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.stat-card h3 {
    color: var(--dmk-red);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vision Section */
.vision {
    background-color: var(--bg-black);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vision-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    border-top: 4px solid var(--dmk-red);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    border-top-color: var(--dmk-yellow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--dmk-yellow);
    margin-bottom: 25px;
}

.vision-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Gallery Section */
.gallery {
    background-color: var(--dark-grey);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid #333;
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: var(--dmk-yellow);
    color: var(--dmk-yellow);
    transform: scale(1.02);
}

.gallery-item i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.col-span-2 {
    grid-column: span 2;
}

/* Contact Section */
.contact {
    background-color: var(--bg-black);
}

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-details {
    list-style: none;
    margin-top: 40px;
}

.contact-details li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--dmk-yellow);
    font-size: 1.4rem;
    width: 20px;
    text-align: center;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--card-bg);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #333;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--dmk-red);
    color: #fff;
    border-color: var(--dmk-red);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 12px;
    border-top: 5px solid var(--dmk-yellow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dmk-yellow);
}

/* Footer */
footer {
    background-color: #000;
    padding: 50px 0 20px;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-logo img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--dmk-red);
}

.footer-logo h3 {
    color: var(--dmk-yellow);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.footer-logo p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content, .about-content, .contact-container {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-subtext {
        border-left: none;
        padding-left: 0;
    }

    .main-heading {
        font-size: 3rem;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .image-accent-circle {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .col-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(5, 5, 5, 0.95);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 2px solid var(--dmk-red);
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #222;
    }
    
    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .main-heading {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
