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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logoImg {
    height: 2.5rem;
    width: auto;
    margin-right: 1rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logoImg:hover {
    transform: scale(1.05);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    color: #E0121A;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: #E0121A;
}

/* HAMBURGER MENU */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 90;
    transition: right 0.4s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(224, 18, 26, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 6rem 2rem 2rem;
}

.mobile-menu-section {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-title {
    width: 100%;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 1.2rem 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-menu-title:hover {
    color: #E0121A;
    background-color: rgba(224, 18, 26, 0.05);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-menu-section.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(255, 255, 255, 0.02);
}

.mobile-menu-section.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu-link {
    display: block;
    color: #CCCCCC;
    text-decoration: none;
    padding: 1rem 1.5rem 1rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-submenu-link:hover {
    color: #FFFFFF;
    background-color: rgba(224, 18, 26, 0.1);
    border-left-color: #E0121A;
    padding-left: 2.5rem;
}

.desktop-only {
    display: flex;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .desktop-only {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
    }
    
    .mobile-menu-title {
        font-size: 1.1rem;
        padding: 1rem 0.8rem;
    }
    
    .mobile-submenu-link {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem 0.9rem 1.5rem;
    }
}

/* BACKDROP */
.backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background-color: #000000;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
    padding: 2rem;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.sidebar-title {
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    font-weight: 300;
}

.close-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

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

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-link {
    display: block;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    color: #E0121A;
    border-bottom-color: rgba(224, 18, 26, 0.5);
}

/* COMMON SECTION STYLES */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.section-container-full {
    padding: 8rem 0 4rem;
}

.section-title {
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    color: #E0121A;
    font-weight: 300;
    margin-bottom: 4rem;
}

/* PROJECTS SECTION */
.projects-section {
    min-height: 100vh;
    background-color: #000000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(224, 18, 26, 0.3);
    box-shadow: 0 10px 40px rgba(224, 18, 26, 0.2);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 2rem;
}

.project-name {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background-color: rgba(224, 18, 26, 0.1);
    border: 1px solid rgba(224, 18, 26, 0.3);
    color: #E0121A;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border-radius: 20px;
    font-weight: 600;
}

/* TECH SECTION */
.tech-section {
    min-height: 100vh;
    background-color: #0a0a0a;
}

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

.tech-card {
    background-color: #0f0f0f;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 18, 26, 0.3);
    background-color: rgba(224, 18, 26, 0.05);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.tech-name {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.tech-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #999999;
    font-weight: 300;
}

/* COMPETITIONS SECTION */
.competitions-section {
    min-height: 100vh;
    background-color: #000000;
}

.competitions-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.competition-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: #0a0a0a;
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.competition-info {
    display: flex;
    flex-direction: column;
}

.competition-name {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #E0121A;
    margin-bottom: 2rem;
}

.competition-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.detail-icon {
    font-size: 1.5rem;
}

.detail-text {
    letter-spacing: 0.05em;
    color: #cccccc;
}

.competition-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #999999;
    font-weight: 300;
}

.competition-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(224, 18, 26, 0.2);
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(100%);
}

/* GALLERY SECTION */
.gallery-section {
    min-height: 100vh;
    background-color: #0a0a0a;
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin: 0 auto;
}

.gallery-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
}

.gallery-caption p {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    font-weight: 300;
    text-align: center;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-arrow:hover {
    background-color: rgba(224, 18, 26, 0.8);
}

.gallery-arrow-left {
    left: 2rem;
}

.gallery-arrow-right {
    right: 2rem;
}

.gallery-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.gallery-indicator {
    width: 3rem;
    height: 0.25rem;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.gallery-indicator.active {
    background-color: #E0121A;
}

/* FOOTER */
footer {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: #888888;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .competition-card {
        grid-template-columns: 1fr;
    }

    .competition-map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }

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

    .sidebar {
        width: 80%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .competition-name {
        font-size: 2rem;
    }

    .competition-card {
        padding: 2rem;
    }

    .gallery-caption p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-btn {
        font-size: 0.7rem;
    }
}

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

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .competition-name {
        font-size: 1.5rem;
        letter-spacing: 0.15em;
    }

    .detail-item {
        font-size: 0.9rem;
    }

    .gallery-slider {
        height: 50vh;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logoImg {
        height: 2rem;
    }
}