/* ========================================
   DCBC-SA Custom Styles - Advanced Edition
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    --primary-50: #faf5ff;
    --primary-100: #f3e8ff;
    --primary-500: #a855f7;
    --primary-600: #9333ea;
    --primary-700: #7e22ce;
    --primary-800: #6b21a8;
    --primary-900: #581c87;
    --accent-500: #6fa82e;
    --accent-600: #5a8b24;
    --gradient-primary: linear-gradient(135deg, #6b21a8 0%, #581c87 100%);
    --gradient-accent: linear-gradient(135deg, #6fa82e 0%, #4a7320 100%);
    --gradient-purple-green: linear-gradient(135deg, #6b21a8 0%, #6fa82e 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-purple: 0 8px 32px rgba(107, 33, 168, 0.3);
    --shadow-green: 0 8px 32px rgba(111, 168, 46, 0.3);
}

/* ===== Global Styles ===== */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f3e8ff 0%, #faf5ff 100%);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid #f3e8ff;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-purple-green);
}

/* ===== Typography Enhancements ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.heading-gradient {
    background: var(--gradient-purple-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Particle Background ===== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.particles-container {
    position: relative;
    overflow: hidden;
}

/* ===== Animated Gradient Background ===== */
.animated-gradient {
    background: linear-gradient(-45deg, #6b21a8, #581c87, #6fa82e, #4a7320);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Glass Morphism Effect ===== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Neumorphism Cards ===== */
.neuro-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        12px 12px 24px rgba(107, 33, 168, 0.1),
        -12px -12px 24px rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.neuro-card:hover {
    box-shadow:
        16px 16px 32px rgba(107, 33, 168, 0.15),
        -16px -16px 32px rgba(255, 255, 255, 1);
    transform: translateY(-8px);
}

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.floating-slow {
    animation: float 6s ease-in-out infinite;
}

/* ===== Pulse Glow Effect ===== */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(107, 33, 168, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(111, 168, 46, 0.6);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ===== Gradient Border Animation ===== */
.gradient-border {
    position: relative;
    border-radius: 12px;
    padding: 2px;
    background: var(--gradient-purple-green);
    background-size: 200% 200%;
    animation: gradientRotate 3s ease infinite;
}

.gradient-border-inner {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 3D Card Effect ===== */
.card-3d {
    perspective: 1000px;
    transition: all 0.3s ease;
}

.card-3d-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

/* ===== Image Hover Effects ===== */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.img-hover-zoom img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.img-hover-zoom:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* ===== Shimmer Effect ===== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== Button Styles ===== */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-purple);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(107, 33, 168, 0.4);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-green);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(111, 168, 46, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* ===== Icon Styles ===== */
.icon-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.icon-rotate {
    display: inline-block;
    transition: transform 0.3s ease;
}

.icon-rotate:hover {
    transform: rotate(360deg);
}

.icon-pulse {
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

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

/* ===== Section Divider ===== */
.section-divider {
    width: 100px;
    height: 5px;
    background: var(--gradient-purple-green);
    margin: 2rem auto;
    border-radius: 10px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-600);
    top: 50%;
    transform: translateY(-50%);
}

.section-divider::before {
    left: -20px;
}

.section-divider::after {
    right: -20px;
}

/* ===== Stats Counter ===== */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-purple-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Timeline ===== */
.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-primary);
    position: absolute;
    left: -8px;
    box-shadow: 0 0 0 4px rgba(107, 33, 168, 0.2);
}

/* ===== Swiper Customization ===== */
.swiper-button-next,
.swiper-button-prev {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    color: var(--primary-600) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: 900;
}

.swiper-pagination-bullet {
    background: var(--primary-600) !important;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--gradient-primary) !important;
    width: 32px;
    border-radius: 6px;
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    font-size: 8rem;
    color: var(--primary-100);
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-purple);
}

/* ===== Service Card Hover ===== */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-purple-green);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* ===== Sector Icon Container ===== */
.sector-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.sector-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: var(--gradient-purple-green);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sector-icon:hover::before {
    opacity: 1;
}

/* ===== Parallax Elements ===== */
.parallax-slow {
    transition: transform 0.5s cubic-bezier(0, 0, 0.5, 1);
}

/* ===== Loading Animation ===== */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-200);
    border-bottom-color: var(--primary-600);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Badge ===== */
.badge-gradient {
    background: var(--gradient-purple-green);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ===== Alert/Notification ===== */
.alert-success {
    background: linear-gradient(135deg, #6fa82e 0%, #4a7320 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-green);
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== Grid Pattern Background ===== */
.grid-bg {
    background-image:
        linear-gradient(rgba(107, 33, 168, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 33, 168, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ===== Dot Pattern Background ===== */
.dots-bg {
    background-image: radial-gradient(circle, rgba(107, 33, 168, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ===== Magnetic Button Effect ===== */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Typing Effect ===== */
.typing-effect {
    border-right: 3px solid var(--primary-600);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary-600); }
}

/* Typing Container - Prevent Layout Shift */
.typing-container {
    display: inline-block;
    text-align: left;
    position: relative;
    /* Let it size naturally with the text */
}

/* Typed.js Cursor Styling */
.typed-cursor {
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes typedjsBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.typed-cursor--blink {
    animation: typedjsBlink 0.7s infinite;
}

/* Make sure cursor follows text inline */
.typing-container .typed-cursor {
    display: inline-block;
    vertical-align: baseline;
}

/* ===== Responsive Image Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-purple-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 0.7;
}

/* ===== Form Focus Glow ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.1),
                0 0 20px rgba(107, 33, 168, 0.15);
    border-color: var(--primary-500);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    animation: float 2s ease-in-out infinite;
}

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

@keyframes scrollDot {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 30px; opacity: 0; }
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .neuro-card {
        box-shadow:
            8px 8px 16px rgba(107, 33, 168, 0.1),
            -8px -8px 16px rgba(255, 255, 255, 0.9);
    }
}

/* ===== Print Styles ===== */
@media print {
    .no-print,
    nav,
    footer,
    .btn-primary,
    .btn-accent {
        display: none !important;
    }
}
