/* Modern Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root {
    /* Light theme colors */
    --primary-color: #2563eb;
    --accent-color: #dc2626;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-overlay: rgba(255, 255, 255, 0.98);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --white: #ffffff;
}

/* Dark theme colors */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --accent-color: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-overlay: rgba(15, 23, 42, 0.98);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --card-bg: #1e293b;
    --border-color: #334155;
    --heading-color: #e2e8f0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--bg-primary);
}

/* Add section-specific background colors */
section {
    background-color: var(--bg-primary);
}

section.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)),
                url('../asset/images/everest-background.jpg');
    background-size: cover;
    background-position: center;
}

[data-theme="dark"] section {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .container {
    background-color: var(--bg-primary);
}

/* Update specific sections that need different backgrounds */
.gallery,
.media,
.about,
.contact {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .gallery,
[data-theme="dark"] .media,
[data-theme="dark"] .about,
[data-theme="dark"] .contact {
    background-color: var(--bg-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)),
                url('../asset/images/everest-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin-left: 10%;
    color: var(--white);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: var(--primary-color);
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Add animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Gallery */
.gallery {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.gallery-scroll {
    width: 100%;
    overflow-x: auto;
    padding: 20px;
    position: relative;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.gallery-item {
    width: 300px;
    height: 200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-item-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Add scroll buttons */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-nav button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-nav button:hover {
    opacity: 0.9;
}

/* Blog Cards */
.blog {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.blog-card-header {
    position: relative;
}

.blog-card-header img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-author {
    position: absolute;
    bottom: -30px;
    left: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.author-credentials {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.author-role {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.blog-card-content {
    padding: 40px 25px 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-content {
    margin: 20px 0;
}

.blog-content.hidden {
    display: none;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Animation for content expansion */
.blog-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.blog-content.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.blog-gallery {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.blog-gallery h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

.blog-card-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.blog-card-gallery img:hover {
    transform: scale(1.05);
}

.read-more {
    width: 100%;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card h3 {
        font-size: 1.5rem;
    }

    .blog-excerpt {
        font-size: 1rem;
    }

    .gallery-item {
        width: 280px;
        height: 60vw;
    }
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: #f8fafc;
}

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

.stat-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Mission Section */
.mission {
    padding: 80px 0;
}

.mission h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.mission-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mission-text p {
    margin-bottom: 20px;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background-color: #fff;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background-color: #f8fafc;
}

.blog h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.blog-card-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.blog-card-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-color);
} 

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 1001;
}

/* Add navigation arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1001;
}

.modal-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Full blog styles */
.full-blog {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.back-to-blogs {
    margin-bottom: 20px;
}

.full-width-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.blog-full {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-image {
    cursor: pointer;
    transition: opacity 0.3s;
}

.preview-image:hover {
    opacity: 0.8;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.mission-statement {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 60px;
    padding: 0 20px;
}

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

.value-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.team-section, .services-section {
    margin-bottom: 80px;
}

.team-section h3, .services-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

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

.team-member {
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

.support-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.support-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .mission-statement {
        font-size: 1.1rem;
    }
    
    .values-grid, .team-grid, .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.footer {
    padding: 40px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.social-media {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.social-text {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.social-links-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.social-media .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.social-media .social-link:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Mobile responsiveness for social media section */
@media (max-width: 480px) {
    .social-media {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}

.creator-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.github-link i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 15px;
    }
}

/* Media Section */
.media {
    padding: 100px 0;
    background: var(--white);
}

.media-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.media-category {
    margin-bottom: 20px;
}

.media-category h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.media-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.media-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.media-link i {
    font-size: 2rem;
    color: var(--primary-color);
}

.media-link-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.media-link-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.video-links .media-link i {
    color: #ff0000;
}

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

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.gallery-filter-btn {
    padding: 8px 20px;
    border: none;
    background: var(--white);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.gallery-filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-scroll {
    position: relative;
}

.gallery-loading,
.gallery-error {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.gallery-error {
    background: var(--white);
    border-radius: 10px;
    margin: 20px;
}

/* Hero Section Responsive Updates */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-content {
        margin-left: 5%;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    /* Navigation Mobile Styles */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-overlay);
        backdrop-filter: blur(10px);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* Hero Mobile Styles */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        margin: 0 20px;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo {
        height: 40px;
    }

    .navbar {
        padding: 15px 0;
    }
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

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

/* Add these new styles for better dark mode handling */
[data-theme="dark"] .section-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

[data-theme="dark"] .value-card,
[data-theme="dark"] .team-member,
[data-theme="dark"] .service-card,
[data-theme="dark"] .media-link {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .hero-stats {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .gallery::after {
    background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.9));
}

[data-theme="dark"] .modal {
    background-color: rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .gallery-filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .gallery-filter-btn:hover,
[data-theme="dark"] .gallery-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .footer {
    border-top: 1px solid var(--border-color);
}

/* Update existing styles to use CSS variables */
.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Add smooth transitions for theme switching */
.section-header h2,
.section-tag,
.section-subtitle,
.value-card,
.team-member,
.service-card,
.media-link,
.gallery-filter-btn {
    transition: all 0.3s ease;
}

/* Improve card hover effects in dark mode */
[data-theme="dark"] .value-card:hover,
[data-theme="dark"] .team-member:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .media-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

/* Add dark mode specific text colors */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: var(--heading-color);
}

[data-theme="dark"] .value-card,
[data-theme="dark"] .team-member,
[data-theme="dark"] .service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .value-card h3,
[data-theme="dark"] .team-member h4,
[data-theme="dark"] .service-card h4 {
    color: var(--heading-color);
}

[data-theme="dark"] .value-card p,
[data-theme="dark"] .team-member p,
[data-theme="dark"] .service-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .role {
    color: var(--primary-color) !important;
    opacity: 0.9;
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-secondary);
}

/* Improve dark mode card styles */
[data-theme="dark"] .value-card i,
[data-theme="dark"] .service-card i {
    color: var(--primary-color);
    opacity: 0.9;
}

/* Update gallery item overlay in dark mode */
[data-theme="dark"] .gallery-item-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

[data-theme="dark"] .gallery-item-overlay h3 {
    color: #ffffff;
}

[data-theme="dark"] .gallery-item-overlay p {
    color: #e2e8f0;
}