/* Guruvandan Music Institute - Centralized Styles */
/* Based on index.html dark theme with gold accents */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors - Index.html Theme */
    --primary-dark: #1a1a1a;
    --primary-gold: #f8f8f8;
    --accent-gold: #d4af37;
    --accent-silver: #c0c0c0;
    --card-bg: #2a2a2a;
    --text-light: #f8f8f8;
    --text-muted: #a0a0a0;
    --border-color: #404040;
    
    /* Additional Colors */
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* ===== Reset and Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
.font-display {
    font-family: 'Playfair Display', serif;
}

.font-mono {
    font-family: 'Roboto Mono', monospace;
}

/* ===== Navigation Styles ===== */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
}

/* Logo Styles - Flexible System */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: 170;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Fallback text logo if image fails */
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-text:hover {
    color: var(--text-light);
    transform: scale(1.05);
}

/* Logo container sizing */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    position: fixed;
    top: 64px;
    right: 0;
    width: 256px;
    height: calc(100vh - 64px);
    z-index: 40;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
}

/* ===== Hero Section Styles ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.8) 100%);
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 64px;
}

/* Animated Background for Hero Content */
.hero-content {
    position: relative;
    background: rgba(42, 42, 42, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-light);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* ===== Button Styles ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    padding: 12px 24px;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ===== Card Styles ===== */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
}

/* ===== Course Filter Styles ===== */
.course-filter {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.course-filter.active,
.course-filter:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input.error {
    border-color: #f44336;
}

.form-input.valid {
    border-color: #4CAF50;
}

.error-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

/* ===== Footer Styles ===== */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-gold);
}

/* ===== Animation Classes ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better performance for animations */
.animate-on-scroll {
    will-change: transform, opacity;
}

/* Smooth transitions for all interactive elements */
*, *::before, *::after {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* ===== Background Image for Gradient Sections ===== */
.section-with-bg {
    position: relative;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

/* ===== Gallery Styles ===== */
.gallery-item {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0 8px;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
}

/* ===== Animations ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-16 {
    margin-top: 4rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.gap-8 {
    gap: 2rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}
