/* Custom CSS for Dal Poon Academy */

/* Lithos Font - Self-hosted */
@font-face {
    font-family: 'Lithos';
    src: url('../fonts/lithos.woff2') format('woff2'),
        url('../fonts/lithos.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* Hero Text Glow Effect */
.hero-glow {
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(255, 255, 255, 0.05);
    font-weight: 900 !important;
    letter-spacing: 0.02em;
}

/* Tenet Slide Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.tenet-slide-in {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.tenet-slide-out {
    animation: slideOutToRight 0.8s ease-in forwards;
}

/* New Class Content Fade */
.new-class-fade-in {
    animation: fadeIn 1s ease-in forwards;
}

.new-class-fade-out {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 5px;
}

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Section Overlay Animation */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

/* Card Hover Effects */
.class-card {
    transition: all 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Parallax Effect for Hero */
#home {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    #home {
        background-attachment: scroll;
    }
}

/* Instructor Card Animations */
.instructor-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instructor-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.instructor-card img {
    transition: all 0.4s ease;
}

.instructor-card:hover img {
    transform: scale(1.05);
}

/* Section Fade-in on Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State for Form */
#booking-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.message-success {
    color: #22c55e;
    font-weight: 600;
}

.message-error {
    color: #ef4444;
    font-weight: 600;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bounce Animation for Scroll Indicator */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(10px) translateX(-50%);
    }
}