/* Header and Navigation styles */
.hero {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

nav.scroll-down {
    transform: translateY(-100%);
}

nav.scroll-up {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    min-width: 140px;
}

.name {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    flex: 1;
    margin: 0 20px;
    color: #fff;
    text-decoration: none;
}

.timer {
    min-width: 140px;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
}

/* Contact button styling */
.contact-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced styling for the CONTACT button specifically */
.nav-buttons a:last-child {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-buttons a:last-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.8s;
}

.nav-buttons a:last-child:hover::before {
    left: 100%;
}

.nav-buttons a:last-child:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Styling for non-CONTACT buttons */
.nav-buttons a:not(:last-child) {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.nav-buttons a:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.8s;
}

.nav-buttons a:not(:last-child):hover::before {
    left: 100%;
}

.nav-buttons a:not(:last-child):hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Footer styles */
footer {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    margin-top: 40px;
    position: relative;
    width: 100%;
}

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

.social-icon {
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

.location {
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile menu styles */
.hamburger-menu {
    display: none;
    position: relative;
    z-index: 9999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center;
}

.hamburger-icon span:first-child {
    top: 0;
}

.hamburger-icon span:last-child {
    bottom: 0;
}

.hamburger-open .hamburger-icon span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 28px;
    height: 3px;
}

.hamburger-open .hamburger-icon span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    width: 28px;
    height: 3px;
}

.hamburger-open .hamburger-icon {
    transform: rotate(0deg);
    transition: transform 0.4s ease 0.1s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
    justify-content: flex-start;
    padding: 25px;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 9999;
    background: transparent;
    padding: 40px 20px 20px 20px;
    width: 100%;
    height: auto;
}

.mobile-menu-item {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 5px 0;
}

.mobile-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.mobile-menu-item:hover {
    transform: translateX(10px);
}

.mobile-menu-item:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1500px) {
    .hamburger-menu {
        display: flex;
        margin-left: auto;
    }
    .nav-buttons {
        display: none;
    }
    .mobile-menu {
        display: flex;
    }
}

@media (max-width: 1200px) {
    .projects-container {
        padding: 100px 0 30px;
    }
    
    .projects-header h1, 
    .timeline {
        font-size: 60px;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
}

@media (max-width: 992px) {
    .name {
        font-size: 20px;
    }
    
    .timer {
        min-width: 120px;
        font-weight: 600;
    }
    
    nav {
        padding: 0.8rem 1.5rem;
    }
    
    .projects-header h1,
    .timeline {
        font-size: 48px;
    }
    
    .project-title {
        font-size: 28px;
        padding: 15px 0;
    }
    
    .detail {
        font-size: 10px;
        padding: 8px 2px;
    }
}

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

    .projects-container {
        padding: 80px 0 20px;
    }

    .projects-header {
        margin-bottom: 30px;
        flex-direction: column;
    }
    
    .timeline {
        margin-top: 10px;
    }
    
    .project-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 15px 10px;
    }
    
    footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .name {
        font-size: 18px;
        margin: 0 10px;
    }
    
    .timer {
        min-width: 100px;
        font-size: 11px;
        font-weight: 600;
    }
    
    .hamburger-menu {
        min-width: 28px;
    }
}

@media (max-width: 480px) {
    .projects-header h1,
    .timeline {
        font-size: 36px;
    }
    
    .project-title {
        font-size: 20px;
        padding: 10px 0;
    }
    
    .project-details {
        flex-direction: column;
    }
    
    .detail {
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 8px 0;
    }
    
    .detail:last-child {
        border-bottom: none;
    }
}

/* Projects Layout */
.projects-container {
    padding-top: 100px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    padding: 0 24px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.projects-header h1 {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 0px;
    margin: 0;
    line-height: 1;
}

.timeline {
    font-size: 72px;
    font-weight: 900;
    color: rgba(255, 255, 255, 1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 24px;
}

.project-item {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 20px 0 10px;
    color: #fff;
    z-index: 2;
    background: rgba(0,0,0,0.6);
    transform: translateZ(0);
}

.project-tech {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 10px 0 15px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    background: rgba(0,0,0,0.6);
    transform: translateZ(0);
}

/* Add a gradient overlay to ensure text readability */
.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
    z-index: 1;
}

.project-details {
    display: none;
}

.detail {
    display: none;
}

/* Main layout structure */
body {
    min-height: 100vh;
}

main {
    width: 100%;
    padding-bottom: 60px; /* Add space above footer */
}

.project-warning {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.project-link:hover .project-image img {
    transform: scale(1.05);
}

.project-link:hover .project-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.language-switch {
    background: transparent !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    margin-left: 15px !important;
    font-family: Arial, sans-serif !important;
    outline: none !important;
}

.language-switch:hover {
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
}

.language-switch.mobile {
    margin: 20px 0 0 0 !important;
    display: block !important;
    width: fit-content !important;
    align-self: flex-start !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    font-family: Arial, sans-serif !important;
    outline: none !important;
}

.language-switch.mobile:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .language-switch:not(.mobile) {
        display: none;
    }
}
