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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fixed navigation that changes based on section */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#navbar.section-about { background: #667eea; }
#navbar.section-projects { background: #764ba2; }
#navbar.section-skills { background: #f093fb; }
#navbar.section-contact { background: #4facfe; }

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

.nav-links a.active {
    background: rgba(255,255,255,0.3);
    font-weight: bold;
}

.lang-buttons {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    right: 0;
}

.lang-btn {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-btn.active {
    background: rgba(255,255,255,0.4);
    font-weight: bold;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    text-align: center;
}

#about {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#projects {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    color: white;
}

#skills {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

#contact {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: bold;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.projects-btn {
    display: inline-block;
    background: white;
    color: #764ba2;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
}

.projects-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Page transition styles */
body {
    overflow-x: hidden;
}

.page-container {
    position: relative;
    min-height: 100vh;
}

.slide-page {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.5s;
    overflow-y: auto;
    visibility: hidden;
}

.slide-page.active {
    left: 0;
    visibility: visible;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

/* Projects page styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-content {
    padding: 1.5rem;
}

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

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #764ba2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.project-link:hover {
    background: #5a3a7a;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.project-extra-link {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Sidebar indicator */
#section-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    background: white;
    transform: scale(1.5);
}

.name {
    font-size: 7rem;
    margin-bottom: 40px;
    font-weight: bold;
}

@media (max-width: 700px) {
    .lang-buttons > span {
        visibility: hidden;
    }

    .lang-buttons > a {
        position: absolute;
    }
}

@media (max-width: 600px) {
    .name {
        font-size: 18.5vw;
    }

    .nav-links {
        width: 80vw;
        gap: 1vw;
    }

    .nav-link {

        visibility: hidden;
    }

    .nav-link.active {
        position: absolute;
        visibility: visible;
    }
}
