/* style.css - Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Glassmorphism utility - Refined for Light Theme */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Header Styles */
header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    header {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1rem;
        height: 70px;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1001;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    z-index: 1001;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
}

.search-container {
    flex: 0 1 400px;
    position: relative;
    margin: 0 1rem;
}

@media (max-width: 768px) {
    .search-container {
        display: none; /* Hide main search on mobile, can be moved to menu or separate icon */
    }
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.icon-btn:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-login {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-login:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* Menu Bar Styles */
.menu-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.25rem 1rem;
    background: white;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.menu-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

@media (max-width: 768px) {
    .menu-bar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        gap: 1.5rem;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        border-right: 1px solid var(--border);
    }
    
    .menu-bar.active {
        left: 0;
    }
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.menu-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .menu-item {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
}

.mobile-search {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .mobile-search {
        display: block;
    }
    
    .mobile-search input {
        width: 100%;
        padding: 0.8rem 1.2rem;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: #f8fafc;
        outline: none;
    }
}

.menu-item:hover {
    color: var(--primary);
}

/* Hero Section - Transformed to Light */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 6rem 2rem;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-search {
    width: 100%;
    max-width: 850px;
    position: relative;
    margin-top: 2rem;
}

.hero-search input {
    width: 100%;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s;
}

.hero-search input:focus {
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.hero-description {
    max-width: 700px;
    margin: 2rem auto;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.hero-btn-container {
    margin-top: 2.5rem;
}

.hero-btn {
    padding: 1.25rem 3rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.5);
    transition: all 0.3s;
    display: inline-block;
}

.hero-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.6);
}

/* Card Section */
.section-container {
    padding: 3rem 4rem;
}

@media (max-width: 1024px) {
    .section-container {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 2rem 1rem;
    }
}

.section-container h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
    color: #1e293b;
}

@media (max-width: 768px) {
    .section-container h2 {
        margin-bottom: 2rem;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: 2.5rem;
    border-radius: 24px;
    background: var(--card-bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2.5px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-btn {
    margin-top: 1.5rem;
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s;
}

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

.team-section-wrapper {
    background: white;
    padding: 6rem 4rem;
    border-radius: 60px;
    border: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .team-section-wrapper {
        padding: 4rem 2rem;
        border-radius: 40px;
    }
}

@media (max-width: 768px) {
    .team-section-wrapper {
        padding: 3rem 1.5rem;
        border-radius: 30px;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}
@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-card {
    text-align: center;
    padding: 2rem;
}

.team-img {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timeline specific styles */
.timeline-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: 2;
    }
    
    .feed {
        order: 1;
    }
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-composer {
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.post-composer textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text);
    resize: none;
    font-size: 1.05rem;
    outline: none;
    min-height: 120px;
    transition: all 0.3s;
}

.post-composer textarea:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.05);
}

.post-card {
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.post-actions {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Redesigned FAQ Section */
.faq-item {
    padding: 2rem 2.5rem;
    background: white;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.4s;
}

.faq-item:hover {
    transform: translateX(10px);
    border-color: transparent;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-question h4 {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
    transition: color 0.3s;
}

.faq-answer {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    padding-left: 0.5rem;
}

.faq-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.faq-item:hover .faq-icon {
    background: var(--primary);
    color: white;
}
.faq-icon i {
    transition: none;
}

/* Post Composer Modal Integration */
.composer-trigger { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: white; border-radius: 16px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; margin-bottom: 1.5rem; }
.composer-trigger:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.composer-pill { flex: 1; background: #f0f2f5; padding: 0.7rem 1.25rem; border-radius: 50px; color: #65676b; font-size: 1.05rem; font-weight: 500; transition: background 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.composer-pill:hover, .composer-trigger:hover .composer-pill { background: #e4e6eb; color: #4b4c4f; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(5px); z-index: 3000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: white; width: 90%; max-width: 550px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); transform: translateY(30px) scale(0.95); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; font-size: 1.25rem; color: #1e293b; font-weight: 800; text-align: center; flex: 1; margin-left: 20px; }
.modal-close { background: #f1f5f9; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.modal-close:hover { background: #e2e8f0; color: #1e293b; }

.modal-body { padding: 1.5rem; }
.modal-body textarea { width: 100%; min-height: 140px; border: none; resize: none; font-size: 1.35rem; line-height: 1.5; outline: none; color: #1e293b; font-family: inherit; }
.modal-body textarea::placeholder { color: #94a3b8; }

.modal-tools { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #f8fafc; }
.modal-tool-item { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); font-weight: 700; font-size: 0.95rem; cursor: pointer; padding: 0.6rem 1rem; border-radius: 12px; transition: background 0.2s; }
.modal-tool-item:hover { background: #e2e8f0; }

.modal-footer { padding: 1rem 1.5rem; }
.btn-post { width: 100%; background: var(--primary); color: white; border: none; padding: 0.85rem; border-radius: 12px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-post:hover { background: var(--primary-hover); }
