/* Hero zoom animation */
@keyframes zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.animate-zoom {
    animation: zoom 20s ease-in-out infinite;
}

/* ============================================
   NAVBAR HOVER ANIMATION - Bottom Border
   ============================================ */

/* Desktop navbar menu items hover animation */
/* Target desktop menu items - using descendant combinator */
nav div[class*="hidden"][class*="md:flex"] > a {
    position: relative;
    padding-bottom: 4px;
    display: inline-block;
}

nav div[class*="hidden"][class*="md:flex"] > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e3a5f;
    transition: width 0.3s ease-in-out;
}

nav div[class*="hidden"][class*="md:flex"] > a:hover::after {
    width: 100%;
}

/* ============================================
   GLOBAL TYPOGRAPHY - Playfair Display & Open Sans
   ============================================ */

/* Base body styles */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings - Playfair Display */
h1, h2, h3, h4, h5, h6,
.heading, .title,
[class*="heading"], [class*="title"] {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Body text elements - Open Sans (default) */
div, li, input, textarea, select, label,
nav, header, footer, section, article {
    font-family: 'Open Sans', sans-serif;
}

/* Paragraphs, Anchor tags, Buttons - Playfair Display serif */
p, .paragraph, [class*="paragraph"],
a, button, .btn, [class*="btn"], [class*="button"],
span {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.7;
}

/* Specific font weights for headings */
h1, .h1 { font-weight: 700; }
h2, .h2 { font-weight: 600; }
h3, .h3 { font-weight: 600; }
h4, .h4 { font-weight: 600; }
h5, .h5 { font-weight: 400; }
h6, .h6 { font-weight: 400; }

/* Light text variant */
.font-light { font-weight: 300; }

/* Font family utility classes */
.font-body {
    font-family: 'Open Sans', sans-serif;
}

.font-heading {
    font-family: 'Playfair Display', serif;
}

/* Anchor tags and buttons - Open Sans */
a, button, .btn, [class*="btn"], [class*="button"] {
    font-family: 'Open Sans', sans-serif;
}

/* Custom fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Services scroll animations */
.service-animate-left,
.service-animate-right {
    will-change: transform, opacity;
}

.service-animate-left {
    opacity: 0 !important;
    transform: translateX(-80px) !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.service-animate-right {
    opacity: 0 !important;
    transform: translateX(80px) !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.service-animate-left.animate,
.service-animate-right.animate {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

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

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color - Navy Blue */
::selection {
    background-color: #1e3a5f;
    color: white;
}

/* Focus visible for accessibility */
.focus-visible:focus {
    outline: 2px solid #B03030;
    outline-offset: 2px;
}

/* Hero slide animations */
.hero-slide img {
    animation: zoomAnimation 8s ease-in-out infinite;
}

.hero-slide:nth-child(2) img {
    animation-delay: 2s;
}

.hero-slide:nth-child(3) img {
    animation-delay: 4s;
}

/* Content animations */
.hero-content-item {
    animation: contentFadeIn 1s ease-out;
}

/* Navbar transparency effect - DISABLED to maintain white background */
/*
#navbar {
    background-color: transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .text-gray-700 {
    color: #374151 !important;
}

#navbar:not(.scrolled) .text-gray-700 {
    color: white !important;
}
*/

/* Service cards hover effect */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(176, 48, 48, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Form input focus effects */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e3a5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Parallax effect for hero section */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

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

/* Button hover effects */
.btn-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hover:hover::before {
    width: 300px;
    height: 300px;
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.3s ease;
}

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

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #8B1E1E, #B03030);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation for call-to-action - Navy Blue */
.pulse-cta {
    animation: pulse-cta 2s infinite;
}

@keyframes pulse-cta {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(30, 58, 95, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 58, 95, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Hero zoom animation */
@keyframes zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.animate-zoom {
    animation: zoom 20s ease-in-out infinite;
}

/* About section animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-animate-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

.about-animate-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease-out;
}

.about-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Typing animation */
.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    max-width: fit-content;
    border-right: 3px solid #1e3a5f;
    animation: blink-caret 0.75s step-end infinite;
}

.typing-animation.typing {
    animation: typing 3s steps(12, end), blink-caret 0.75s step-end infinite;
    animation-fill-mode: forwards;
}

.typing-animation.backspacing {
    animation: backspace 1.5s steps(12, end), blink-caret 0.75s step-end infinite;
    animation-fill-mode: forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes backspace {
    from { width: 100% }
    to { width: 0 }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #1e3a5f }
}

/* Why Choose Us section animations */
.why-choose-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

.why-choose-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease-out;
}

.why-choose-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.why-choose-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* FAQ Animations */
.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, margin 0.4s ease-out, opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s;
}

.faq-content:not(.hidden) {
    max-height: 200px;
    padding-top: 0.75rem;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, margin 0.4s ease-out, opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
}

.faq-toggle i {
    transition: transform 0.3s ease-out;
}

.faq-toggle i.rotate-180 {
    transform: rotate(180deg);
}

/* FAQ Question Animation */
.faq-toggle {
    transition: all 0.3s ease-out;
}

.faq-toggle:hover {
    transform: translateX(5px);
}

.faq-toggle:active {
    transform: translateX(2px) scale(0.98);
}

.faq-toggle h3 {
    transition: color 0.3s ease-out;
}

.faq-toggle:hover h3 {
    color: #1e3a5f;
}

/* Services section animations */
.service-card-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.service-card-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.service-card-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.service-card-right.animate {
    opacity: 1;
    transform: translateX(0);
}
