/* 
* ZaraBridge CRM Landing Page Styles
* Main CSS file for styling and animations
*/

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #ee8700;
    --primary-hover: #d77a00;
    --dark: #212529;
    --light: #f8f9fa;
    --secondary: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-light {
    background-color: rgba(238, 135, 0, 0.1);
}

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

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

section {
    padding: 80px 0;
}

/* ===== LOADER ===== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(238, 135, 0, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 70%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-title, .hero-subtitle, .hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.hero-subtitle {
    animation-delay: 0.3s;
}

.hero-buttons {
    animation-delay: 0.6s;
}

.hero-image {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 1s 0.3s forwards;
}

.hero-shape-1, .hero-shape-2 {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(238, 135, 0, 0.1);
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(23, 162, 184, 0.05);
    bottom: -50px;
    right: 30%;
}

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

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

.trust-logos img {
    transition: opacity 0.3s ease;
}

.trust-logos img:hover {
    opacity: 1;
}

/* ===== FEATURES SECTION ===== */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 2rem;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ===== INTEGRATIONS SECTION ===== */
.integrations-grid {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-circle i {
    font-size: 1.5rem;
}

.large-icon {
    width: 80px;
    height: 80px;
}

.large-icon i {
    font-size: 2rem;
}

.main-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.satellite-icon {
    position: absolute;
    transition: all 0.5s ease;
}

.satellite-icon:hover {
    transform: scale(1.2);
}

.top {
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
}

.top-right {
    top: 15%;
    right: 15%;
}

.right {
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
}

.bottom-right {
    bottom: 15%;
    right: 15%;
}

.bottom {
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
}

.bottom-left {
    bottom: 15%;
    left: 15%;
}

.left {
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
}

.top-left {
    top: 15%;
    left: 15%;
}

/* ===== MONITORING SECTION ===== */
.monitoring-visual {
    position: relative;
}

.data-point {
    position: absolute;
    animation: pulse 2s infinite;
}

.dp-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.dp-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0.2s;
}

.dp-2 {
    top: 50%;
    left: 65%;
    animation-delay: 0.5s;
}

.dp-3 {
    top: 70%;
    left: 40%;
    animation-delay: 0.8s;
}

.dp-4 {
    top: 30%;
    left: 70%;
    animation-delay: 1.1s;
}

.dp-5 {
    top: 60%;
    left: 20%;
    animation-delay: 1.4s;
}

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

/* ===== FAQ SECTION ===== */
.accordion-button:not(.collapsed) {
    background-color: rgba(238, 135, 0, 0.05);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(238, 135, 0, 0.5);
}

/* ===== PRICING SECTION ===== */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.price-tag {
    position: relative;
    padding-bottom: 20px;
}

.price-tag:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.popular {
    transform: scale(1.05);
}

.popular:hover {
    transform: translateY(-10px) scale(1.05);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
}

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

/* ===== CTA SECTION ===== */
.cta-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-triggered animations */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.active, .fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 15px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        margin-top: 15px;
    }
    
    .navbar .btn {
        margin-top: 10px;
    }
    
    .popular {
        transform: scale(1);
    }
    
    .popular:hover {
        transform: translateY(-10px) scale(1);
    }
    
    .integration-icons {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .integration-icons {
        transform: scale(0.7);
    }
    
    .satellite-icon {
        display: none;
    }
    
    .satellite-icon.top, 
    .satellite-icon.right, 
    .satellite-icon.bottom, 
    .satellite-icon.left {
        display: block;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 80px;
    }
    
    .satellite-icon {
        display: none;
    }
    
    .satellite-icon.top, 
    .satellite-icon.right, 
    .satellite-icon.bottom, 
    .satellite-icon.left {
        display: block;
    }
}