:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #198754;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Navbar */
/* .navbar {
    background: rgba(255, 255, 255, 0.959);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
} */

.navbar {
    background: rgba(255, 255, 255, 0.486);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--dark-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* Hero Section */
.hero {
    background: linear-gradient(
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.6)
        ),
        url('../../images/cnsc_bg3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Feature Container */
#features .col-md-6.col-lg-4 {
    transition: transform 0.3s ease;
}

/* Container Hover */
#features .col-md-6.col-lg-4:hover {
    transform: translateY(-8px);
}

/* Feature Cards */
.feature-card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    outline: 1px solid rgb(224, 224, 224);
}

/* Card Hover */
.feature-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Feature Icon */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Icon Animation */
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Arrow Animation */
.card-arrow {
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .card-arrow {
    transform: translateX(8px);
}

.how_it_works_container{
    background: #f1f1f1;
}

/* How It Works */
.step-card {
    position: relative;
    text-align: center;
    padding: 30px; 
} 

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.step-card::after {
    content: '';
    position: absolute;
    top: 75px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: #dee2e6;
}

.step-card:last-child::after {
    display: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    padding: 80px 0;
    position: relative;
}

/* Stats */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.btn-light {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Logo Animation */
.logo-animate {
    animation: floatLogo 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo-animate:hover {
    transform: scale(1.08);
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Purple bg helper */
.bg-purple {
    background-color: rgba(111, 66, 193, 0.1);
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .hero {
        padding: 130px 0 70px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .hero .badge {
        display: inline-block;
    }
    
    .step-card::after {
        display: none;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .feature-card {
        margin-bottom: 0;
    }
    
    .about .col-lg-6:last-child {
        margin-top: 30px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .hero .d-flex.gap-3 .btn {
        width: 100%;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    footer h5 {
        margin-top: 20px;
    }
    
    footer .col-lg-4:first-child h5 {
        margin-top: 0;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .feature-card,
    .step-card,
    .logo-animate {
        transition: none;
        animation: none;
        opacity: 1;
        transform: none;
    }
}