/* =============================================
   PORTFOLIO TATOUEUR - INK MASTER
   Theme: Dark, Artistic, Underground
   ============================================= */

/* Variables */
:root {
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --accent: #c9a227;
    --accent-dark: #a68820;
    --text: #ffffff;
    --text-muted: #888888;
    --text-dark: #666666;
    --border: #2a2a2a;
    --danger: #dc3545;

    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
}

.btn-white {
    background: var(--text);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--accent);
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

.nav-main {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-cta .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.5) 50%, transparent 100%);
}

.hero-content {
    max-width: 700px;
    padding: 2rem 0;
}

.hero-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-scroll span {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* =============================================
   SECTION STYLES
   ============================================= */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-text {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   STYLES GALLERY (Homepage)
   ============================================= */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.style-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
}

.style-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-card:hover img {
    transform: scale(1.1);
}

.style-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.style-card h3 {
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.style-card:hover h3 {
    transform: translateY(0);
    opacity: 1;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: -2rem;
    bottom: -2rem;
    border: 2px solid var(--accent);
    z-index: -1;
}

.about-content {
    padding: 2rem 0;
}

.about-content .section-subtitle {
    text-align: left;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================
   GALLERY PAGE
   ============================================= */
.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: var(--secondary);
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.gallery-item-overlay span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* =============================================
   FLASH SECTION
   ============================================= */
.flash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.flash-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.flash-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.flash-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--primary);
}

.flash-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.flash-info {
    padding: 1.5rem;
    text-align: center;
}

.flash-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.flash-info .size {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.flash-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.flash-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.flash-status.available {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.flash-status.reserved {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

/* =============================================
   PROCESS SECTION
   ============================================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 3rem;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--accent);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
    background: var(--secondary);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    padding: 2rem;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-text::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.contact-item span {
    color: var(--text-muted);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.contact-social svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form {
    background: var(--secondary);
    padding: 3rem;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .btn {
    width: 100%;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
}

.cta h2 {
    margin-bottom: 1rem;
    position: relative;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

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

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: none;
    border: 1px solid var(--text);
    color: var(--text);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .styles-grid,
    .flash-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step::after {
        display: none;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image::before {
        display: none;
    }

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

@media (max-width: 768px) {
    .nav-main {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .hero-text {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .styles-grid,
    .flash-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social,
    .footer-brand {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
