/* ==========================================================================
   Base Styles & Resets
   ========================================================================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --purple-color: #6f42c1;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    color: #495057;
    background-color: #fdfdfd;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.tracking-wider {
    letter-spacing: 0.1em;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hover-color {
    transition: all var(--transition-speed) ease;
}
.hover-color:hover {
    filter: none;
    opacity: 1;
}

.grayscale {
    filter: grayscale(100%);
}

/* ==========================================================================
   Navigation (Navbar)
   ========================================================================== */
.custom-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
    padding: 15px 0;
}

.custom-navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    margin-right: 10px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.custom-navbar .nav-link {
    font-weight: 500;
    color: #495057;
    padding: 0.5rem 1rem;
    transition: color var(--transition-speed);
}

.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    color: var(--primary-color);
}

.custom-dropdown {
    border-radius: 12px;
    padding: 0.5rem 0;
    animation: fadeIn 0.3s ease;
}

.custom-dropdown .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.custom-dropdown .dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding-left: 1.8rem;
}

/* Navbar Link Button Hover Animation */
.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        padding: 0.6rem 1rem !important;
    }
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
    color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 90vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ebf5 100%);
    padding-bottom: 3rem;
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(13,110,253,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-title {
    line-height: 1.2;
}

.feature-list li {
    font-size: 1.05rem;
    font-weight: 500;
}

/* ==========================================================================
   Cards & Glassmorphism
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.custom-input {
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
}
.custom-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.service-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.4s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Process Section (Timeline)
   ========================================================================== */
.process-step {
    position: relative;
    padding: 1.5rem;
}

.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.step-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid #fff;
}

@media (min-width: 992px) {
    .process-timeline::before {
        content: '';
        position: absolute;
        top: 60px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: border-box;
        background-image: linear-gradient(90deg, #dee2e6 50%, transparent 50%);
        background-size: 15px 2px;
        z-index: 1;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.modern-btn {
    transition: all var(--transition-speed);
}
.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* ==========================================================================
   Page Headers (Inner Pages)
   ========================================================================== */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 8rem 0 4rem;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
}
.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.9), rgba(111, 66, 193, 0.8));
}

/* ==========================================================================
   Footer
   ========================================================================== */
.modern-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.modern-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

.modern-footer .social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.modern-footer .footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* ==========================================================================
   Floating Action Buttons
   ========================================================================== */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.float-whatsapp:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .float-whatsapp {
        bottom: 80px; /* Above mobile footer */
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-nav {
        background: #fff;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    .custom-navbar .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .custom-dropdown {
        border: none;
        box-shadow: none !important;
        background: #f8f9fa;
        margin-top: 0.5rem;
    }
    
    body {
        padding-bottom: 60px; /* Space for the mobile bottom nav */
    }
}

/* ==========================================================================
   Certificate Slider
   ========================================================================== */
.certificate-slider::-webkit-scrollbar {
    display: none;
}
.certificate-slider {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* ==========================================================================
   Hero Slider Modern Animations
   ========================================================================== */
@keyframes modernSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#heroTextCarousel .carousel-item.active .badge {
    animation: modernSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
    opacity: 0;
}
#heroTextCarousel .carousel-item.active .hero-title {
    animation: modernSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    opacity: 0;
}
#heroTextCarousel .carousel-item.active .lead {
    animation: modernSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
    opacity: 0;
}
#heroTextCarousel .carousel-item.active .feature-list li:nth-child(1) {
    animation: modernSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
    opacity: 0;
}
#heroTextCarousel .carousel-item.active .feature-list li:nth-child(2) {
    animation: modernSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
    opacity: 0;
}
#heroTextCarousel .carousel-item.active .feature-list li:nth-child(3) {
    animation: modernSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
    opacity: 0;
}
#heroTextCarousel .carousel-item.active .feature-list li:nth-child(4) {
    animation: modernSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
    opacity: 0;
}
