/* Shared Header and Footer Styles */
/* This file contains all common header and footer styles used across all pages */

/* ============================================
   HEADER STYLES
   ============================================ */

/* Base Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-line);
    transition: all 0.3s ease;
}

/* Header with background when scrolling over light sections */
.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--blue-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Styles */
.navigation {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--overlay-subtle);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--accent-bg);
    border: 1px solid var(--accent-line);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: var(--gradient-primary);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(147, 197, 253, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-300);
    transition: width 0.3s ease;
}

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

.footer-legal {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* ============================================
   TESTIMONIALS SECTION STYLES
   ============================================ */

/* What People Are Saying / Experiencing Section (Testimonials) */
.testimonials-section {
    /* Uses .section-dark-blue class */
    padding-bottom: 8rem; /* Extra padding for absolutely positioned dots */
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4rem;
    padding: 1.5rem 3rem;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 60px;
    display: inline-block;
    position: relative;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-track {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y; /* Allow vertical scrolling, enable horizontal swipe detection */
    user-select: none; /* Prevent text selection during swipe */
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 3.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 700px;
    z-index: 1;
    text-align: center;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
}

/* Background cards effect */
.testimonial-card:not(.active) {
    filter: blur(8px);
    opacity: 0.3;
}

.quote-mark {
    font-size: 5rem;
    color: var(--blue-300);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.2rem;
    color: var(--slate-700);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.testimonial-role {
    font-size: 1rem;
    color: var(--slate-700);
    font-weight: 500;
    opacity: 0.8;
}

/* Carousel Arrow Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: -80px;
}

.carousel-arrow-right {
    right: -80px;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Carousel Navigation Dots */
.carousel-dots {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Using services.css dot active styling - expanding dot effect */
.dot.active {
    background: var(--blue-300);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet Landscape - 1024px */
@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-nav {
        gap: 1.5rem;
    }

    .footer-legal {
        gap: 1.5rem;
    }

    /* Testimonials Section Tablet Styles */
    .testimonials-title {
        font-size: 2rem;
        padding: 1.2rem 2rem;
        border-radius: 50px;
    }

    .testimonials-carousel {
        min-height: 450px;
    }

    .testimonial-card {
        padding: 2.5rem 2.5rem;
        max-width: 600px;
    }

    .quote-mark {
        font-size: 4rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .testimonial-name {
        font-size: 1.3rem;
    }

    /* Hide arrows on tablet, keep dots */
    .carousel-arrow {
        display: none;
    }
}

/* Tablet Portrait - 768px */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--gradient-primary);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--accent-line);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 2rem;
    }

    .navigation.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: var(--accent-bg);
        transform: translateX(5px);
    }

    .logo-image {
        height: 35px;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-container {
        gap: 2rem;
    }

    .footer-logo {
        height: 35px;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1.2rem;
        justify-content: center;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 1.2rem;
        justify-content: center;
    }

    /* Testimonials Section Mobile Styles */
    .testimonials-section {
        padding: 4rem 0 6rem 0;
    }

    .testimonials-title {
        font-size: 1.8rem;
        padding: 1rem 1.5rem;
        margin-bottom: 3rem;
        border-radius: 40px;
    }

    .testimonials-carousel {
        min-height: 400px;
    }

    .testimonial-card {
        padding: 2rem 2rem;
        max-width: 100%;
        border-radius: 16px;
    }

    .quote-mark {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-name {
        font-size: 1.2rem;
    }

    .testimonial-role {
        font-size: 0.9rem;
    }

    .carousel-dots {
        gap: 0.8rem;
        bottom: -70px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    /* Hide arrows on mobile */
    .carousel-arrow {
        display: none;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }

    .footer-container {
        gap: 1.5rem;
    }

    .footer-logo {
        height: 30px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-nav {
        gap: 1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-legal {
        gap: 1rem;
        flex-direction: column;
    }

    /* Testimonials Section Small Mobile Styles */
    .testimonials-section {
        padding: 3rem 0 5.5rem 0;
    }

    .testimonials-title {
        font-size: 1.6rem;
        padding: 0.9rem 1.2rem;
        margin-bottom: 2.5rem;
        border-radius: 35px;
        border-width: 2px;
    }

    .testimonials-carousel {
        min-height: 450px;
    }

    .testimonial-card {
        padding: 1.5rem 1.5rem;
    }

    .quote-mark {
        font-size: 3rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .testimonial-name {
        font-size: 1.1rem;
    }

    .testimonial-role {
        font-size: 0.85rem;
    }

    .carousel-dots {
        gap: 0.7rem;
        bottom: -60px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Hide arrows on small mobile */
    .carousel-arrow {
        display: none;
    }
}
