/* ========== COMPONENTS SECTION STYLES ========== */

/* Media Section */

.media-section {
    padding: var(--space-2xl) var(--space-lg);
    background-color: var(--bg-light);
}

.media-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.media-tab {
    background: none;
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    margin: 0 -2px -2px -2px;
}

.media-tab:hover {
    color: var(--primary-color);
}

.media-tab.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.media-tab-content {
    display: none;
}

.media-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.photo-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--border-color), var(--bg-light));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px dashed var(--border-color);
}

.photo-placeholder:hover {
    background: linear-gradient(135deg, var(--bg-light), var(--border-color));
    color: var(--secondary-color);
    transform: scale(1.02);
}

.photo-placeholder i {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

/* Gallery Preview Items */
.photo-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--transition-normal);
    padding: var(--space-md);
}

.photo-item:hover .gallery-preview-img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 65, 28, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay p {
    color: var(--text-white);
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-align: center;
}

/* View More Button Container */
.gallery-view-more {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
}

.gallery-view-more .btn {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--font-size-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.gallery-view-more .btn i {
    margin-right: var(--space-sm);
}

.gallery-view-more .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border: none;
    box-shadow: var(--shadow-md);
}

.gallery-view-more .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.video-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.video-play-btn {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary-color);
    transition: all var(--transition-normal);
}

.video-play-btn:hover .play-icon {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: var(--space-lg);
}

.video-info h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-large);
}

.video-channel {
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.video-description {
    color: var(--text-light);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-text {
    color: var(--text-dark);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-relaxed);
    font-style: italic;
}

.testimonial-author {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Dark mode video and testimonial styles */
body.dark-mode .video-card {
    background: var(--bg-secondary);
}

body.dark-mode .video-info h4 {
    color: var(--text-white);
}

body.dark-mode .video-description {
    color: var(--text-light);
}

body.dark-mode .testimonial-card {
    background: var(--bg-secondary);
    border-left-color: var(--secondary-color);
}

body.dark-mode .testimonial-text {
    color: var(--text-white);
}

body.dark-mode .testimonial-author {
    color: var(--secondary-color);
}

/* Social Media Section */

.social-media-section {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(43, 65, 28, 0.8));
    color: var(--text-white);
}

body.dark-mode .social-media-section {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(43, 65, 28, 0.8));
}

.social-media-section .section-title {
    color: var(--text-white) !important;
}

.social-media-section .section-subtitle {
    color: var(--text-white) !important;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    border-color: var(--secondary-color);
}

.social-link i {
    font-size: var(--font-size-2xl);
}

.social-link span {
    font-weight: 600;
}

.instagram:hover { color: #E4405F; }
.twitter:hover { color: #1DA1F2; }
.facebook:hover { color: #1877F2; }
.linkedin:hover { color: #0A66C2; }

/* ========== FOOTER ========== */

.footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: var(--space-2xl) var(--space-lg);
    margin-top: var(--space-2xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a,
.footer-section li {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: var(--space-xs) 0;
    transition: all var(--transition-fast);
}

.footer-section a:hover,
.footer-section li:hover {
    color: var(--secondary-color);
    padding-left: var(--space-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-sm);
}

.footer-motto {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: var(--font-size-base);
}

/* ========== ANIMATIONS ========== */

.modal.active .modal-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: slideInUp 0.5s ease-out;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

/* ========== FLOATING BACKGROUND SHAPES ========== */

section {
    position: relative;
}

/* Floating shape 1 - Top left */
section::after {
    content: '';
    position: absolute;
    top: -150px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Floating shape 2 - Bottom right */
section::before {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-medium 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays on top of floating shapes */
section > * {
    position: relative;
    z-index: 1;
}

/* Additional floating elements for visual interest */
.hero::after {
    animation: float-fast 12s ease-in-out infinite;
}

.timeline-section::before {
    animation: float-slow 18s ease-in-out infinite;
}

.social-work-section::after {
    animation: float-medium 16s ease-in-out infinite;
}

.strategic-section::before {
    animation: float-fast 14s ease-in-out infinite;
}
