:root {
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --golden: #d4af37;
    --dark-grey: #333333;
    --purple: #8a2be2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--light-grey);
    color: var(--dark-grey);
    overflow-x: hidden;
    position: relative;
}

/* Animated Graffiti Background */
.graffiti-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1920/1080') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: -1;
}

.graffiti-notes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.music-note {
    position: absolute;
    font-size: 30px;
    color: var(--golden);
    opacity: 0.2;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

header {
    background-color: var(--white);
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 5%;
    background-color: rgba(255,255,255,0.95);
}

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

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--dark-grey);
    font-weight: 600;
}

.logo span {
    color: var(--golden);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--golden);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--golden);
    transition: width 0.3s ease;
}

nav ul li a:hover:after, nav ul li a.active:after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(45deg, var(--purple), #9b59b6);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    animation: sparkle 2s infinite;
    display: flex;
    align-items: center;
}

.cta-button i {
    margin-right: 8px;
}

@keyframes sparkle {
    0% {
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.mobile-menu {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

section {
    padding: 100px 8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Home Section */
#home {
    position: relative;
    padding-top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.2);
}

.video-container:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(245,245,245,0.3), rgba(245,245,245,0.8));
    z-index: 1;
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

.hero-content h2 span {
    color: var(--golden);
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-grey);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.hero-cta .cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* About Section */
#about {
    background-color: rgba(255,255,255,0.8);
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-grey);
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--golden);
}

.section-header p {
    color: var(--dark-grey);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--golden);
    border-radius: 10px;
    top: 15px;
    left: 15px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-grey);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--dark-grey);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--golden);
    margin-bottom: 10px;
}

.stat-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Courses Section */
#courses {
    background-color: rgba(245,245,245,0.9);
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-image {

    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.course-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--dark-grey);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.meta-item i {
    color: var(--golden);
    margin-right: 5px;
}

.course-btn {
    margin-top: 15px;
    background-color: transparent;
    color: var(--golden);
    border: 1px solid var(--golden);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.course-btn:hover {
    background-color: var(--golden);
    color: var(--white);
}

/* Work Section */
#work {
    background-color: rgba(255,255,255,0.8);
}

.work-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.work-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover .work-image img {
    transform: scale(1.1);
}

.play-btn {
    width: 60px;
    height: 60px;
    background-color: var(--golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.work-content {
    padding: 20px;
    background-color: var(--white);
}

.work-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-grey);
}

.work-content p {
    font-size: 0.9rem;
    color: var(--dark-grey);
}

/* Gallery Section */
#gallery {
    background-color: rgba(245,245,245,0.9);
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-content {
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.gallery-content p {
    font-size: 1rem;
    color: var(--golden);
}

@media screen and (max-width: 991px) {
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 0;
        height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    nav.active {
        height: auto;
        padding: 20px 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    /* Improve course cards layout */
    .course-card {
        min-width: 300px;
        margin-bottom: 30px;
    }
    
    /* Improve gallery layout */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Improve work items layout */
    .work-item {
        flex-direction: column;
    }
    
    /* Adjust hero content for better readability */
    .hero-content {
        max-width: 90%;
        padding: 30px 20px;
    }
}

@media screen and (max-width: 767px) {
    /* Keep video background on all screen sizes */
    .video-container {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
        background-size: cover;
        background-position: center;
    }
    
    .video-container video {
        display: initial;
    }
    
    /* Other responsive styles */
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 80px 5%;
    }
    
    .stat-item h4 {
        font-size: 1.8rem;
    }
    
    /* Improve footer layout */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Adjust gallery for smaller screens */
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    /* Improve work videos responsiveness */
    .work-video iframe {
        height: 250px;
    }
    
    /* Further improve course cards */
    .courses-container {
        justify-content: center;
    }
    
    /* Adjust section headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Improve form layout */
    .form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #chatbot {
        width: 90%;
        height: 400px;
        bottom: 80px;
        right: 5%;
    }
    
    /* Keep video background on smallest screen sizes */
    .video-container {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    }
    
    .video-container video {
        display: initial;
    }
}

/* Session Form */
#session {
    background-color: rgba(245,245,245,0.9);
    padding-bottom: 150px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-grey);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--golden);
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .input-group {
    flex: 1;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--purple), #9b59b6);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.submit-btn:hover {
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 80px 5% 30px;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-info p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--golden);
    transform: translateY(-5px);
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--golden);
    transform: translateX(5px);
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--golden);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    max-width: 600px;
    width: 90%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(45deg, var(--purple), #9b59b6);
    padding: 20px;
    color: var(--white);
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Chatbot Styles */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg,  #8a2be2, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

#chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#chatbot {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    display: block;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.chat-header {
    background: linear-gradient(45deg,  #8a2be2, #2980b9);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-controls {
    display: flex;
}

.chat-controls button {
    background: none;
    border: none;
    color: white;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow: hidden;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    margin-left: auto;
    background-color: #e1f5fe;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    color: #333;
}

.message.bot {
    margin-right: auto;
    background-color: #8a2be2;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    color: white;
}

.message-content {
    width: 100%;
}

.message-content p {
    margin: 0;
}

.chat-input {
    display: flex;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input button {
    background: linear-gradient(45deg,  #8a2be2, #2980b9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: linear-gradient(45deg, #2980b9,  #8a2be2);
}