/* 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 2px 8px rgba(108,46,183,0.08);
    
    /* Original color variables - keeping for compatibility */
    --primary-color: var(--purple-dark);
    --secondary-color: var(--purple);
    --accent-color: #ffd700;
    --text-color: var(--text-dark);
    --light-bg: var(--gray);
    --dark-bg: #343a40;
    --success-color: #28a745;
    --purple-100: var(--purple-light);
    --purple-200: #e1bee7;
    --purple-300: #ce93d8;
    --purple-400: #ba68c8;
    --purple-500: #9c27b0;
    --purple-600: #8e24aa;
    --purple-700: #7b1fa2;
    --purple-800: #6a1b9a;
    --purple-900: #4a148c;

    /* 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);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-circle: 50%;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* General Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
.text-center { text-align: center; }
.justify-text { text-align: justify; }

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 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;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* 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(135deg, var(--purple-dark) 0%, var(--electric-purple) 50%, var(--plum) 100%);
    padding: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-content {
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 6px rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo img:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 8px rgba(255,255,255,0.2);
}

.site-title h1 {
    font-size: 42px;
    margin-top: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: fadeInDown 1s ease-out;
}

.site-title .motto {
    font-size: 24px;
    color: var(--lavender);
    font-weight: 500;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Navigation Bar */
nav {
    background: linear-gradient(90deg, var(--purple-light) 0%, var(--mauve) 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    transition: all 0.3s ease;
}

nav ul li {
    margin: 0 10px;
    padding: 3px 0;
}

nav ul li a {
    color: var(--purple-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
    background: linear-gradient(90deg, var(--lavender) 60%, var(--white) 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 3px;
}

nav ul li a i {
    margin-right: 8px;
    font-size: 18px;
    color: var(--electric-purple);
    transition: color 0.3s ease;
}

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 2px 8px var(--electric-purple);
}

nav .hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--electric-purple) 0%, var(--purple-dark) 100%);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.2);
}

nav .hamburger:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 0 4px rgba(255,255,255,0.2);
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--electric-purple) 100%);
}

nav .hamburger:active {
    transform: scale(0.9);
}

nav .hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Enhanced Hamburger Animation */
nav .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--white);
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}
nav .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}
nav .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--white);
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* Hamburger pulse animation when active */
nav .hamburger.active {
    animation: hamburgerPulse 0.6s ease-in-out;
}

@keyframes hamburgerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    nav .hamburger {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--purple-dark) 0%, var(--electric-purple) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    nav ul.show {
        right: 0;
    }
    
    nav ul li {
        margin: 8px 0;
        width: 85%;
    }
    
    nav ul li a {
        background: rgba(255,255,255,0.1);
        color: var(--white);
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background: rgba(255,255,255,0.2);
        transform: translateX(-6px) scale(1.02);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    
    nav ul li a i {
        font-size: 16px;
        color: var(--lavender);
    }
    
    /* Menu Overlay */
    #menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    body.menu-open #menu-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Main Content */
main {
    width: 100%;
    margin: 0 auto;
    padding: 3% 0 0 0;
}

/* Section Card */
section {
    background: var(--lavender);
    margin-bottom: 40px;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(108,46,183,0.15);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: fadeInUp 1.2s;
    min-height: 200px;
}

/* About Us Card */
#about {
    background: linear-gradient(135deg, var(--purple-light) 60%, var(--mauve) 100%);
    box-shadow: 0 8px 25px rgba(108,46,183,0.2);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1.2s;
    min-height: 300px;
}

#about .about-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(108,46,183,0.15);
    padding: 40px 30px;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    transition: box-shadow 0.3s;
}
#about .about-card:hover {
    box-shadow: 0 12px 30px rgba(191,0,255,0.25);
}

#about h2 {
    color: var(--electric-purple);
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(108,46,183,0.3);
}

#about p {
    font-size: 20px;
    color: var(--indigo);
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--plum) 50%, var(--electric-purple) 100%);
    border-radius: 20px;
    padding: 80px 40px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 12px 30px rgba(108,46,183,0.3);
    animation: gradientMove 8s ease-in-out infinite;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(191,0,255,0.4);
    animation: fadeInDown 1.2s;
}

.hero p {
    font-size: 22px;
    margin-bottom: 35px;
    color: var(--lavender);
    animation: fadeIn 2s;
    max-width: 600px;
    line-height: 1.6;
}

.hero-button {
    background: linear-gradient(90deg, var(--electric-purple) 0%, var(--purple) 100%);
    color: var(--white);
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(191,0,255,0.4);
    transition: all 0.3s ease;
    display: inline-block;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.hero-button:hover {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--plum) 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(191,0,255,0.5);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.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);
}

/* Course sections */
.course-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    animation: fadeInUp 1.2s;
    padding: 20px 0;
}

.course-type {
    background: linear-gradient(135deg, var(--lavender) 60%, var(--plum) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(108,46,183,0.15);
    width: 45%;
    min-width: 350px;
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-type:hover {
    box-shadow: 0 15px 40px rgba(191,0,255,0.25);
    transform: translateY(-8px) scale(1.02);
}

.course-type h3 {
    color: var(--electric-purple);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 2px 2px 4px rgba(108,46,183,0.3);
    line-height: 1.3;
}

.course-type h3 i {
    color: var(--purple);
    font-size: 32px;
}

.course-item h4 {
    color: var(--purple-dark);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.course-item p {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--indigo);
    line-height: 1.6;
}

/* 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);
}

/* 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: 30px;
    justify-content: center;
    width: 100%;
    animation: fadeInUp 1.2s;
    padding: 20px 0;
}

.location-card {
    background: linear-gradient(135deg, var(--lavender) 60%, var(--plum) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(108,46,183,0.15);
    min-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.location-card:hover {
    box-shadow: 0 15px 40px rgba(191,0,255,0.25);
    transform: translateY(-8px) scale(1.02);
}

.location-card h3 {
    color: var(--electric-purple);
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 2px 2px 4px rgba(108,46,183,0.3);
}

.location-card h3 i {
    color: var(--purple);
    font-size: 32px;
}

.location-card p {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--indigo);
    line-height: 1.6;
}

.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(135deg, var(--purple-dark) 0%, var(--electric-purple) 50%, var(--plum) 100%);
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
    animation: footerSlideUp 1s ease-out;
}

@keyframes footerSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: shimmer 4s infinite reverse;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    transition: all 0.3s ease;
}

.footer-section h3:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-purple), var(--lavender));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-section h3:hover::after {
    width: 60px;
}

.footer-section ul li a {
    color: var(--lavender);
    font-size: 16px;
    padding: 8px 0;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--electric-purple);
    font-weight: bold;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: -12px;
}

.footer-section p {
    color: var(--lavender);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-section p:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    animation: fadeIn 1s ease-out 0.5s both;
}

.footer-bottom p {
    color: var(--lavender);
    font-size: 12px;
    margin-bottom: 5px;
}

.developer-credit a {
    color: var(--lavender);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--white);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    /* Footer mobile styling */
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 0 15px;
    }
    
    .footer-section h3 {
        font-size: 20px;
        margin-bottom: 12px;
        color: var(--white);
    }

    .footer-section ul li a {
        font-size: 16px;
        padding: 10px 0;
        color: var(--white);
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: all 0.3s ease;
    }
    
    .footer-section ul li a:hover {
        color: var(--lavender);
        transform: translateY(-2px);
        padding-left: 0;
    }
    
    .footer-section ul li a::before {
        display: none;
    }

    .footer-section p {
        font-size: 14px;
        color: var(--white);
        text-align: center;
        margin-bottom: 8px;
    }
    
    .footer-section p:hover {
        color: var(--lavender);
        transform: translateY(-1px);
    }

    .footer-bottom {
        text-align: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .footer-bottom p {
        color: var(--white);
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .developer-credit a {
        color: var(--lavender);
        text-decoration: none;
        font-size: 12px;
    }
    
    .developer-credit a:hover {
        color: var(--white);
        text-shadow: 0 0 5px rgba(255,255,255,0.3);
    }
}

/* Hide bullets globally */
ul {
    list-style: none;
}

/* Enhanced Mobile Cards */
@media (max-width: 768px) {
    /* Header adjustments for mobile */
    header {
        padding: 15px 0;
    }
    
    .site-title h1 {
        font-size: 32px;
    }
    
    .site-title .motto {
        font-size: 20px;
    }
    
    .logo img {
        width: 100px;
        height: 100px;
    }

    /* Section adjustments */
    section {
        margin-bottom: 40px;
        padding: 40px 20px;
        min-height: 250px;
    }

    /* About Us mobile */
    #about {
        padding: 50px 25px;
        min-height: 400px;
    }
    
    #about h2 {
        font-size: 36px;
        margin-bottom: 25px;
    }
    
    #about p {
        font-size: 18px;
        margin-bottom: 20px;
        line-height: 1.7;
    }

    /* Hero section mobile */
    .hero {
        padding: 60px 25px;
        min-height: 300px;
    }
    
    .hero h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .hero-button {
        padding: 18px 35px;
        font-size: 18px;
    }

    /* Course cards mobile */
    .course-type {
        width: 100%;
        min-width: 280px;
        padding: 35px 25px;
        margin-bottom: 25px;
        min-height: 350px;
    }
    
    .course-type h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .course-type h3 i {
        font-size: 24px;
    }
    
    .course-item h4 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .course-item p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .enroll-button {
        padding: 15px 30px;
        font-size: 16px;
        margin-top: 15px;
    }

    /* Contact section mobile */
    .location-card {
        width: 100%;
        min-width: 280px;
        padding: 35px 25px;
        min-height: 300px;
    }
    
    .location-card h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .location-card h3 i {
        font-size: 24px;
    }
    
    .location-card p {
        font-size: 18px;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .small-button {
        padding: 15px 25px;
        font-size: 16px;
        margin-top: 15px;
    }

    /* Form mobile */
    .application-form {
        padding: 40px 25px;
        margin: 30px auto;
        width: 95%;
    }
    
    .form-group input,
    .form-group select {
        padding: 15px 12px;
        font-size: 16px;
    }
    
    .form-group label {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .form-submit-button {
        width: 100%;
        padding: 18px;
        font-size: 18px;
    }

    /* Gallery mobile */
    .gallery-item img {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    /* FAQ mobile */
    .faq-toggle {
        padding: 20px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-answer.active {
        padding: 20px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    /* Extra small screens */
    .site-title h1 {
        font-size: 28px;
    }
    
    .site-title .motto {
        font-size: 20px;
    }

    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }

    .course-type h3,
    .location-card h3 {
        font-size: 20px;
    }
    
    .course-type h3 i,
    .location-card h3 i {
        font-size: 20px;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        padding: 18px 15px;
    }
    
    .form-group label {
        font-size: 16px;
    }

    .footer-section {
        padding: 15px;
    }
    
    .footer-section h3 {
        font-size: 20px;
    }
    
    .footer-section ul li a {
        font-size: 16px;
    }
    
    .footer-section p {
        font-size: 14px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Increase touch targets */
    .button,
    .enroll-button,
    .hero-button,
    .small-button,
    .form-submit-button {
        min-height: 48px;
        min-width: 48px;
        padding: 15px 25px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    /* Improve touch feedback */
    .button:active,
    .enroll-button:active,
    .hero-button:active,
    .small-button:active,
    .form-submit-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Larger touch targets for navigation */
    nav ul li a {
        min-height: 48px;
        padding: 15px 20px;
        font-size: 18px;
        touch-action: manipulation;
    }
    
    /* Larger form inputs */
    .form-group input,
    .form-group select {
        min-height: 48px;
        font-size: 16px;
        padding: 15px 12px;
    }
    
    /* Larger FAQ toggles */
    .faq-toggle {
        min-height: 48px;
        padding: 15px 20px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    /* Improve gallery touch */
    .gallery-item img {
        cursor: pointer;
        touch-action: manipulation;
    }
    
    /* Better spacing for touch */
    .course-type,
    .location-card {
        margin-bottom: 20px;
    }
    
    section {
        margin-bottom: 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.pulse {
    animation: pulseScale 2s infinite;
}

/* Additional mobile-specific animations */
@media (max-width: 768px) {
    /* Smooth slide-in for mobile menu */
    nav ul {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    nav ul.show {
        transform: translateX(0);
    }
    
    /* Enhanced staggered animation for menu items */
    nav ul li {
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }
    
    nav ul.show li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Faster staggered delays for better UX */
    nav ul.show li:nth-child(1) { transition-delay: 0.05s; }
    nav ul.show li:nth-child(2) { transition-delay: 0.1s; }
    nav ul.show li:nth-child(3) { transition-delay: 0.15s; }
    nav ul.show li:nth-child(4) { transition-delay: 0.2s; }
    nav ul.show li:nth-child(5) { transition-delay: 0.25s; }
    nav ul.show li:nth-child(6) { transition-delay: 0.3s; }
    nav ul.show li:nth-child(7) { transition-delay: 0.35s; }
    nav ul.show li:nth-child(8) { transition-delay: 0.4s; }
    
    /* Active link styling */
    nav ul li a.active {
        background: rgba(255,255,255,0.25);
        transform: translateX(-4px) scale(1.01);
        box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    }
    
    /* Improved touch feedback */
    nav ul li a:active {
        transform: translateX(-3px) scale(0.98);
        transition: transform 0.1s ease;
    }
}