/* ==============================
   AJAZZX ART - MASTER STYLESHEET
   ============================== */

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --navbar-height: 64px; /* adjust if navbar height differs */
    --content-max-width: 720px; /* shared max width for hero and form (mobile-first) */
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* General Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: black;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

/* ==============================
   NAVIGATION BAR
   ============================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10,10,10,0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4vw;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.6);
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-left: 5px;
}

/* Make nav links slightly larger and with letter spacing for a modern feel */
.navbar ul li a {
    letter-spacing: 0.06em;
    padding: 8px 6px;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #f4a261;
}

/* Mobile Navigation (Hamburger Menu) */
.hamburger {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    margin-right: 5px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.1);
    text-align: left;
}

.mobile-menu a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #f4a261;
}

/* ==============================
   LANGUAGE SWITCHER
   ============================== */

.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: black;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.language-switcher:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Language Dropdown */
.language-dropdown {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 998;
    overflow: hidden;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.language-dropdown.show {
    transform: scale(1);
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    transition: background 0.3s ease;
}

.language-option:hover {
    background: #f0f0f0;
}

/* ==============================
   HERO SECTION
   ============================== */

.hero {
    /* keep hero layout centered; don't add top padding here to avoid pushing image under the fixed navbar */
    padding-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ensure the main content sits below the fixed navbar so header/hero are not overlapped */
main {
    padding-top: var(--navbar-height);
}

.hero img {
    /* Fluid, responsive hero image that stays fully visible.
       Use viewport-based max-height so the image fits below the fixed navbar.
       Use the shared --content-max-width so the hero and form match widths. */
    width: 100%;
    max-width: var(--content-max-width);
    height: auto;
    max-height: calc(100vh - 80px); /* leave room for navbar */
    object-fit: contain; /* show full image without cropping */
    object-position: center top;
    display: block;
    margin: 0 auto;
}

/* ==============================
   FORM STYLES
   ============================== */

.form-container {
    /* Mobile-first: take available width but remain constrained on large screens */
    width: 100%;
    max-width: var(--content-max-width); /* match hero width */
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    /* stronger soft white glow */
    box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 3px 14px rgba(255,255,255,0.06) inset, 0 0 60px rgba(255,255,255,0.08);
    margin: 20px auto;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #f4a261;
    box-shadow: 0 0 5px rgba(244, 162, 97, 0.3);
}

.form-group small {
    display: block;
    font-weight: normal;
    color: #ccc;
    margin-top: 4px;
    font-size: 14px;
}

.submit-btn {
    background-color: white;
    color: black;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #f4a261;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ==============================
   PORTFOLIO STYLES
   ============================== */

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 6.5rem auto 3.5rem auto;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Modern carousel arrows */
/* Carousel arrows/dots removed per user request. Carousel auto-advances using JS only. */

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOutOverlay 1s ease-in-out 4s forwards;
    z-index: 2;
}

.carousel-text {
    text-align: center;
    color: white;
    padding: 2rem;
    animation: fadeOutText 1s ease-in-out 4s forwards;
}

.carousel-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: slideIn 1s ease;
}

.carousel-text p {
    font-size: 1.2rem;
    animation: fadeIn 2s ease;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.portfolio-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 4px 12px rgba(255,255,255,0.03) inset;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* ==============================
   FAQ STYLES
   ============================== */

header {
    margin-top: 100px;
    text-align: center;
}

.faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.faq-item h2 {
    color: #f4a261;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    line-height: 1.6;
    color: #ddd;
}

/* ==============================
   AFTERCARE STYLES
   ============================== */

.aftercare {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.aftercare h2 {
    color: #f4a261;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.aftercare ul {
    margin-bottom: 2rem;
}

.aftercare li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #ddd;
}

.aftercare-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.aftercare-text {
    flex: 1;
    min-width: 300px;
}

/* Recommended Products Section */
.aftercare-products-section {
    width: 100vw;
    background-color: #0d0d0d;
    padding: 3rem 1rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    justify-items: center;
}

.product-card {
    background: linear-gradient(145deg, #1a1a1a, #121212);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    color: #cccccc;
}

/* ==============================
   BEHIND THE INK STYLES
   ============================== */

#bio-single {
    padding: 4rem 2rem;
    background-color: #000;
    color: #d0d0d0;
    font-family: 'Georgia', serif;
    max-width: 900px;
    margin: 0 auto;
}

.bio-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.bio-content h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.bio-footer {
    text-align: center;
    margin-top: 3rem;
}

.bio-photo {
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
    opacity: 0.95;
}

.bio-label {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #aaa;
    font-style: italic;
}

.fade-in-once {
    opacity: 0;
    animation: fadeInOnce 2s ease-in-out forwards;
}

/* ==============================
   FOOTER
   ============================== */

.footer {
    background-color: #111;
    padding: 18px 0;
    text-align: center;
    margin-top: auto;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -12px 80px rgba(255,255,255,0.04) inset, 0 12px 40px rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.footer a {
    color: white;
    font-weight: bold;
    margin: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #f4a261;
}

/* ==============================
   ANIMATIONS
   ============================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeOutText {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInOnce {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 5vw;
    }

    .navbar ul {
        display: none;
    }

    .hamburger {
        display: block;
        font-size: 24px;
        margin-right: 10px;
    }

    .navbar .logo {
        font-size: 22px;
        margin-left: 10px;
    }

    .form-container {
        width: 90%;
        padding: 15px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 8px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 10px;
    }

    .hero img {
        max-width: 100%;
        width: 90%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .carousel-text h1 {
        font-size: 1.5rem;
    }

    .carousel-text p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .products-title {
        font-size: 1.5rem;
    }

    .product-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 6vw;
    }

    .navbar .logo {
        font-size: 20px;
        margin-left: 6px;
    }

    .hamburger {
        font-size: 22px;
        margin-right: 6px;
    }

    .form-container {
        width: 95%;
        padding: 10px;
    }

    /* Hero spacing now handled on the main element via --navbar-height */

    .hero img {
        /* keep the full image visible but allow a slightly smaller cap on very small devices */
        max-height: calc(100vh - 64px);
        width: 100%;
        object-position: top center;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 13px;
        padding: 6px;
    }

    .submit-btn {
        font-size: 13px;
        padding: 8px;
    }
}

@media (min-width: 769px) {
    /* Allow the form to grow on wide screens, but keep the max-width constraint
       so it doesn't become excessively large on medium-width devices */
    .form-container {
        max-width: 875px;
    }
}

@media (min-width: 769px) {
    :root {
        --content-max-width: 875px;
    }
}

@media (min-width: 1200px) {
    :root {
        --content-max-width: 1100px;
    }
}

/* ==============================
   ACCESSIBILITY IMPROVEMENTS
   ============================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
button:focus,
input:focus,
textarea:focus,
select:focus {
    /* strong visible focus for form controls */
    outline: 2px solid #f4a261;
    outline-offset: 2px;
}

/* Soft visible white focus for anchors (nav & other links) */
a:focus {
    box-shadow: 0 10px 22px rgba(255,255,255,0.12), 0 0 10px rgba(255,255,255,0.05) inset;
    outline: none;
    border-radius: 6px;
}

/* Form container soft sheen (final unified rules) */
.form-container {
    /* Keep mobile-first settings but present a subtle sheen on larger screens */
    width: 100%;
    max-width: 700px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.06), inset 0 2px 10px rgba(63, 63, 63, 0.02);
    margin: 20px auto;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

/* Footer styling (full-bleed) */
.footer {
    background-color: #111;
    padding: 18px 0;
    text-align: center;
    margin-top: auto;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -6px 20px rgba(255, 255, 255, 0.123) inset;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Map link styling (moved from inline styles) */
.map-link {
    color: white;
    text-decoration: underline;
}