/* Base Body */
body {
    font-family: "Special Elite", system-ui;
    background-color: #faf3e0;
    color: #5d4037;
}

/* Faery Dust Canvas Styling */
#faery-dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Navbar Styling */
.navbar {
    background: rgba(250, 243, 224, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(93, 64, 55, 0.1);
}

/* --- NEW: Mobile Menu Styling --- */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 243, 224, 0.98); /* Almost opaque beige */
    z-index: 40; /* Below navbar, but above page content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-link {
    font-family: 'Special Elite', monospace;
    font-size: 2rem; /* Large, tappable links */
    color: #5d4037;
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: #e53e3e; /* Red accent on hover */
}
/* --- END Mobile Menu --- */

/* HERO STYLING */
.hero {
    background: url('/images/backdrops/herobanner.png') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    animation: fadeIn 1.5s ease-out;
    background-position-y: 0px; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(93, 64, 55, 0.2), rgba(250, 243, 224, 0.3));
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 1rem; /* Add padding for small screens */
}

.hero-content h1 {
    font-size: clamp(3rem, 12vw, 5.8rem); /* Slightly smaller base for mobile */
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-family: "Special Elite", system-ui;
    transition: text-shadow 0.3s ease;
    animation: slideIn 1s ease-out 0.2s;
    animation-fill-mode: backwards;
}

.hero-content h1:hover {
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-family: 'Special Elite', monospace;
    font-size: clamp(1.2rem, 4vw, 1.7rem); /* Responsive tagline font */
    margin: 1rem 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideIn 1s ease-out 0.4s;
    animation-fill-mode: backwards;
}
/* --- END HERO STYLING --- */


/* --- UPDATED: Main Container to look like Letterhead Paper --- */
.main-container {
    position: relative; /* Needed for the letterhead pseudo-element */
    background-color: #fffaf0;
    padding: 3rem;
    padding-top: 6rem; /* Extra padding at the top for the letterhead */
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(93, 64, 55, 0.1);
    border: 1px solid rgba(93, 64, 55, 0.2);
    border-radius: 8px;

    /* Ruled paper effect */
    background-image: repeating-linear-gradient(
        to bottom,
        #fffaf0,
        #fffaf0 29px,
        rgba(93, 64, 55, 0.1) 30px
    );
}

/* The "letterhead" at the top of the container */
.main-container::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background-image: url('/images/logo/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}



/* Typing animation for hero tagline */
.typing-animation {
    border-right: 2px solid rgba(255, 255, 255, .75);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
}

/* Themed Button Styling */
.themed-button {
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.15);
}
.themed-button:hover { transform: translateY(-3px); }
.themed-button.primary { background-color: #e53e3e; color: white; }
.themed-button.primary:hover { background-color: #c53030; box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3); }
.themed-button.secondary { background-color: transparent; color: #4299e1; border: 2px solid #4299e1; }
.themed-button.secondary:hover { background-color: #4299e1; color: white; box-shadow: 0 6px 20px rgba(66, 153, 225, 0.3); }
.themed-button:disabled { cursor: wait; opacity: 0.6; }

/* --- REVISED: Envelope Card Styling --- */
.feature-card {
    position: relative;
    width: 100%;
    height: 280px; /* UPDATED: Increased card height */
    cursor: pointer;
}

/* The white paper that slides out */
.letter {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 100%; /* UPDATED: Increased letter height */
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    
    box-sizing: border-box; 
    padding: 25px; 
    border-style: solid;
    border-width: 20px;
    border-image-slice: 40;
    border-image-width: 20px;
    border-image-repeat: stretch;
    border-image-source: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3Epath%7Bfill:none;stroke:%235d4037;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;%7D%3C/style%3E%3Cpath d='M40,0 V10 C40,20 20,20 10,40 H0 M60,0 V10 C60,20 80,20 90,40 H100 M0,60 H10 C20,60 20,80 40,90 V100 M100,60 H90 C80,60 80,80 60,90 V100'/%3E%3C/svg%3E");
}

/* Add logo to the bottom of the letter */
.letter::after {
    content: '';
    position: absolute;
    bottom: -12px; 
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background-image: url('/images/logo/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* This is the back panel of the envelope */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: #fdecdf;
    border: 1px solid rgba(93, 64, 55, 0.2);
    border-radius: 8px;
    z-index: 2;
}

/* The front of the envelope that holds the title */
.envelope-front {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

/* Hover Animations */
.feature-card:hover .letter {
    transform: translateY(-240px); /* UPDATED: Increased slide amount */
}
/* --- END REVISED Envelope Styling --- */

/* Glimpse Media Styling */
.glimpse-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.5rem;
    background-color: #e0e0e0;
}
#glimpses img.glimpse-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* KEYFRAME ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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