/* Custom CSS for DigiNext Corporate Website */

/* Hero Carousel Slides */
.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.8) 0%, rgba(25, 135, 84, 0.8) 100%);
    z-index: 1;
}

.hero-slide .container-lg {
    position: relative;
    z-index: 2;
}

/* Primary Gradient Background */
.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%) !important;
}

/* Navbar with gradient */
.navbar.bg-primary {
    background: linear-gradient(90deg, #0d6efd 0%, #198754 100%) !important;
    box-shadow: 0 2px 20px rgba(13, 110, 253, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    position: relative;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

/* Navbar */
.navbar-brand {
    transition: transform 0.3s ease;
}

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

/* Cards with gradient hover */
.card {
    transition: all 0.3s ease;
    border: none !important;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.2) !important;
}

.card:hover .card-body {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(25, 135, 84, 0.05) 100%);
}

/* Buttons with gradient */
.btn {
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #157347 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #157347 0%, #0b5ed7 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
}

.btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Active Navigation */
.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 16px !important;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    border-radius: 25px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease;
}

/* Custom Colors */
.text-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Icons with gradient */
.text-primary i {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Strip */
.features-strip {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.1) 0%, rgba(25, 135, 84, 0.1) 100%);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #0d6efd 0%, #198754 100%) 1;
}

/* CTA Band */
.cta-band {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    position: relative;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.cta-band .container-lg {
    position: relative;
    z-index: 2;
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* Custom Badge */
.badge {
    font-size: 0.75rem;
    padding: 0.6em 1em;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%) !important;
}

/* Form Styling */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background: white;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Timeline Styling */
.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
}

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.05) 0%, rgba(25, 135, 84, 0.05) 100%);
    border-radius: 15px;
    padding: 12px 20px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #0d6efd;
    font-weight: 600;
}

.breadcrumb-item.active {
    color: #198754;
    font-weight: 600;
}

/* Carousel Indicators */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.carousel-indicators .active {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    transform: scale(1.2);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Fade Effect */
.carousel-item {
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    z-index: 1;
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s 0.8s;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(25, 135, 84, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Process Steps */
.process-step {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 80vh;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        min-height: 70vh;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.8s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(45deg, #0d6efd, #198754, #0d6efd, #198754);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    display: inline-block;
    font-weight: 700;
}

/* Page header gradient text - more visible */
.page-header .gradient-text {
    background: linear-gradient(45deg, #0d6efd, #198754, #20c997, #0d6efd);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    text-shadow: 0 0 30px rgba(13, 110, 253, 0.3);
}

/* Section title gradient text */
.section-title.gradient-text {
    background: linear-gradient(90deg, #0d6efd, #198754, #0d6efd);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    border-radius: 6px;
}

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

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Effect */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

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

/* Hover Glow Effect */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(13, 110, 253, 0.5);
}

/* Improved Spacing */
.section-spacing {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 3rem 0;
    }
}

/* Enhanced Feature Highlight */
.feature-highlight {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(25, 135, 84, 0.08) 100%);
    border-left: 4px solid;
    border-image: linear-gradient(135deg, #0d6efd 0%, #198754 100%) 1;
    padding: 2rem;
    border-radius: 0 15px 15px 0;
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}