/* ==========================================================================
   Minimalist Tattoo Portfolio - Stylesheet
   Mobile-first responsive design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #666;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
    background-color: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
    padding: 1rem 0;
}

.nav-menu.nav-open {
    display: block;
}

.nav-menu li {
    text-align: center;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #f0f0f0;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

/* Desktop navigation */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        background-color: transparent;
        border-bottom: none;
        padding: 0;
        gap: 2rem;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    .nav-link:hover {
        background-color: transparent;
    }

    .nav-link::after {
        content: '';
        display: block;
        width: 0;
        height: 1px;
        background-color: #1a1a1a;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: rgb(235, 172, 148);
    color: #1a1a1a;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.875rem;
}

.footer-content p {
    color: #1a1a1a;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Gallery Grid (Portfolio Page)
   -------------------------------------------------------------------------- */
.gallery-container {
    padding: 1rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9 / 12;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* Wanna Do Book Button */
.wannado-item {
    position: relative;
}

.book-button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(235, 172, 148);
    color: #1a1a1a;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.book-button:hover {
    background-color: rgb(215, 152, 128);
    color: #1a1a1a;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #999;
}

/* Gallery responsive breakpoints */
@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-title {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Lightbox Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem 0.75rem;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* Lightbox Dot Indicators */
.lightbox-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.lightbox-dot.active {
    background: #fff;
}

/* Responsive: smaller arrows on mobile */
@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 1.5rem;
        padding: 0.75rem 0.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   Hero Section (Homepage)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 300;
    max-width: 600px;
}

@media (min-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Intro Section (Homepage)
   -------------------------------------------------------------------------- */
.intro-section {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-portrait {
    flex-shrink: 0;
}

.about-portrait img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-bio h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.about-bio p {
    font-size: 1rem;
    line-height: 1.8;
}

.instagram-link {
    color: #0066cc;
}

.instagram-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .about-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }

    .about-portrait {
        width: 40%;
        margin-top: 1.5rem;
    }

    .about-bio {
        width: 60%;
    }
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
}

.contact-container h1 {
    margin-bottom: 2rem;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-label {
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   Page Headers
   -------------------------------------------------------------------------- */
.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive Typography
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .main-content {
        padding: 3rem 2rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
}
