/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F5EBDD;
    color: #1F2937;
    line-height: 1.6;
}

/* NAVBAR */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
}

.nav h1 {
    font-size: 24px;
    font-weight: 600;
}

.nav a {
    font-size: 24px;
    margin-left: 24px;
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #A78BFA;
    left: 0;
    bottom: -4px;
    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.blob {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
    animation: floatBlob 20s ease-in-out infinite;
}

/* Individual positions + delays */
.blob1 {
    background: #A78BFA;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.blob2 {
    background: #F472B6;
    top: 60%;
    left: 70%;
    animation-delay: 5s;
}

.blob3 {
    background: #FACC15;
    top: 30%;
    left: 40%;
    animation-delay: 10s;
}

.blob4 {
    background: #7696c4;
    top: 90%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(80px, -120px) scale(1.1) rotate(90deg);
    }

    50% {
        transform: translate(-100px, 60px) scale(0.9) rotate(180deg);
    }

    75% {
        transform: translate(120px, 80px) scale(1.05) rotate(270deg);
    }

    100% {
        transform: translate(0px, 0px) scale(1) rotate(360deg);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.cursor-dot {
    width: 12px;
    height: 12px;
    background: #1F2937;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
}

/* HERO */
.role {
    user-select: none;
    font-size: 20px;
    color: #6B7280;
    font-weight: 500;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 60px;
    gap: 40px;
}

.hero-text h2 {
    font-size: 52px;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 48px;
    margin-bottom: 24px;
}

.btn {
    background: linear-gradient(135deg, #A78BFA, #F472B6);
    padding: 12px 26px;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* HERO IMAGE */
.hero-img img {
    width: 320px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* FEATURED */
.featured {
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

/* FILTERS */
.filters {
    padding: 20px 60px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filters button {
    border: none;
    background: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.3s;
}

.filters button:hover {
    background: #A78BFA;
    color: white;
}

/* GRID */
/* .grid {
    padding: 40px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
} */
.grid {
    column-count: 3;
    column-gap: 20px;
    padding: 40px 60px;
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F5EBDD;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.page-transition.active {
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* PROJECT STYLE */
.project-nav {
    display: flex;
    justify-content: space-between;
    padding: 40px 60px;
    max-width: 1100px;
    margin: auto;
}

.project-nav a {
    cursor: pointer;
    text-decoration: none;
    background: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    transition: 0.3s;
}

.project-nav a:hover {
    background: #A78BFA;
    color: white;
}

.project-page {
    padding: 80px 60px;
    max-width: 1100px;
    margin: auto;
}

.project-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.project-hero p {
    font-size: 18px;
    color: #6B7280;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.project-meta span {
    background: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
}

/* GALLERY */
.project-gallery {
    column-count: 2;
    column-gap: 20px;
}

.gallery-item {
    margin-bottom: 20px;
    break-inside: avoid;
}

.gallery-item img {
    width: 100%;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.fade-up:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-up:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-up:nth-child(3) {
    transition-delay: 0.3s;
}

/* CARD */
.card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 14px;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    text-decoration: none;

}

.card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: 0.4s;
}

.card h3 {
    color: #1F2937;
    font-size: 16px;
    font-weight: 500;
}

/* HOVER MAGIC */
.card:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card:hover img {
    transform: scale(1.05);
}

/* PROJECT PAGE */
#projectDetail {
    padding: 80px 60px;
    max-width: 900px;
    margin: auto;
}

#projectDetail h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

#projectDetail img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
}

#projectDetail p {
    font-size: 16px;
}

.cursor {
    display: inline-block;
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 1000px) {
    .grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .grid {
        column-count: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cursor-dot {
        display: none !important;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-img img {
        width: 240px;
    }

    .nav {
        padding: 12px;
    }

    .nav h1 a {
        margin-left: 0px;
    }

    .grid,
    .featured {
        padding: 20px;
    }

    .project-gallery {
        column-count: 1;
    }
}

@media (max-width: 425px) {
    .nav a {
        font-size: 18px;
    }

    .hero-text h2 {
        font-size: 38px;
        margin-bottom: 16px;
    }

    .hero-text p {
        font-size: 32px;
        margin-bottom: 24px;
    }
}