/* Purple & White Professional Theme - Responsive, Centered, Consistent, Animated */

/* Base Colors */
:root {
    --purple-dark: #4b006e;         /* Dark Violet */
    --purple: #a259e6;              /* Violet */
    --purple-light: #ede9fe;        /* Lavender */
    --mauve: #b784a7;               /* Mauve */
    --plum: #8e4585;                /* Plum */
    --indigo: #5c4b99;              /* Indigo */
    --electric-purple: #bf00ff;     /* Electric Purple */
    --lavender: #c3aed6;            /* Soft Lavender */
    --white: #fff;
    --gray: #f3f3f3;
    --text-dark: #2d2d2d;
    --text-light: #fff;
    --shadow: 0 2% 8% rgba(108,46,183,0.08);

    /* Add animation timing variables */
    --animation-speed-fast: 0.3s;
    --animation-speed-medium: 0.5s;
    --animation-speed-slow: 0.8s;
    
    /* Add animation curves */
    --animation-curve: cubic-bezier(0.4, 0, 0.2, 1);
}

/* General Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    text-align: center;
    scroll-behavior: smooth;
    transition: background 0.5s;
}

/* Animated Gradient Background for header and hero */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--plum) 25%, var(--indigo) 50%, var(--electric-purple) 75%, var(--purple-light) 100%);
    background-size: 400% 400%;
    animation: gradientMove 8s ease-in-out infinite;
    color: var(--white);
    padding: 3% 0 2% 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo img {
    width: 12%;
    min-width: 70px;
    max-width: 120px;
    border-radius: 50%;
    box-shadow: 0 2% 8% rgba(108,46,183,0.15);
    background: var(--white);
    padding: 1%;
    margin-bottom: 1%;
    transition: transform 0.4s;
}
.logo img:hover {
    transform: scale(1.08) rotate(-3deg);
}

.site-title h1 {
    font-size: 2.5vw;
    margin: 0;
    color: var(--white);
    letter-spacing: 0.15vw;
    font-weight: 700;
    text-shadow: 0 0.2vw 0.5vw var(--electric-purple);
    animation: fadeInDown 1.2s;
}

.site-title .motto {
    font-size: 1.2vw;
    color: var(--lavender);
    margin-top: 1%;
    font-style: italic;
    animation: fadeIn 2s;
}

/* Navigation Bar */
nav {
    background: linear-gradient(90deg, var(--purple-light) 0%, var(--mauve) 100%);
    box-shadow: var(--shadow);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    transition: background 0.3s;
}

nav ul li {
    margin: 0 1.5%;
}

nav ul li a {
    color: var(--purple-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 1.2% 2.5%;
    border-radius: 1vw;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-size: 1.1vw;
    background: linear-gradient(90deg, var(--lavender) 60%, var(--white) 100%);
    box-shadow: 0 0.2vw 0.5vw var(--lavender);
    margin-bottom: 0.5vw;
}

nav ul li a i {
    margin-right: 0.5vw;
    font-size: 1.2vw;
    color: var(--electric-purple);
    transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    background: linear-gradient(90deg, var(--electric-purple) 0%, var(--purple-light) 100%);
    color: var(--white);
    box-shadow: 0 2% 8% var(--electric-purple);
}

nav .hamburger {
    display: none;
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 20;
}

nav .hamburger span {
    display: block;
    width: 3vw;
    height: 0.5vw;
    margin: 0.6vw 0;
    background: var(--purple-dark);
    border-radius: 0.3vw;
    transition: all 0.3s;
}

/* Hamburger Animation */
nav .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.7vw, 0.7vw);
}
nav .hamburger.active span:nth-child(2) {
    opacity: 0;
}
nav .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.7vw, -0.7vw);
}

/* Hide navigation on mobile, show hamburger */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: linear-gradient(180deg, var(--purple-light) 0%, var(--mauve) 100%);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        box-shadow: 0 2vw 8vw var(--plum);
    }
    nav ul.show {
        display: flex;
    }
    nav .hamburger {
        display: block;
    }
}

/* Main Content */
main {
    width: 100%;
    margin: 0 auto;
    padding: 3% 0 0 0;
}

/* Section Card */
section {
    background: var(--lavender);
    margin-bottom: 3%;
    padding: 4% 2%;
    border-radius: 2vw;
    box-shadow: 0 2% 12% var(--plum);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: fadeInUp 1.2s;
}

/* About Us Card */
#about {
    background: linear-gradient(135deg, var(--purple-light) 60%, var(--mauve) 100%);
    box-shadow: 0 2% 12% var(--indigo);
    border-radius: 2vw;
    padding: 4% 2%;
    margin-bottom: 3%;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1.2s;
}

#about .about-card {
    background: var(--white);
    border-radius: 2vw;
    box-shadow: 0 2% 8% var(--purple);
    padding: 3% 2%;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    transition: box-shadow 0.3s;
}
#about .about-card:hover {
    box-shadow: 0 4% 16% var(--electric-purple);
}

#about h2 {
    color: var(--electric-purple);
    font-size: 2.5vw;
    margin-bottom: 1vw;
    font-weight: 700;
    text-shadow: 0 0.2vw 0.5vw var(--purple);
}

#about p {
    font-size: 1.3vw;
    color: var(--indigo);
    margin-bottom: 1vw;
    line-height: 1.7;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--plum) 50%, var(--electric-purple) 100%);
    border-radius: 2vw;
    padding: 5% 2%;
    margin-bottom: 3%;
    text-align: center;
    color: var(--white);
    box-shadow: 0 2% 12% var(--plum);
    animation: gradientMove 8s ease-in-out infinite;
}

.hero h2 {
    color: var(--white);
    font-size: 2.5vw;
    margin-bottom: 1.2vw;
    font-weight: 700;
    text-shadow: 0 0.2vw 0.5vw var(--electric-purple);
    animation: fadeInDown 1.2s;
}

.hero p {
    font-size: 1.3vw;
    margin-bottom: 2vw;
    color: var(--lavender);
    animation: fadeIn 2s;
}

.hero-button {
    background: linear-gradient(90deg, var(--electric-purple) 0%, var(--purple) 100%);
    color: var(--white);
    border: none;
    padding: 1.2vw 3vw;
    border-radius: 1vw;
    font-size: 1.2vw;
    font-weight: 600;
    margin-top: 2vw;
    cursor: pointer;
    box-shadow: 0 2% 8% var(--electric-purple);
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero-button:hover {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--plum) 100%);
    transform: scale(1.05);
}

/* Section Headings */
.section-title, h2 {
    color: var(--purple-dark);
    margin-bottom: 2vw;
    font-size: 2vw;
    font-weight: 700;
    text-align: center;
    position: relative;
    text-shadow: 0 0.2vw 0.5vw var(--lavender);
}

.section-title::after, h2::after {
    content: '';
    display: block;
    margin: 0.5vw auto 0 auto;
    width: 8vw;
    height: 0.3vw;
    background: linear-gradient(90deg, var(--electric-purple) 0%, var(--purple-light) 100%);
    border-radius: 0.2vw;
}

/* Course Categories */
.course-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
    width: 100%;
    animation: fadeInUp 1.2s;
}

.course-type {
    background: linear-gradient(135deg, var(--lavender) 60%, var(--plum) 100%);
    border-radius: 2vw;
    padding: 2vw 1vw;
    box-shadow: 0 2% 8% var(--purple);
    width: 45%;
    min-width: 260px;
    margin-bottom: 2vw;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    animation: fadeInUp 1.2s;
}
.course-type:hover {
    box-shadow: 0 4% 16% var(--electric-purple);
    transform: scale(1.03);
}

.course-type h3 {
    color: var(--electric-purple);
    font-size: 1.5vw;
    margin-bottom: 1vw;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    text-shadow: 0 0.2vw 0.5vw var(--purple);
}

.course-type h3 i {
    color: var(--purple);
    font-size: 1.5vw;
}

.course-item h4 {
    color: var(--purple-dark);
    margin-bottom: 0.8vw;
    font-size: 1.2vw;
    font-weight: 600;
}

.course-item p {
    margin-bottom: 1vw;
    font-size: 1vw;
    color: var(--indigo);
}

.enroll-button {
    background: linear-gradient(90deg, var(--electric-purple) 0%, var(--purple) 100%);
    color: var(--white);
    border: none;
    padding: 1vw 2vw;
    border-radius: 0.7vw;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 1vw;
    font-size: 1vw;
    display: inline-block;
    animation: pulse 2s infinite;
}

.enroll-button:hover {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--plum) 100%);
    transform: scale(1.05);
}

/* Requirements Section */
.requirements-content {
    background: linear-gradient(135deg, var(--lavender) 60%, var(--mauve) 100%);
    border-radius: 2vw;
    padding: 2vw 1vw;
    text-align: center;
    box-shadow: 0 2% 8% var(--purple);
}

.highlight-text {
    color: var(--electric-purple);
    font-size: 1.2vw;
    margin: 1vw 0;
    font-weight: 700;
}

.action-text {
    color: var(--purple-dark);
    font-weight: 600;
    font-size: 1vw;
}

/* Gallery Section */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    justify-content: center;
    width: 100%;
    animation: fadeInUp 1.2s;
}

.gallery-item img {
    width: 22vw;
    height: 16vw;
    object-fit: cover;
    border-radius: 0.7vw;
    box-shadow: 0 2% 8% var(--electric-purple);
    background: var(--lavender);
    border: 0.2vw solid var(--plum);
    margin-bottom: 1vw;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 4% 12% var(--electric-purple);
}

/* FAQ Section */
.faq-container {
    max-width: 80%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5vw;
    background: linear-gradient(135deg, var(--lavender) 60%, var(--mauve) 100%);
    border-radius: 1vw;
    overflow: hidden;
    transition: transform 0.3s var(--animation-curve), box-shadow 0.3s var(--animation-curve);
    box-shadow: 0 8px 24px rgba(108,46,183,0.12);
}

.faq-toggle {
    width: 100%;
    padding: 2vw;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--purple-dark);
    font-size: 1.2vw;
    font-weight: 600;
    transition: background 0.25s var(--animation-curve), color 0.25s var(--animation-curve);
}

.faq-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-icon {
    width: 1.5vw;
    height: 1.5vw;
    position: relative;
    transition: transform 0.3s var(--animation-curve);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--electric-purple);
    transition: transform 0.3s var(--animation-curve), opacity 0.3s var(--animation-curve);
}

.faq-icon::before {
    width: 100%;
    height: 0.2vw;
    top: 50%;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 0.2vw;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-toggle[aria-expanded="true"] .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 2vw;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--animation-curve), padding 0.25s var(--animation-curve), opacity 0.25s var(--animation-curve);
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
}

.faq-answer.active {
    padding: 2vw;
    max-height: 50vh;
    opacity: 1;
}

/* Open state elevation */
.faq-item.open {
    transform: translateY(-0.2vw);
    box-shadow: 0 12px 36px rgba(108,46,183,0.18);
}

/* Application Form */
.application-form {
    max-width: 60vw;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--lavender) 60%, var(--mauve) 100%);
    padding: 2.5vw 2vw;
    border-radius: 1.5vw;
    box-shadow: 0 12px 36px rgba(108,46,183,0.2);
    text-align: left;
    animation: fadeInUp 1.2s;
    backdrop-filter: saturate(120%) blur(2px);
}

.form-group {
    margin-bottom: 1.5vw;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5vw;
    color: var(--purple-dark);
    font-weight: 700;
    font-size: 1.05vw;
}

.form-group input,
.form-group select {
    width: 96%;
    padding: 0.9vw 1vw;
    border-radius: 0.7vw;
    border: 0.12vw solid var(--purple);
    font-size: 1.05vw;
    background: var(--white);
    color: var(--text-dark);
    margin: 0 auto;
    display: block;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border: 0.2vw solid var(--electric-purple);
    outline: none;
    box-shadow: 0 0 0 0.4vw rgba(191,0,255,0.1);
}

.form-submit-button {
    background: linear-gradient(90deg, var(--electric-purple) 0%, var(--purple) 100%);
    color: var(--white);
    border: none;
    padding: 1.2vw 2.4vw;
    border-radius: 0.9vw;
    font-size: 1.15vw;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(191,0,255,0.25);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 1vw;
    display: inline-block;
    animation: pulse 2s infinite;
}

.form-submit-button:hover {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--plum) 100%);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 12px 32px rgba(191,0,255,0.32);
}

/* Duplicate :root removed; variables defined at top */

/* Add loading states */
.form-submit-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* Add focus states for accessibility */
:focus {
    outline: 3px solid var(--electric-purple);
    outline-offset: 2px;
}

/* Add print styles */
@media print {
    .no-print {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Contact Section */
.contact-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
    justify-content: center;
    width: 100%;
    animation: fadeInUp 1.2s;
}

.location-card {
    background: linear-gradient(135deg, var(--lavender) 60%, var(--plum) 100%);
    border-radius: 2vw;
    padding: 2vw 1vw;
    box-shadow: 0 2% 8% var(--purple);
    min-width: 20vw;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}
.location-card:hover {
    box-shadow: 0 4% 16% var(--electric-purple);
    transform: scale(1.03);
}

.location-card h3 {
    color: var(--electric-purple);
    margin-bottom: 1vw;
    font-size: 1.2vw;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    text-shadow: 0 0.2vw 0.5vw var(--purple);
}

.location-card h3 i {
    color: var(--purple);
    font-size: 1.2vw;
}

.location-card p {
    margin-bottom: 0.7vw;
    font-size: 1vw;
    color: var(--indigo);
}

.small-button {
    padding: 0.7vw 1.5vw;
    font-size: 1vw;
    margin-top: 1vw;
    display: inline-block;
    background: linear-gradient(90deg, #25D366 0%, #128c7e 100%);
    color: var(--white);
    border-radius: 0.5vw;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    animation: pulse 2s infinite;
}
.small-button:hover {
    background: linear-gradient(90deg, #128c7e 0%, #25D366 100%);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--plum) 50%, var(--electric-purple) 100%);
    color: var(--white);
    padding: 4% 0 2% 0;
    margin-top: 3vw;
    text-align: left;
    box-shadow: 0 -2% 12% var(--plum);
    animation: gradientMove 8s ease-in-out infinite;
}

.footer-content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 2%;
    box-sizing: border-box;
}

.footer-section {
    min-width: 20vw;
    margin-bottom: 1vw;
    text-align: left;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1vw;
    font-size: 1.2vw;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.7vw;
}

.footer-section ul li a {
    color: var(--lavender);
    font-weight: 600;
    transition: color 0.2s;
    font-size: 1vw;
}

.footer-section ul li a:hover {
    color: var(--electric-purple);
}

.footer-bottom {
    width: 100%;
    text-align: left;
    margin-top: 2vw;
    color: var(--lavender);
    font-size: 1vw;
}

.developer-credit a {
    color: var(--lavender);
    font-size: 1vw;
    text-decoration: underline;
}

.developer-credit a:hover {
    color: var(--electric-purple);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(3vw);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-3vw);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(191, 0, 255, 0.6);} 
    70% { box-shadow: 0 0 0 20px rgba(191, 0, 255, 0);} 
    100% { box-shadow: 0 0 0 0 rgba(191, 0, 255, 0);} 
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container, .footer-content, main, section {
        width: 98%;
        padding: 0 1%;
    }
    .course-categories, .contact-locations, .footer-content {
        flex-direction: column;
        gap: 2vw;
        align-items: center;
    }
    .course-type, .location-card, .footer-section {
        width: 90%;
        min-width: 200px;
    }
    .gallery-item img {
        width: 48vw;
        height: 32vw;
    }
    .footer-content {
        justify-content: center;
        align-items: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    header, footer {
        padding: 2% 0 1% 0;
    }
    .logo img {
        width: 20vw;
        min-width: 50px;
    }
    .site-title h1 {
        font-size: 4vw;
    }
    .site-title .motto {
        font-size: 2vw;
    }
    nav ul li a {
        font-size: 2vw;
        padding: 2vw 4vw;
    }
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    body { padding-top: 14vw; }
    nav .hamburger {
        position: fixed;
        right: 4%;
        top: 1.5%;
    }
    .hero h2, .section-title, h2 {
        font-size: 3vw;
    }
    .course-type h3, .location-card h3, .faq-item h3 {
        font-size: 2vw;
    }
    .course-type, .location-card, .footer-section {
        width: 98%;
        min-width: 150px;
    }
    .gallery-item img {
        width: 80vw;
        height: 50vw;
    }
    .application-form {
        max-width: 90vw;
        padding: 4vw 2vw;
    }
    .form-group input, .form-group select {
        width: 95%;
        font-size: 2vw;
    }
    .form-submit-button, .enroll-button, .small-button {
        font-size: 2vw;
        padding: 2vw 4vw;
    }
    .footer-bottom, .developer-credit a {
        font-size: 2vw;
    }
    .footer-content {
        justify-content: center;
        align-items: center;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 30vw;
        min-width: 40px;
    }
    .site-title h1 {
        font-size: 6vw;
    }
    .site-title .motto {
        font-size: 3vw;
    }
    nav ul li a {
        font-size: 3vw;
        padding: 3vw 6vw;
    }
    .hero h2, .section-title, h2 {
        font-size: 4vw;
    }
    .course-type h3, .location-card h3, .faq-item h3 {
        font-size: 3vw;
    }
    .course-type, .location-card, .footer-section {
        width: 100%;
        min-width: 100px;
    }
    .gallery-item img {
        width: 96vw;
        height: 64vw;
    }
    .application-form {
        max-width: 98vw;
        padding: 6vw 2vw;
    }
    .form-group input, .form-group select {
        width: 98%;
        font-size: 3vw;
    }
    .form-submit-button, .enroll-button, .small-button {
        font-size: 3vw;
        padding: 3vw 6vw;
    }
    .footer-bottom, .developer-credit a {
        font-size: 3vw;
    }
    .footer-content {
        justify-content: center;
        align-items: center;
        text-align: left;
    }
}