/* Custom CSS for TechExcel Website */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Colors */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    /* Light mode colors */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-color: #333333;
    --text-secondary: #666666;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --navbar-bg: #ffffff;
    --navbar-text: #333333;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-tertiary: #3a3a3a;
        --text-color: #e9ecef;
        --text-secondary: #b8bcc2;
        --text-muted: #adb5bd;
        --border-color: #495057;
        --card-bg: #2d2d2d;
        --card-shadow: rgba(0, 0, 0, 0.3);
        --navbar-bg: #2d2d2d;
        --navbar-text: #e9ecef;
        --footer-bg: #0d0d0d;
        --footer-text: #e9ecef;
    }
}

/* Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.blink {
    animation: blink 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* Professional Financial Market Animations */

/* 1. Scroll Reveal Animation */
@keyframes fadeInUpScroll {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    animation: fadeInUpScroll 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

.scroll-reveal-delay-1 {
    animation-delay: 0.1s;
}

.scroll-reveal-delay-2 {
    animation-delay: 0.2s;
}

.scroll-reveal-delay-3 {
    animation-delay: 0.3s;
}

.scroll-reveal-delay-4 {
    animation-delay: 0.4s;
}

/* 2. Pulse Animation for CTA Buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

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

.animated-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* 4. Card Hover Lift Effect */
@keyframes cardLift {
    from {
        transform: translateY(0);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    to {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
}

.card-hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 5. Number Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.counter-animate {
    animation: countUp 0.6s ease-out;
}

/* 6. Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

/* 7. Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* 8. Icon Bounce on Hover */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon-bounce:hover {
    animation: iconBounce 0.6s ease;
}

/* 9. Shimmer Effect for Loading */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* 10. Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

/* 11. Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.8s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

/* 12. Rotate In Animation */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.rotate-in {
    animation: rotateIn 0.6s ease-out;
}

/* 13. Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(13, 110, 253, 0.8);
    }
}

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

/* 14. Typing Effect (for headlines) */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* 15. Smooth Entrance for Service Cards */
.service-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Header Styles */
.header-section {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    font-size: 0.875rem;
}

.top-bar span {
    white-space: nowrap;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: var(--navbar-bg) !important;
}

.navbar .container {
    position: relative;
}

.navbar-light {
    background-color: var(--navbar-bg) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--navbar-text);
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Logo specific styling for TechExcel logo */
.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

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

/* Underline effect only for non-dropdown links */
.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar-nav .nav-link:not(.dropdown-toggle).active::after {
    width: 80%;
    left: 10%;
}

/* Navbar Toggler Styling */
.navbar-toggler {
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 3rem 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Override Bootstrap bg-primary to match hero gradient */
.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Services Section */
.services-section {
    background: var(--bg-color);
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Partnership list inside service cards */
.service-card .partnership-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-card .partnership-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-card .partnership-list li:last-child {
    border-bottom: none;
}

.service-card .partnership-list li strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Stats inside service cards */
.service-card .stat-item {
    text-align: center;
    padding: 1rem 0;
}

/* Contact form inside service cards */
.service-card .contact-form .form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.service-card .contact-form .form-control,
.service-card .contact-form .form-select {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card .contact-form .form-control:focus,
.service-card .contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Contact info list */
.contact-info-list {
    text-align: left;
}

.contact-info-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item strong {
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-info-item i {
    font-size: 1.25rem;
}

/* Exchange Section */
.exchange-section {
    background: var(--bg-secondary);
}

.exchange-logo {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: all 0.3s ease;
    padding: 1rem;
}

.exchange-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.exchange-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Why Choose Us Section */
.why-choose-section {
    background: var(--bg-color);
}

.feature-card {
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.feature-card h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* Clients Section */
.clients-section {
    background: var(--bg-secondary);
}

.client-logo {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: all 0.3s ease;
    padding: 1rem;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* Video Section */
.video-section {
    background: var(--bg-color);
}

.video-card {
    text-align: center;
}

.video-thumbnail {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Contact Section */
.contact-section {
    background: var(--bg-secondary);
}

.contact-form .form-control {
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    color: var(--warning-color);
}

.contact-item a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--warning-color) !important;
}

/* Footer */
.footer-section {
    background: var(--footer-bg) !important;
    color: var(--footer-text);
}

.footer-nav .nav-link {
    transition: all 0.3s ease;
}

.footer-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar .col-lg-8,
    .top-bar .col-lg-4 {
        text-align: center !important;
    }
    
    .top-bar .d-flex {
        justify-content: center !important;
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .hero-slide {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .service-card,
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .exchange-logo,
    .client-logo {
        width: 100px;
        height: 70px;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Mobile Menu Fixes */
    .navbar-collapse {
        background-color: var(--navbar-bg);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        width: 100%;
        text-align: left;
    }
    
    /* Remove underline effect on mobile */
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    /* Mobile Dropdown Menu */
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: var(--bg-secondary);
        padding-left: 1rem;
        margin-top: 0;
        position: static !important;
        transform: none !important;
        width: 100%;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
        border-left: 2px solid transparent;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: var(--bg-tertiary);
        border-left-color: var(--primary-color);
        color: var(--primary-color);
        padding-left: 1.25rem;
    }
    
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
    
    /* Fix for navbar toggler */
    .navbar-toggler {
        border: 2px solid var(--border-color);
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 45px;
    }
    
    .hero-slide {
        min-height: 50vh;
    }
    
    .service-icon,
    .feature-icon,
    .api-feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .service-icon i,
    .feature-icon i,
    .api-feature-icon i {
        font-size: 1.75rem;
    }
    
    .exchange-logo,
    .client-logo {
        width: 80px;
        height: 60px;
    }
    
    /* Smaller mobile menu adjustments */
    .navbar-collapse {
        padding: 0.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.95rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
    color: white;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.border-radius-custom {
    border-radius: 15px !important;
}

/* Simplified animations */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* API Section Styles */
.api-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    position: relative;
    overflow: hidden;
}

.api-section::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="api-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23api-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

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

.api-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.api-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.api-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1a1a2e;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.api-stats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.api-cta-buttons .btn {
    min-width: 200px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.api-cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460) !important;
}

/* Exchange Partnership Section */
.exchange-partnership-section {
    background: var(--bg-secondary);
}

.vendor-approval-area {
    background: linear-gradient(135deg, #0d6efd, #6610f2, #6f42c1) !important;
    position: relative;
    overflow: hidden;
}

.vendor-approval-area::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="approval-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23approval-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

.vendor-approval-area > .row {
    position: relative;
    z-index: 2;
}

.approval-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.approval-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.approval-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.compliance-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vendor-approval-section .alert-light {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Beautiful Exchange Badges */
.exchange-badge {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    border: 2px solid transparent;
}

.exchange-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--card-shadow);
}

.exchange-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.exchange-info {
    flex: 1;
}

.exchange-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem !important;
}

.exchange-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Individual Exchange Colors */
.exchange-badge.nse {
    border-color: rgba(0, 123, 255, 0.2);
}

.exchange-badge.nse:hover {
    border-color: #007bff;
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
}

.exchange-badge.nse .exchange-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.exchange-badge.bse {
    border-color: rgba(220, 53, 69, 0.2);
}

.exchange-badge.bse:hover {
    border-color: #dc3545;
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.2);
}

.exchange-badge.bse .exchange-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.exchange-badge.mcx {
    border-color: rgba(255, 193, 7, 0.2);
}

.exchange-badge.mcx:hover {
    border-color: #ffc107;
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.2);
}

.exchange-badge.mcx .exchange-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.exchange-badge.ncdex {
    border-color: rgba(40, 167, 69, 0.2);
}

.exchange-badge.ncdex:hover {
    border-color: #28a745;
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.2);
}

.exchange-badge.ncdex .exchange-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.exchange-badge.nsdl {
    border-color: rgba(102, 16, 242, 0.2);
}

.exchange-badge.nsdl:hover {
    border-color: #6610f2;
    box-shadow: 0 15px 35px rgba(102, 16, 242, 0.2);
}

.exchange-badge.nsdl .exchange-icon {
    background: linear-gradient(135deg, #6610f2, #520dc2);
}

.exchange-badge.cdsl {
    border-color: rgba(111, 66, 193, 0.2);
}

.exchange-badge.cdsl:hover {
    border-color: #6f42c1;
    box-shadow: 0 15px 35px rgba(111, 66, 193, 0.2);
}

.exchange-badge.cdsl .exchange-icon {
    background: linear-gradient(135deg, #6f42c1, #59359a);
}

/* Responsive Exchange Badges */
@media (max-width: 768px) {
    .exchange-badge {
        min-width: 180px;
        padding: 1rem;
    }
    
    .exchange-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .exchange-name {
        font-size: 1rem;
    }
    
    .exchange-desc {
        font-size: 0.8rem;
    }
}

/* Partnership Details Section */
.partnership-details-area {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.partnership-category {
    height: 100%;
    padding: 1rem;
    border-radius: 10px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.partnership-category:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.category-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.category-icon.trading {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.category-icon.clearing {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.category-icon.depository {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.partnership-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partnership-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.partnership-list li:last-child {
    border-bottom: none;
}

.partnership-list li strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Responsive Partnership Details */
@media (max-width: 768px) {
    .partnership-details-area {
        padding: 1.5rem !important;
    }
    
    .partnership-category {
        margin-bottom: 1.5rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .partnership-list li {
        font-size: 0.9rem;
    }
}

/* API Product Features Section */
.product-features-section {
    background: var(--bg-secondary);
}

.api-feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.api-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--card-shadow);
}

.api-feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
    flex-shrink: 0;
}

.api-feature-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.api-feature-title {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.api-feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Individual API Feature Colors */
.api-control {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.api-architecture {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.api-scale {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.api-scan {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.api-performance {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
}

.api-bigdata {
    background: linear-gradient(135deg, #6610f2, #520dc2);
}

.api-audit {
    background: linear-gradient(135deg, #6f42c1, #59359a);
}

.api-access {
    background: linear-gradient(135deg, #e83e8c, #d91a72);
}

.api-security {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.api-reliability {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.api-tenant {
    background: linear-gradient(135deg, #20c997, #1aa179);
}

.api-version {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

.api-availability {
    background: linear-gradient(135deg, #343a40, #23272b);
}

/* API Monitoring Highlight */
.api-monitoring-highlight {
    background: linear-gradient(135deg, #0d6efd, #6610f2, #6f42c1) !important;
    position: relative;
    overflow: hidden;
}

.api-monitoring-highlight::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="monitoring-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23monitoring-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

.api-monitoring-highlight .row {
    position: relative;
    z-index: 2;
}

.monitoring-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

/* Responsive API Features */
@media (max-width: 768px) {
    .api-feature-card {
        padding: 1.5rem;
    }
    
    .api-feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .api-feature-title {
        font-size: 1rem;
    }
    
    .api-feature-desc {
        font-size: 0.9rem;
    }
    
    .api-monitoring-highlight .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .api-monitoring-highlight .text-start {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .api-monitoring-highlight .text-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.page-header h1,
.page-header .display-4 {
    color: white !important;
}

.page-header p,
.page-header .lead {
    color: rgba(255, 255, 255, 0.95) !important;
}

.page-header::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="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: rgba(255, 255, 255, 0.5);
}

/* About Page Styles */
.about-section {
    background: var(--bg-color);
}

.about-content {
    padding: 2rem 0;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Mission Vision Cards */
.mission-card,
.vision-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

/* Values Section */
.value-card {
    padding: 2rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.value-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Expertise Cards */
.expertise-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--card-shadow);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--success-color), #38ef7d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1.5rem;
}

/* Contact Page Styles */
.contact-details-section {
    background: var(--bg-color);
}

.contact-info-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-form-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.contact-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Map Section */
.map-section {
    background: var(--bg-secondary);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-color);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px var(--card-shadow);
    background: var(--card-bg);
}

.accordion-button {
    background: var(--bg-secondary);
    border: none;
    border-radius: 10px !important;
    font-weight: 500;
    padding: 1.25rem 1.5rem;
    color: var(--text-color);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
}

/* Product Page Styles */
.product-overview {
    background: var(--bg-color);
}

.product-content {
    padding: 2rem 0;
}

.product-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-highlight {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.segment-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.segment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--card-shadow);
}

.segment-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--info-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.benefit-item {
    margin-bottom: 2rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--success-color), #38ef7d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.benefit-content h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.spec-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.spec-card h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.spec-card ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-section h3,
.cta-section h4,
.cta-section h5 {
    color: white !important;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.cta-section::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

/* Bootstrap Card Overrides for Dark Mode */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.card-body {
    color: var(--text-color);
}

.card-title {
    color: var(--text-color);
}

.card-text {
    color: var(--text-secondary);
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Text color utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

p {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Lead text */
.lead {
    color: var(--text-secondary);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    img:not(.navbar-brand img):not([class*="logo"]) {
        opacity: 0.9;
    }
    
    /* Card backgrounds in dark mode */
    .service-card,
    .feature-card,
    .api-feature-card {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }
    
    /* Dropdown menu dark mode */
    .dropdown-menu {
        background-color: var(--navbar-bg);
    }
    
    .dropdown-item {
        color: var(--navbar-text);
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--bg-tertiary);
        color: var(--primary-color);
    }
    
    /* Mobile menu dark mode */
    .navbar-collapse {
        background-color: var(--navbar-bg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav .nav-item {
        border-bottom-color: var(--border-color);
    }
    
    .navbar-nav .nav-link {
        color: var(--navbar-text);
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    /* Corporate Actions Page - Filter Buttons */
    .btn-outline-primary {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .btn-outline-primary:hover,
    .btn-outline-primary.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }
    
    /* Corporate Actions Cards */
    .hover-card {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .hover-card .card-body {
        background-color: var(--card-bg);
    }
    
    .hover-card .card-title {
        color: var(--text-color);
    }
    
    .badge.bg-primary {
        background-color: var(--primary-color) !important;
        color: white;
    }
    
    .badge.bg-light {
        background-color: var(--bg-tertiary) !important;
        color: var(--text-color) !important;
    }
    
    /* Alert boxes in dark mode */
    .alert-primary {
        background-color: rgba(13, 110, 253, 0.15) !important;
        border-color: var(--primary-color) !important;
        color: var(--text-color) !important;
    }
    
    .alert-primary h5,
    .alert-primary h6 {
        color: var(--text-color) !important;
    }
    
    .alert-primary p {
        color: var(--text-secondary) !important;
    }
    
    /* Mobile dropdown dark mode */
    .navbar-nav .dropdown-menu {
        background-color: var(--bg-secondary);
    }
    
    .navbar-nav .dropdown-item {
        color: var(--text-secondary);
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: var(--bg-tertiary);
        color: var(--primary-color);
    }
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Feature List Styling */
.feature-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Process Steps with Arrows */
.process-step {
    margin-bottom: 0;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.process-icon-wrapper {
    display: inline-block;
}

.process-arrow {
    margin: 1rem 0;
    padding: 0.5rem 0;
    background: transparent;
}

.process-arrow i {
    opacity: 0.7;
    display: inline-block;
}

/* Thank You Page */
.thank-you-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

.success-icon i {
    font-size: 4rem;
    color: white;
}

.info-box {
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--card-shadow);
}

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

/* Carousel Control Arrows Fix */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
    width: 40px;
    height: 40px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Carousel Indicators */
.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Form Checkbox Alignment Fix */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check-input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-check-label {
    margin-left: 0;
    line-height: 1.5;
}

/* ===================================
   MEGA MENU STYLES - MOBILE FRIENDLY
   =================================== */

/* Desktop Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    border: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    background: var(--card-bg);
    top: 100% !important;
    transform: none !important;
    display: none;
}

.mega-dropdown .mega-menu.show {
    display: block;
}

.mega-menu .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.5rem;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mega-menu-item i {
    width: 24px;
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mega-menu-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.mega-menu-item:hover i {
    transform: scale(1.2);
}

/* Mobile Responsive Mega Menu */
@media (max-width: 991px) {
    /* Transform mega menu to accordion style on mobile */
    .mega-dropdown .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        max-height: 60vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Custom scrollbar for mobile menu */
    .mega-dropdown .mega-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .mega-dropdown .mega-menu::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    .mega-dropdown .mega-menu::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .mega-menu .container-fluid {
        padding: 0;
    }
    
    .mega-menu .row {
        margin: 0;
    }
    
    .mega-menu .col-lg-4 {
        padding: 0;
        margin-bottom: 0;
    }
    
    .mega-menu-title {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin: 0.75rem 0 0.5rem 0;
        padding: 0.5rem 1rem;
        background: var(--bg-tertiary);
        border-bottom: none;
        border-radius: 5px;
    }
    
    .mega-menu-list {
        padding-left: 0.5rem;
    }
    
    .mega-menu-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 5px;
    }
    
    .mega-menu-item i {
        width: 20px;
        margin-right: 0.6rem;
        font-size: 1rem;
    }
    
    .mega-menu-item:hover {
        transform: translateX(3px);
    }
    
    /* Ensure navbar collapse also has proper scrolling */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-collapse::-webkit-scrollbar {
        width: 4px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .mega-menu-title {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .mega-menu-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .mega-menu-item i {
        width: 18px;
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .mega-menu-title {
        font-size: 0.8rem;
        margin: 0.5rem 0 0.4rem 0;
        padding: 0.35rem 0.5rem;
    }
    
    .mega-menu-list {
        padding-left: 0.25rem;
    }
    
    .mega-menu-item {
        padding: 0.45rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .mega-menu-item i {
        width: 16px;
        margin-right: 0.4rem;
        font-size: 0.85rem;
    }
}

/* Certification Link Styling */
.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.certification-link:hover {
    background: linear-gradient(135deg, #0056b3, #5568d3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    color: white !important;
}

.certification-link i {
    font-size: 0.75rem;
}

/* Mobile responsive for certification link */
@media (max-width: 768px) {
    .certification-link {
        display: inline-flex;
        margin-left: 0.25rem;
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .certification-link i {
        font-size: 0.7rem;
    }
}

/* Dark mode mega menu adjustments */
@media (prefers-color-scheme: dark) {
    .mega-menu {
        background-color: var(--navbar-bg);
        border: 1px solid var(--border-color);
    }
    
    .mega-menu-title {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
    
    .mega-menu-item {
        color: var(--navbar-text);
    }
    
    .mega-menu-item:hover {
        background-color: var(--bg-tertiary);
        color: var(--primary-color);
    }
    
    @media (max-width: 991px) {
        .mega-menu-title {
            background-color: var(--bg-tertiary);
            color: var(--text-muted);
        }
    }
    
    /* Certification link in dark mode */
    .certification-link {
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.5);
    }
    
    .certification-link:hover {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.6);
    }
}

