/*
 * Liquid Cyber Punk Theme Styles for Home Page
 */

body {
    background-color: #0a0a0d; /* Dark background */
    color: var(--body-text-color);
    font-family: var(--primary-font);
}

/* Placeholder for neon reflections background */
.hero-section { /* This is now the <picture> element */
    position: relative;
    display: block;
    width: 100%;
    min-height: 100vh; /* Full viewport height */
}

.hero-section .hero-background-image { /* This is the <img> inside <picture> */
    display: block; /* Ensure it behaves as a block element */
    width: 100%;
    height: auto;
    object-fit: cover; /* Cover the entire area without distortion */
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

/* Neon text effect */
.neon-text {
    color: #00ffff; /* Cyan neon */
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff;
}


/* --- Entrance Animations --- */

/* Base state for all animations */
.sticky-title {
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Fade In */
.fade-in {
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Fade In Left */
.fade-in-left {
    transform: translateX(-100px);
    animation: fadeInLeft 1.5s forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right */
.fade-in-right {
    transform: translateX(100px);
    animation: fadeInRight 1.5s forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Top */
.fade-in-top {
    transform: translateY(-100px);
    animation: fadeInTop 1.5s forwards;
}

@keyframes fadeInTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-widgets {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow interaction with elements behind widgets initially */
    z-index: 10; /* Ensure widgets are above background image but below header */
}

.hero-widgets .widget {
    pointer-events: auto; /* Re-enable interaction for the widgets themselves */
    position: absolute; /* Absolute positioning for asymmetry */
    top: var(--widget-position-y);
    left: var(--widget-position-x);
    transform: translate(-50%, -50%) rotate(var(--widget-rotation));
    background-color: rgba(10, 10, 13, 0.7); /* Semi-transparent dark background */
    border: 1px solid #00ffff; /* Neon border */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7); /* Stronger neon glow */
    padding: 20px 30px;
    margin: 0; /* Remove default margin */
    color: #e0e0e0;
    font-size: 1.1em;
    text-align: left;
    max-width: 300px; /* Limit widget width */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}
.hero-widgets .widget[data-enable-hover="true"]:hover {
    transform: translate(-50%, -50%) rotate(var(--widget-rotation)) scale(var(--hover-scale, 1.05)); /* Combine transforms */
} 

.hero-widgets .widget-image {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.hero-widgets .widget-image img {
    height: auto;
    display: block;
    border: 3px solid #00ffff; /* Neon border for image */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); /* Neon glow for image */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    width: var(--widget-image-width); /* Use CSS variable from data-attribute */
}

.hero-widgets .widget-image[data-enable-hover="true"] img:hover {
    transform: scale(var(--hover-scale, 1.05)); /* Lift effect */
    box-shadow: var(--hover-box-shadow, 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6)); /* Enhanced neon glow */
}

.hero-widgets .button {
    z-index: 200;
    display: inline-block;
    padding: 0.7em 1.3em;
    background-color: #00ffff;
    color: #0a0a0d;
    text-decoration: none;
    border: none;
    border-radius: 55px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem ;
    pointer-events: auto;
}

.hero-widgets .widget[data-enable-hover="true"] .button:hover {
    background-color: #00e0e0;
    box-shadow: var(--hover-box-shadow, 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6)); /* Enhanced neon glow */
    transform: scale(var(--hover-scale, 1.05));
}

/* Desktop styles */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-family: var(--hero-title-font-family);
        font-size: var(--hero-title-font-size);
        color: var(--hero-title-color);
        text-shadow: var(--hero-title-text-shadow);
    }
}

/* Laptop styles */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-content h1 {
        font-family: var(--hero-title-font-family);
        font-size: var(--hero-title-font-size);
        color: var(--hero-title-color);
        text-shadow: var(--hero-title-text-shadow);
    }
}

/* Mobile styles */
@media (max-width: 767px) {

    .hero-content h1 {
        font-family: var(--hero-title-font-family);
        font-size: var(--hero-title-font-size);
        color: var(--hero-title-color);
        text-shadow: var(--hero-title-text-shadow);
    }

    .hero-section {
        height: auto; /* Разрешить высоте подстраиваться под содержимое */
        min-height: 100vh; /* Убедиться, что она составляет не менее 100vh, но может расти */
        overflow: visible; /* Разрешить содержимому увеличивать высоту секции */
    }

    .hero-section .hero-background-image {
        height: 100vh; /* Full viewport height */
    }

    .hero-content {
        top: 4rem;
        display: block;
        align-items: center; /* Центрировать по горизонтали */
        padding-bottom: 1rem; /* Добавить отступ снизу */
        padding-top: 1rem; /* Добавить отступ сверху */
        height: auto; /* Разрешить высоте подстраиваться под содержимое */
    }

    .hero-widgets {
        left: 0;
        width: 100%;
        padding: 1rem; /* Add some padding */
        height: auto; /* Adjust height for stacked content */
        position: relative;
    }

    .hero-widgets .widget {
        position: static; /* Remove absolute positioning */
        width: 100%; /* Take full width */
        max-width: none; /* Remove max-width constraint */
        margin-bottom: 1rem; /* Space between stacked widgets */
        text-align: center; /* Center text within widget */
        transform: none !important; /* Remove any existing transforms */
        top: auto; /* Remove specific top positioning */
        left: auto; /* Remove specific left positioning */
    }

    .hero-widgets .widget-image img {
        width: 100%; /* Take full width */
    }
    .hero-widgets .widget:last-child {
        margin-bottom: 2rem; /* No margin after the last widget */
    }
}

@media (max-width: 1192px) {
    .hero-widgets .button {
        font-size: x-small;
    }
}