/* 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-inside {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

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

.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-inside a.active {
    background: #2C5080;
    color: white;
}

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

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

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

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

.navbar-inside {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: clamp(10px, 3vw, 15px) clamp(18px, 5vw, 50px);
}

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

.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: auto;
    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(15px, 2vw, 25px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.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);
    margin-bottom: 10px;
}

.project-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: white;
    width: 98%;
    margin-top: 10px;
    margin-left: 10px;
}

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

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

.image-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* allows responsiveness */
}

.project-media {
    width: clamp(380px, 33vw, 650px);
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin-top: 10px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

.header-wrapper {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap; /* allows responsiveness */
    margin-top: 10px;
}

h1 {
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.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);
}

@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: 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; }

    .nav-links {
        gap: 12px;
    }

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

    .project-card {
        margin-top: 3.5rem;
    }
    .project-image {
        width: 90%;
    }
    .project-media {
        width: 90%;
    }
    .project-title {
        margin-bottom: 10px;
    }
    .nav-links-inside a {
        font-size: clamp(8px, 3vw, 10px);
    }
}

.mobile-only{ display: none; }

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