/* Basics and Variables */
:root {
    /* Team Colors - Purple Shades Only */
    --primary-purple: #5D1F56;
    --purple-dark: #4A1945;
    --purple-medium: #7A3A72;
    --purple-light: #9B5A93;
    --purple-soft: #C49ABF;
    --purple-pale: #E9D9E7;
    
    /* Team Neutral Colors */
    --dark-gray: #292421;
    --medium-gray: #4A4542;
    --light-gray: #F5F5F5;
    --neutral-gray: #BDBCC1;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Effects */
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    
    /* Sizes */
    --container-width: 1200px;
    --section-spacing: 6rem;
    --card-radius: 16px;
    --button-radius: 8px;
}

/* Reset and General Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    direction: ltr;
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-purple), var(--purple-medium));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: var(--button-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-medium));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--purple-medium), var(--primary-purple));
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* ===== NAVBAR - Like Portfolio ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

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

.nav-logo .logo-placeholder {
    display: flex;
    flex-direction: column;
}

.nav-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-gray);
    letter-spacing: 0.5px;
}

.nav-logo .team-number {
    font-size: 0.9rem;
    color: var(--primary-purple);
    margin-top: 0.2rem;
    font-weight: 600;
}

/* Menu Button (Hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--dark-gray);
    transition: var(--transition);
    z-index: 1001;
}

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

/* Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

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

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

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

/* Language Toggle Button */
.lang-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    background-color: var(--white);
    color: var(--dark-gray);
    border: 2px solid var(--neutral-gray);
    border-radius: 50px;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lang-toggle:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Back to Top Button - Left Side */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--white);
    color: var(--primary-purple);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--neutral-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.back-to-top:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 8px 20px rgba(93, 31, 86, 0.2);
}

/* ===== RESPONSIVE - Like Portfolio ===== */
@media (max-width: 768px) {
    /* Menu button appears on mobile */
    .nav-toggle {
        display: block;
        order: 2; /* Makes the button at the end */
    }
    
    /* Menu becomes vertical on mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 85%;
        height: 100vh;
        padding: 6rem 2rem 2rem;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 998;
        margin: 0;
        gap: 0;
        text-align: left;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1.2rem 0;
        border-bottom: 1px solid var(--light-gray);
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-link:hover {
        color: var(--primary-purple);
        background-color: var(--light-gray);
        padding-left: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Logo in the center on mobile */
    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    
    .nav-logo .logo-placeholder {
        align-items: center;
    }
    
    .logo-text {
        font-size: 1.2rem;
        white-space: nowrap;
    }
    
    .team-number {
        font-size: 0.8rem;
    }
    
    /* Fix container */
    .nav-container {
        position: relative;
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    /* Language button on mobile */
    .lang-toggle {
        top: 1.2rem;
        right: 1.2rem;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        z-index: 1002;
    }
    
    /* Back to top button on mobile */
    .back-to-top {
        left: 1rem;
        bottom: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        width: 90%;
        padding: 5rem 1.5rem 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .lang-toggle {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .back-to-top {
        left: 0.8rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 400px) {
    .nav-logo .logo-text {
        font-size: 1rem;
    }
    
    .nav-logo .team-number {
        font-size: 0.7rem;
    }
    
    .lang-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .nav-toggle {
        font-size: 1.3rem;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark-gray);
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    color: var(--dark-gray);
}

.team-number-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-medium));
    color: var(--white);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeIn 1s ease 0.5s both;
}

.image-placeholder {
    width: 100%;
    height: 380px;
    background-color: var(--light-gray);
    border-radius: var(--card-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    border: 2px dashed var(--neutral-gray);
    transition: var(--transition);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1.2rem;
    color: var(--neutral-gray);
}

.image-placeholder span {
    font-size: 1.1rem;
    text-align: center;
    font-weight: 500;
}

/* Team image in Hero */
.team-real-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--card-radius);
    border: 2px solid var(--light-gray);
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-top: 30px;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--medium-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.value-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-purple);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    box-shadow: 0 8px 20px rgba(93, 31, 86, 0.15);
}

.value-icon i {
    font-size: 2.2rem;
    color: var(--white);
}

.value-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.value-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* FTC Section */
.ftc-section {
    background-color: var(--light-gray);
}

.ftc-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--medium-gray);
}

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

.skill-item {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--purple-dark), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    box-shadow: 0 8px 20px rgba(74, 25, 69, 0.15);
}

.skill-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.skill-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
}

.skill-item p {
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* Team Members Section */
.team-section {
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-purple);
}

.member-image {
    height: 220px;
    overflow: hidden;
}

.member-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.team-card:hover .member-real-image {
    transform: scale(1.05);
}

.member-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 1rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.member-desc {
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Robot Section */
.robot-section {
    background-color: var(--light-gray);
}

.robot-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Robot image container */
.robot-image {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Actual robot image */
.robot-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.robot-real-image:hover {
    transform: scale(1.02);
}

/* Placeholder (only shows if no image) */
.robot-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #000000;
    border-radius: var(--card-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.robot-img-placeholder.hidden {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.robot-img-placeholder i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--purple-medium);
    animation: pulse 2s infinite;
}

.robot-img-placeholder span {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.placeholder-note {
    font-size: 0.9rem;
    color: #999999;
    text-align: center;
    margin-top: 0.5rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.robot-details h3 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.robot-details p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--medium-gray);
}

.robot-features {
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
}

.feature-text p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--medium-gray);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--white);
}

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

.gallery-item {
    height: 280px;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

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

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Icon over image */
.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-icon i {
    font-size: 1.8rem;
    color: var(--primary-purple);
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    background-color: var(--primary-purple);
}

.gallery-item:hover .gallery-icon i {
    color: white;
}

/* Ensure icon appears if image fails */
.gallery-image:has(img[src*="svg+xml"]) .gallery-icon {
    opacity: 1;
    background-color: rgba(93, 31, 86, 0.9);
}

.gallery-image:has(img[src*="svg+xml"]) .gallery-icon i {
    color: white;
    font-size: 2rem;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(93, 31, 86, 0.85);
    color: var(--white);
    text-align: center;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 3;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Sponsors Section */
.sponsors-section {
    background-color: var(--light-gray);
}

.sponsor-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background-color: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

.sponsor-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--dark-gray);
}

.sponsor-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

.btn-sponsor {
    background: linear-gradient(135deg, var(--purple-dark), var(--primary-purple));
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.btn-sponsor:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
}

/* Simple Design */
.sponsors-simple-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sponsors-top-image {
    width: 40%;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.sponsors-top-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--card-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-purple);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-medium));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.contact-details p {
    color: var(--medium-gray);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.btn-join {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 0.6rem 1.8rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.social-link:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(93, 31, 86, 0.15);
}

.contact-form {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
    color: var(--dark-gray);
}

.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--neutral-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    transition: var(--transition);
    color: var(--dark-gray);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235D1F56' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(93, 31, 86, 0.1);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--medium-gray);
    opacity: 0.8;
    transition: var(--transition);
    pointer-events: none;
    background-color: var(--white);
    padding: 0 0.5rem;
    font-size: 1rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: -0.6rem;
    font-size: 0.85rem;
    opacity: 1;
    color: var(--primary-purple);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 4rem 0 2rem;
}

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

.footer-logo .logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.footer-logo .logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
}

.footer-logo .team-number {
    font-size: 1rem;
    color: var(--neutral-gray);
    margin-top: 0.3rem;
}

.footer-tagline {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.7;
    max-width: 300px;
    text-align: left;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--neutral-gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
    padding-right: 0;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.9;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.footer-social a {
    color: var(--neutral-gray);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--purple-medium);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: var(--neutral-gray);
}

.footer-bottom p {
    margin-bottom: 0.8rem;
}

.ftc-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

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

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

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .hero-section .container,
    .robot-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 85%;
        height: calc(100vh - 80px);
        padding: 2rem;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .values-grid,
    .skills-grid,
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .lang-toggle {
        top: 1.2rem;
        right: 1.2rem;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 8rem;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.3rem;
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .team-number-badge {
        font-size: 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .values-grid,
    .skills-grid,
    .team-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-card {
        flex-direction: row;
        height: auto;
        padding: 1rem;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .member-real-image {
        height: 100%;
        border-radius: 50%;
    }
    
    .member-info {
        padding: 0 1rem;
        text-align: left;
    }
    
    .team-real-image {
        height: 350px;
        margin-top: 20px;
    }
    
    .lang-toggle {
        top: 1rem;
        right: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .back-to-top {
        left: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-tagline {
        margin: 0 auto;
        text-align: center;
    }
}

/* صورة الفريق الجماعية العريضة */
.team-group-photo-wide {
    width: 100%;
    margin: 2rem auto 4rem;
    max-width: 1000px;
}

.group-photo-container {
    position: relative;
    width: 100%;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.group-photo-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.group-wide-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.group-photo-container:hover .group-wide-image {
    transform: scale(1.02);
}

.group-caption-wide {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, 
        rgba(93, 31, 86, 0.95) 0%, 
        rgba(93, 31, 86, 0.7) 50%, 
        transparent 100%);
    padding: 2rem;
    color: var(--white);
}

.group-caption-wide h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.group-caption-wide p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* تعديل المسافة بين صورة الفريق والمجموعة */
.gallery-grid {
    margin-top: 2rem;
}

/* تجاوب صورة الفريق */
@media (max-width: 1200px) {
    .team-group-photo-wide {
        max-width: 900px;
    }
    
    .group-wide-image {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .team-group-photo-wide {
        max-width: 800px;
    }
    
    .group-wide-image {
        height: 350px;
    }
    
    .group-caption-wide h3 {
        font-size: 1.6rem;
    }
    
    .group-caption-wide p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .team-group-photo-wide {
        max-width: 100%;
        margin: 1.5rem auto 3rem;
    }
    
    .group-wide-image {
        height: 300px;
    }
    
    .group-caption-wide {
        padding: 1.5rem;
    }
    
    .group-caption-wide h3 {
        font-size: 1.4rem;
    }
    
    .group-caption-wide p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .group-wide-image {
        height: 250px;
    }
    
    .group-caption-wide {
        padding: 1rem;
    }
    
    .group-caption-wide h3 {
        font-size: 1.2rem;
    }
    
    .group-caption-wide p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .sponsors-top-image {
        width: 85% !important;
        margin: 0 auto 1.5rem !important;
    }
    
    .sponsors-top-image img {
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .sponsors-top-image {
        width: 95% !important;
        margin: 0 auto 1rem !important;
    }
    
    .sponsors-top-image img {
        height: 200px !important;
    }
}

@media (max-width: 400px) {
    .sponsors-top-image {
        width: 100% !important;
        border-radius: 12px !important;
    }
    
    .sponsors-top-image img {
        height: 180px !important;
    }
}