/* ============================================
   CHALLENG'IN GROUP - Main Stylesheet
   Luxury African Lifestyle & Wellness
   ============================================ */

/* ============================================
   VARIABLES & RESET
   ============================================ */

:root {
    /* Colors - Luxury Palette */
    --primary-color: #071262;        /* Deep Blue - Logo Color */
    --secondary-color: #d4a574;      /* Gold/Sand */
    --accent-color: #8b6f47;         /* Bronze */
    --dark-color: #1a1a1a;
    --light-color: #f9f7f4;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.language-selector {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9998;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--light-color);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #071262;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo h1 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo h1 span {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 4px;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    height: 100vh;
    background: url('../src/assets/IMG-20251125-WA0001.jpg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.5),
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.5),
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 15px rgba(0, 0, 0, 0.9);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: var(--light-color);
}

.about-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.vision-ambition {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.vision-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #2c5f8d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.vision-image {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vision-card:hover .vision-image img {
    transform: scale(1.05);
}

.vision-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vision-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Values Section */
.values-section {
    margin-bottom: 80px;
}

.values-title {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

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

.value-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.value-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: var(--transition);
}

.value-item:hover .value-image img {
    transform: scale(1.1);
}

.value-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Mission Section */
.mission-section {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.mission-title {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   POLES SECTION
   ============================================ */

.poles-section {
    background: var(--white);
}

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

.pole-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pole-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pole-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), #2c5f8d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--white);
}

.pole-title {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pole-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pole-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 25px;
}

.pole-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.pole-link:hover {
    color: var(--secondary-color);
}

.pole-link i {
    transition: var(--transition);
}

.pole-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
    background: var(--light-color);
}

/* Empty Gallery State */
.gallery-empty {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.empty-state {
    text-align: center;
    max-width: 500px;
}

.empty-state i {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    opacity: 0.6;
}

.empty-state h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 92, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: var(--white);
    transform: scale(0);
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

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

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

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

.gallery-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}

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

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--secondary-color);
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

/* ============================================
   NEWS/BLOG SECTION
   ============================================ */

.news-section {
    background: var(--white);
}

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

.news-card {
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 30px;
}

.news-date {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
}

.news-title {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.news-link:hover {
    color: var(--secondary-color);
}

.news-link i {
    transition: var(--transition);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Newsletter */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary-color), #2c5f8d);
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
}

.newsletter-box h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    white-space: nowrap;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #2c5f8d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-color);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   JOIN US SECTION
   ============================================ */

.join-section {
    background: var(--white);
}

.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.join-text h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.join-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.join-benefits {
    list-style: none;
}

.join-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-color);
}

.join-benefits i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.join-form {
    background: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.join-form h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.file-label {
    display: block;
    padding: 15px 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-label:hover {
    border-color: var(--secondary-color);
    background: var(--white);
}

.file-label i {
    margin-right: 10px;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */

.partners-section {
    background: var(--light-color);
    padding: 60px 0;
}

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

.partner-logo {
    text-align: center;
    opacity: 0.6;
    transition: var(--transition);
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.partner-logo:hover {
    opacity: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-secondary);
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.footer-section h4 {
    font-size: 1.2rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--secondary-color);
}

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

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --section-padding: 70px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .contact-content,
    .join-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }

    * {
        max-width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 40px 20px;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu .nav-link {
        color: var(--text-color);
        font-size: 1.1rem;
        font-weight: 500;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .vision-ambition,
    .values-grid,
    .poles-grid,
    .gallery-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-prev,
    .gallery-next {
        padding: 15px;
        font-size: 1.5rem;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    .language-selector {
        top: 80px;
        right: 10px;
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .lang-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

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

    .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .pole-icon,
    .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

/* ============================================
   FOLDABLE PHONES (ZFold, etc.)
   ============================================ */

@media (max-width: 912px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

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

    .nav-menu {
        width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .poles-grid,
    .values-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .pole-card,
    .value-item,
    .news-card {
        max-width: 100%;
    }
}

/* ============================================
   EXTRA WIDE SCREENS (Unfolded phones)
   ============================================ */

@media (min-width: 700px) and (max-width: 912px) and (orientation: landscape) {
    .container {
        max-width: 100%;
    }

    .hero {
        min-height: 70vh;
    }

    .poles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media print {
    .navbar,
    .back-to-top,
    .language-selector,
    .footer-social,
    .social-links {
        display: none;
    }
}
