/* ========================================
   Zen 360 Consulting - Custom Styles
   Bootstrap 5 + FontAwesome + Modern UI/UX
======================================== */

:root {
    --primary: #960056;
    --secondary: #e9b44c;
    --accent: #002060;
    --light: #f8f9fa;
    --dark: #2b2b2b;
    --light-gray: #adb5bd;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a0045;
}

/* Bootstrap Color Overrides */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #7a0045;
    border-color: #7a0045;
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-light-gray {
    color: var(--light-gray);
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-light-custom {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Mobile Menu */
.offcanvas {
    background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
}

.offcanvas-header {
    padding: 1.5rem;
}

.offcanvas-body {
    padding: 2rem 1.5rem;
}

.offcanvas .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background: rgba(150, 0, 86, 0.1);
    color: var(--primary);
}

/* Hero Pattern Background */
.hero-pattern {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%23f8f9fa'/%3E%3Cpath d='M0 50 L100 50 M50 0 L50 100' stroke='%23e9b44c' stroke-width='1' stroke-opacity='0.2'/%3E%3C/svg%3E");
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Service Cards */
.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(150, 0, 86, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: #ffffff !important;
}

/* Approach Section */
.approach-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
}

.approach-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.approach-number {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}



/* Solutions Section */
.solution-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.solution-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(233, 180, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-feature:hover {
    background: rgba(150, 0, 86, 0.05);
}

.about-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(150, 0, 86, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* Stats Section */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    padding: 4rem 0;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: #ffffff;
    opacity: 0.95;
}

/* Footer */
footer a:hover {
    color: var(--secondary) !important;
}

.hover-secondary:hover {
    color: var(--secondary) !important;
}

/* GDPR Banner */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: #ffffff;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gdpr-banner.show {
    transform: translateY(0);
}

/* Contact Form */
.contact-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(150, 0, 86, 0.15);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.shadow-primary {
    box-shadow: 0 10px 30px rgba(150, 0, 86, 0.15);
}

.rounded-xl {
    border-radius: 16px;
}

.rounded-2xl {
    border-radius: 24px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-pattern {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .approach-number {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contact Form Styles */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #960056;
    box-shadow: 0 0 0 0.2rem rgba(150, 0, 86, 0.15);
}

.contact-form .form-label {
    color: #2b2b2b;
    margin-bottom: 0.5rem;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-info-item {
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d1f2eb;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}
/* Accent Color Utilities */
.text-accent {
    color: #002060 !important;
}

.bg-accent {
    background-color: #002060 !important;
}

.btn-accent {
    background-color: #002060;
    border-color: #002060;
    color: #fff;
}

.btn-accent:hover {
    background-color: #001a4d;
    border-color: #001a4d;
    color: #fff;
}

.btn-outline-accent {
    border-color: #002060;
    color: #002060;
}

.btn-outline-accent:hover {
    background-color: #002060;
    border-color: #002060;
    color: #fff;
}

.border-accent {
    border-color: #002060 !important;
}

/* ============================================
   HERO BANNER STYLES
   ============================================ */

/* Hero Banner Base */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding-top: 80px;
    overflow: hidden;
}

/* Background with Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.20) 0%, rgba(248,249,250,.5) 55%, rgba(248,249,250,1) 100%), 
                url("../../assets/images/hero/hero-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: backgroundZoom 20s ease-in-out infinite alternate;
}

@keyframes backgroundZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Animated Gradient Orbs */
.gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orbs::before,
.gradient-orbs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 15s ease-in-out infinite;
}

.gradient-orbs::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(150, 0, 86, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.gradient-orbs::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 180, 76, 0.4) 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: 7s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Typography */
.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
}

.hero-subdescription {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-mobile-optimized {
    min-height: 48px;
    padding: 0.75rem 2rem;
}

.btn-text-short {
    display: none;
}

.btn-text-full {
    display: inline;
}

/* Button Hover Effects */
.btn-hover-lift {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(0);
}

.btn-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(150, 0, 86, 0.3) !important;
}

.btn-hover-lift:active {
    transform: translateY(-1px);
}

/* Button Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-hover-lift:hover .btn-shine {
    left: 100%;
}

/* Icon Circles */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.icon-circle i {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(150, 0, 86, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(150, 0, 86, 0);
    }
}

.trust-badge-item:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.trust-title {
    font-size: 1rem;
}

/* ============================================
   HERO IMAGE CONTAINER
   ============================================ */

.hero-image-container {
    position: relative;
    height: 500px;
}

/* Main Graphic (Behind Cards) */
.hero-main-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 1;
}

.morph-svg {
    animation: rotateMain 30s linear infinite;
}

@keyframes rotateMain {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-circle {
    animation: circlePulse 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes circlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* Floating Cards (In Front) */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: floatCard 4s ease-in-out infinite;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(150, 0, 86, 0.2);
    z-index: 11;
}

.card-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 10%;
    left: 15%;
    animation-delay: 3s;
}

@keyframes floatCard {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% { 
        transform: translateY(-25px) rotate(0deg); 
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-link {
    display: inline-block;
    transition: all 0.3s ease;
    padding: 10px;
}

.scroll-link:hover {
    transform: scale(1.2);
}

.animate-bounce {
    animation: smoothBounce 2s ease-in-out infinite;
}

@keyframes smoothBounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-15px); 
    }
    60% { 
        transform: translateY(-8px); 
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */

.consultation-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.consultation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(150, 0, 86, 0.05), transparent);
    transition: left 0.5s;
}

.consultation-card:hover::before,
.consultation-card:active::before {
    left: 100%;
}

.consultation-card:hover,
.consultation-card:active,
.consultation-card.active {
    background: linear-gradient(135deg, rgba(150, 0, 86, 0.05), rgba(233, 180, 76, 0.05));
    border-color: #960056 !important;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 5px 15px rgba(150, 0, 86, 0.1);
}

.cursor-pointer {
    cursor: pointer;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Text Animations */
.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 991px) {
    .hero-banner {
        padding-top: 80px;
        min-height: auto;
    }
    
    .hero-image-container {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-banner {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .display-3 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subdescription {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-mobile-optimized {
        width: 100%;
        min-height: 50px;
        font-size: 0.95rem;
    }
    
    .btn-text-short {
        display: inline;
    }
    
    .btn-text-full {
        display: none;
    }
    
    .hero-trust-badges {
        margin-top: 2rem !important;
        padding-top: 2rem !important;
    }
    
    .trust-title {
        font-size: 0.9rem;
    }
    
    .trust-badge-item {
        margin-bottom: 0.5rem;
    }
    
    .icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .icon-circle i {
        font-size: 1.2rem;
    }
    
    .gradient-orbs::before,
    .gradient-orbs::after {
        width: 250px;
        height: 250px;
        filter: blur(60px);
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .animate-bounce i {
        font-size: 1.5rem;
    }
    
    .btn-hover-lift:hover {
        transform: translateY(0);
    }
    
    .btn-hover-lift:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .consultation-card {
        padding: 0.75rem !important;
    }
    
    .consultation-card i {
        font-size: 1.5rem;
    }
    
    .form-control-lg {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Extra Small */
@media (max-width: 374px) {
    .display-3 {
        font-size: 1.75rem !important;
    }
    
    .hero-description,
    .hero-subdescription {
        font-size: 0.9rem !important;
    }
    
    .btn-mobile-optimized {
        font-size: 0.875rem;
        padding: 0.65rem 1.5rem;
    }
    
    .trust-title {
        font-size: 0.85rem;
    }
    
    .icon-circle {
        width: 35px;
        height: 35px;
    }
    
    .icon-circle i {
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-banner {
        padding-top: 60px;
        padding-bottom: 30px;
    }
    
    .min-vh-100 {
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-background,
    .gradient-orbs::before,
    .gradient-orbs::after,
    .floating-card,
    .morph-svg,
    .pulse-circle,
    .icon-pulse,
    .animate-bounce {
        animation: none !important;
        transition: none !important;
    }
    
    .btn-hover-lift:hover,
    .btn-hover-lift:active {
        transform: none !important;
    }
}

/* Performance - Mobile */
@media (max-width: 767px) {
    .hero-background {
        animation: none;
        transform: scale(1);
    }
    
    .gradient-orbs::before,
    .gradient-orbs::after {
        animation-duration: 20s;
    }
}