/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 3em;
    height: 2em;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    padding-top: 80px;
    /* Account for fixed navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    color: var(--primary-light);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-title span {
    color: var(--primary-light);
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: rgba(255, 255, 255, 0.6);
}

/* Section Styles */
section {
    padding: 8rem 2rem;
    position: relative;
    scroll-margin-top: 80px;
    /* Account for fixed navbar when scrolling to anchors */
}

.section-bg-1 {
    background: var(--white);
}

.section-bg-2 {
    background: var(--off-white);
}

.section-bg-3 {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2%;
    right: 0;
    height: 4px;
    width: 96%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 24px 24px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    opacity: 0.2;
    transform: scale(1.3);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-card ul li {
    color: var(--gray);
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
}

.service-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.clients-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.05);
    height: 120px;
}

.client-logo img {
    max-width: 140px;
    max-height: 60px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.testimonials-carousel.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-slide {
    display: none;
    background: white;
    padding: 4rem;
    height: 26rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.1);
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.testimonial-slide.active {
    display: flex;
    align-items: center;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.testimonial-quote {
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--dark);
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -5rem;
    left: -1rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

.author-info h4 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: var(--primary);
    width: 40px;
    border-radius: 6px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid rgba(59, 130, 246, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:hover svg {
    stroke: white;
}

.carousel-arrow.prev {
    left: -25px;
}

.carousel-arrow.next {
    right: -25px;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    transition: all 0.3s ease;
}

/* Partners Section */
.partners-category {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.partners-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.partners-category h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    height: 100px;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.05);
}

.partner-logo img {
    max-width: 120px;
    max-height: 50px;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Support Section */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.support-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    height: 140px;
}

.support-card img {
    max-width: 160px;
    max-height: 80px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.support-card:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

#contact .section-label,
#contact .section-title,
#contact .section-description {
    color: white;
}

#contact .section-label {
    color: var(--primary-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-info h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.contact-form.visible {
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Footer */
footer {
    background: #0F172A;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
    text-align: center;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

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

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding: 8px;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

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

    .hero {
        min-height: 500px;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .carousel-arrow {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 5rem 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }

    .partners-logos {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .testimonial-slide {
        padding: 2rem 1.5rem;
    }

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

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-info h3 {
        font-size: 2rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

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

    .client-logo {
        height: 100px;
        padding: 1rem;
    }

    .client-logo img {
        max-width: 100px;
        max-height: 50px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

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

    section {
        padding: 4rem 1rem;
    }

    .nav-links {
        width: 280px;
        padding: 1.5rem;
    }
}

/* Animation on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Team Picture Section */
.service-picture {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.service-picture.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-picture {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated border effect - only on hover */
.service-picture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary), var(--primary-light));
    background-size: 300% 300%;
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Border animation triggers on hover */
.service-picture:hover::before {
    opacity: 1;
    animation: borderAppear 2s cubic-bezier(0.4, 0, 0.2, 1) forwards, 
               gradientMove 4s ease-in-out infinite 2s;
}

/* Border disappear animation when hover ends */
.service-picture::before {
    animation: borderDisappear 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes borderAppear {
    0% {
        clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    }
    30% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    60% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    80% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes borderDisappear {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    20% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    40% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    70% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    100% {
        clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    }
}

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

/* Image scale effect on hover */
.service-picture:hover .team-picture {
    transform: scale(1.015);
}

/* Shadow effect on hover */
.service-picture::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0;
    z-index: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(30px);
}

.service-picture:hover::after {
    opacity: 0.2;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .service-picture {
        max-width: 100%;
        margin: 2rem auto 0;
    }
}

@media (max-width: 640px) {
    .service-picture {
        padding: 6px;
    }
    
    .team-picture {
        border-radius: 16px;
    }
    
    .service-picture::before {
        border-radius: 20px;
    }
    
    .service-picture::after {
        border-radius: 16px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease-in-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    animation: slideInModal 0.3s ease-in-out;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    fill: var(--white);
}

.modal-header h2 {
    font-size: 28px;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-body p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.modal-body h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.modal-body li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
}

.modal-body li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.modal-footer .btn {
    flex: 1;
    text-align: center;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        padding: 30px 20px;
        width: 100%;
        max-height: 85vh;
        border-radius: 8px;
    }

    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 28px;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 25px;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
    }

    .modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-body p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .modal-body h3 {
        font-size: 16px;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .modal-body li {
        padding: 8px 0;
        padding-left: 25px;
        font-size: 13px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px;
    }

    .modal-content {
        padding: 20px 15px;
        width: 100%;
        max-height: 85vh;
        border-radius: 8px;
    }

    .modal-close {
        right: 10px;
        top: 10px;
        font-size: 24px;
        width: 36px;
        height: 36px;
    }

    .modal-header {
        margin-bottom: 20px;
        gap: 12px;
    }

    .modal-icon {
        width: 45px;
        height: 45px;
    }

    .modal-icon svg {
        width: 24px;
        height: 24px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        margin-bottom: 20px;
    }

    .modal-body p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .modal-body h3 {
        font-size: 15px;
        margin-top: 12px;
        margin-bottom: 10px;
    }

    .modal-body li {
        padding: 7px 0;
        padding-left: 22px;
        font-size: 12px;
    }

    .modal-body li:before {
        font-size: 14px;
    }

    .modal-footer .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}