/* Import Pages Styles */
@import url('pages.css');

/* Base Styles & Variables */
:root {
    --primary: #6c63ff;
    --primary-dark: #5649e6;
    --secondary: #00b4d8;
    --dark: #0b0f1a;
    --darker: #070b16;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(108, 99, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

@keyframes twinkle {
    from { opacity: 0.2; }
    to { opacity: 1; }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--light);
    background-color: var(--darker);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Space Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
}

.stars {
    background: var(--darker) url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuMSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    z-index: -2;
}

.twinkling {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMGgxMHYxMEgweiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIwLjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=') repeat top center;
    z-index: -1;
    animation: twinkle 2s infinite alternate;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
    color: white;
}

.btn-send {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-send:hover {
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.suggestion-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin: 0.3rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.suggestion-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Ask Question Button */
.ask-question-container {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.ask-question-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--primary), #8a7cff);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.ask-question-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
    background: linear-gradient(90deg, #7b6cfc, #9b90ff);
    color: white;
}

.ask-question-btn:active {
    transform: translateY(1px);
}

.ask-question-btn i {
    margin-right: 0;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.ask-question-btn:hover i {
    transform: translateX(5px);
}

/* Add a subtle pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(108, 99, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

.ask-question-btn {
    animation: pulse 2s infinite;
}

.ask-question-btn:hover {
    animation: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ask-question-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

/* Navigation Toggle Button (Hidden by default) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

/* Navigation Menu */
#mainNav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    #mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(11, 15, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    #mainNav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        padding: 1rem 0;
        opacity: 1 !important; /* Ensure links are visible */
        visibility: visible !important; /* Ensure links are visible */
    }

    .nav-link::after {
        display: none;
    }

    /* Add overlay when menu is open */
    body.nav-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    body.nav-open::after {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8rem 5% 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #b3b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.search-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    position: relative;
    max-width: 700px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.3);
    border-color: var(--primary);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box .btn-send {
    width: 40px;
    height: 40px;
    border-radius:50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
}

.search-box .btn-send:hover {
    background: var(--primary-dark);
    transform: none;
}

.search-box .btn-send i {
    font-size: 1rem;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.astronaut {
    position: relative;
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

.astronaut-helmet, .astronaut-body {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.astronaut-helmet {
    width: 120px;
    height: 120px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.astronaut-body {
    width: 200px;
    height: 200px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Chat Container */
.chat-container {
    background: rgba(11, 15, 26, 0.8);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 2rem auto;
    max-width: 1000px;
    display: none;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(11, 15, 26, 0.6);
    scroll-behavior: smooth;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: rgba(11, 15, 26, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    margin-right: 1rem;
    transition: var(--transition);
}

/* Message Styles */
.message {
    display: flex;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3D Planet Container */
.planet-container {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(65, 120, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    width: 300px;
    height: 300px;
    transform: translateY(-50%);
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

.planet-container > canvas {
    pointer-events: auto;
}

.planet-container:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 80px rgba(65, 120, 255, 0.5);
}

/* Make sure the canvas fills its container */
.planet-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Adjust for smaller screens */
@media (max-width: 1024px) {
    .planet-container {
        width: 250px;
        height: 250px;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .planet-container {
        width: 200px;
        height: 200px;
        right: 0;
    }
    
    .planet-details h3 {
        font-size: 1.2rem;
    }
    
    .planet-details p {
        font-size: 0.9rem;
    }
}

/* Remove Saturn container styles */
#saturn-container {
    display: none;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 auto 3rem;
    color: white;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 6rem 5%;
    text-align: center;
    background: rgba(11, 15, 26, 0.6);
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(108, 99, 255, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* About Section */
.about {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
}

/* Footer */
footer {
    background: rgba(7, 11, 22, 0.9);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .title {
        font-size: 3rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .suggestions {
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }
    
    .nav-link {
        display: none;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .search-box {
        flex-direction: row;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .suggestion-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .message-content {
        max-width: 85%;
    }
}

/* Message Styles */
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.message-avatar i {
    color: white;
    font-size: 1.2rem;
}

.message-content {
    max-width: 80%;
}

.message.bot .message-content p {
    background: rgba(108, 99, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0 20px 20px 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.message.user {
    flex-direction: row-reverse;
    margin-left: auto;
}

.message.user .message-avatar {
    margin-right: 0;
    margin-left: 1rem;
    background: var(--secondary);
}

.message.user .message-content {
    text-align: right;
}

.message.user .message-content p {
    background: rgba(0, 180, 216, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 20px 0 20px 20px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 180, 216, 0.2);
}

/* NASA Biology Research Section */
.nasa-research {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0c142b, #0a1122);
    position: relative;
    overflow: hidden;
}

.nasa-research::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(0, 180, 216, 0.1) 0%, transparent 25%);
    z-index: 0;
}

.research-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(108, 99, 255, 0.2);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.research-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.8rem;
}

.card-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.meta-item i {
    margin-right: 6px;
    color: var(--primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .card-image {
        height: 180px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.research-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.research-card:nth-child(1) { animation-delay: 0.1s; }
.research-card:nth-child(2) { animation-delay: 0.2s; }
.research-card:nth-child(3) { animation-delay: 0.3s; }

/* Research CTA */
.research-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.research-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.research-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.research-cta .btn-primary i {
    font-size: 1rem;
}

/* Publications Page */
.publications-page {
    background: var(--darker);
    color: var(--light);
    min-height: 100vh;
}

.publications-container {
    max-width: 1400px;
    margin: 100px auto;
    padding: 2rem;
}

.page-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    font-size: 2.5rem;
}

/* Search and Filters */
.search-filters {
    background: rgba(11, 15, 26, 0.7);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-bar {
    position: relative;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.search-bar i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
    background: rgba(108, 99, 255, 0.1);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.filter-group select,
.filter-group button {
    padding: 0.8rem 1.5rem;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236463ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.filter-group select:hover,
.filter-group button:hover {
    background-color: rgba(108, 99, 255, 0.25);
    border-color: var(--primary);
}

.filter-group select:focus,
.filter-group button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.filter-group button {
    background: var(--gradient);
    border: none;
    font-weight: 500;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    min-width: auto;
}

.filter-group button i {
    font-size: 0.9em;
}

.filter-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-filters {
        padding: 1.2rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select,
    .filter-group button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-bar {
        margin-bottom: 1rem;
    }
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    height: 300px;
}

.dashboard-card h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    text-align: center;
}

/* Publications List */
.publications-list h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.publication-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(108, 99, 255, 0.3);
}

.publication-card h3 {
    margin-top: 0;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.publication-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.publication-field {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 4px;
    color: var(--primary);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-group select {
        width: 100%;
    }
}

/* Improved Filter Dropdown Styles */
select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65em auto;
    padding-right: 2.5rem;
}

select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

select option {
    background-color: #0b0f1a;
    color: #fff;
    padding: 0.5rem 1rem;
}

/* Style the dropdown arrow for Firefox */
select::-ms-expand {
    display: none; /* Hide the default arrow in IE/Edge */
}

/* Style the dropdown arrow for IE/Edge */
select::-ms-expand {
    display: none;
}

/* Style the dropdown arrow for Chrome/Safari */
select::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Filter Group Styles */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

/* Apply Filters Button */
#applyFilters {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

#applyFilters:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Search Bar Styles */
.search-bar {
    position: relative;
    flex: 1;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

#searchInput {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    select, #applyFilters {
        width: 100%;
        margin-right: 0;
    }
    
    .search-bar {
        margin-bottom: 1rem;
    }
}

/* Ensure navigation links are visible when menu is active */
#mainNav.active .nav-link {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* Make sure the navigation container has the right stacking context */
#mainNav {
    z-index: 1000;
}

/* Make sure the toggle button is always clickable */
.nav-toggle {
    z-index: 1001;
    position: relative;
}

/* Ensure the menu items are visible when menu is open */
#mainNav.active {
    display: flex !important;
    flex-direction: column;
}

/* Make sure links are visible in the mobile menu */
@media (max-width: 992px) {
    #mainNav .nav-link {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* Chat Page Responsive Styles */
@media (max-width: 768px) {
    .chat-container {
        margin: 70px 0 0 0;
        height: calc(100vh - 120px);
    }

    .message {
        max-width: 90% !important;
        margin-bottom: 10px;
    }

    .message-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem;
    }

    .message-content {
        padding: 10px 15px !important;
        font-size: 0.9rem;
    }

    .chat-input-container {
        padding: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(12, 20, 43, 0.95);
    }

    .chat-form {
        padding: 0 10px;
    }

    #userInput {
        padding: 10px 15px;
        font-size: 14px;
    }

    .btn-send {
        width: 30px !important;
        height: 30px !important;
        right: 10px !important;
        top: 20% !important;
        transform: translateY(-50%);
    }

    .chat-messages {
        padding: 10px;
        padding-bottom: 70px; /* Space for input */
        margin-bottom: 60px; /* Space for input */
    }

    /* Adjust header for mobile */
    .header {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    /* Adjust message bubbles for mobile */
    .message-content p {
        margin: 0.5rem 0;
        line-height: 1.4;
    }

    /* Hide timestamp on mobile or make it smaller */
    .message-time {
        font-size: 0.7rem;
        opacity: 0.7;
    }
}

/* For very small devices */
@media (max-width: 480px) {
    .message {
        max-width: 95% !important;
    }

    .message-content {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }

    #userInput {
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn-send {
        width: 32px !important;
        height: 32px !important;
    }
}
.chat-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.chat-container {
    display: flex;
    height: 100%;
    position: relative;
    transition: margin-right 0.3s ease;
    margin: 100px auto;
}
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.chat-input-container {
    padding: 15px;
    background: rgba(12, 20, 43, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-form {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.input-group {
    display: flex;
    position: relative;
}
#userInput {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 16px;
    outline: none;
}
.btn-send {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #6c63ff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.message {
    display: flex;
    margin-bottom: 15px;
    max-width: 80%;
}
.message.bot {
    margin-right: auto;
}
.message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6c63ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}
.message.user .message-avatar {
    background: #00b4d8;
}
.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 100%;
}
.welcome-message .message-content {
    background: rgba(12, 20, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar styles */
.chat-sidebar {
    width: 280px;
    height: 100%;
    background: rgba(12, 20, 43, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

/* Show sidebar toggle on mobile */
@media (max-width: 992px) {
    .chat-main {
        margin: 0;
        h1 {
            text-align: center;
            font-size: 30px;
        }
    }
    .chat-messages{
        
        height: 100vh;
    }
}

/* Team Section */
.team-section {
    padding: 4rem 2rem;
    background: rgba(11, 15, 26, 0.8);
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    font-size: 2.2rem;
    width: 100%;
}

.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.team-member {
    flex: 0 0 auto;
    width: 200px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.team-photo {
    width: 100%;
    height: 100%;
}

.team-member h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--secondary);
    margin: 0;
    font-size: 0.9rem;
}

.about-page .team-section {
    padding: 4rem 2rem;
    background: rgba(11, 15, 26, 0.8);
    margin: 4rem 0;
}

.about-page .section-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-page .section-subtitle {
    text-align: center;
    color: #a0a8c0;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.about-page .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-page .team-member {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-page .team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.about-page .member-avatar {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.about-page .team-photo {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.about-page .team-member:hover .team-photo {
    transform: scale(1.05);
}

.about-page .social-links {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.about-page .team-member:hover .social-links {
    opacity: 1;
    transform: translateY(0);
}

.about-page .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
}

.about-page .social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.about-page .member-info {
    padding: 1.5rem;
    text-align: center;
}

.about-page .member-info h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.about-page .role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-page .bio {
    color: #a0a8c0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-page .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.about-page .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.about-page .social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-page .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .about-page .member-avatar {
        height: 250px;
    }
}

.about-page .team-section {
    padding: 4rem 2rem;
    background: rgba(11, 15, 26, 0.8);
    margin: 4rem 0;
    overflow: hidden;
}

.about-page .team-grid {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    margin: 0 -1rem;
    padding: 1rem;
}

.about-page .team-member {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-page .member-avatar {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.about-page .team-photo {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.about-page .team-member:hover .team-photo {
    transform: scale(1.05);
}

.about-page .member-info {
    padding: 1.5rem;
    text-align: center;
}

.about-page .member-info h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.about-page .role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.about-page .bio {
    color: #a0a8c0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.about-page .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.about-page .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.about-page .social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-page .team-member {
        flex: 0 0 260px;
    }
    
    .about-page .member-avatar {
        height: 220px;
    }
}

.about-page .team-section {
    padding: 3rem 1rem;
    background: rgba(11, 15, 26, 0.8);
    margin: 3rem 0;
    overflow: hidden;
}

.about-page .team-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.about-page .team-member {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below their minimum content size */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-page .member-avatar {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.about-page .team-photo {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.about-page .team-member:hover .team-photo {
    transform: scale(1.05);
}

.about-page .member-info {
    padding: 1rem 0.8rem;
    text-align: center;
}

.about-page .member-info h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-page .role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-page .bio {
    color: #a0a8c0;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3.15em; /* 3 lines * 1.05 line height */
}

.about-page .social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.about-page .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.about-page .social-link:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .about-page .member-avatar {
        height: 160px;
    }
    
    .about-page .bio {
        -webkit-line-clamp: 2;
        height: 2.1em;
    }
}

@media (max-width: 992px) {
    .about-page .team-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about-page .team-member {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    .about-page .team-member {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .about-page .member-avatar {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .about-page .team-member {
        flex: 0 0 100%;
        max-width: 280px;
    }
}

.about-page .member-avatar {
    width: 100%;
    height: 180px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Make images circular on smaller screens */
@media (max-width: 992px) {
    .about-page .member-avatar {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        margin: 0 auto 1rem;
    }
    
    .about-page .team-member {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 0.5rem;
    }
    
    .about-page .member-info {
        width: 100%;
        padding: 0.5rem;
    }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
    .about-page .member-avatar {
        width: 100px;
        height: 100px;
    }
}
