/* ==========================================================================
   LOADING SCREEN - Wavy Fabric Animation
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #131416 50%, #1E1F22 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-out, visibility 1s ease-out, transform 1s ease-out;
    transform: scale(1);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
}


/* Loading Logo Container */
.loading-logo {
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(255, 193, 7, 0.4)) drop-shadow(0 4px 12px rgba(204, 0, 0, 0.3));
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

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

/* Loading Text */
.loading-text {
    position: relative;
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Wavy Fabric Animation Container */
.loading-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    overflow: hidden;
}

/* Individual Wave Layers - Vibrant Brand Colors */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: 1000px 100%;
}

.wave-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q250,0 500,50 T1000,50 L1000,100 L0,100 Z' fill='%23FF0000' fill-opacity='0.7'/%3E%3C/svg%3E");
    animation: wave-animation-1 15s linear infinite;
    z-index: 3;
    opacity: 1;
}

.wave-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q250,80 500,30 T1000,30 L1000,100 L0,100 Z' fill='%230dd6bb' fill-opacity='0.6'/%3E%3C/svg%3E");
    animation: wave-animation-2 20s linear infinite;
    z-index: 2;
    opacity: 1;
}

.wave-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,70 Q250,20 500,70 T1000,70 L1000,100 L0,100 Z' fill='%236d29ff' fill-opacity='0.65'/%3E%3C/svg%3E");
    animation: wave-animation-3 25s linear infinite;
    z-index: 1;
    opacity: 1;
}

@keyframes wave-animation-1 {
    0% {
        transform: translateX(0);
    }

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

@keyframes wave-animation-2 {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes wave-animation-3 {
    0% {
        transform: translateX(0);
    }

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

/* Loading Spinner - Thread/Fabric Inspired */
.loading-spinner {
    position: relative;
    z-index: 10;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #FF0000;
    border-right-color: #0dd6bb;
    border-bottom-color: #6d29ff;
    border-left-color: #FFC107;
    border-radius: 50%;
    animation: spinnerRotate 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #FFC107;
    border-right-color: #FF0000;
    border-bottom-color: #0dd6bb;
    border-left-color: #6d29ff;
    animation-duration: 2s;
    animation-direction: reverse;
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fabric Dots Pattern Background */
.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .loading-logo img {
        width: 150px;
    }

    .loading-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
    }

    .spinner-ring:nth-child(2) {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }

    .loading-waves {
        height: 30%;
    }
}

/* Prevent body scroll while loading */
body.loading {
    overflow: hidden;
}

/* Floating WhatsApp Icon Styles - Bigger */
#whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    /* Official WhatsApp Green */
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 2px 10px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

#whatsapp-float-btn:hover {
    transform: scale(1.15);
    background-color: #20BA5A;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6), 0 3px 15px rgba(37, 211, 102, 0.4);
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    #whatsapp-float-btn {
        width: 65px;
        height: 65px;
        font-size: 2.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Hero Tag Classes - Keep these as they're used but not in theme-glass.css */
.heroTag {
    padding-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 600;
}

.heroTag2 {
    padding-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #ffeb3b;
}

.heroTag3 {
    padding-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #27c73b;
}

.heroTag4 {
    padding-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #007bff;
}

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

/* Focus styles for better accessibility */
a:focus,
button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    background: var(--bg-darker);
    padding: 2.5rem 0;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonials-section .section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 5vw, 3rem);
    color: var(--color-a-light);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.testimonials-section .section-subtitle {
    color: var(--text-gray);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red) !important;
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.testimonial-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--text-light);
    font-size: 1rem;
}

.author-role {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.testimonial-rating {
    color: var(--brand-red);
    width: 100%;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Tablet Portrait (>= 576px) */
@media (min-width: 576px) {
    .testimonials-section {
        padding: 3.5rem 0;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Third testimonial spans full width on 2-col */
    .testimonials-grid .testimonial-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .testimonial-author {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

/* Tablet Landscape (>= 768px) */
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid .testimonial-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }
}

/* Desktop (>= 992px) */
@media (min-width: 992px) {
    .testimonials-section {
        padding: 4.5rem 0;
    }

    .testimonials-section .section-header {
        margin-bottom: 3rem;
    }

    .testimonials-grid {
        gap: 3rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-quote {
        font-size: 2.5rem;
    }
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        transition: none !important;
    }
}

/* Print styles */
@media print {

    #whatsapp-float-btn,
    .mobile-menu-button {
        display: none !important;
    }
}