@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Roboto Slab', serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.nav-brand {
    font-family: 'Roboto Slab', serif;
}

.container-custom {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================== HERO ===================== */
.hero-section {
    background: linear-gradient(135deg, #eaf2fb 0%, #d5e5f6 100%);
}

/* ===================== BUTTONS ===================== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===================== KEYFRAMES ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes float {

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

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }

    70% {
        transform: scale(1.06) translateY(-4px);
    }

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

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(15deg) scale(1.2);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes pinPulse {

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

    50% {
        transform: translateY(-8px) scale(1.15);
    }
}

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

    100% {
        background-position: 200% center;
    }
}

@keyframes cardGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(35, 100, 169, 0.1);
    }

    50% {
        box-shadow: 0 8px 40px rgba(35, 100, 169, 0.35);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes starTwinkle {

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

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

@keyframes quotePopIn {
    from {
        opacity: 0;
        transform: scale(0) rotate(-20deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ===================== HERO IMAGE ===================== */
.hero-image {
    animation: fadeInRight 1s ease-out 0.3s forwards, float 3s ease-in-out 1.3s infinite;
    opacity: 0;
}

/* ===================== BASE ANIMATE CLASSES ===================== */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===================== STATS CARDS ===================== */
.stat-card {
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card.animated {
    animation: popIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px rgba(35, 100, 169, 0.18);
}

.stat-card .stat-number {
    animation: countUp 0.6s ease-out forwards;
}

/* ===================== PROJECT CARDS ===================== */
.project-card {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover::after {
    left: 150%;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(35, 100, 169, 0.22), 0 0 0 2px rgba(35, 100, 169, 0.1);
}

.project-card .card-image {
    overflow: hidden;
}

.project-card .card-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

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

/* Card entrance stagger */
.project-card.animate-on-scroll.animated {
    animation: slideUpFade 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.project-card.animate-on-scroll.animated.delay-100 {
    animation-delay: 0.15s;
}

.project-card.animate-on-scroll.animated.delay-200 {
    animation-delay: 0.3s;
}

/* Arrow icon slide on hover */
.project-card .arrow-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.project-card:hover .arrow-icon {
    transform: translateX(6px);
}

/* ===================== BEST PRACTICES CARDS ===================== */
.practice-card {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2364a9, #5697dc, #2364a9);
    background-size: 200% auto;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(35, 100, 169, 0.2);
}

.practice-card.animate-on-scroll.animated {
    animation: popIn 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.practice-card .practice-icon {
    transition: transform 0.4s ease;
}

.practice-card:hover .practice-icon {
    animation: iconSpin 0.6s ease forwards;
}

/* ===================== LOCATION CARDS ===================== */
.location-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover::before {
    opacity: 1;
}

.location-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.location-card.animate-on-scroll.animated {
    animation: bounceIn 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.location-card .location-pin {
    display: inline-block;
}

.location-card:hover .location-pin {
    animation: pinPulse 0.7s ease infinite;
}

/* ===================== TESTIMONIAL CARDS ===================== */
.testimonial-card {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.35s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: '\201C';
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 7rem;
    line-height: 1;
    color: rgba(35, 100, 169, 0.07);
    font-family: serif;
    pointer-events: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover::after {
    color: rgba(35, 100, 169, 0.13);
    transform: scale(1.1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(35, 100, 169, 0.18);
    border-color: rgba(35, 100, 169, 0.25) !important;
}

.testimonial-card.animate-on-scroll.animated {
    animation: slideUpFade 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.testimonial-card .star-icon {
    display: inline-block;
}

.testimonial-card.animated .star-icon:nth-child(1) {
    animation: starTwinkle 1.2s ease 0.5s 1;
}

.testimonial-card.animated .star-icon:nth-child(2) {
    animation: starTwinkle 1.2s ease 0.65s 1;
}

.testimonial-card.animated .star-icon:nth-child(3) {
    animation: starTwinkle 1.2s ease 0.8s 1;
}

.testimonial-card.animated .star-icon:nth-child(4) {
    animation: starTwinkle 1.2s ease 0.95s 1;
}

.testimonial-card.animated .star-icon:nth-child(5) {
    animation: starTwinkle 1.2s ease 1.1s 1;
}

/* Avatar ring pulse */
.testimonial-card .avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover .avatar {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(35, 100, 169, 0.3);
}

/* ===================== LOGO ===================== */
.logo-image {
    height: 75px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-image {
        height: 70px;
    }
}

/* ===================== FLOATING BUTTONS ===================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    pointer-events: none;
}

.floating-btn {
    pointer-events: all;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.call-btn {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}

.call-btn:hover {
    background: linear-gradient(135deg, #16A34A, #15803D);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
}

@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .floating-buttons {
        bottom: 20px;
        padding: 0 15px;
    }
}

/* ===================== MODAL ===================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #2364a9;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover {
    background-color: #f0f0f0;
    color: #333;
}

.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
    margin-top: 1rem;
    animation: slideUp 0.3s ease-out;
}

.success-message.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

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

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #2364a9;
    box-shadow: 0 0 0 3px rgba(35, 100, 169, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.form-input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-input.success {
    border-color: #16a34a;
    background-color: #f0fdf4;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.success:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #2364a9;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.85rem;
    }
}

/* ===================== FILTER BUTTONS ===================== */
.filter-btn {
    background-color: white;
    color: #1a4b7f;
    border: 2px solid #aacbee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #d5e5f6;
    border-color: #2364a9;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #1a4b7f;
    color: white;
    border-color: #1a4b7f;
}

.filter-btn.active:hover {
    background-color: #113255;
}