/* ===================================================================
   MODERN DESIGN ENHANCEMENTS FOR K-9 INTERNACIONAL WEBSITE
   Modern CSS patterns, animations, and improvements
   =================================================================== */

/* ===== MODERN TYPOGRAPHY ===== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== MODERN NAVIGATION ===== */
#navigation {
    transition: all 0.3s ease;
}

.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Transparent, minimal header like the frame */
.navbar-transparent {
    background: rgba(0, 0, 0, 0.35);
    border: none;
}

.navbar-inverse .navbar-nav > li > a {
    color: #fff;
}

.navbar-inverse .navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar-inverse .navbar-nav > li > a {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-inverse .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff974f 0%, #ffb347 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-inverse .navbar-nav > li > a:hover::after,
.navbar-inverse .navbar-nav > li.active > a::after {
    width: 80%;
}

/* ===== MODERN BUTTONS ===== */
.btn-orange {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 151, 79, 0.3);
    background: #f0b45a; /* figma accent */
    color: #111827;
    border: none;
    border-radius: 12px;
    padding: 12px 28px; /* Increased horizontal padding */
    font-weight: 700; /* Ensured consistent bold weight */
}

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

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

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 151, 79, 0.4);
    background: #e49f3c;
}

/* ===== MODERN CARDS & BLOCKS ===== */
.block {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    overflow: hidden;
}

.block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.block .picture {
    position: relative;
    overflow: hidden;
}

.block .picture img {
    transition: all 0.4s ease;
}

.block:hover .picture img {
    transform: scale(1.1);
}

.block .info {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ===== MODERN INTRO SECTION ===== */
.intro-section {
    padding: 80px 0;
}

.intro-section .block .heading {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.intro-section .block .heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff974f 0%, #ffb347 100%);
    border-radius: 2px;
}

/* ===== MODERN SECURITY SOLUTIONS ===== */
.home-security-solutions {
    position: relative;
    padding: 100px 0;
}

.herotext h1,
.herotext-2 h1 {
    font-weight: 700;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.herotext .line,
.herotext-2 .line {
    background: linear-gradient(90deg, #ff974f 0%, #ffb347 100%);
    height: 4px;
    border-radius: 2px;
    position: relative;
}

.herotext .line::after,
.herotext-2 .line::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #ff974f 100%);
}

/* ===== MODERN SERVICES CARDS ===== */
.home-our-services ul.services li {
    transition: all 0.3s ease;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.home-our-services ul.services li:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.home-our-services ul.services li .icon {
    transition: all 0.3s ease;
}

.home-our-services ul.services li:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.home-our-services ul.services li .icon i {
    background: linear-gradient(135deg, #ff974f 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-our-services ul.services li h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.home-our-services ul.services li:hover h1 {
    color: #ff974f;
}

.home-our-services ul.services li .line2 {
    background: linear-gradient(90deg, #ff974f 0%, #ffb347 100%);
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.home-our-services ul.services li:hover .line2 {
    width: 100%;
}

/* ===== MODERN PARALLAX SECTIONS ===== */
.callus.parallax-3 {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
}

.callus.parallax-3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.85) 0%,
        rgba(118, 75, 162, 0.85) 100%
    );
}

.callus .intro {
    position: relative;
    z-index: 2;
}

.callus h1 {
    font-weight: 300;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.callus h1 span {
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #ffefb2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ===== MODERN GALLERY ===== */
.home-pictures img {
    transition: all 0.5s ease;
    filter: grayscale(20%);
}

.home-pictures img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* ===== HOMEPAGE HERO COLLAGE ===== */
.container-fluid .row.no-gutter-4 > [class^="col-"] img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== NEW SERVICES TILES (Figma-aligned) ===== */
.services-tiles .service-tile {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border: 2px solid transparent; /* accent applied via class */
}

.services-tiles .service-tile img {
    width: 100%;
    height: 240px; /* consistent visual height */
    display: block;
    object-fit: cover;
}

.services-tiles .service-tile h3 {
    position: absolute;
    left: 14px;
    bottom: 12px;
    margin: 0;
    padding: 10px 14px 10px 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.6); /* deep slate tint for legibility */
    border-radius: 10px;
    z-index: 2;
}

.services-tiles .service-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.services-tiles .service-tile .arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    background: #ff974f; /* default accent */
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.services-tiles .service-tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0) 70%
    );
}

/* Accent variants */
.services-tiles .service-tile.accent-gold .arrow {
    background: #ffb347;
}
.services-tiles .service-tile.accent-teal .arrow {
    background: #14b8a6;
}
.services-tiles .service-tile.accent-blue .arrow {
    background: #2f80ed;
}
.services-tiles .service-tile.accent-purple .arrow {
    background: #7c3aed;
}
.services-tiles .service-tile.accent-orange .arrow {
    background: #f97316;
}

/* Accent borders */
.services-tiles .service-tile.accent-gold {
    border-color: #ffb347;
}
.services-tiles .service-tile.accent-teal {
    border-color: #14b8a6;
}
.services-tiles .service-tile.accent-blue {
    border-color: #2f80ed;
}
.services-tiles .service-tile.accent-purple {
    border-color: #7c3aed;
}
.services-tiles .service-tile.accent-orange {
    border-color: #f97316;
}

/* CTA at bottom of services */
.services-cta .btn-orange {
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 700;
}

/* Spacing tweaks inside services grid */
.services-tiles > [class^="col-"] {
    margin-bottom: 20px;
}

@media (max-width: 1199px) {
    .services-tiles .service-tile img {
        height: 220px;
    }
}

@media (max-width: 991px) {
    .services-tiles .service-tile img {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .services-tiles .service-tile img {
        height: 180px;
    }
}

/* Section headings spacing to match frame */
.intro-section h2,
.container > .row > .col-lg-12 > h2 {
    font-weight: 700;
    margin-bottom: 12px;
}

.intro-section p,
.container > .row > .col-lg-12 > p {
    color: #555;
}

/* About section layout: CTA to the right */
.about-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .about-cta {
        justify-content: flex-start;
        margin-top: 12px;
    }
}

/* Clients section alignment */
.clients-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section title styling for 'Servicios' heading */
.section-title {
    font-weight: 800;
    color: #0f172a; /* deep slate */
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #ff974f 0%, #ffb347 100%);
    border-radius: 3px;
}

/* ===== MODERN WORKING WITH US SECTION ===== */
.working-with-us {
    padding: 100px 0;
}

.working-with-us img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.working-with-us img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ===== MODERN FOOTER ===== */
footer {
    position: relative;
}

/* ===== ABOUT (NOSOTROS) – Figma-aligned styles ===== */
.about-yellow {
    background: #ebb859; /* Seguridad/Amarillo Principal */
    border-radius: 11px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    padding: 25px 0;
}

.about-intro {
    color: #707070;
}

.about-hero-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.about-hero-photo img {
    width: 100%;
    display: block;
}

.about-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.about-hero-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.5px;
    z-index: 1;
}

.about-section {
    padding: 40px 0;
}
.about-text {
    color: #707070;
}

.about-feature-card {
    background: #f2f5f9;
    border-radius: 12px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 15px;
}

.about-feature-card i {
    color: #707070;
    font-size: 18px;
}
.about-feature-card .label {
    color: #707070;
    margin-top: 8px;
    font-weight: 600;
}

.about-feature-card .icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 991px) {
    .about-section {
        padding: 28px 0;
    }
    .about-hero-title {
        font-size: 24px;
    }
}

footer h1 {
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

footer h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff974f 0%, #ffb347 100%);
    border-radius: 2px;
}

footer ul.contact li,
footer ul.connect li {
    transition: all 0.3s ease;
    padding: 8px 0;
}

footer ul.connect li:hover {
    transform: translateX(5px);
}

footer ul.connect li a {
    position: relative;
    transition: all 0.3s ease;
}

footer ul.connect li a::before {
    content: "→";
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

footer ul.connect li:hover a::before {
    left: -15px;
    opacity: 1;
}

/* Footer Social Icons */
footer .social-icons a {
    display: inline-block;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    color: #ff974f !important;
    transform: translateY(-3px);
}

/* Service Unit Cards */
.service-unit-card {
    transition: all 0.3s ease;
}

.service-unit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15) !important;
}

.service-unit-card:hover .fa {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-unit-card a {
    transition: all 0.3s ease;
}

.service-unit-card:hover a {
    color: #FF6B35 !important;
    transform: translateX(5px);
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

@media (max-width: 991px) {
    .service-unit-card {
        margin-bottom: 30px;
    }
}

/* Contact Page Enhancements */
.contact-info-list a:hover {
    opacity: 0.8;
}

.contact-info-list a:hover span:first-child {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.google-map-wrapper {
    transition: box-shadow 0.3s ease;
}

.google-map-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
}

@media (max-width: 991px) {
    .contact-card {
        margin-bottom: 30px !important;
    }
    
    .google-map-wrapper {
        min-height: 400px !important;
    }
    
    .col-lg-8[style*="padding-left"] {
        padding-left: 15px !important;
    }
}

@media (min-width: 992px) {
    .google-map-wrapper {
        min-height: 650px !important;
    }
}

/* ===== SCROLL TO TOP MODERN ===== */
.scrollup {
    background: linear-gradient(135deg, #ff974f 0%, #ff6b35 100%);
    box-shadow: 0 4px 15px rgba(255, 151, 79, 0.4);
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrollup:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 151, 79, 0.6);
}

@media (max-width: 991px) {
    .navbar-transparent {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* ===== MODERN ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations on scroll */
.animate-on-scroll {
    opacity: 0;
}

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

/* ===== MODERN SLIDER ENHANCEMENTS ===== */
.tp-caption {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== MODERN UTILITY CLASSES ===== */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-md {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
}

.shadow-xl {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 16px;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #ff974f 0%, #ff6b35 100%);
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ===== MODERN LOADING STATES ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== MODERN FOCUS STATES ===== */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid rgba(255, 151, 79, 0.5);
    outline-offset: 2px;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 991px) {
    .herotext h1,
    .herotext-2 h1 {
        font-size: 32px;
    }

    .home-security-solutions,
    .working-with-us {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .herotext h1,
    .herotext-2 h1 {
        font-size: 28px;
    }

    .intro-section {
        padding: 40px 0;
    }

    .block {
        margin-bottom: 20px;
    }

    .callus.parallax-3 {
        background-attachment: scroll;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
    -webkit-tap-highlight-color: transparent;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

/* ===== MODERN SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff974f 0%, #ff6b35 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    footer,
    .scrollup,
    .btn-orange {
        display: none;
    }
}
