/* Common CSS for Cameroon Cultural Festival */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Variables */
    --primary-color: #1a365d;
    --secondary-color: #ff8c00;
    --secondary-dark: #cc7000;
    --accent-color: #e53e3e;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --bg-secondary: #fff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Header & Footer */
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #1a202c;
    --footer-text: #cbd5e0;
}

.dark-theme {
    /* Dark Theme Variables */
    --primary-color: #2d3748;
    --secondary-color: #ff8c00;
    --secondary-dark: #cc7000;
    --accent-color: #fc8181;
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --bg-color: #1a202c;
    --bg-secondary: #2d3748;
    --border-color: #4a5568;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    
    /* Header & Footer */
    --header-bg: rgba(26, 32, 44, 0.95);
    --footer-bg: #171923;
    --footer-text: #a0aec0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.btn-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-link:hover::after {
    transform: translateX(4px);
}

/* Header Styles */
.main-header {
    background-color: var(--header-bg);
    color: var(--text-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .main-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 65px; /* Default size for mobile */
    height: 65px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Remove white background */
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0; /* Remove padding */
}

.logo-text h1 {
    font-size: 1.5rem; /* Slightly smaller on mobile */
    margin-bottom: 0;
    color: var(--text-color);
    font-weight: 500;
}

.tagline {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px; /* Reduced gap for better fit */
}

.nav-list a {
    color: var(--text-color);
    font-weight: 600;
    padding: 6px 0; /* Reduced padding */
    position: relative;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.75rem; /* Significantly reduced font size */
    letter-spacing: 0.3px; /* Slightly reduced letter spacing */
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced gap */
    margin-left: 15px; /* Reduced margin */
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem; /* Slightly smaller */
    cursor: pointer;
    width: 36px; /* Smaller button */
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--secondary-color);
}

.theme-toggle-btn .fa-sun {
    display: none;
}

.dark-theme .theme-toggle-btn .fa-moon {
    display: none;
}

.dark-theme .theme-toggle-btn .fa-sun {
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px; /* Smaller button */
    height: 36px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 22px; /* Smaller hamburger */
    height: 2px;
    background-color: var(--text-color);
    margin: 2.5px 0; /* Reduced margin */
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-logo p {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--footer-text);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Utility Classes */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Responsive Styles - Desktop First Approach */
@media (min-width: 1200px) {
    /* Larger logo on large devices */
    .logo-image {
        width: 80px; /* Increased size on large screens */
        height: 80px;
    }
    
    .logo-text h1 {
        font-size: 1.6rem; /* Slightly larger on large screens */
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    /* Slightly larger nav items on large screens */
    .nav-list a {
        font-size: 0.8rem; /* Slightly larger on large screens */
    }
    
    .nav-list {
        gap: 22px; /* Slightly more space on large screens */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .logo-image {
        width: 70px; /* Medium size for medium-large screens */
        height: 70px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .nav-list {
        gap: 18px; /* Adjusted gap */
    }
    
    .nav-list a {
        font-size: 0.76rem; /* Adjusted font size */
    }
}

@media (max-width: 1100px) {
    .nav-list {
        gap: 16px; /* Further reduced gap for medium screens */
    }
    
    .nav-list a {
        font-size: 0.74rem; /* Slightly smaller */
        letter-spacing: 0.2px;
    }
}

@media (max-width: 1050px) {
    .nav-list {
        gap: 14px; /* Even more reduced gap */
    }
    
    .nav-list a {
        font-size: 0.72rem; /* Even smaller */
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: var(--shadow);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-list.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-list.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-list.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-list.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-list.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-list.active li:nth-child(7) { transition-delay: 0.4s; }
    .nav-list.active li:nth-child(8) { transition-delay: 0.45s; }
    .nav-list.active li:nth-child(9) { transition-delay: 0.5s; }
    
    .nav-list a {
        padding: 14px 0; /* Slightly reduced padding */
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem; /* Larger font for mobile menu */
        text-transform: none;
        letter-spacing: 0;
    }
    
    .nav-list a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .logo-image {
        width: 55px; /* Adjusted for medium mobile */
        height: 55px;
    }
    
    .nav-list {
        width: 280px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .logo-image {
        width: 50px; /* Smaller on very small screens */
        height: 50px;
    }
    
    .nav-list {
        width: 100%;
        right: -100%;
    }
    
    .nav-list.active {
        right: 0;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .logo {
        gap: 10px; /* Reduced gap on very small screens */
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
}