/* Tri-Chandra Research Club - Modern Responsive CSS */

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #a855f7;
    --accent-dark: #9333ea;
    --bg-light: #ffffff;
    --bg-light-alt: #f8fafc;
    --bg-dark: #0f172a;
    --bg-dark-alt: #1e293b;
    --text-light: #1e293b;
    --text-light-muted: #64748b;
    --text-dark: #f1f5f9;
    --text-dark-muted: #cbd5e1;
    --border-light: #e2e8f0;
    --border-dark: #334155;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

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

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-dark);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover { transform: scale(1.1); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    z-index: 1000;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

body.dark-mode .menu-toggle span { background: var(--text-dark); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15), transparent);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.gradient-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent);
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    color: var(--text-light-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

body.dark-mode .hero-subtitle { color: var(--text-dark-muted); }

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
    background: var(--bg-light-alt);
    color: var(--text-light);
    border: 2px solid var(--primary);
}

body.dark-mode .btn-secondary {
    background: var(--bg-dark-alt);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Sections */
section { padding: 4rem 0; }

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.about-preview {
    background: var(--bg-light-alt);
    padding: 5rem 0;
}

body.dark-mode .about-preview { background: var(--bg-dark-alt); }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

body.dark-mode .about-card {
    background: var(--bg-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-color: var(--border-dark);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

body.dark-mode .about-card:hover { 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

body.dark-mode .about-card h3 {
    color: var(--text-dark);
}

.about-card h3 .bi {
    margin-right: 0.75rem;
    font-size: 1.6em;
    color: var(--primary);
}

.about-card p {
    opacity: 0.8;
    line-height: 1.7;
}

/* Departments */
.alternate-bg { 
    background: var(--bg-light-alt);
    padding: 5rem 0;
}

body.dark-mode .alternate-bg { background: var(--bg-dark-alt); }

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dept-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .dept-card {
    background: var(--bg-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.dark-mode .dept-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }

.dept-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dept-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.dept-card p { opacity: 0.7; }

/* Events */
.events-preview { background: var(--bg-light); }

body.dark-mode .events-preview { background: var(--bg-dark); }

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-card {
    background: var(--bg-light-alt);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

body.dark-mode .event-card { background: var(--bg-dark-alt); }

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .event-card:hover { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }

.event-date {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.event-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.event-location {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-secondary {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Footer */
.footer {
    background: var(--bg-light-alt);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-light);
}

body.dark-mode .footer {
    background: var(--bg-dark-alt);
    border-top-color: var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    opacity: 0.7;
}

/* Leadership Section */
.leadership-section {
    background: var(--bg-light);
    padding: 6rem 0;
}

body.dark-mode .leadership-section {
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light-muted);
    margin-top: 1rem;
    opacity: 0.8;
}

body.dark-mode .section-subtitle {
    color: var(--text-dark-muted);
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-light-alt);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

body.dark-mode .profile-card {
    background: var(--bg-dark-alt);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

body.dark-mode .profile-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Profile Image */
.profile-image {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-card:hover .profile-image img {
    transform: scale(1.08);
}

/* Profile Badge */
.profile-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-badge.advisor-badge {
    color: var(--accent);
}

/* Profile Content */
.profile-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.profile-content h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

body.dark-mode .profile-content h3 {
    color: var(--text-dark);
}

.profile-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
}

.profile-bio {
    color: var(--text-light-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

body.dark-mode .profile-bio {
    color: var(--text-dark-muted);
}

/* Expertise Tags */
.profile-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.expertise-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.expertise-tag i {
    margin-right: 0.4rem;
    font-size: 0.9em;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .leadership-section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .profiles-grid {
        gap: 2rem;
    }

    .profile-image {
        height: 280px;
    }

    .profile-content {
        padding: 1.5rem;
    }

    .profile-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
.contact-section { padding: 4rem 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.info-item p { opacity: 0.8; }

.contact-form {
    background: var(--bg-light-alt);
    padding: 2rem;
    border-radius: 1rem;
}

body.dark-mode .contact-form { background: var(--bg-dark-alt); }

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-light);
    transition: var(--transition);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: var(--bg-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-light-alt);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

body.dark-mode .team-card { background: var(--bg-dark-alt); }

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .team-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Publications */
.pub-list {
    display: grid;
    gap: 2rem;
}

.pub-card {
    background: var(--bg-light-alt);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent);
}

body.dark-mode .pub-card { background: var(--bg-dark-alt); }

.pub-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

body.dark-mode .pub-card h3 { color: var(--text-dark); }

.pub-authors {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pub-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .menu-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-light);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        z-index: 999;
        list-style: none;
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    body.dark-mode .nav-menu {
        background: var(--bg-dark);
    }

    body.dark-mode .nav-menu.active {
        border-bottom-color: var(--border-dark);
    }

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

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

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

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

/* Bootstrap Icons Styling */
.bi {
    font-size: 1.2em;
    margin-right: 0.5rem;
    vertical-align: -0.125em;
}

h3 .bi {
    font-size: 1.3em;
    margin-right: 0.6rem;
    color: var(--primary);
}

.dept-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.dept-card:hover .dept-icon {
    color: var(--accent);
    transition: var(--transition);
}

.expertise-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.expertise-tag i {
    margin-right: 0.4rem;
    font-size: 0.9em;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.bi-bullseye, .bi-star-fill, .bi-flask {
    color: var(--primary);
}

.about-card h3 .bi {
    color: var(--primary);
}

.bi-check-circle-fill {
    color: var(--primary);
    margin-right: 0.5rem;
}

.bi-briefcase, .bi-mortarboard, .bi-people {
    color: var(--primary);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

body.dark-mode .stat-card {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(168, 85, 247, 0.1));
    border-color: var(--border-dark);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15);
}

body.dark-mode .stat-card:hover {
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

body.dark-mode .stat-label {
    color: var(--text-dark-muted);
}
