/* Custom Animations and Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #E09B24, #8B3F2B);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #8B3F2B, #563A2F);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Utility Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

/* Navigation Enhancements */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #E09B24, #8B3F2B);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Button Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.service-card,
.program-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.program-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Gradient Background Animation */
.animated-gradient {
    background: linear-gradient(-45deg, #E09B24, #8B3F2B, #563A2F, #E09B24);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #E09B24, #8B3F2B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Input Focus Effects */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #E09B24;
    box-shadow: 0 0 0 3px rgba(224, 155, 36, 0.1);
}

/* Form Enhancements */
input,
textarea,
select {
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Loading States */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Hero Section Enhancements */
#home {
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 155, 36, 0.05) 0%, rgba(139, 63, 43, 0.05) 100%);
    pointer-events: none;
}

/* Stats Counter Animation */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
    color: #E09B24;
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(224, 155, 36, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Social Media Icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 155, 36, 0.3);
}

/* Section Dividers */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #E09B24, #8B3F2B);
    margin: 0 auto;
    border-radius: 2px;
}

/* Scroll to Top Button */
#scroll-top {
    transition: all 0.3s ease;
}

#scroll-top.show {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Ensure mobile menu works on smaller screens */
@media (max-width: 768px) {
    #mobile-menu {
        display: block;
    }

    #mobile-menu.hidden {
        max-height: 0;
        opacity: 0;
        padding: 0;
    }
}


/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Feature Cards with Icon Animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #E09B24, #8B3F2B, #563A2F, #E09B24);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom Checkbox and Radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #E09B24;
}

/* Timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #E09B24, #8B3F2B);
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #E09B24, #8B3F2B);
    transition: width 1s ease;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #E09B24, #8B3F2B);
    color: white;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #563A2F;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* Mobile Navigation Enhancements */
    #mobile-menu a {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        display: block;
        font-weight: 500;
    }

    #mobile-menu a:hover {
        background-color: rgba(224, 155, 36, 0.1);
    }

    /* Make buttons more touch-friendly on mobile */
    button,
    .btn-primary,
    a.btn-primary {
        min-height: 44px;
        min-width: 44px;
    }

    /* Adjust padding for mobile */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile menu button enhancement */
    #mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Corrected from justify-center */
    }

    #mobile-menu-btn i {
        transition: transform 0.3s ease;
    }

    #mobile-menu-btn:active i {
        transform: scale(0.9);
    }

    /* Navigation bar mobile adjustments */
    nav .max-w-7xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Ensure proper spacing and prevent overflow */
    nav .flex.justify-between {
        gap: 0.75rem;
    }

    /* Make logo not overflow and leave space for hamburger */
    nav a[href="index.php"] {
        max-width: calc(100% - 60px);
        flex-shrink: 1;
        min-width: 0;
    }

    /* Hamburger button - ensure it's always visible */
    #mobile-menu-btn {
        flex-shrink: 0;
        z-index: 10;
    }

    /* Logo mobile responsiveness - ONE LINE, responsive size */
    nav a[href="index.php"] h1 {
        white-space: nowrap;
        line-height: 1;
        font-size: 0.875rem;
        /* 14px base for mobile */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Medium mobile screens */
    @media (min-width: 380px) and (max-width: 640px) {
        nav a[href="index.php"] h1 {
            font-size: clamp(0.875rem, 3.5vw, 1rem);
        }

        nav a[href="index.php"] {
            max-width: calc(100% - 55px);
        }
    }

    /* Very small screens (< 380px) */
    @media (max-width: 379px) {
        nav a[href="index.php"] h1 {
            font-size: 0.75rem;
            /* 12px */
        }

        nav a[href="index.php"] .w-10 {
            width: 2rem;
            height: 2rem;
        }

        nav a[href="index.php"] {
            max-width: calc(100% - 50px);
        }
    }
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

/* Card Shadow Variants */
.shadow-primary {
    box-shadow: 0 10px 30px rgba(224, 155, 36, 0.2);
}

.shadow-secondary {
    box-shadow: 0 10px 30px rgba(139, 63, 43, 0.2);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #E09B24;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #E09B24;
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    nav,
    footer,
    #scroll-top,
    #mobile-menu-btn {
        display: none;
    }
}

/* Selection Styling */
::selection {
    background: #E09B24;
    color: white;
}

::-moz-selection {
    background: #E09B24;
    color: white;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
    background-color: #128C7E;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 30px;
        left: 20px;
        font-size: 25px;
    }
}

/* Page Header Enhancements */
.page-header {
    position: relative;
    overflow: hidden;
    padding-top: 10rem;
    /* Increased pt */
    padding-bottom: 5rem;
    /* Increased pb */
    background-color: #3E2A22;
    /* Fallback brand darker color */
    z-index: 1;
    /* Create a stacking context */
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%) brightness(40%);
    display: block;
}

.page-header-content {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}