/* Reimagined GoGreenIn - Clean & Structured */
:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #ff6b35;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gray: #888888;
    --gray-light: #1a1a1a;
    --gradient: linear-gradient(135deg, #0a0a0a 0%, #00ff88 100%);
    --gradient-alt: linear-gradient(135deg, #00ff88 0%, #0a0a0a 100%);
    --shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    --shadow-hover: 0 20px 40px rgba(0, 255, 136, 0.3);
}

/* Light Theme */
[data-theme="light"] {
    --dark: #f8f9fa;
    --light: #0a0a0a;
    --gray-light: #e9ecef;
    --gradient: linear-gradient(135deg, #f8f9fa 0%, #00ff88 100%);
    --gradient-alt: linear-gradient(135deg, #00ff88 0%, #f8f9fa 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--dark);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    z-index: 1000;
    padding: 10px 0;
    min-height: 160px;
}

.top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.gallery-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.gallery-link {
    padding: 8px 16px;
    background: var(--gray-light);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    color: var(--light);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gallery-link:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 18px;
}

.anniversary-btn {
    background: var(--secondary);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.anniversary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.join-corner-desktop {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.join-corner {
    display: none;
}

@media (max-width: 768px) {
    .join-corner-desktop {
        display: none;
    }
    
    .join-corner {
        display: block !important;
        order: 1;
        align-self: center;
        margin: 10px 0;
    }
}

.join-btn {
    background: var(--primary);
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    animation: pulse 2s infinite;
    border: none;
    cursor: pointer;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.6); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
}

.join-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

/* Main Hero */
.main-hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    overflow: visible;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

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

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.videos-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--light);
    text-align: center;
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.05);
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-thumbnail:hover .play-button {
    background: var(--primary);
    color: var(--dark);
    transform: translate(-50%, -50%) scale(1.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.1);
}

.video-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
    line-height: 1.3;
}

.video-card p {
    opacity: 0.8;
    font-size: 0.85rem;
    line-height: 1.4;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    white-space: nowrap;
}

.material-expressive-title {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--light);
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

.material-expressive-title .highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat .label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Light theme fix for hero title */
[data-theme="light"] .material-expressive-title .highlight {
    color: #006b3c;
    text-shadow: 0 0 20px rgba(0, 107, 60, 0.5);
}

[data-theme="light"] .material-expressive-title .highlight strong {
    color: #006b3c;
    text-shadow: 0 0 20px rgba(0, 107, 60, 0.5);
}

/* Light theme fix for stats section only */
[data-theme="light"] .stats-row .stat .label {
    color: #333333;
    opacity: 0.9;
}

[data-theme="light"] .stats-row .stat .number {
    background: linear-gradient(135deg, #006b3c 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .stats-row .stat .label {
    background: linear-gradient(135deg, #006b3c 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
}

/* Light theme fix for modal popup text */
[data-theme="light"] .modal-details h3,
[data-theme="light"] .modal-details p,
[data-theme="light"] .modal-event-item,
[data-theme="light"] .modal-monthly-section h4,
[data-theme="light"] .modal-month-item,
[data-theme="light"] .event-detail {
    background: linear-gradient(135deg, #006b3c 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

/* Latest Ride Standalone Section */
.latest-ride-standalone {
    padding: 60px 20px;
    background: var(--gray-light);
}

.latest-ride-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Latest Ride Section */
.latest-ride-section {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10;
    margin: 0 auto;
}

.latest-ride-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.latest-ride-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.latest-ride-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.ride-images-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 10px 0;
    margin-bottom: 15px;
    height: 200px;
}

.ride-images-scroll .images-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: scroll-vertical 20s linear infinite;
}

@keyframes scroll-vertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.ride-images-scroll:hover .images-container {
    animation-play-state: paused;
}

.ride-images-scroll img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ride-images-scroll img:hover {
    transform: scale(1.05);
}

.view-details-btn {
    background: var(--primary);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

@media (max-width: 768px) {
    .latest-ride-section {
        display: none;
    }
}

/* Journey Timeline */
.journey-timeline {
    padding: 80px 20px;
    background: var(--gradient-alt);
}

.timeline-container {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.journey-timeline h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--light);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
    max-height: 800px;
}

@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(4, 1fr);
        max-height: none;
    }
}

.timeline-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timeline-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.timeline-image {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.year {
    background: var(--primary);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="light"] .year {
    color: #0a0a0a;
}

.year:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.year-arrow {
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.year-events {
    margin-top: 10px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.year-events.collapsed {
    max-height: 0;
    opacity: 0;
}

.year-events:not(.collapsed) {
    max-height: 200px;
    opacity: 1;
    padding: 10px 0;
}

.event-item {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    margin: 4px 0;
    font-size: 0.7rem;
    color: var(--light);
    transition: all 0.2s ease;
}

.event-item:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
}

/* Year Details Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--dark);
    margin: 2% auto;
    border: 1px solid var(--primary);
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.modal-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin: 0;
}

.close {
    color: var(--light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 25px;
}

.modal-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-details h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-details p {
    color: var(--light);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-events {
    margin-bottom: 25px;
}

.modal-event-item {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 8px 0;
    color: var(--light);
    transition: all 0.2s ease;
}

.modal-event-item:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
}

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

.modal-btn {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.image-close-modal {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.image-close-modal:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.modal-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 95%;
    max-width: 1400px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
}

.image-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: var(--primary);
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.image-close:hover {
    background: var(--dark);
    color: var(--primary);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-modal-content {
        width: 98%;
    }
    
    .image-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: -45px;
        right: -5px;
    }
}

/* Monthly View in Timeline */
.month-toggle-btn {
    background: var(--secondary);
    color: var(--light);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
}

.monthly-view {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.monthly-view.collapsed {
    display: none;
}

.monthly-view .month-card {
    background: rgba(0, 255, 136, 0.1);
    padding: 4px;
    border-radius: 4px;
    font-size: 0.6rem;
    text-align: center;
}

.modal-monthly-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.modal-monthly-section h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.modal-month-item {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 6px 0;
    color: var(--light);
    font-size: 0.9rem;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px 0;
}

.expand-arrow {
    color: var(--primary);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.month-events {
    margin-top: 8px;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.month-events.collapsed {
    display: none;
}

.event-detail {
    background: rgba(0, 255, 136, 0.1);
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 4px;
    font-size: 0.8rem;
    border-left: 2px solid var(--primary);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 98%;
        max-height: 90vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-image {
        height: 180px;
    }
    
    .modal-monthly-section {
        margin-top: 15px;
    }
    
    .modal-month-item {
        margin: 4px 0;
        padding: 6px 10px;
    }
}

.timeline-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--light);
}

.timeline-item p {
    opacity: 0.8;
    font-size: 0.75rem;
}

/* Events Gallery */
.events-gallery {
    padding: 80px 20px;
    background: var(--gray-light);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.gallery-toggle {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.gallery-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.gallery-content {
    transition: all 0.5s ease;
    overflow: hidden;
}

.gallery-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.gallery-content:not(.collapsed) {
    max-height: none;
    opacity: 1;
}

.events-gallery h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

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

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.placeholder-card {
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h4,
.placeholder-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.card-overlay p,
.placeholder-card p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.event-type {
    background: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.upload-section {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.upload-section h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.upload-section p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.upload-btn {
    background: var(--primary);
    color: var(--dark);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Latest Updates Section */
.latest-updates {
    padding: 80px 20px;
    background: var(--gray-light);
}

.updates-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.latest-updates h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary);
}

.updates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.latest-ride-section, .facebook-feed, .instagram-feed {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.latest-ride-section h3, .facebook-feed h3, .instagram-feed h3 {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.latest-ride-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.instagram-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: var(--light);
    opacity: 0.7;
}

.instagram-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.instagram-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fb-page {
        width: 100% !important;
    }
}

/* Social Media Feed */
.social-feed {
    padding: 80px 20px;
    background: var(--gray-light);
}

.social-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.social-feed h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.facebook-feed, .instagram-feed {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.facebook-feed h3, .instagram-feed h3 {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.instagram-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: var(--light);
    opacity: 0.7;
}

.instagram-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.instagram-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fb-page {
        width: 100% !important;
    }
}

/* Activities */
.activities {
    padding: 80px 20px;
    background: var(--dark);
}

.activities-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.activities h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.activity-card {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.activity-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--light);
}

.activity-card p {
    opacity: 0.8;
    font-size: 14px;
}

/* Impact */
.impact {
    padding: 80px 20px;
    background: var(--gradient);
}

.impact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.impact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--light);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.impact-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.impact-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.impact-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 16px;
    color: var(--dark);
    opacity: 0.9;
    margin-bottom: 25px;
}

.newsletter-btn {
    background: var(--dark);
    color: var(--primary);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Newsletter Modal */
.newsletter-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.newsletter-modal-content {
    background: var(--dark);
    margin: 2% auto;
    border: 2px solid var(--primary);
    border-radius: 20px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.newsletter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 18px 18px 0 0;
}

.newsletter-modal-header h2 {
    color: var(--dark);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.newsletter-close {
    color: var(--dark);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.newsletter-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.newsletter-modal-body {
    padding: 30px;
}

.newsletter-intro {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.newsletter-intro h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-intro p {
    color: var(--light);
    opacity: 0.9;
    line-height: 1.6;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.05);
    color: var(--light);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group select option {
    background: var(--dark);
    color: var(--light);
    padding: 8px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

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

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.newsletter-submit-btn {
    background: var(--primary);
    color: var(--dark);
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

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

.newsletter-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.newsletter-footer p {
    color: var(--light);
    opacity: 0.7;
    font-size: 12px;
}

/* Light theme adjustments for newsletter */
[data-theme="light"] .newsletter-content h2,
[data-theme="light"] .newsletter-content p {
    color: var(--light);
}

[data-theme="light"] .newsletter-btn {
    background: var(--light);
    color: var(--primary);
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 15px;
    }
    
    .newsletter-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .newsletter-modal-header {
        padding: 20px 25px;
    }
    
    .newsletter-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .newsletter-modal-body {
        padding: 25px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Final CTA */
.final-cta {
    padding: 80px 20px;
    background: var(--gray-light);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light);
}

.final-cta p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-primary, .cta-secondary {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-primary {
    background: var(--primary);
    color: var(--dark);
}

.cta-secondary {
    background: var(--secondary);
    color: var(--light);
}

/* Join Options Modal Styles */
.join-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.form-btn {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 40px 20px 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .top-content {
        gap: 20px;
        padding: 0 15px;
    }
    
    .gallery-nav {
        gap: 10px;
    }
    
    .gallery-link {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .videos-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .material-expressive-title {
        white-space: normal !important;
        line-height: 1.2;
    }
    
    .top-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .logo-section {
        align-self: flex-start;
    }
    
    .join-corner {
        position: static !important;
        order: 1;
        align-self: center;
        margin: 10px 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .join-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        order: 2;
    }
    
    .gallery-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        order: 3;
    }
    
    .main-hero {
        padding: 220px 15px 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .video-card {
        padding: 18px;
    }
    
    .video-card h3 {
        font-size: 1.1rem;
    }
    
    .video-card p {
        font-size: 0.9rem;
    }
    
    .timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-height: none;
    }
    
    .timeline-item {
        padding: 12px;
    }
    
    .timeline-image {
        height: 100px;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px 0;
    }
    
    .join-corner {
        position: static;
        order: 1;
        align-self: center;
        margin: 10px 0;
        display: block;
    }
    
    .join-btn {
        font-size: 14px;
        padding: 10px 20px;
        display: inline-block;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        gap: 15px;
        max-height: none;
    }
    
    .timeline-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .timeline-image {
        height: 120px;
    }
    
    .year {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .timeline-item h3 {
        font-size: 0.8rem;
    }
    
    .timeline-item p {
        font-size: 0.65rem;
    }
    
    .logo {
        width: 30px;
        height: 30px;
    }
    
    .brand {
        font-size: 18px;
    }
    
    .gallery-link {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .join-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .main-hero {
        padding: 240px 10px 20px;
    }
    
    .hero-content h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .badge {
        font-size: 12px;
        padding: 6px 15px;
        margin-bottom: 20px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat {
        padding: 12px;
    }
    
    .stat .number {
        font-size: 1.5rem;
    }
    
    .videos-section h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .video-card {
        padding: 15px;
    }
    
    .video-card h3 {
        font-size: 0.95rem;
    }
    
    .video-card p {
        font-size: 0.8rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .journey-timeline,
    .events-gallery,
    .activities,
    .impact,
    .final-cta {
        padding: 40px 10px;
    }
    
    .journey-timeline h2,
    .events-gallery h2,
    .activities h2,
    .impact h2,
    .final-cta h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .timeline-item {
        padding: 20px;
    }
    
    .timeline-image {
        height: 150px;
    }
    
    .gallery-toggle {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .filter-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .activity-card {
        padding: 20px;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        max-width: 250px;
    }
}