/*
Theme Name: Loboart Premium
Theme URI: https://loboart.com
Author: Antigravity / Loboart
Author URI: https://loboart.com
Description: A high-contrast, diagrammatic premium theme for Loboart, Colombian artist and tattooist.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loboart
*/

/* -------------------------------------------------------------------------- */
/* DESIGN SYSTEM
/* -------------------------------------------------------------------------- */

:root {
    /* Colors */
    --color-bg-dark: #000000;
    --color-bg-light: #ffffff;
    --color-text-dark: #000000;
    --color-text-light: #ffffff;
    --color-border-dark: rgba(255, 255, 255, 0.2);
    --color-border-light: rgba(0, 0, 0, 0.2);
    --color-accent: #ff0000; /* Subtle accent for warnings/errors or special highlights */

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Kanit', sans-serif; 

    /* Spacing */
    --grid-unit: 8px;
    --section-padding: 120px;
    --border-width: 1px;
    --shadow-offset: 6px;
}

/* -------------------------------------------------------------------------- */
/* BASE STYLES
/* -------------------------------------------------------------------------- */

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Global Overrides */
body.light-mode {
    background-color: var(--color-bg-light) !important;
    color: var(--color-text-dark) !important;
}

body.light-mode .main-nav,
body.light-mode .grid-item,
body.light-mode section,
body.light-mode footer,
body.light-mode header {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    border-color: var(--color-border-light);
}

body.light-mode .technical-label {
    border-color: var(--color-text-dark);
}

body.light-mode .btn-premium {
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--color-text-dark);
}

/* -------------------------------------------------------------------------- */
/* CUSTOM CURSOR
/* -------------------------------------------------------------------------- */
/* Custom Cursor */
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 1px solid currentColor;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
    background-color: #fff; /* Ensure it's visible */
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

@media (hover: hover) {
    .custom-cursor, .custom-cursor-dot {
        display: block;
    }
    body {
        cursor: none;
    }
    a, button, .portfolio-card {
        cursor: none;
    }
}

.custom-cursor.active {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

body.light-mode .custom-cursor.active {
    background: rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------- */
/* PRELOADER
/* -------------------------------------------------------------------------- */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.preloader-content {
    text-align: center;
    overflow: hidden;
}

.preloader-bar {
    width: 0;
    height: 2px;
    background: currentColor;
    margin-top: 20px;
    transition: width 0.5s ease;
}

/* -------------------------------------------------------------------------- */
/* MODULE TRANSITIONS
/* -------------------------------------------------------------------------- */

.module-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-mask {
    position: relative;
    overflow: hidden;
}

.reveal-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    transform: translateX(-101%);
    z-index: 2;
    pointer-events: none;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1001;
}

/* Theme Switch UI */
.theme-switch {
    width: 50px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 4px;
    background: transparent;
}

.theme-switch::before {
    content: '';
    width: 16px;
    height: 16px;
    background: currentColor;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

body.light-mode .theme-switch::before {
    transform: translateX(24px);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

/* -------------------------------------------------------------------------- */
/* LAYOUT - DIAGRAMMATIC GRID
/* -------------------------------------------------------------------------- */

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    width: 100%;
    border-top: var(--border-width) solid currentColor;
}

.grid-item {
    border-right: var(--border-width) solid currentColor;
    border-bottom: var(--border-width) solid currentColor;
    padding: 20px;
}

.grid-item:nth-child(12n) {
    border-right: none;
}

/* -------------------------------------------------------------------------- */
/* TYPOGRAPHY
/* -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1; /* Adjusted from 0.9 to avoid breakage */
}

.title-xl {
    font-size: clamp(4rem, 12vw, 15rem);
    letter-spacing: -0.04em;
    font-weight: 900;
}

.title-lg {
    font-size: clamp(2.5rem, 6vw, 8rem);
    letter-spacing: -0.02em;
}

.text-outline {
    -webkit-text-stroke: 1px currentColor;
    color: transparent;
}

.technical-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    opacity: 1;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid currentColor;
}

/* -------------------------------------------------------------------------- */
/* COMPONENTS
/* -------------------------------------------------------------------------- */

/* Navigation - Eldon Style (Bottom to Sticky) */
.main-nav {
    position: absolute;
    top: 100vh;
    transform: translateY(-100%);
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-bg-dark);
    border-top: var(--border-width) solid var(--color-border-dark);
    border-bottom: var(--border-width) solid var(--color-border-dark);
    transition: background 0.4s ease;
}

.main-nav.is-sticky {
    position: fixed;
    top: 0;
    transform: translateY(0);
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-grid {
    display: grid;
    grid-template-columns: 100px 1fr 200px 100px;
    height: 80px;
    align-items: center;
}

.nav-cell {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: var(--border-width) solid var(--color-border-dark);
}

.nav-cell:last-child {
    border-right: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.1em;
}

.menu-cell {
    justify-content: center;
    gap: 40px;
}

/* Side Menu (Off-canvas) */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 60px;
    display: flex;
    flex-direction: column;
}

body.light-mode .side-menu {
    background: var(--color-bg-dark);
    color: var(--color-bg-light);
}

.side-menu.is-active {
    transform: translateX(0);
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.side-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.close-menu {
    font-size: 30px;
    cursor: pointer;
    text-align: right;
    margin-bottom: 60px;
}

.side-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.side-logo img {
    width: 120px;
    margin-bottom: 40px;
}

.side-footer {
    margin-top: auto;
    font-size: 12px;
    opacity: 0.5;
}

.hamburger-toggle {
    width: 30px;
    height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-toggle span {
    width: 100%;
    height: 2px;
    background: currentColor;
}

/* Micro-Animations */
@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.logo:hover img, .side-logo:hover img {
    animation: vibrate 0.3s linear infinite;
}

@keyframes weightShift {
    0%, 100% { font-weight: 900; letter-spacing: -0.02em; }
    50% { font-weight: 400; letter-spacing: 0.02em; }
}

.text-dynamic, 
.module-showcase strong, 
.section-statement strong,
.hero-section strong,
.about-detailed-page strong {
    display: inline-block;
    animation: weightShift 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: font-weight, letter-spacing;
}

/* Button 3D to Flat on Hover */
.btn-premium {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-premium:hover {
    box-shadow: 0 0 0 transparent;
    transform: translate(var(--shadow-offset), var(--shadow-offset));
}

/* Close & Hamburger Jiggle */
.close-menu:hover, .hamburger-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Category Divider Lines (As seen in full screenshot) */
.categories-grid {
    position: relative;
    border-top: 1px solid currentColor;
}

.categories-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: currentColor;
    z-index: 2;
}

.category-card {
    border-bottom: 1px solid currentColor;
    padding: 120px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:nth-child(odd) {
    border-right: 1px solid currentColor;
}

.category-card .btn-premium {
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 30px;
}

/* Video Banner */
.play-btn {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Buttons - Eldon 3D Flat Style */
.btn-premium {
    display: inline-block;
    padding: 18px 40px;
    border: var(--border-width) solid currentColor;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.1em;
    position: relative;
    background: transparent;
    color: inherit;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px currentColor;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.btn-premium:hover {
    transform: translate(2px, 2px);
    box-shadow: calc(var(--shadow-offset) - 2px) calc(var(--shadow-offset) - 2px) 0px currentColor;
}

.btn-premium:active {
    transform: translate(var(--shadow-offset), var(--shadow-offset));
    box-shadow: 0px 0px 0px currentColor;
}

/* -------------------------------------------------------------------------- */
/* UTILS
/* -------------------------------------------------------------------------- */

.section-spacing {
    padding: var(--section-padding) 40px;
}

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

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: 1px solid currentColor;
    transition: background 0.3s ease, color 0.3s ease;
}

.slider-arrow:hover {
    background: currentColor;
    color: var(--color-bg-dark);
}

body.light-mode .slider-arrow:hover {
    color: var(--color-bg-light);
}

.arrow-left { left: 40px; }
.arrow-right { right: 40px; }

.arrow-left::before {
    content: '←';
    font-size: 24px;
}

.arrow-right::before {
    content: '→';
    font-size: 24px;
}

/* HERO SECTION - Fixed (Stays Behind) */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    background: var(--color-bg-dark);
}

.site-main {
    position: relative;
    z-index: 5; 
    background: var(--color-bg-dark);
}

.has-hero-overlap {
    margin-top: calc(100vh - 1px);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.5);
}

/* Portfolio Inner Styles */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: currentColor;
}

.portfolio-gallery figure, .portfolio-gallery img {
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

.portfolio-navigation a {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.2em;
    padding: 30px;
    display: block;
}

body.light-mode .site-main {
    background: var(--color-bg-light);
}

/* Footer Visibility & Stack */
footer {
    position: relative;
    z-index: 10;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

body.light-mode footer {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

/* Cartoon Background Animation for Events */
.events-section {
    position: relative;
    overflow: hidden;
}

.cartoon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.cartoon-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, 50px) rotate(120deg); }
    66% { transform: translate(-50px, 100px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Blog & Sidebar Styles */
.widget ul {
    padding-left: 0;
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.widget a:hover {
    padding-left: 5px;
    transition: padding 0.3s ease;
}

/* Comments Styling */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 30px;
    border: 1px solid currentColor;
    margin-bottom: 30px;
}

.comment-meta {
    margin-bottom: 20px;
    font-size: 12px;
}

.comment-author cite {
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
}

#respond {
    margin-top: 60px;
    padding: 40px;
    border: 1px solid currentColor;
}

#reply-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.comment-form input[type="text"], 
.comment-form input[type="email"], 
.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    margin-bottom: 20px;
}

.comment-form input[type="submit"] {
    background: currentColor;
    color: var(--color-bg-dark);
    padding: 15px 40px;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

body.light-mode .comment-form input[type="submit"] {
    color: var(--color-bg-light);
}

/* Moving Background for Awards */
.moving-bg-awards {
    background-image: url('assets/img/main-bg-02.png');
    background-repeat: repeat-x;
    animation: moveBgRight 30s linear infinite;
    position: relative;
}

@keyframes moveBgRight {
    from { background-position: 0 0; }
    to { background-position: 1000px 0; }
}

/* Ensure stats backgrounds are visible but text is readable */
.grid-item[style*="background-image"] {
    color: #fff !important;
}

/* Text Clipping for Stat Numbers */
.stat-number-clip {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Preloader Moving Background */
.moving-bg-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    animation: moveBgDiagonal 60s linear infinite;
    opacity: 0.1;
}

@keyframes moveBgDiagonal {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* Footer Box Styles */
.footer-box {
    background: transparent;
    transition: border-color 0.4s ease;
}

.footer-socials a {
    transition: opacity 0.3s ease;
}

.footer-socials a:hover {
    opacity: 0.5;
}

.back-to-top:hover {
    background: var(--color-text-light);
    color: var(--color-bg-dark);
    transition: all 0.3s ease;
}

body.light-mode .back-to-top:hover {
    background: var(--color-text-dark);
    color: var(--color-bg-light);
}

.newsletter-form input::placeholder {
    color: currentColor;
    opacity: 0.3;
}

.newsletter-form button:hover span {
    width: 50px;
    transition: width 0.3s ease;
}

/* Full Width Images for Portfolio and Blog */
.portfolio-item img, 
.blog-post-item img, 
.portfolio-gallery img,
.post-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
}

.portfolio-image, 
.post-thumbnail {
    width: 100%;
    overflow: hidden;
}

/* Ensure background images also cover 100% */
.portfolio-image[style*="background-image"],
.post-thumbnail[style*="background-image"] {
    background-size: cover;
    background-position: center;
}
