/* 
   Lead25 & Lead23 - Landing Page Redesign 
   Modern, Premium, and Tech-focused UI
*/

:root {
    /* ITEL Blue Palette */
    --itel-blue-900: #1a2538;
    --itel-blue-800: #23324f; /* Primary Dark Blue */
    --itel-blue-600: #3e5ba9; /* Primary Light Blue */
    --itel-blue-500: #4f6ebd;
    
    /* Huawei Red Palette */
    --huawei-red-900: #930925;
    --huawei-red-600: #c40f34; /* Primary Red */
    --huawei-red-500: #e3183f;
    
    /* Neutral / Surface */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --border-light: #e2e8f0;
    
    /* Glassmorphism & Shadows */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 30px -5px rgba(35, 50, 79, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
body {
    font-family: 'Poppins', sans-serif !important;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Typography Enhancements */
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--itel-blue-800);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--huawei-red-600), var(--huawei-red-500));
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 1.5rem auto;
    line-height: 1.7;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--itel-blue-800) 0%, var(--itel-blue-600) 100%);
    color: white !important;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(62, 91, 169, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--huawei-red-600) 0%, var(--huawei-red-500) 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-normal);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 15, 52, 0.4);
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium-outline {
    background: transparent;
    color: var(--itel-blue-800) !important;
    border: 2px solid var(--itel-blue-800);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-premium-outline:hover {
    background: var(--itel-blue-800);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =======================================
   1. NAVIGATION (Glassmorphism Navbar)
======================================= */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 15px; /* Added horizontal padding to prevent edge touching */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-normal);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.modern-navbar .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensure collapse wraps properly */
}

.modern-navbar .site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.modern-navbar .logo-img {
    height: 48px;
    object-fit: contain;
}

.modern-navbar .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--itel-blue-800);
    letter-spacing: -0.03em;
}

.nav-link-custom {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--huawei-red-600), var(--huawei-red-500));
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--itel-blue-800) !important;
    background: rgba(35, 50, 79, 0.05);
}

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

/* Isolate modern navbar from legacy global navbar rules in style.css */
.modern-navbar .navbar-nav li {
    margin-left: 0;
    font-size: inherit;
}

.custom-toggler {
    border: none;
    background: rgba(35, 50, 79, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
}

.custom-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(62, 91, 169, 0.3);
}

@media (max-width: 991.98px) {
    .modern-navbar {
        background: rgba(255, 255, 255, 0.98);
        padding: 0.8rem 15px;
    }
    .navbar-collapse {
        background: transparent;
        margin-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 0.5rem;
        width: 100%;
    }
    .navbar-nav {
        padding: 0;
        text-align: left;
        align-items: stretch !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .nav-item {
        width: 100%;
        margin-left: 0 !important;
    }
    .nav-link-custom {
        padding: 0.85rem 0 !important;
        margin: 0;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        border-radius: 0;
        display: block;
        width: 100%;
    }
    .nav-link-custom::after {
        display: none; /* Hide hover line on mobile */
    }
    .auth-item {
        margin: 1.5rem 0 1rem 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .auth-item .d-flex {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        gap: 10px;
    }
    .auth-item .btn-premium, 
    .auth-item .btn-premium-outline,
    .auth-item .nav-link-custom.text-danger {
        display: flex;
        width: 100%;
        max-width: 100%;
        margin: 0;
        text-align: center;
        padding: 0.85rem 1rem !important;
        box-sizing: border-box !important;
        justify-content: center;
    }
}

/* =======================================
   2. HERO CAROUSEL 
======================================= */
.modern-hero {
    height: 100vh;
    min-height: 700px;
    margin-top: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--itel-blue-900), var(--itel-blue-800));
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 6.2s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.9s ease;
    transform: scale(1.02);
    opacity: 0.9;
}

.hero-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Strong horizontal gradient for text readability */
    background: linear-gradient(to right, rgba(10, 15, 30, 0.98) 0%, rgba(10, 15, 30, 0.85) 40%, rgba(10, 15, 30, 0.4) 100%);
    z-index: 1;
}

.z-index-1 {
    z-index: 10;
}

.hero-content-wrapper {
    padding-top: 80px; /* Account for navbar */
    color: white;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    color: white;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.65s cubic-bezier(0.2, 1, 0.3, 1) 0.1s, transform 0.65s cubic-bezier(0.2, 1, 0.3, 1) 0.1s;
}

.carousel-item.active .hero-badge {
    opacity: 1 !important; /* To override the inline style opacity if any */
    transform: translateY(0);
}

.badge-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(90deg, #ff4b4b, #ff8f8f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 80%;
}

.btn-white-outline {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-white-outline:hover {
    background: white;
    color: var(--itel-blue-800) !important;
}

/* Animations */
.animate-up-1 { animation: slideUpFade 0.8s ease forwards; }
.animate-up-2 { animation: slideUpFade 0.8s ease 0.2s forwards; opacity: 0; }
.animate-up-3 { animation: slideUpFade 0.8s ease 0.4s forwards; opacity: 0; }

@keyframes slideUpFade {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Custom Controls */
.custom-control {
    width: 60px;
    opacity: 0.72;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}
.modern-hero:hover .custom-control {
    opacity: 1;
}

.control-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-control:hover .control-icon {
    background: var(--huawei-red-600);
    transform: scale(1.1);
    border-color: var(--huawei-red-600);
}

.custom-indicators {
    bottom: 30px;
}
.custom-indicators button {
    width: 30px !important;
    height: 4px !important;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: none !important;
    transition: width var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}
.custom-indicators button.active {
    background-color: var(--huawei-red-600) !important;
    width: 48px !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .modern-hero {
        min-height: 100vh;
        min-height: 100svh;
        height: auto;
    }
    .modern-hero .carousel-inner,
    .modern-hero .carousel-item,
    .modern-hero .container {
        min-height: 100vh;
        min-height: 100svh;
        height: 100% !important;
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .hero-bg-overlay::after {
        /* On mobile, use a steeper gradient to cover the whole text area */
        background: linear-gradient(to bottom, rgba(10, 15, 30, 0.95) 0%, rgba(10, 15, 30, 0.85) 60%, rgba(10, 15, 30, 0.3) 100%);
    }
    .hero-content-wrapper {
        padding-top: 80px; /* Adjusted for mobile nav and header */
        text-align: left;
    }
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    .hero-subtitle { 
        max-width: 100%; 
        font-size: 1.05rem;
        margin-bottom: 2rem !important;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        white-space: normal;
    }
    .hero-actions { 
        display: flex; 
        flex-direction: column; 
        gap: 12px; 
    }
    .hero-actions a { 
        margin-right: 0 !important; 
        width: 100%; 
        margin-top: 0 !important;
        text-align: center;
        justify-content: center;
    }
    .custom-control {
        display: none !important; /* Hide arrows on mobile, users can swipe */
    }
    .custom-indicators {
        bottom: 10px;
    }
}

/* =======================================
   3. SECTIONS & LAYOUT (About & Process)
======================================= */
.modern-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bg-section-light {
    background-color: var(--bg-white);
    background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Tracking / Small Titles */
.tracking-wide {
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

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

.section-title.text-left h2::after {
    left: 0;
    transform: none;
}

/* About Layout */
.about-image-wrapper {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-backdrop {
    position: absolute;
    top: 0; left: 10%; right: 10%; bottom: 0;
    background: linear-gradient(135deg, rgba(62, 91, 169, 0.1), rgba(196, 15, 52, 0.05));
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.about-main-img {
    max-width: 80%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

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

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

/* Process Layout & Modern Cards */
.modern-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--itel-blue-600), var(--huawei-red-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

/* Process Redesigned to Tech GUI */
.clean-workflow-ui {
    position: relative;
    z-index: 1;
}

.workflow-node-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.workflow-node-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.workflow-node-icon {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--itel-blue-600);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.workflow-node-card:hover .workflow-node-icon {
    background: var(--itel-blue-50);
    color: var(--huawei-red-600);
    border-color: var(--itel-blue-200);
}

.workflow-arrow {
    color: #cbd5e1;
    font-size: 1.5rem;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0% { transform: translateX(-5px); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
    100% { transform: translateX(-5px); opacity: 0.5; }
}

@media (max-width: 767px) {
    .workflow-arrow {
        transform: rotate(90deg) !important;
        margin: 20px 0;
        animation: arrowPulseVertical 2s infinite;
    }
    @keyframes arrowPulseVertical {
        0% { transform: translateY(-5px) rotate(90deg); opacity: 0.5; }
        50% { transform: translateY(5px) rotate(90deg); opacity: 1; }
        100% { transform: translateY(-5px) rotate(90deg); opacity: 0.5; }
    }
}

.process-item {
    animation: fadeUpIn 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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


/* =======================================
   4. COURSE CARDS (teamsection1 & 2)
======================================= */
.course-card {
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.course-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.course-actions {
    margin-top: auto;
}

.course-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover .course-img {
    transform: scale(1.05);
}

.course-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--itel-blue-800);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.course-title a {
    transition: var(--transition-fast);
}

.course-title a:hover {
    color: var(--itel-blue-600) !important;
}

/* Status Badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-closed {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 16px;
    line-height: 1.2;
}

.status-full {
    background: rgba(196, 15, 52, 0.1);
    color: var(--huawei-red-600);
}

/* Empty State */
.empty-state {
    background: rgba(35, 50, 79, 0.02);
    border: 1px dashed var(--border-light);
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Upcoming Courses Modifications */
.blur-image {
    transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover .blur-image {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
}

.modern-card:hover .overlay {
    opacity: 1;
}

.upcoming-details-btn {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--itel-blue-800) !important;
}

.upcoming-details-btn:hover,
.upcoming-details-btn:focus {
    background: var(--itel-blue-800) !important;
    border-color: var(--itel-blue-800) !important;
    color: #ffffff !important;
}

.hover-scale {
    transform: scale(0.9);
    transition: var(--transition-bounce);
}

.modern-card:hover .hover-scale {
    transform: scale(1);
}

/* =======================================
   5. FOOTER
======================================= */
.modern-footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a253b 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--huawei-red-600), var(--itel-blue-600), var(--huawei-red-600));
    background-size: 200% 100%;
    animation: gradientShift 6s ease infinite;
}

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

.widget-title {
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--huawei-red-600);
    border-radius: 2px;
}

.footer-links li {
    position: relative;
    margin-bottom: 0.5rem;
}

.footer-links li a {
    position: relative;
    display: inline-block;
    padding-left: 0;
    transition: padding-left var(--transition-fast), color var(--transition-fast);
}

.footer-links li a::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--huawei-red-600);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity var(--transition-fast), left var(--transition-fast);
}

.footer-links li a:hover {
    padding-left: 15px;
}

.footer-links li a:hover::before {
    opacity: 1;
}

.social-links .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links .social-icon:hover {
    background: var(--itel-blue-600);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(35, 50, 79, 0.4);
    border-color: transparent;
}

.social-links .social-icon.facebook:hover { background: #1877f2; }
.social-links .social-icon.instagram:hover { background: #e4405f; }
.social-links .social-icon.whatsapp:hover { background: #25d366; }

.border-light-alpha {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.hover-white:hover {
    color: white !important;
}

.transition-fast {
    transition: var(--transition-fast);
}

/* Global Link Refinements */
body a,
body a:link,
body a:visited,
body a:hover,
body a:focus,
body a:active {
    text-decoration: none !important;
}

/* Footer Header Refinements */
.modern-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 92px;
    height: 2px;
    background: linear-gradient(90deg, rgba(227, 24, 63, 0.95) 0%, rgba(227, 24, 63, 0.55) 48%, rgba(227, 24, 63, 0) 100%);
    border-radius: 2px;
}

/* Hero Carousel Animation Refinements */
.modern-hero .carousel-item {
    transition: opacity 0.9s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.9s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
    transform: translate3d(0, 0, 0);
}

.hero-title {
    opacity: 0;
    transform: translateY(30px) scale(0.985);
    transition: opacity 0.85s cubic-bezier(0.2, 1, 0.3, 1) 0.2s, transform 0.85s cubic-bezier(0.2, 1, 0.3, 1) 0.2s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s cubic-bezier(0.2, 1, 0.3, 1) 0.34s, transform 0.75s cubic-bezier(0.2, 1, 0.3, 1) 0.34s;
}

.hero-actions {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.75s cubic-bezier(0.2, 1, 0.3, 1) 0.46s, transform 0.75s cubic-bezier(0.2, 1, 0.3, 1) 0.46s;
}

.carousel-item.active .hero-title,
.carousel-item.active .hero-subtitle,
.carousel-item.active .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax-like effect for hero background */
.modern-hero .carousel-inner {
    overflow: visible;
}

.carousel-item.active .hero-bg-overlay {
    transform: scale(1.12);
    opacity: 1;
}
