/* Custom CSS for VentureCatalyst */

:root {
    --primary-bg: #0F0F23;
    --secondary-bg: #1A1A2E;
    --tertiary-bg: #16213E;
    --text-primary: #FFFFFF;
    --text-secondary: #E8EAF6;
    --text-muted: #B0BEC5;
    --text-light: #F5F5F5;
    --gradient-start: #00D4FF;
    --gradient-end: #FF006E;
    --gradient-alt: #7B68EE;
    --accent-color: #00D4FF;
    --accent-secondary: #FF006E;
    --success-color: #00E676;
    --warning-color: #FFB74D;
    --error-color: #F44336;
    --border-color: rgba(0, 212, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 204, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.dropdown-menu {
    background-color: var(--secondary-bg);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 8px;
}

.dropdown-item {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 204, 255, 0.1);
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--tertiary-bg) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(123, 104, 238, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(22, 33, 62, 0.7);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.25);
    background: rgba(22, 33, 62, 0.9);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 204, 255, 0.3);
    background: linear-gradient(135deg, #00B8E6, #E6008A);
}

.btn-outline-light {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-light:hover {
    background-color: var(--text-primary);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

/* Portfolio Showcase */
.portfolio-showcase {
    background-color: var(--secondary-bg);
}

.portfolio-logo {
    background: rgba(22, 33, 62, 0.8);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.portfolio-logo:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.25);
    background: rgba(22, 33, 62, 0.95);
}

.portfolio-logo img {
    max-height: 80px;
    width: auto;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.portfolio-logo:hover img {
    filter: brightness(1.1);
}

/* Program Overview */
.program-overview {
    background-color: var(--primary-bg);
}

.program-timeline {
    position: relative;
    padding-left: 2rem;
}

.program-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    border: 3px solid var(--primary-bg);
}

.timeline-content {
    background: rgba(22, 33, 62, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    border-color: var(--accent-color);
    transform: translateX(10px);
    background: rgba(22, 33, 62, 0.95);
}

.timeline-content h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 204, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer */
.footer {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.footer h5, .footer h6 {
    color: var(--accent-color);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer p {
    color: var(--text-secondary);
}

.footer a[href*="rivertheme"] {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer a[href*="rivertheme"]:hover {
    color: var(--gradient-end);
    transform: translateY(-1px);
}

.footer a[href*="rivertheme"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.footer a[href*="rivertheme"]:hover::after {
    width: 100%;
}

/* RiverTheme Branding */
.footer .rivertheme-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer .rivertheme-brand a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

.footer .rivertheme-brand a:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}

.footer .rivertheme-brand a::before {
    content: '🚀';
    margin-right: 5px;
    font-size: 0.8rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(0, 204, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form input {
    background-color: rgba(22, 33, 62, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.newsletter-form input:focus {
    background-color: rgba(22, 33, 62, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: var(--text-primary);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

/* Form Styles */
.form-control {
    background-color: rgba(22, 33, 62, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px 15px;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background-color: rgba(22, 33, 62, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Card Styles */
.card {
    background-color: rgba(26, 26, 46, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.25);
    background-color: rgba(26, 26, 46, 0.95);
}

.card-header {
    background-color: rgba(22, 33, 62, 0.8);
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-color);
    font-weight: 600;
}

.card-body {
    color: var(--text-secondary);
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Filter Buttons */
.filter-btn {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 25px;
    padding: 8px 20px;
    margin: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .timeline-content:hover {
        transform: none;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-stats {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00B8E6, #E6008A);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 204, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Logo Placeholders */
.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

/* Text Color Improvements */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-light {
    color: var(--text-light) !important;
}

/* Modal Styles */
.modal-content {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    backdrop-filter: blur(15px);
}

.modal-header {
    background-color: var(--tertiary-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body {
    background-color: var(--secondary-bg);
    color: var(--text-secondary);
}

.modal-footer {
    background-color: var(--tertiary-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 15px 15px;
}

.modal-backdrop {
    background-color: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(5px);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--primary-bg), var(--primary-bg)) padding-box,
                linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) border-box;
}

/* FAQ Section Styles */
.faq-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.search-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box .form-control {
    color: var(--text-light) !important;
}

.search-box .form-control::placeholder {
    color: var(--text-muted);
}

.faq-categories .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-categories .btn.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
    color: white;
}

.faq-accordion {
    max-width: 100%;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
}

.faq-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    flex: 1;
    font-size: 1.1rem;
}

.faq-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-header[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-tags {
    margin-top: 1rem;
}

.faq-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.funding-highlight {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.funding-stat {
    padding: 1rem;
}

.funding-stat h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.funding-stat small {
    color: var(--text-muted);
    font-weight: 500;
}

.equity-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.equity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.equity-range {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.equity-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.location-options {
    margin-top: 1rem;
}

.location-option {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.location-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.location-option i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.location-option h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-option p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.post-program-benefits {
    margin-top: 1rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.benefit-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-item h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.solo-founder-support {
    background: rgba(0, 230, 118, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.solo-founder-support h6 {
    margin-bottom: 1rem;
}

.solo-founder-support li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* FAQ Search and Filter */
.faq-item.hidden {
    display: none;
}

.faq-item.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design for Smaller Devices */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    /* Navigation Mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Cards Mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Team Cards Mobile */
    .member-image {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 1rem !important;
    }
    
    .member-image img {
        width: 100%;
        height: 100%;
    }
    
    /* FAQ Mobile */
    .faq-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .faq-icon-small {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .faq-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .faq-arrow {
        font-size: 1rem;
    }
    
    .faq-body {
        padding: 0 1rem 1rem;
    }
    
    /* FAQ Categories Mobile */
    .faq-categories .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    /* Search Box Mobile */
    .search-box {
        margin: 0 1rem;
    }
    
    /* Funding Stats Mobile */
    .funding-stat h4 {
        font-size: 1.5rem;
    }
    
    .funding-stat {
        padding: 0.75rem;
    }
    
    /* Location Options Mobile */
    .location-option {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .location-option i {
        font-size: 1.5rem;
    }
    
    /* Benefit Items Mobile */
    .benefit-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .benefit-item i {
        font-size: 1.5rem;
    }
    
    /* Equity Chart Mobile */
    .equity-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Solo Founder Support Mobile */
    .solo-founder-support {
        padding: 1rem;
    }
    
    /* Modal Mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    /* Footer Mobile */
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* CTA Buttons Mobile */
    .cta-section .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-section .btn {
        width: 100%;
    }
    
    /* Portfolio Grid Mobile */
    .portfolio-logo {
        margin-bottom: 1rem;
    }
    
    .logo-placeholder {
        padding: 1rem;
    }
    
    .logo-placeholder i {
        font-size: 2rem !important;
    }
    
    .logo-placeholder h5 {
        font-size: 1rem;
    }
    
    /* Blog Cards Mobile */
    .blog-post .card-img-top {
        height: 200px !important;
    }
    
    .blog-post .card-img-top i {
        font-size: 2.5rem !important;
    }
    
    .author-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .author-info .rounded-circle {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.6rem !important;
    }
    
    /* Event Cards Mobile */
    .event-card {
        margin-bottom: 1rem;
    }
    
    .event-date {
        font-size: 0.8rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    /* Timeline Mobile */
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h5 {
        font-size: 1.1rem;
    }
    
    /* Stats Mobile */
    .stat-card {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Forms Mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Newsletter Mobile */
    .newsletter-form {
        margin: 0 1rem;
    }
    
    /* RiverTheme Branding Mobile */
    .rivertheme-brand {
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero Section Extra Small */
    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* FAQ Extra Small */
    .faq-header {
        padding: 0.75rem;
    }
    
    .faq-title {
        font-size: 0.95rem;
    }
    
    .faq-icon-small {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    /* Cards Extra Small */
    .card-body {
        padding: 0.75rem;
    }
    
    /* Team Images Extra Small */
    .member-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Blog Author Images Extra Small */
    .author-info .rounded-circle {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.5rem !important;
    }
    
    /* Buttons Extra Small */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Modal Extra Small */
    .modal-dialog {
        margin: 0.25rem;
    }
    
    /* Footer Extra Small */
    .footer {
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 1.5rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .faq-header {
        padding: 0.75rem;
    }
    
    .member-image {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .faq-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .faq-header {
        min-height: 60px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .faq-icon-small,
    .member-image,
    .author-info .rounded-circle {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Better text rendering on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Improve button touch targets */
    .btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better form inputs on mobile */
    .form-control {
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    /* Improve modal on mobile */
    .modal {
        padding: 0 !important;
    }
    
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }
    
    .modal-content {
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    
    /* Better accordion on mobile */
    .faq-header {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Improve card interactions */
    .card {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better image loading */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve text readability */
    p, li {
        line-height: 1.6;
    }
    
    /* Better spacing for mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Improve hero section on mobile */
    .hero-section {
        min-height: 70vh;
        display: flex;
        align-items: center;
    }
    
    /* Better navigation on mobile */
    .navbar-collapse {
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    /* Improve dropdown on mobile */
    .dropdown-menu {
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Better table responsiveness */
    .table-responsive {
        border-radius: 10px;
        overflow: hidden;
    }
    
    /* Improve loading states */
    .loading {
        pointer-events: none;
        opacity: 0.7;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .faq-title {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
}

/* Print styles for mobile */
@media print {
    .navbar,
    .footer,
    .btn,
    .faq-categories {
        display: none !important;
    }
    
    .faq-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .faq-body {
        display: block !important;
    }
}

/* Enhanced Team Design Styles */
.team-icon {
    animation: pulse 2s infinite;
}

.member-image-container {
    position: relative;
    display: inline-block;
}

.member-image {
    transition: all 0.3s ease;
    cursor: pointer;
}

.member-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.member-image:hover .member-overlay {
    opacity: 1;
}

.member-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 3px solid var(--primary-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.member-expertise .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.team-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item small {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Team Cards */
.team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.team-card .card-body {
    padding: 2rem;
}

.member-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3rem;
}

.member-title {
    color: var(--accent-color) !important;
    font-weight: 600;
    font-size: 1rem;
}

/* Modal Enhancements */
.modal-image-container {
    position: relative;
    display: inline-block;
}

.modal-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 4px solid var(--secondary-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-image {
    border: 4px solid var(--gradient-start) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Section Backgrounds */
.team-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.team-section-alt {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--tertiary-bg) 100%);
}

/* Responsive Team Design */
@media (max-width: 768px) {
    .member-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    .member-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-image {
        width: 150px !important;
        height: 150px !important;
    }
    
    .modal-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .team-stats {
        padding: 1.5rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    .team-card .card-body {
        padding: 1.5rem;
    }
}