/* Reset defaults and hide scrollbars */

/* Load font from the public folder */
@font-face {
    font-family: "C059";
    src: url("public/fonts/C059-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

html,
body {
    margin: 0;
    padding: 0;
    color: white;
    font-family: "C059", serif;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* Firefox */
}

/* Chrome, Safari, and Opera */
body::-webkit-scrollbar {
    display: none;
}
/* Background container */
.background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -10;
    overflow: hidden;
}

/* Base background color */
.base {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #2563eb;
}

/* Radial gradient for depth */
.radial-gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.2;
    background-image: radial-gradient(
        circle at 50% 50%,
        rgba(96, 165, 250, 0.4) 0%,
        transparent 70%
    );
}

/* Coarse grain overlay */
.grain.coarse {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("public/svg/coarse-grain.svg");
    background-size: 180px 180px;
    mix-blend-mode: overlay;
    opacity: 0.7;
}

/* Medium grain overlay */
.grain.medium {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("public/svg/medium-grain.svg");
    background-size: 120px 120px;
    mix-blend-mode: soft-light;
    opacity: 0.5;
}

/* Fine grain overlay */
.grain.fine {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("public/svg/fine-grain.svg");
    background-size: 100px 100px;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

/* Variation layer (gradient overlay) */
.variation {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(
        to bottom right,
        rgba(56, 189, 248, 0.2),
        transparent,
        rgba(37, 99, 235, 0.2)
    );
    mix-blend-mode: overlay;
}

/* Color adjustment layer */
.adjustment {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(
        125,
        211,
        252,
        0.06
    ); /* Adjusted to 0.07 for slight lightness */
    mix-blend-mode: soft-light;
}

/* Main content area */
main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Centered content container */
.content {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Container for the main title */
.title-container {
    margin-bottom: 2rem;
}

/* Container for the subtitle */
.subtitle-container {
    margin-bottom: 4rem;
}

/* Container for the description text */
.description-container {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

/* Main title styling */
.main-title {
    font-size: 4.5rem;
    font-weight: bold;
    color: white;
    letter-spacing: -0.025em;
    font-family: "C059", serif;
}

/* Responsive adjustments for main title */
@media (min-width: 640px) {
    .main-title {
        font-size: 5rem;
    }
}

@media (min-width: 768px) {
    .main-title {
        font-size: 6rem;
    }
}

/* Main subtitle styling */
.main-subtitle {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    letter-spacing: -0.025em;
    font-family: "C059", serif;
}

/* Responsive adjustments for main subtitle */
@media (min-width: 640px) {
    .main-subtitle {
        font-size: 3.75rem;
    }
}

@media (min-width: 768px) {
    .main-subtitle {
        font-size: 4.5rem;
    }
}

/* Description text styling */
.description-text {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Bunny logo in the bottom-right corner */
.bunny {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    cursor: pointer; /* Add pointer cursor to indicate clickability */
    transition: transform 0.1s;
    z-index: 1001; /* Add a high z-index to ensure it's always on top */
    pointer-events: auto; /* Ensure click events are always captured */
}

@media (min-width: 768px) {
    .bunny {
        width: 6rem;
        height: 6rem;
    }
}

.bunny img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@layer utilities {
    .textured-blue-clip {
        /* Combine the desired blue color with a grain texture SVG */
        /* Using medium-grain for a bit more visibility than fine-grain */
        background-image:
            url("public/svg/medium-grain.svg"),
            linear-gradient(to bottom, #2563eb, #2563eb);
        background-size:
            150px 150px,
            auto; /* Adjust grain size as needed */
        background-repeat: repeat, no-repeat;
        background-position: center;
        /* Blend mode - 'overlay', 'soft-light', or 'multiply' might work. 'overlay' is often good for texture */
        background-blend-mode: overlay;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent; /* Make the actual text color transparent */
    }

    /* Fallback for browsers that don't support background-clip: text */
    @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
        .textured-blue-clip {
            color: #2563eb;
            background-image: none;
        }
    }
}

.white-box {
    background-color: white;
    border: 1px solid #ccc;
    width: 300px;
    font-weight: bold;
    padding: 20px;
    box-sizing: border-box;
    margin: 20px auto 0;
    text-align: center;
    border-radius: 10px;
}

.white-box p {
    margin: 0;
    font-size: 3rem;
}

.textured-blue-clip {
    background: url("public/svg/medium-grain.svg"), #2563eb;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Social Links Section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition:
        transform 0.2s,
        opacity 0.2s;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    min-width: 100px;
}

.social-link:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.social-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-link span {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for social links */
@media (max-width: 640px) {
    .social-links {
        gap: 1rem;
    }

    .social-link {
        padding: 1rem;
        min-width: 80px;
    }

    .social-link i {
        font-size: 1.5rem;
    }
}

/* Bunny jump animation */
@keyframes bunnyJump {
    0% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

.bunny {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    cursor: pointer; /* Add pointer cursor to indicate clickability */
    transition: transform 0.1s;
}

.bunny.jumping {
    animation: bunnyJump 0.5s ease-in-out;
}

@media (min-width: 768px) {
    .bunny {
        width: 6rem;
        height: 6rem;
    }

    /* Slightly bigger jump on larger screens */
    @keyframes bunnyJump {
        0% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-30px);
        }
        60% {
            transform: translateY(-30px);
        }
        100% {
            transform: translateY(0);
        }
    }
}

/* Presentation Styles - Minimalistic Version */

/* Presentation container */
.presentation {
    width: 100%;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
}

/* Individual slide */
.slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem;
}

/* Text content styling */
.slide-text {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.slide-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.slide-text ul {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-left: 1.5rem;
}

.slide-text li {
    margin-bottom: 0.75rem;
}

/* Image styling with improved centering for all screen sizes */
.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

.slide-image img {
    max-width: 100%;
    max-height: 500px;
    background-color: white;
    border-radius: 8px;
    margin: 0 auto; /* Center the image horizontally */
}

/* Image styling with improved centering for all screen sizes */
.image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

.image img {
    max-width: 100%;
    max-height: 500px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 8px;
    margin: 0 auto; /* Center the image horizontally */
}

.slide-image video {
    max-width: 100%;
    max-height: 500px;
    background-color: #000000;
    border-radius: 8px;
    margin: 0 auto; /* Center the video horizontally */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .presentation {
        padding-left: 3%;
        padding-right: 3%;
    }

    .slide-text {
        padding: 1.5rem;
    }

    .slide {
        flex-direction: column;
        padding: 2rem 0; /* Reduce horizontal padding */
        width: 100%;
        box-sizing: border-box;
    }

    .slide-text h2 {
        font-size: 2rem;
    }

    .slide-text p,
    .slide-text ul {
        font-size: 1rem;
    }

    .slide-image {
        width: 100%; /* Full width container */
        padding: 0; /* Remove padding that might cause shifting */
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slide-image img {
        max-width: 85%; /* Slightly narrower to ensure no overflow */
        margin: 0 auto; /* Force centering */
        box-sizing: border-box;
    }
}

/* Existing styles remain unchanged, adding fullscreen styles */
:fullscreen .slide-image img,
:fullscreen .slide-image video,
:fullscreen .slide-image .gif {
    object-fit: contain;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    background-color: black;
}

.media-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.full-tab-media {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
