/* 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(92vw, 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;
    gap: 20px;
    margin: 0 auto 50px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.project-card {
    width: 100%;
    height: 100%;
    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, 30px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.project-card-1 {
    width: 100%;
    height: 100%;
    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, 30px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.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 {
    width: 100%;
    flex: 1;
    color: white;
    align-self: flex-start;
}

.project-title {
    font-family: "Archivo Black", sans-serif;
    font-size: clamp(1rem, 2vw, 3rem);
    color: #F6B793;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    margin: 0 0;
    text-align: center;
}
.project-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: white;
    width: 100%;
}

.project-image,
video.project-image {
    width: 90%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    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) {
    @media (max-width: 768px) {
        body {
        background: url("../assets/bg.png") center / cover no-repeat;
        min-height: 100svh;
    }
    .frame {
    background-image: none;
        width: 100%;
    }

    .main-section {
        background: transparent;
    }
}

    .hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        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; } /* optional: pills are cleaner without dots */

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 15px;
        padding: 6px 12px;
    }
    .project-content {
        grid-template-columns: 1fr;   /* single column */
        grid-template-rows: auto;     /* let height grow naturally */
    }

    .project-card {
        height: auto;
        margin-top: 0;
    }
    .stack{
        transform: translateY(-5px);
    }
    .project-description {
        width: 98%;
        line-height: 2;
    }
    .project-card-1 {
        margin-top: 3.5rem;
        height: auto;
    }
}

.mobile-only{ display: none; }

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

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        rgba(26, 50, 82, 0.6),
        rgba(121, 159, 206, 0.6)
    );
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.scroll-to-top:hover {
    background: #5A8AC0;
    transform: translateY(-3px);
}