﻿/* ===== Halloween Theme Styling ===== */

/* Project Cards - Torn Paper Effect */
html[data-theme="halloween"] .project-card {
    border-radius: 0;
    clip-path: polygon(
        0% 2%, 2% 0%, 5% 1%, 8% 0%, 12% 2%, 15% 0%, 18% 1%, 22% 0%, 25% 2%,
        28% 0%, 32% 1%, 35% 0%, 38% 2%, 42% 0%, 45% 1%, 48% 0%, 52% 2%,
        55% 0%, 58% 1%, 62% 0%, 65% 2%, 68% 0%, 72% 1%, 75% 0%, 78% 2%,
        82% 0%, 85% 1%, 88% 0%, 92% 2%, 95% 0%, 98% 1%, 100% 2%,
        100% 98%, 98% 100%, 95% 99%, 92% 100%, 88% 98%, 85% 100%, 82% 99%,
        78% 100%, 75% 98%, 72% 100%, 68% 99%, 65% 100%, 62% 98%, 58% 100%,
        55% 99%, 52% 100%, 48% 98%, 45% 100%, 42% 99%, 38% 100%, 35% 98%,
        32% 100%, 28% 99%, 25% 100%, 22% 98%, 18% 100%, 15% 99%, 12% 100%,
        8% 98%, 5% 100%, 2% 99%, 0% 98%
    );
    border: 2px solid rgba(255, 102, 0, 0.3);
    box-shadow:
        0 4px 12px rgba(255, 102, 0, 0.2),
        inset 0 0 20px rgba(255, 102, 0, 0.05);
    transition: all 0.3s ease;
}

html[data-theme="halloween"] .project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 102, 0, 0.6);
    box-shadow:
        0 8px 25px rgba(255, 102, 0, 0.4),
        0 0 40px rgba(255, 102, 0, 0.3),
        inset 0 0 30px rgba(255, 102, 0, 0.1);
}

/* Buttons - Halloween Style */
html[data-theme="halloween"] .cta-primary {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    border: 2px solid #ff6600;
    clip-path: polygon(
        5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%, 0% 5%
    );
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    position: relative;
    overflow: hidden;
}

html[data-theme="halloween"] .cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

html[data-theme="halloween"] .cta-primary:hover::before {
    left: 100%;
}

html[data-theme="halloween"] .cta-primary:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffaa00 100%);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.6);
    transform: translateY(-2px);
}

html[data-theme="halloween"] .cta-secondary {
    border: 2px solid #ff6600;
    color: #ff8800;
    clip-path: polygon(
        5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%, 0% 5%
    );
    background: rgba(255, 102, 0, 0.1);
}

html[data-theme="halloween"] .cta-secondary:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: #ff8800;
    color: #ffaa00;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

/* Contact Section */
html[data-theme="halloween"] .contact-card {
    clip-path: polygon(
        2% 0%, 98% 0%, 100% 2%, 100% 98%, 98% 100%, 2% 100%, 0% 98%, 0% 2%
    );
    border: 2px solid rgba(255, 102, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

html[data-theme="halloween"] .contact-card:hover {
    border-color: rgba(255, 102, 0, 0.6);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
    transform: scale(1.05);
}

/* Navigation Dots */
html[data-theme="halloween"] .nav-dot .dot {
    width: 32px;
    height: 32px;
    background: rgba(255, 102, 0, 0.3);
    border: 2px solid #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

html[data-theme="halloween"] .nav-dot.active .dot,
html[data-theme="halloween"] .nav-dot:hover .dot {
    background: #ff6600;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.8);
}

/* Show icons only on Halloween theme */
html[data-theme="halloween"] .nav-dot .dot img {
    display: block;
}

/* ===== Hello Kitty Navigation Dots ===== */
html[data-theme="hellokitty"] .nav-dot .dot {
    width: 32px;
    height: 32px;
    background: rgba(255, 105, 180, 0.3);
    border: 2px solid #ff69b4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

html[data-theme="hellokitty"] .nav-dot.active .dot,
html[data-theme="hellokitty"] .nav-dot:hover .dot {
    background: #ff69b4;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

/* Show icons on Hello Kitty theme */
html[data-theme="hellokitty"] .nav-dot .dot img {
    display: none;
}

/* Hello Kitty navigation icons */
html[data-theme="hellokitty"] .nav-dot[data-target="hero"] .dot {
    background-image: url('/pictures/main/kittypoint1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

html[data-theme="hellokitty"] .nav-dot[data-target="projects"] .dot {
    background-image: url('/pictures/main/kittypoint2.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

html[data-theme="hellokitty"] .nav-dot[data-target="projects-2"] .dot {
    background-image: url('/pictures/main/kittypoint3.jpg?v=2');
    background-size: 140%;
    background-position: center;
    border-radius: 50%;
}

html[data-theme="hellokitty"] .nav-dot[data-target="contact"] .dot {
    background-image: url('/pictures/main/kittypoint4.jfif?v=2');
    background-size: 140%;
    background-position: center;
    border-radius: 50%;
}

/* ===== Hello Kitty Hero & Contact Background ===== */
html[data-theme="hellokitty"] .hero,
html[data-theme="hellokitty"] .contact {
    position: relative;
    background-image: url('/pictures/themes/c4cbf5e93de5b78773cde0bc8428db10.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

html[data-theme="hellokitty"] .hero::before,
html[data-theme="hellokitty"] .contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.5);
    z-index: 0;
    pointer-events: none;
}

html[data-theme="hellokitty"] .hero .container,
html[data-theme="hellokitty"] .contact .container {
    position: relative;
    z-index: 1;
}

/* Mobile - different background wallpaper and performance optimizations */
@media (max-width: 768px) {
    html[data-theme="hellokitty"] .hero,
    html[data-theme="hellokitty"] .contact {
        background-image: url('/pictures/themes/c4cbf5e93de5b78773cde0bc8428db10.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    html[data-theme="hellokitty"] .hero::before,
    html[data-theme="hellokitty"] .contact::before {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 160, 200, 0.85);
    }

    /* Reduce Hello Kitty decorations on mobile - keep them but smaller, same positions as desktop */
    html[data-theme="hellokitty"] .project-card::after,
    html[data-theme="hellokitty"] .project-card::before,
    html[data-theme="hellokitty"] .project-content::before,
    html[data-theme="hellokitty"] .project-title::after {
        width: 180px !important;
        height: 180px !important;
        opacity: 0.35 !important;
    }
}

/* ===== Hello Kitty Project Cards Background ===== */
html[data-theme="hellokitty"] .project-card {
    position: relative;
    overflow: hidden;
}

/* First Hello Kitty - left top - straight */
html[data-theme="hellokitty"] .project-card::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 5%;
    width: 220px;
    height: 220px;
    background-image: url('/pictures/themes/IMG_20251106_225354.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
    transform: rotate(0deg);
    z-index: 0;
    pointer-events: none;
}

/* Second Hello Kitty - right middle - rotated right (moved down and more right) */
html[data-theme="hellokitty"] .project-card::before {
    content: '';
    position: absolute;
    top: 35%;
    right: 3%;
    width: 220px;
    height: 220px;
    background-image: url('/pictures/themes/IMG_20251106_225354.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.35;
    transform: rotate(25deg);
    z-index: 0;
    pointer-events: none;
}

/* Third Hello Kitty - bottom left - rotated left */
html[data-theme="hellokitty"] .project-content::before {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 8%;
    width: 220px;
    height: 220px;
    background-image: url('/pictures/themes/IMG_20251106_225354.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    transform: rotate(-25deg);
    z-index: 0;
    pointer-events: none;
}

html[data-theme="hellokitty"] .project-content {
    position: relative;
}

/* Fourth Hello Kitty - under project title */
html[data-theme="hellokitty"] .project-title::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 180px;
    height: 180px;
    background-image: url('/pictures/themes/IMG_20251106_225354.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    transform: translate(-50%, -30%) rotate(10deg);
    z-index: 0;
    pointer-events: none;
}

html[data-theme="hellokitty"] .project-title {
    position: relative;
}

html[data-theme="hellokitty"] .project-card > * {
    position: relative;
    z-index: 1;
}

/* ===== Hello Kitty Buttons with Bow ===== */
html[data-theme="hellokitty"] .btn-primary,
html[data-theme="hellokitty"] .btn-secondary,
html[data-theme="hellokitty"] .btn-link {
    position: relative;
    overflow: visible;
}

html[data-theme="hellokitty"] .btn-primary::after,
html[data-theme="hellokitty"] .btn-secondary::after,
html[data-theme="hellokitty"] .btn-link::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 35px;
    height: 35px;
    background-image: url('/pictures/themes/bantik.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 10;
}

/* Tech Items */
html[data-theme="halloween"] .tech-item {
    border: 1px solid rgba(255, 102, 0, 0.3);
    background: rgba(255, 102, 0, 0.05);
}

html[data-theme="halloween"] .tech-item:hover {
    border-color: rgba(255, 102, 0, 0.6);
    background: rgba(255, 102, 0, 0.1);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transform: translateY(-3px);
}

/* Accent Colors Override */
html[data-theme="halloween"] {
    --accent: #ff6600;
    --accent-hover: #ff8800;
}

/* Add spooky glow to headings */
html[data-theme="halloween"] h1,
html[data-theme="halloween"] h2 {
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

/* Project tags */
html[data-theme="halloween"] .project-tag {
    background: rgba(255, 102, 0, 0.2);
    border: 1px solid rgba(255, 102, 0, 0.4);
    color: #ffb366;
}

/* Project "Посмотреть кейс" buttons - Spider Web Corners */
html[data-theme="halloween"] .btn-link {
    position: relative;
    overflow: hidden;
}

/* Top-left spider web */
html[data-theme="halloween"] .btn-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 75px;
    height: 75px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/93/93223.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Bottom-right spider web */
html[data-theme="halloween"] .btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75px;
    height: 75px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/93/93223.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transform: rotate(180deg);
}

html[data-theme="halloween"] .btn-link:hover::before,
html[data-theme="halloween"] .btn-link:hover::after {
    opacity: 0.7;
}

