/* Global UI Enhancements for retard.dev */

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-attachment: fixed; /* Ensures background stays fixed while scrolling */
    background-size: cover;       /* Ensures background scales to cover the viewport */
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* --- Tooltip Styles --- */
.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    pointer-events: none; /* Allows clicks on elements behind the tooltip */
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #2b2b2b;
    color: #e0e0e0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    position: relative;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s ease-out;
}

.modal-close-button:hover {
    color: #dc3545;
}

main.main-content {
    flex-grow: 1; /* Allow main content to grow and push footer down */
}

/* --- Enhanced Hover Effects for Buttons (.btn-obsidian) --- */
.btn-obsidian {
    transition: all 0.3s ease;
    transform: perspective(1px) translateZ(0); /* For hardware acceleration */
}

.btn-obsidian:hover {
    transform: translateY(-3px) scale(1.02); /* Slight lift and scale */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Stronger, diffused shadow */
}

.btn-obsidian.primary:hover {
    background: #e6e6e6; /* Slightly lighter white for primary on hover */
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* --- Subtle Hover Effects for Cards (.compact-card, .spec-card) --- */
.compact-card, .spec-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.compact-card:hover, .spec-card:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); /* More pronounced shadow */
    border-color: rgba(255, 255, 255, 0.2); /* Subtle border highlight */
}

.compact-card img, .spec-card img {
    transition: transform 0.3s ease;
}

.compact-card img:hover, .spec-card img:hover {
    transform: scale(1.05); /* Slight zoom on image hover */
}

/* Additional hover for spec-card if it has a specific background */
.spec-card:hover {
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.9) 0%, rgba(15, 15, 15, 0.9) 100%);
}

/* Wide card specific hover */
.wide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(118, 75, 162, 0.5);
}



/* --- Scroll Down Indicator --- */
.scroll-down-indicator {
    position: absolute; /* Position relative to .hero-content */
    bottom: -100px; /* Adjust as needed to be below the hero content */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #3498db; /* Blue color for text */
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    z-index: 1000;
    opacity: 0; /* Hidden initially */
    animation: fadeIn 1s forwards 3s; /* Fade in after 3 seconds */
}

.scroll-down-indicator span {
    animation: blink 1.5s infinite alternate; /* Keep text blinking */
}

.mouse-symbol {
    width: 30px; /* Width of the mouse body */
    height: 50px; /* Height of the mouse body */
    border: 3px solid #3498db; /* Blue border */
    border-radius: 15px; /* Oval shape */
    position: relative;
    margin-bottom: 10px; /* Space between mouse and text */
}

.scroll-wheel {
    width: 4px; /* Width of the scroll wheel */
    height: 10px; /* Height of the scroll wheel */
    background-color: #3498db; /* Blue scroll wheel */
    border-radius: 2px;
    position: absolute;
    top: 10px; /* Position within the mouse body */
    left: 50%;
    transform: translateX(-50%);
    animation:
        blink 1.5s infinite alternate,
        scroll-wheel-animation 2s infinite ease-in-out; /* Only scroll wheel moves */
}

/* Keyframe Animations */
@keyframes blink {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes scroll-wheel-animation {
    0% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
    100% { transform: translate(-50%, 0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive adjustments for the indicator */
@media (max-width: 768px) {
    .scroll-down-indicator {
        bottom: -70px; /* Adjust position for mobile */
        font-size: 0.8rem;
    }
    .mouse-symbol {
        width: 25px;
        height: 40px;
    }
    .scroll-wheel {
        width: 3px;
        height: 8px;
        top: 8px;
    }
}

/* --- Carousel Styles (for hero-image section) --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 450px; /* Adjust as needed */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding-bottom: 50%; /* Make it wider and less tall (2:1 aspect ratio) */
    height: 0; /* Important for padding-bottom aspect ratio trick */
}

.carousel-track {
    position: absolute; /* Position the track absolutely within the container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Make track fill the container height */
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    display: block;
    width: 100%;
    height: 100%; /* Make item fill the track height */
    object-fit: cover; /* Keep cover for filling space, cropping if necessary */
    border-radius: 15px; /* Match container border-radius */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    opacity: 0; /* Hidden by default */
}

.carousel-container:hover .carousel-button {
    opacity: 1; /* Show on hover */
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* --- Carousel Feature Block Styles --- */
.carousel-feature-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 80px auto;
    max-width: 1200px; /* Adjust as needed */
    padding: 20px;
    background-color: rgba(15, 15, 15, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-feature-block .text-content {
    flex: 1;
}

.carousel-feature-block .text-content h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.carousel-feature-block .text-content p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
}

.carousel-feature-block .carousel-container {
    flex: 1;
    max-width: 500px; /* Limit carousel width within the block */
}

@media (max-width: 992px) {
    .carousel-feature-block {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .carousel-feature-block .carousel-container {
        max-width: 400px; /* Adjust for smaller screens */
    }
}