/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background: #f0f0f0;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(16px, 3vw, 32px) clamp(24px, 5vw, 80px);
    width: min(90vw, 1440px);
    margin: 0 auto;
}

.nav-dots {
    display: flex;
    gap: 5px;
    cursor: pointer;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.dot-1 { background: #C3B0CA; }
.dot-2 { background: #799FCE; }
.dot-3 { background: #518AC2; }
.dot-4 { background: #B070AC; }
.dot-5 { background: #F6B793; }

.nav-links {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: #2C5080;
    font-size: clamp(20px, 1.5vw, 16px);
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-links a.active {
    background: #2C5080;
    color: white;
}

.nav-links a:hover {
    background: #2C5080;
    color: white;
}

.nav-links a.active:hover {
    background: #5A8AC0;
}

/* About Section - same structure as index.html */
.main-section {
    width: 100%;
}

.frame {
    width: min(92vw, 1440px);
    background-image: url("../assets/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-position: top center;
    margin: 0 auto;
    position: relative;
}

.project-content {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: clamp(30px, 5vw, 60px) clamp(40px, 6vw, 80px) 24px;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto 50px auto;
}

.project-card {
    width: 100%;
    height: 250px;
    background: rgba(68, 115, 177, 0.8);
    backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 35px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card-1 {
    width: 100%;
    height: 250px;
    background: rgba(68, 115, 177, 0.8);
    backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 35px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.project-card-1:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.project-info {
    flex: 1;
    color: white;
    overflow: hidden;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px; /* space between title and stack */
}

.project-title {
    font-family: "Archivo Black", sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #F6B793;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.project-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: white;
    width: 85%;
}

.stack {
    height: clamp(1rem, 1.5vw, 1.3rem);
    width: auto;
}

.project-image {
    width: 10%;
    max-width: 280px;
    min-width: 100px;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 10px auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

.project-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.project-card-link:hover .project-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
    .hero-container,
    .main-section,
    .frame {
        width: 100%;
        margin: 0;
    }

    .frame {
        position: relative;
        min-height: 100svh;  /* full screen on mobile */
        overflow: hidden;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 120%;
        object-fit: cover;
        z-index: 0;
    }

    .hero-title,
    .navbar {
        position: absolute;
        z-index: 10;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 20px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

        width: 95%;
        display: inline-flex;
        justify-content: center;
    }

    .nav-dots { display: none; }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 15px;
        padding: 6px 12px;
    }

    .project-card {
        height: 350px;
        margin-top: 0px;
    }
    .project-card-1 {
        margin-top: 3.5rem;
        height: 350px;
    }

    .project-title {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .project-description {
        font-size: clamp(0.9rem, 1vw, 1.1rem);
        line-height: 1.6;
        color: white;
        width: 80%;
    }
    .stack {
        max-width: 100%;
        height: 18px;
        flex: 0 0 auto;
        transform: translateY(-5px);
    }
    .project-header {
        flex-wrap: wrap;
        align-items: flex-start;
        
    }
    .project-info {
        flex: 1;
        color: white;
        overflow: hidden; 
    }
}

.mobile-only{ display: none; }

@media (max-width: 768px){
    .desktop-only{ display: none; }
    .mobile-only{ display: block; }
}
