/*
 Theme Name: Omni Security
 Theme URI: https://omni.com
 Author: xAI
 Author URI: https://x.ai
 Description: A WordPress theme for Omni Security with ACF integration.
 Version: 1.3
 Text Domain: omni-security
*/

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #333;
    overflow-x: hidden;
}

/* Transitions and Animations */
.transition {
    transition: all 0.3s ease;
}

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

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

.lazy-load {
    loading: lazy;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
}

.navbar.scrolled {
    background: #1e3a8a;
}

.navbar-brand {
    color: white !important;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.6rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 15px !important;
    border-radius: 6px;
    margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #dbeafe !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-cta {
    background-color: #ffffff;
    color: #1e3a8a !important;
    font-weight: 600;
    padding: 8px 20px !important;
    border-radius: 50px;
}

.nav-cta:hover {
    background-color: #dbeafe;
    color: #1e40af !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 1.2em;
}

.hero-section .typed-text {
    display: inline-block;
    vertical-align: middle;
}

.typed-cursor {
    font-size: 4rem;
    color: #ffffff;
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-section .btn-primary {
    background: linear-gradient(90deg, #2563eb, #1e40af);
    border: none;
    padding: 12px 40px;
    border-radius:50px;
}

.hero-section .btn-primary:hover {
    background: linear-gradient(90deg, #1e40af, #2563eb);
    transform: scale(1.05);
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Services Section */
.service-card {
    border: none;
    border-radius: 15px;
    background: white;
    overflow: hidden;
}

.service-card:hover .service-icon,
.service-card:hover i {
    transform: scale(1.1);
}

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

.service-icon, i.fa-4x {
    display: inline-block;
}

.btn-outline-primary {
    border-color: #2563eb;
    color: #2563eb;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: white;
}

/* About Section */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.parallax {
    will-change: transform;
}

.specialist-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
}

.specialist-image-wrapper {
    position: relative;
    display: inline-block;
}

.specialist-image {
    max-width: 200px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 5px solid #2563eb;
}

.specialist-section .blockquote {
    font-style: italic;
    border-left: 4px solid #2563eb;
    padding-left: 20px;
}

.timeline-card {
    border: none;
    border-radius: 15px;
    background: white;
}

/* Clients Section */
.clients-section {
    background: white;
}

.client-logo {
    max-height: 100px;
    width: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control-custom {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-custom:hover {
    background: #1e40af;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, #2563eb, #1e3a8a);
    color: white;
    position: relative;
}

.cta-section .btn-outline-light {
    border: 2px solid white;
    padding: 12px 40px;
    border-radius: 50px;
}

.cta-section .btn-outline-light:hover {
    background: white;
    color: #2563eb;
}

.glow:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #1e3a8a;
    color: white;
    padding: 40px 0;
}

footer a {
    color: #dbeafe;
}

footer a:hover {
    color: white;
}

.social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
}

.whatsapp a {
    color: #25D366;
}

.whatsapp a:hover {
    text-decoration: underline;
}

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

    .typed-cursor {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .typed-cursor {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .typed-cursor {
        font-size: 2.5rem;
    }

    .navbar-nav {
        background: linear-gradient(180deg, #1e3a8a, #2563eb);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
    }

    .nav-link {
        padding: 12px !important;
        margin: 5px 0;
    }

    .specialist-section .row {
        flex-direction: column;
        text-align: center;
    }

    .specialist-image {
        margin-bottom: 20px;
    }

    .about-image-wrapper {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .typed-cursor {
        font-size: 2rem;
    }

    .client-logo {
        max-height: 80px;
    }
}

@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .typed-cursor {
        font-size: 1.8rem;
    }

    .btn-lg {
        padding: 10px 25px;
    }
}