/*
Theme Name: Todzumi Custom
Theme URI: https://todzumi.ru
Author: Todzumi
Description: Ultra modern tattoo artist portfolio
Version: 1.0
*/

:root {
    --primary: #9b51e0;
    --accent: #ff006e;
    --bg: #0a0a0a;
    --text: #ffffff;
    --gray: #666;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(155, 81, 224, 0.1);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.site-logo img {
    max-height: 60px;
    filter: drop-shadow(0 0 10px rgba(155, 81, 224, 0.5));
    transition: all 0.3s;
}

.site-logo img:hover {
    filter: drop-shadow(0 0 20px rgba(155, 81, 224, 0.8));
    transform: scale(1.05);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation-left ul {
    justify-content: flex-end;
}

.main-navigation-right ul {
    justify-content: flex-start;
}

.main-navigation a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
}

.main-navigation a:hover::before {
    width: 100%;
}

.telegram-link {
    color: var(--primary) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 2rem;
}

/* Hero Full */
.hero-section-full {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(155, 81, 224, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
}

.hero-wolf {
    position: absolute;
    inset: 0;
    background-image: url('wolf.png');
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content-modern {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.glitch {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    position: relative;
    animation: glitch-skew 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    
    animation: glitch-anim 8s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    
    animation: glitch-anim2 6s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(10% 0 85% 0); }
    5% { clip-path: inset(20% 0 75% 0); }
    10% { clip-path: inset(70% 0 25% 0); }
    15% { clip-path: inset(5% 0 90% 0); }
    20% { clip-path: inset(80% 0 15% 0); }
    25% { clip-path: inset(30% 0 65% 0); }
    30% { clip-path: inset(2% 0 95% 0); }
    35% { clip-path: inset(65% 0 30% 0); }
    40% { clip-path: inset(44% 0 50% 0); }
    45% { clip-path: inset(15% 0 80% 0); }
    50% { clip-path: inset(82% 0 10% 0); }
    55% { clip-path: inset(37% 0 60% 0); }
    60% { clip-path: inset(55% 0 40% 0); }
    65% { clip-path: inset(25% 0 70% 0); }
    70% { clip-path: inset(41% 0 55% 0); }
    75% { clip-path: inset(60% 0 35% 0); }
    80% { clip-path: inset(46% 0 50% 0); }
    85% { clip-path: inset(12% 0 85% 0); }
    90% { clip-path: inset(33% 0 65% 0); }
    95% { clip-path: inset(75% 0 20% 0); }
    100% { clip-path: inset(39% 0 58% 0); }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(65% 0 30% 0); }
    5% { clip-path: inset(25% 0 70% 0); }
    10% { clip-path: inset(52% 0 45% 0); }
    15% { clip-path: inset(85% 0 10% 0); }
    20% { clip-path: inset(79% 0 18% 0); }
    25% { clip-path: inset(15% 0 82% 0); }
    30% { clip-path: inset(51% 0 45% 0); }
    35% { clip-path: inset(8% 0 88% 0); }
    40% { clip-path: inset(67% 0 28% 0); }
    45% { clip-path: inset(22% 0 75% 0); }
    50% { clip-path: inset(41% 0 56% 0); }
    55% { clip-path: inset(72% 0 25% 0); }
    60% { clip-path: inset(70% 0 25% 0); }
    65% { clip-path: inset(33% 0 64% 0); }
    70% { clip-path: inset(25% 0 72% 0); }
    75% { clip-path: inset(60% 0 37% 0); }
    80% { clip-path: inset(58% 0 38% 0); }
    85% { clip-path: inset(18% 0 78% 0); }
    90% { clip-path: inset(35% 0 62% 0); }
    95% { clip-path: inset(68% 0 28% 0); }
    100% { clip-path: inset(44% 0 52% 0); }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    10% {
        transform: skew(-1deg);
    }

    20% {
        transform: skew(1deg);
    }

    30% {
        transform: skew(-0.5deg);
    }

    40% {
        transform: skew(0.5deg);
    }

    50% {
        transform: skew(0deg);
    }

    60% {
        transform: skew(-1deg);
    }

    70% {
        transform: skew(1deg);
    }

    80% {
        transform: skew(-0.5deg);
    }

    90% {
        transform: skew(0.5deg);
    }

    100% {
        transform: skew(0deg);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gray);
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(155, 81, 224, 0.3);
}

.hero-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(155, 81, 224, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* Portfolio Modern */
.portfolio-modern {
    padding: 6rem 0;
}

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

.filter-wrapper {
    margin-bottom: 4rem;
    text-align: center;
}

.filter-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.chip {
    position: relative;
    padding: 0.8rem 2rem;
    background: rgba(20, 20, 20, 0.5);
    border: 2px solid rgba(155, 81, 224, 0.3);
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.chip-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.chip-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--text);
}

.chip:hover,
.chip.active {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chip.active .chip-bg {
    opacity: 1;
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    grid-auto-flow: dense;
}

.grid-item,
.grid-item-large {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item {
    aspect-ratio: 3/4;
}

.grid-item-large {
    aspect-ratio: 1;
    grid-column: span 2;
    grid-row: span 2;
}

.grid-item:hover,
.grid-item-large:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 60px rgba(155, 81, 224, 0.4);
}

.grid-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.grid-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover .grid-image,
.grid-item-large:hover .grid-image {
    transform: scale(1.2) rotate(2deg);
}

.grid-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.grid-item:hover .grid-shine,
.grid-item-large:hover .grid-shine {
    transform: translateX(100%) rotate(45deg);
}

.grid-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s;
}

.grid-item:hover .grid-info,
.grid-item-large:hover .grid-info {
    transform: translateY(0);
}

.grid-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.grid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(155, 81, 224, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111, #222);
}

.grid-placeholder span {
    font-size: 4rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

/* Empty State */
.empty-portfolio {
    text-align: center;
    padding: 8rem 2rem;
}

.empty-animation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.empty-animation span {
    font-size: 3rem;
    color: var(--primary);
    animation: bounce 1s infinite;
}

.empty-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.empty-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    padding: 2rem;
    background: rgba(20, 20, 20, 0.5);
    border: 2px solid rgba(155, 81, 224, 0.2);
    border-radius: 20px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 81, 224, 0.3);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-card p {
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: #0a0a0a;
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(155, 81, 224, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(155, 81, 224, 0.5);
}

.footer-credits {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(155, 81, 224, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-credits a {
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower.active {
    width: 40px;
    height: 40px;
    background: rgba(155, 81, 224, 0.2);
    border-color: var(--accent);
}

/* Links */
a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--primary);
}

/* Pulse animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .header-container {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation-left,
    .main-navigation-right {
        display: none;
    }

    .main-navigation-left.active,
    .main-navigation-right.active {
        display: block;
        margin-top: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 60px;
        height: 2px;
    }

    .grid-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
}