/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: #b22222;
    padding: 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Language Dropdown */
.lang-dropdown {
    margin-left: 15px;
}

.lang-dropdown .btn {
    background-color: white;
    color: #b22222;
    border: none;
    padding: 0.5rem 1rem;
}

.lang-dropdown .dropdown-menu {
    min-width: 150px;
}

.lang-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.lang-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 56px;
}

/* Slider */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-group.active {
    opacity: 1;
}

.slide {
    flex: 1;
    height: 100%;
    padding: 0 5px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2) contrast(1.15) saturate(1.3) sharpen(1);
    -webkit-filter: brightness(1.2) contrast(1.15) saturate(1.3);
    transform: scale(1.01);
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Remove loading animation that causes flickering */
.slide::before {
    display: none;
}

.slide img.loaded {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes loading {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1;
    transition: background 0.3s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

/* Navigation Dots */
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Main Content */
main {
    position: relative;
    background: white;
    z-index: 1;
}

/* Sections */
section {
    padding: 80px 0;
    background: #fff;
}

section:nth-child(even) {
    background: #f8f9fa;
}

/* Gallery */
.gallery img {
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Video Gallery */
.video-gallery iframe {
  width: 100%;
  height: 300px;
  cursor: pointer;
  transition: transform 0.3s;
}

.video-gallery iframe:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 20px 0;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

.animate-slide-in {
  animation: slideIn 0.5s ease-in-out;
}

/* Masters Showcase Styles */
.masters-showcase {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.master-card {
    position: relative;
    width: 280px;
    height: 320px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.master-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.master-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.master-card::after {
    content: attr(data-title) "\A" attr(data-name);
    white-space: pre;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.master-card:hover img {
    transform: scale(1.1);
}

.master-card:hover::after {
    transform: translateY(0);
}

/* Animation for cards appearing one by one */
.master-card:nth-child(1) {
    animation-delay: 0s;
}

.master-card:nth-child(2) {
    animation-delay: 0.3s;
}

.master-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #b22222;
    margin: 15px auto;
}

/* Event Card Styles */
.event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-details {
    padding: 20px;
}

/* Master Card Styles */
.master-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 15px;
    transition: transform 0.3s ease;
}

.master-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.master-card::after {
    content: attr(data-title) " - " attr(data-name);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
}

/* Contact Form Styles */
.contact-info {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-info i {
    color: #b22222;
    margin-right: 10px;
}

/* Footer Styles */
.footer {
    background: #b22222;
    color: white;
    padding: 30px 0;
}

.social-links {
    text-align: right;
}

.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 20px;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.silambam-content {
    padding: 20px;
}

.silambam-content h3 {
    color: #b22222;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.silambam-content div {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.silambam-gallery img {
    transition: transform 0.3s ease;
}

.silambam-gallery img:hover {
    transform: scale(1.02);
} 