/* ================================
   TUBALAR — Design System
   Vibe: Retro-editorial maximalism
================================ */

:root {
    --coral:   #FF5C3A;
    --yellow:  #FFD93D;
    --teal:    #0B6E6E;
    --cream:   #FFF8F0;
    --ink:     #1A1008;
    --mint:    #C8F5E0;
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-serif:   'DM Serif Display', serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-display);
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}

/* ================================
   NAV
================================ */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--yellow);
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--yellow);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}
.nav-logo:hover { color: var(--coral); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--coral);
    transition: width 0.25s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--yellow); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ================================
   HERO
================================ */
.hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
    padding: 5rem 3rem;
    overflow: hidden;
    background: var(--cream);
}

.hero-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 7vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
    animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title em {
    font-style: italic;
    color: var(--coral);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--teal);
    max-width: 400px;
    margin-top: 2rem;
    line-height: 1.6;
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero-btn {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.2rem;
    background: var(--coral);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: 3px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: fadeUp 0.7s 0.3s ease both;
    align-self: flex-start;
}
.hero-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--ink);
}

/* Hero inline gallery */
.hero-gallery {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero-gallery-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.hero-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.8rem;
}

.hero-gallery-item {
    border: 3px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease;
}
.hero-gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero-gallery-item:nth-child(2) { transition-delay: 0.08s; }
.hero-gallery-item:nth-child(3) { transition-delay: 0.16s; }
.hero-gallery-item:nth-child(4) { transition-delay: 0.24s; }
.hero-gallery-item:nth-child(5) { transition-delay: 0.32s; }
.hero-gallery-item:nth-child(6) { transition-delay: 0.40s; }
.hero-gallery-item:hover {
    border-color: var(--coral);
    transform: translateY(-4px) !important;
}

.hero-gallery-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hero-gallery-item:hover img {
    transform: scale(1.04);
}

/* Decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}
.blob-1 {
    width: 500px; height: 500px;
    background: var(--yellow);
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}
.blob-2 {
    width: 350px; height: 350px;
    background: var(--coral);
    bottom: -50px; right: 200px;
    animation: float 10s 2s ease-in-out infinite;
}
.blob-3 {
    width: 250px; height: 250px;
    background: var(--mint);
    top: 50%; left: 40%;
    animation: float 7s 1s ease-in-out infinite;
}

/* ================================
   GALLERY (shared overlay style)
================================ */
.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(10,10,10,0.85));
    color: var(--yellow);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ================================
   LIGHTBOX
================================ */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
#lightbox.active {
    display: flex;
}
#lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border: 4px solid var(--yellow);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: fadeUp 0.3s ease both;
}
.lightbox-close {
    position: fixed;
    top: 1.5rem; right: 2rem;
    background: var(--coral);
    border: 3px solid var(--ink);
    color: #fff;
    font-size: 1.1rem;
    width: 44px; height: 44px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.15s ease, background 0.15s;
    z-index: 1001;
}
.lightbox-close:hover {
    background: var(--yellow);
    color: var(--ink);
    transform: rotate(90deg);
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.04); }
}

/* ================================
   ABOUT PAGE
================================ */
.about {
    max-width: 760px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.about-header { margin-bottom: 3rem; }
.about-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.02em;
}
.tagline {
    font-size: 1.1rem;
    color: var(--coral);
    font-weight: 700;
    margin-top: 0.5rem;
}
.about-bio, .about-skills, .about-contact {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px dashed #ddd;
}
.about-bio h2, .about-skills h2, .about-contact h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--teal);
}
.about-skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
}
.about-skills li {
    background: var(--yellow);
    color: var(--ink);
    padding: 0.4rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--ink);
}
.about-contact a { color: var(--coral); font-weight: 700; }

/* ================================
   CONTACT PAGE
================================ */
.page {
    max-width: 600px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.page h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
label {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}
input, textarea {
    padding: 0.9rem 1rem;
    border: 3px solid var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
input:focus, textarea:focus {
    border-color: var(--coral);
    box-shadow: 4px 4px 0 var(--coral);
}

/* ================================
   BUTTON
================================ */
.btn, button[type="submit"] {
    display: inline-block;
    padding: 1rem 2.2rem;
    background: var(--coral);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: 3px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    align-self: flex-start;
}
.btn:hover, button[type="submit"]:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--ink);
}

/* ================================
   FLASH MESSAGES
================================ */
.flash {
    padding: 1rem 1.4rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid;
    font-weight: 700;
}
.flash.success { background: var(--mint); border-color: var(--teal); color: var(--teal); }
.flash.error   { background: #ffe5e0; border-color: var(--coral); color: var(--coral); }