/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #3c1f78;
    --primary-light: #5c3da6;
    --primary-dark: #291452;
    --accent-color: #d4af37;
    --accent-light: #e7c352;
    --accent-dark: #b79628;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #111;
    --bg-light: #f8f9fa;
    --bg-dark: #272727;
    --white: #fff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font-primary: 'Montserrat', sans-serif;
    --font-accent: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

/* Disable context menu */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-accent);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text-dark);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.rounded-image {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.rounded-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.accent {
    color: var(--accent-color);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

#back-to-top.active {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== HEADER STYLES ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    padding: 10px 0;
}

#header.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    max-width: 220px;
}

.logo {
    max-width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('img/m1.jpg') no-repeat center center / cover;
    color: var(--white);
    text-align: center;
    margin-top: 0;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Fade in animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== INTRO SECTION ===== */
.intro-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.intro-section .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.intro-content {
    flex: 1;
}

.intro-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 350px;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.team-member {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.member-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.member-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* ===== INSTRUMENTS SECTION ===== */
.instruments-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.instruments-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.instrument-category {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.instrument {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    flex: 1;
    min-width: 200px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.instrument:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.instrument-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instrument-custom-icon {
    max-height: 60px;
    max-width: 60px;
    object-fit: contain;
}

.instrument h3 {
    margin-bottom: 0.5rem;
}

.instrument p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* ===== COURSES SECTION ===== */
.courses-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.courses-container {
    max-width: 900px;
    margin: 0 auto;
}

.course-info {
    text-align: center;
    margin-bottom: 3rem;
}

.course-structure {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    flex: 1;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.course-card h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.term-info {
    margin-top: 2rem;
}

.term-info h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.term-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.term-card h4 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.term-card ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.term-card li {
    margin-bottom: 0.5rem;
}

.term-fee {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.term-fee span {
    color: var(--primary-color);
}

.enrollment-info {
    text-align: center;
}

.enrollment-info p {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white);
    padding: 10px 0;
    margin-top: 10px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.quote-icon {
    color: var(--primary-light);
    opacity: 0.3;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.testimonial-author h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.map-container {
    width: 100%;
    margin-top: 2rem;
}

.map-container h3 {
    margin-bottom: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.address-details {
    margin-bottom: 2rem;
}

.address-details h3, .contact-person h4 {
    color: var(--primary-color);
}

.contact-persons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(92, 61, 166, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo, .footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-logo-img {
    max-width: 180px;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-contact a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon i {
    margin: 0;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.7;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 101;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        z-index: 100;
        text-align: center;
        justify-content: center;
        transition: var(--transition);
        padding: 2rem 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .intro-section .container {
        flex-direction: column;
    }
    
    .course-structure {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-member {
        min-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
} 