/* ===================================
   BioLink Master - Main Stylesheet
   assets/style.css
   =================================== */

/* CSS Variables */
:root {
    --primary-green: #00ff88;
    --dark-bg: #0a0f1a;
    --card-bg: #12182b;
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --accent-dark: #1a2234;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1), transparent);
    animation: float 20s infinite ease-in-out;
}

.bg-circle:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -100px;
    animation-delay: 5s;
}

.bg-circle:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
        opacity: 0.5;
    }
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: box-shadow 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark-bg);
}



.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
    background: var(--primary-green);
    color: var(--dark-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: 8rem 5% 6rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: 6rem 5%;
    background: var(--accent-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), transparent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===================================
   STATS SECTION
   =================================== */
.stats {
    padding: 6rem 5%;
    background: var(--dark-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 8rem 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%);
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-white);
}

.cta-section p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    padding: 3rem 5%;
    background: var(--accent-dark);
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    text-align: center;
}

footer p {
    color: var(--text-gray);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }


    .mobile-menu-toggle {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    header {
        padding: 1rem 5%;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


/* ===================================
   GREEN SCROLLBAR STYLING
   Add this to your assets/style.css file
   =================================== */

/* Modern Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 10px;
    border: 2px solid #0a0a0a;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffaa 0%, #00dd77 100%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: #00ff88;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #00ff88 #0a0a0a;
}

/* For specific elements with dark backgrounds */
.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: #141414;
}

/* Thin scrollbar variant (optional - uncomment if you prefer thinner) */
/*
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*/

/* Animated glow effect on hover (optional enhancement) */
@keyframes scrollbar-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }
}

::-webkit-scrollbar-thumb:hover {
    animation: scrollbar-glow 2s infinite;
}

/* Custom scrollbar for specific containers (if needed) */
.card::-webkit-scrollbar,
.modal::-webkit-scrollbar {
    width: 8px;
}

.card::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.8);
    border-radius: 6px;
}

/* IE and Edge Legacy (limited support) */
body {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}