/* Custom Styles for Learn With Us Tutoring Website */

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navigation Styles */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5EC2E7;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    padding-top: 8rem !important;
}

/* Ensure enough space for fixed nav */
@media (min-width: 768px) {
    .hero-section {
        padding-top: 10rem !important;
    }
}

.hero-illustration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

/* Mobile-first: smaller hero image on mobile */
@media (max-width: 768px) {
    .hero-image {
        max-width: 300px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-element {
    animation: floating 4s ease-in-out infinite;
}

.floating-element-delayed {
    animation: floating 4s ease-in-out infinite 2s;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.cta-button {
    animation: pulse-shadow 2s ease-in-out infinite;
}

@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(255, 212, 71, 0.3);
    }
    50% {
        box-shadow: 0 15px 35px rgba(255, 212, 71, 0.5);
    }
}

/* Icon Circle Styles */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.icon-circle:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Quote Box */
.quote-box {
    position: relative;
    overflow: hidden;
}

.quote-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(94, 194, 231, 0.2);
}

.feature-image-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 100%;
    max-width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .feature-icon {
        max-width: 80px;
    }
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Mobile: smaller service images */
@media (max-width: 768px) {
    .service-image-container {
        height: 180px;
    }
}

.badge {
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Step Numbers */
.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.step-number:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Calendly Placeholder */
.calendly-placeholder {
    transition: border-color 0.3s ease;
}

.calendly-placeholder:hover {
    border-color: #5EC2E7;
}


/* Mobile optimization */
@media (max-width: 768px) {
    .avatar-image {
        width: 50px;
        height: 50px;
    }
}

/* FAQ Accordion */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(94, 194, 231, 0.2);
}

.faq-question {
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    transition: all 0.4s ease;
}

.faq-answer.active {
    max-height: 1000px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.faq-answer.hidden {
    display: none;
}

/* Contact Form */
input:focus,
textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(94, 194, 231, 0.2);
}

input,
textarea {
    transition: all 0.3s ease;
}

/* Floating Contact Menu */
#floating-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.contact-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    animation: pulse-contact 2s ease-in-out infinite;
    position: relative;
    z-index: 52;
}

.contact-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.contact-toggle.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #FFD447, #5EC2E7);
}

.contact-toggle.active i::before {
    content: "\f00d"; /* X icon */
}

@keyframes pulse-contact {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(94, 194, 231, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(94, 194, 231, 0);
    }
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.contact-options.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.contact-options.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.contact-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

/* Staggered animation delays */
.contact-option:nth-child(1) { animation-delay: 0.1s; }
.contact-option:nth-child(2) { animation-delay: 0.15s; }
.contact-option:nth-child(3) { animation-delay: 0.2s; }
.contact-option:nth-child(4) { animation-delay: 0.25s; }

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

.contact-option:hover {
    transform: scale(1.15) translateX(-5px);
}

/* Tooltips */
.contact-option::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    background: #333333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.contact-option:hover::before {
    opacity: 1;
}

/* Color schemes for each option */
.contact-option.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-option.phone {
    background: linear-gradient(135deg, #5EC2E7, #3FA8CC);
}

.contact-option.email {
    background: linear-gradient(135deg, #FFD447, #FFC107);
}

.contact-option.instagram {
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .contact-toggle {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    
    .contact-option {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .contact-option::before {
        right: 60px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    #floating-contact {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 640px) {
    .contact-toggle {
        width: 52px;
        height: 52px;
    }
    
    .contact-option {
        width: 44px;
        height: 44px;
    }
}

/* Scroll to Top Button */
#scroll-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-top.show {
    opacity: 1;
    pointer-events: all;
}

/* Form Message Styles */
.success-message {
    color: #10b981;
    font-weight: 600;
    padding: 1rem;
    background-color: #d1fae5;
    border-radius: 0.5rem;
}

.error-message {
    color: #ef4444;
    font-weight: 600;
    padding: 1rem;
    background-color: #fee2e2;
    border-radius: 0.5rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(45deg, #5EC2E7, #FFD447, #98E6C0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Hover Effects for Links and Buttons */
a,
button {
    transition: all 0.3s ease;
}

/* Card Hover Glow Effect */
.service-card:hover {
    box-shadow: 0 10px 30px rgba(94, 194, 231, 0.3);
}

/* Contact Image Container */
.contact-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image Loading Optimization */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    animation: fadeInImage 0.5s ease-in forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* About Section Image */
.about-image {
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

/* Mobile Image Optimizations */
@media (max-width: 768px) {
    .service-image-container {
        height: 160px;
    }
    
    .hero-illustration-container {
        margin-top: 2rem;
    }
    
    .contact-image-container img {
        max-width: 250px;
    }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-illustration-container {
        margin-top: 2rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

    .icon-circle i {
        font-size: 1.5rem !important;
    }
    
    /* Mobile-first padding adjustments */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Optimize image sizes for mobile data */
    .service-image,
    .hero-image {
        will-change: transform;
    }
}

/* Print Styles */
@media print {
    nav,
    #scroll-top,
    .floating-element,
    .floating-element-delayed {
        display: none;
    }

    body {
        background: white;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #5EC2E7;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5EC2E7, #98E6C0);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD447, #5EC2E7);
}

/* Selection Color */
::selection {
    background-color: #FFD447;
    color: #333333;
}

::-moz-selection {
    background-color: #FFD447;
    color: #333333;
}

/* Smooth Transitions for All Interactive Elements */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Additional Animation Classes */
.animate-bounce-slow {
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer Effect for Loading States */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Image Aspect Ratio Preservation */
.service-image-container,
.workshop-image {
    position: relative;
    background: linear-gradient(135deg, #5EC2E7, #98E6C0);
}

.service-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(94, 194, 231, 0.1), rgba(152, 230, 192, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image-container::before {
    opacity: 1;
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize for touch screens */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    .service-card:active,
    .feature-card:active {
        transform: scale(0.98);
    }
}

/* Pricing Cards Styles */
.pricing-card {
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-header {
    position: relative;
    overflow: hidden;
}

.pricing-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pricing-shimmer 8s ease-in-out infinite;
}

@keyframes pricing-shimmer {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

.pricing-icon {
    transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-icon {
    transform: scale(1.1) rotate(5deg);
}

.price-display {
    position: relative;
    padding: 1rem 0;
}

.amount {
    background: linear-gradient(45deg, #333333, #5EC2E7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.currency {
    vertical-align: top;
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.period {
    display: block;
    margin-top: 0.5rem;
    font-weight: 500;
}

.pricing-card ul li {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.pricing-card ul li:hover {
    transform: translateX(5px);
    color: #5EC2E7;
}

.pricing-card ul li i {
    transition: transform 0.3s ease;
}

.pricing-card ul li:hover i {
    transform: scale(1.2);
}

/* Pricing Card CTA Buttons */
.pricing-card a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.pricing-card a:hover::before {
    left: 100%;
}

.pricing-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Special Offers Section */
.pricing-card .bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

.pricing-card .bg-gradient-to-r::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%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.pricing-card:hover .bg-gradient-to-r::before {
    transform: translateX(100%);
}

/* Mobile optimizations for pricing cards */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .currency {
        font-size: 1.25rem;
    }
    
    .pricing-icon {
        width: 60px;
        height: 60px;
    }
    
    .pricing-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .amount {
        font-size: 2.5rem;
    }
    
    .pricing-card ul li {
        font-size: 0.9rem;
    }
}

/* Mobile-first: Ensure images don't cause horizontal scroll */
@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-image {
        max-width: 280px;
    }
    
    .feature-icon {
        max-width: 70px;
    }
}

