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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: white;
    overflow: hidden;
}

/* Main container */
.farewell-page {
    position: fixed;
    width: 100%;
    height: 100%;
    inset: 0;
    background-image: url('https://assets.roosterteeth.com/static/media/bg.7895a619.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Background effects */
.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.4), transparent);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(59, 130, 246, 0.05);
    mix-blend-mode: overlay;
}

/* Content layout */
.content-container {
    position: absolute;
    inset: 0;
    overflow: auto;
}

.content-wrapper {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 5rem;
    }
}

/* Logo styles */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.logo-blur {
    position: absolute;
    inset: 0;
    background-color: rgba(59, 130, 246, 0.2);
    filter: blur(1rem);
}

.logo-image {
    position: relative;
    width: 300px; /* Adjust based on your logo size */
    height: auto;
    transition: all 0.3s;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(56, 182, 255, 0.4));
}

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

@media (min-width: 768px) {
    .logo-image {
        width: 400px; /* Larger size for desktop */
    }
}

/* Main heading */
.main-heading {
    font-size: 1.125rem;
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(56, 182, 255, 0.3);
    opacity: 0.9;
    color: rgb(219, 234, 254);
}

.main-heading::before,
.main-heading::after {
    content: '//';
    margin: 0 0.5rem;
}

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

/* Grid layout */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Character styles */
.character-container {
    position: relative;
    margin-left: -6rem;
    margin-top: -4rem;
    transition: all 0.5s;
}

.character-container:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .character-container {
        margin-left: -8rem;
        margin-top: -6rem;
    }
}

.character-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.character-container:hover .character-overlay {
    opacity: 1;
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

/* Content box styles */
.content-box {
    position: relative;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.content-box::before {
    content: '';
    position: absolute;
    inset: 0.25rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    pointer-events: none;
}

/* Corner decorations */
.corner {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-color: rgba(59, 130, 246, 0.5);
}

.top-left {
    top: 0;
    left: 0;
    border-top: 2px solid;
    border-left: 2px solid;
}

.top-right {
    top: 0;
    right: 0;
    border-top: 2px solid;
    border-right: 2px solid;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* Video container */
.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(59, 130, 246, 0.1);
}

.video-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Text content */
.text-content {
    position: relative;
}

.section-heading {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(56, 182, 255, 0.3);
    color: rgb(219, 234, 254);
    margin-bottom: 1.25rem;
}

.section-heading::before {
    content: '|';
    margin-right: 0.5rem;
    color: rgba(59, 130, 246, 0.7);
}

@media (min-width: 768px) {
    .section-heading {
        font-size: 1.5rem;
    }
}

.paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.paragraphs p {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(56, 182, 255, 0.3);
    line-height: 1.625;
    /* Removed transition and transform properties */
}

.paragraphs p:hover {
    color: rgb(219, 234, 254);
}

.farewell {
    font-weight: 600;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0% { opacity: 0; }
    50% { opacity: 0.6; }
    100% { opacity: 0; }
}

@keyframes glow {
    0% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 182, 255, 0.4); }
    50% { text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 182, 255, 0.6); }
    100% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 182, 255, 0.4); }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.active {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.fade-in-left.active {
    animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.fade-in-right.active {
    animation: fadeInRight 1s ease-out forwards;
}

/* Add animation delays */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Apply animations to specific elements */
.logo-text {
    animation: glow 3s infinite;
}

.main-heading {
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.character-container {
    animation: fadeInLeft 1.2s ease-out 0.4s backwards;
}

.content-box {
    animation: fadeInRight 1.2s ease-out 0.4s backwards;
}

/* Paragraph animations will be handled by JavaScript */
