/* ============================================
   CeroFallas - Mantenimiento y Construcción
   Estilos principales
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    --color-primary: #1B3A6F;
    --color-primary-dark: #142d54;
    --color-primary-light: #2a4d8a;
    --color-secondary: #6B7280;
    --color-accent: #3B82F6;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 8px 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 160px;
    width: auto;
    transition: var(--transition);
}

/* Logo switching - white on hero, dark when scrolled */
.logo .logo-white {
    display: block;
}

.logo .logo-dark {
    display: none;
}

.navbar.scrolled .logo .logo-white {
    display: none;
}

.navbar.scrolled .logo .logo-dark {
    display: block;
}

.navbar.scrolled .logo img {
    height: 100px;
    margin: -25px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    border-radius: 8px;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--color-gray-700);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-white);
    color: var(--color-primary) !important;
    font-weight: 600;
}

.navbar.scrolled .nav-cta {
    background: var(--color-primary);
    color: var(--color-white) !important;
}

.nav-cta:hover {
    background: var(--color-gray-100) !important;
    transform: translateY(-2px);
}

.navbar.scrolled .nav-cta:hover {
    background: var(--color-primary-dark) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .hamburger span {
    background: var(--color-gray-700);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 58, 111, 0.92) 0%, rgba(20, 45, 84, 0.95) 100%),
        url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    display: block;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-white);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-gray-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(27, 58, 111, 0.08);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--color-gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--color-gray-100);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.service-card.featured h3,
.service-card.featured p {
    color: var(--color-white);
}

.service-card.featured p {
    opacity: 0.85;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(27, 58, 111, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.15);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary);
}

.service-card.featured .service-icon svg {
    stroke: var(--color-white);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    color: var(--color-gray-600);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--color-primary);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: #10B981;
}

.feature span {
    font-weight: 500;
    color: var(--color-gray-700);
}

.about-image {
    position: relative;
}

.image-wrapper {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    max-width: 280px;
    filter: brightness(0) invert(1);
}

.stats-card {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    padding: 24px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--color-gray-200);
}

/* Real image wrapper (no filter) */
.image-wrapper.real-image {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.image-wrapper.real-image img {
    max-width: 100%;
    height: auto;
    filter: none;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 400px;
    gap: 4px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(27, 58, 111, 0.85) 0%, rgba(27, 58, 111, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(27, 58, 111, 0.95) 0%, rgba(27, 58, 111, 0.5) 50%, transparent 100%);
}

.gallery-overlay span {
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 600;
    transform: translateY(10px);
    opacity: 0.9;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 200px 200px;
    }
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.why-us .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.why-us .section-title {
    color: var(--color-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 40px 28px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.why-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--color-gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tag {
    margin-bottom: 12px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-text {
    color: var(--color-gray-600);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

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

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--color-gray-500);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(27, 58, 111, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    margin-top: 10px;
    padding: 16px;
}

.contact-form .btn-primary:hover {
    background: var(--color-primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-brand p:first-of-type {
    color: var(--color-white);
    font-weight: 500;
}

.footer-tagline {
    color: var(--color-gray-500);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--color-gray-400);
    font-size: 0.95rem;
    padding: 8px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 8px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--color-gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }

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

    .nav-link {
        color: var(--color-gray-700);
        padding: 16px 0;
        border-bottom: 1px solid var(--color-gray-100);
        width: 100%;
    }

    .nav-cta {
        margin-top: 20px;
        text-align: center;
        background: var(--color-primary);
        color: var(--color-white) !important;
        border-radius: 10px;
        padding: 14px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        order: -1;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-tag {
        display: block;
        text-align: center;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .service-card {
        padding: 30px 24px;
    }

    .stats-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade in animations with stagger */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for cards */
.service-card:nth-child(1),
.why-card:nth-child(1) {
    transition-delay: 0s;
}

.service-card:nth-child(2),
.why-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3),
.why-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4),
.why-card:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card:nth-child(5) {
    transition-delay: 0.4s;
}

.service-card:nth-child(6) {
    transition-delay: 0.5s;
}

/* Hero floating animation */
@keyframes float {

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

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

@keyframes float-slow {

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

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

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating shapes in hero */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Animated gradient for hero title highlight */
.hero-title .highlight {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #60A5FA 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Button hover animations */
.btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Service card hover glow */
.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(27, 58, 111, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
}

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

/* Animated icon bounce on hover */
.service-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
}

/* Stats counter animation */
.stat-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Why card glow effect */
.why-card {
    position: relative;
}

.why-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.why-card:hover::after {
    opacity: 1;
}

/* Form input focus animation */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
}

/* Gallery zoom effect */
.gallery-item {
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    z-index: 10;
}

/* Scroll indicator pulse */
.scroll-indicator {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Logo animation on load */
@keyframes logo-appear {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.logo img {
    animation: logo-appear 0.8s ease-out;
}

/* Hero content entrance */
@keyframes hero-content-appear {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero-content {
    animation: hero-content-appear 1s ease-out 0.3s both;
}

.hero-badge {
    animation: hero-content-appear 1s ease-out 0.5s both;
}

.hero-title {
    animation: hero-content-appear 1s ease-out 0.6s both;
}

.hero-subtitle {
    animation: hero-content-appear 1s ease-out 0.7s both;
}

.hero-buttons {
    animation: hero-content-appear 1s ease-out 0.8s both;
}

/* Smooth scroll behavior for anchor links */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .hero-content,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-buttons,
    .logo img {
        animation: none;
    }

    .hero::after,
    .hero-overlay::before {
        animation: none;
    }
}