/* Base styles - Mobile First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0 0.8rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.logo {
    max-width: 150px;
    height: auto;
    margin: 0;
    padding-left: 0;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    background: url('background-hero.png') center/cover;
    overflow: hidden;
    gap: 4rem;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-right: 6rem;
    animation: fadeInUp 0.8s ease-out;
    color: #0A1F2E;
    padding-top: 40px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: #0A1F2E !important;
    font-weight: 700;
    text-shadow: none;
    letter-spacing: -0.01em;
    max-width: 14em;
    background: none !important;
    white-space: nowrap;
}

.hero-content h1 span {
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    left: -0.1em;
    right: -0.1em;
    bottom: 0.1em;
    height: 0.4em;
    background-color: rgba(255, 69, 0, 0.5);
    z-index: -1;
    transform: none;
    animation: drawLine 1s ease-out forwards;
    transform-origin: left;
}

@keyframes drawLine {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.hero-description {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 3.5rem;
    color: #4A5568 !important;
    max-width: 28em;
    font-weight: 400;
    background: none !important;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white !important;
    background: #FF4500 !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #E03E00 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-video-container {
    width: 100%;
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: none;
    max-width: 1200px;
    z-index: 2;
}

.hero-video-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(26, 115, 232, 0.1) 0%, rgba(13, 71, 161, 0.05) 50%, transparent 100%);
    filter: blur(20px);
    z-index: -1;
    border-radius: 16px;
}

.hero-video {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.hero-video:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transform: scale(1);
}

@media (min-width: 1024px) {
    .hero-video-container {
        margin-left: 4rem;
        padding-right: 0;
        width: 900px;
        height: 506px;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
    }
    
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.features {
    padding: 6rem 8%;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: white;
    position: relative;
    z-index: 1;
}

.features-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.5rem;
    color: #003B7A;
    margin-top: 0.5rem;
}

.testimonial {
    padding: 6rem 8%;
    background-color: white;
}

.testimonial-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.reviews-section {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.team-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.team-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.team-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2D3748;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #003B7A;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

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

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

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.reviews-carousel {
    width: 100%;
    min-height: 450px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.reviews-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.review {
    flex: 0 0 100%;
    width: 100%;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1.8rem;
    object-fit: cover;
    border: 3px solid #003B7A;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-avatar:hover {
    transform: scale(1.05);
}

.review-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 90%;
    text-align: center;
    color: #333;
}

.review-author {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4A5568;
    font-size: 1.2rem;
}

.stars {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.carousel-controls {
    margin-top: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.carousel-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #003B7A;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.carousel-controls button:hover {
    background-color: rgba(0, 59, 122, 0.1);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #CBD5E0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.carousel-dot.active {
    background-color: #003B7A;
    transform: scale(1.2);
}

.why-starsat-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 6rem 8%;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.why-starsat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.why-starsat {
    color: white;
    padding-right: 2rem;
    position: relative;
    z-index: 1;
}

.why-starsat h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.benefits-list li {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefits-list li:hover {
    transform: translateY(-5px);
}

.benefits-list h3 {
    color: #003B7A;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.benefits-list p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
    transform: translateY(0);
    transition: transform 0.3s ease;
    margin: 0;
    white-space: normal;
    overflow: visible;
    max-width: 100%;
}

.feature-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-video:hover {
    transform: translateY(-5px);
}

.feature-video:hover .video-caption {
    transform: translateY(0);
}

.feature-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.quote-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding: 6rem 8%;
    background-image: url('./background-hero.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.quote-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.quote-form-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quote-form-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0A1F2E;
}

.quote-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.quote-video {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.quote-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transform: scale(1.2);
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input,
.quote-form textarea {
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    width: 100%;
    font-family: inherit;
}

.quote-form textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.quote-form input:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: #003B7A;
    box-shadow: 0 0 0 2px rgba(0, 59, 122, 0.1);
}

.quote-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.submit-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: #FF4500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #E03E00;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-button:hover::after {
    transform: translateX(100%);
}

@media (max-width: 1200px) {
    .testimonial-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 4rem 5%;
        gap: 3rem;
    }

    .hero-content {
        margin-right: 0;
        padding-top: 0;
    }

    .hero-video-container {
        min-width: unset;
        width: 100%;
        margin: 0;
        padding: 1rem;
        transform: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .hero-video {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        transform: none;
        border-radius: 12px;
    }

    .hero-video-container:hover {
        transform: none;
    }

    .hero-video-container:hover .hero-video {
        transform: none;
    }

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

    .quote-section {
        grid-template-columns: 1fr;
    }

    .quote-image {
        display: none;
    }

    .quote-video {
        margin-bottom: 2rem;
    }

    .why-starsat-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .why-starsat {
        padding-right: 0;
    }

    .feature-video {
        max-width: 800px;
        margin: 0 auto;
    }

    .benefits-list {
        margin: 0 auto;
    }

    .benefits-list li {
        justify-content: center;
    }

    .testimonial-container {
        grid-template-columns: 1fr;
    }

    .team-section {
        max-width: 800px;
        margin: 0 auto;
    }

    .team-intro {
        min-height: auto;
    }

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

/* Mobile styles */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 2rem 1rem;
        min-height: auto;
        width: 100vw;
        margin: 0;
        gap: 2rem;
        padding-top: 80px;
        background: url('background-hero.png') center/cover;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.85);
        z-index: 1;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 1rem;
        text-align: center;
        background: none !important;
    }

    .hero-content h1 {
        font-size: 2.4rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        width: 100%;
        color: #0A1F2E !important;
        background: none !important;
    }

    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        width: 100%;
        color: #4A5568 !important;
        background: none !important;
    }

    .cta-button {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
        padding: 1rem;
        font-size: 1.2rem;
        background: #FF4500;
        color: white;
    }

    .cta-button:hover {
        background: #E03E00;
    }

    .features {
        padding: 3rem 1rem;
        width: 100vw;
        margin: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: calc(100% - 2rem);
        margin: 0 auto;
        padding: 0;
    }

    .feature {
        background: white;
        padding: 2rem;
        border-radius: 12px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .testimonial-container {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 2rem 1rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .team-section {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    .team-gallery {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .gallery-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 aspect ratio for desktop */
        margin: 0 auto;
    }

    .team-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: none;
        border-radius: 12px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .team-image.active {
        opacity: 1;
        visibility: visible;
    }

    .benefits-list {
        width: calc(100% - 2rem);
        margin: 0 auto;
        padding: 0;
    }

    .benefits-list li {
        padding: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .why-starsat-section {
        padding: 3rem 1rem;
        width: 100vw;
        margin: 0;
    }

    .nav-bar {
        padding: 0.8rem 0 0.8rem 20px;
    }

    .logo {
        max-width: 130px;
        flex-shrink: 0;
    }

    .logo img {
        width: 100%;
        height: auto;
        display: block;
    }

    .testimonial {
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }
    .testimonial-container {
        padding: 1rem 0.5rem;
    }
    .reviews-section {
        padding-bottom: 1rem;
    }
    .reviews-carousel {
        min-height: unset;
        padding-bottom: 0.5rem;
    }
    .review {
        padding: 1rem 0.5rem;
    }
    .team-section {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.4rem;
        padding: 0;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 0;
    }

    .cta-button {
        width: 100%;
        font-size: 1.1rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .features h2,
    .reviews-heading,
    .why-starsat h2 {
        font-size: 1.8rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .review-text {
        font-size: 0.95rem;
    }

    .carousel-controls button,
    .gallery-controls button {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .gallery-dots span {
        width: 8px;
        height: 8px;
    }

    .benefits-list h3 {
        font-size: 1.1rem;
    }

    .benefits-list p {
        font-size: 0.9rem;
    }

    .hero-video-container {
        width: 100%;
        max-width: 100vw;
    }
}

.reviews-heading {
    font-size: 2.5rem;
    color: #0A1F2E;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.google-text {
    color: #4285F4;
    font-weight: 600;
}

.google-logo {
    height: 2.5rem;
    width: auto;
    vertical-align: middle;
}

.reviews-heading::before,
.reviews-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #E2E8F0;
}

.reviews-heading::before {
    margin-right: 1rem;
}

.reviews-heading::after {
    margin-left: 1rem;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.quote-form input:invalid:focus,
.quote-form select:invalid:focus {
    border-color: #FF4500;
    outline: none;
}

.quote-form input.shake,
.quote-form select.shake,
.submit-button.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.music-note {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    animation: flyOut 1s ease-out forwards;
    opacity: 0;
    color: #003B7A;
    z-index: 9999;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    transform-origin: center;
    will-change: transform, opacity;
}

@keyframes flyOut {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
        opacity: 0;
    }
}

.feature-icon.spin img {
    animation: spinIcon 0.6s ease-out;
}

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

.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.google-rating-container {
    margin: 2rem 0 0;
    display: flex;
    justify-content: center;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: white;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.google-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.google-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.rating-details {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rating-details .stars {
    color: #FFD700;
    font-size: 1.3rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.rating-details .stars::before {
    content: "★★★★★";
    position: absolute;
    left: 0;
    top: 0;
    width: 96%;
    overflow: hidden;
    color: #FFD700;
}

.rating-details .stars::after {
    content: "★★★★★";
    color: #E2E8F0;
}

.rating-details .rating {
    font-weight: 700;
    color: #003B7A;
    font-size: 1.4rem;
}

.rating-summary .stars {
    color: #FFD700;
}

.rating-summary .rating {
    font-weight: 600;
    color: #003B7A;
}

.rating-summary .review-count {
    color: #666;
}

.team-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.gallery-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio for desktop */
    margin: 0 auto;
}

.team-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.team-image.active {
    opacity: 1;
    visibility: visible;
}

.team-intro {
    margin-top: 2rem;
    max-width: 100%;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #003B7A;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.gallery-controls button:hover {
    background-color: rgba(0, 59, 122, 0.1);
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gallery-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #CBD5E0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dots span.active {
    background-color: #003B7A;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonial-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-gallery {
        max-width: 100%;
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .gallery-container {
        padding-top: 75%; /* 4:3 aspect ratio for mobile */
    }

    .team-image {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .team-gallery {
        padding: 0 0.5rem;
    }

    .gallery-controls button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (min-width: 769px) {
    .hero-section {
        padding-top: 100px;
    }
}

.site-footer {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 2rem 8%;
    color: white;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.footer-website-text,
.footer-facebook-text {
    color: rgba(255, 255, 255, 0.8);
}

.footer-website-link,
.footer-facebook-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-website-link:hover,
.footer-facebook-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-link-group {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Base styles for language selector */
.language-selector {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #0A1F2E;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.language-btn img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.language-btn:hover {
    background: rgba(0, 59, 122, 0.1);
}

.language-btn:hover img {
    transform: scale(1.1);
}

.language-btn.active {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-bar {
        padding: 0.8rem 0 0.8rem 20px;
    }
    
    .logo {
        max-width: 130px;
    }

    .language-selector {
        display: flex;
        gap: 2px;
        padding: 3px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .language-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
        gap: 3px;
    }

    .language-btn img {
        width: 14px;
        height: 14px;
        border-radius: 2px;
    }
}

@media (min-width: 1024px) {
    .nav-bar {
        padding: 1rem 0 1rem 20px;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .language-selector {
        margin-right: 8%;
    }
}

.trust-badge {
    font-size: 1.2rem;
    color: #4A5568;
    margin-top: 1.5rem;
    font-weight: 600;
    opacity: 0.95;
    text-align: center;
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .trust-badge {
        text-align: left;
        margin-top: 2rem;
        padding: 0.75rem 1.25rem;
        font-size: 1.3rem;
    }
}

:root {
    --primary-gradient: linear-gradient(135deg, #003B7A 0%, #0055A4 100%);
} 