/* ==========================================================================
   Design System & Custom Properties
   ========================================================================== */
:root {
    --bg-green: #07a018;
    --brand-orange: #ca620a;
    --brand-beige: #cecfbc;
    --white: #ffffff;
    
    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-green);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   Page Container Layout
   ========================================================================== */
.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   Header Section (Green Top)
   ========================================================================== */
.header-section {
    background-color: var(--bg-green);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    /* Aspect ratio calculation to prevent layout shift */
    min-height: 490px;
    padding: 60px 20px 0 20px;
    z-index: 2;
    overflow: visible;
}

/* Faint glow decoration to make the green background feel premium and multi-dimensional */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.header-image {
    display: block;
    width: 1053px;
    max-width: 100%;
    height: auto;
    /* Mathematically calculated negative margin to overlay the divider bar proportionally */
    margin-bottom: -4.65%; 
    z-index: 3;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
    transition: transform 0.5s ease;
}

/* Hover micro-animation for header image */
.header-image:hover {
    transform: scale(1.01) translateY(2px);
}

/* ==========================================================================
   Divider Stripe (Orange-Brown)
   ========================================================================== */
.divider-stripe {
    background-color: var(--brand-orange);
    height: 50px;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Action Bar Section (Beige Middle)
   ========================================================================== */
.action-bar-section {
    background-color: var(--brand-beige);
    min-height: 139px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 20px;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.05), inset 0 -5px 15px rgba(0,0,0,0.05);
}

.action-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Image Register Button */
.register-btn-link {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.register-btn-img {
    display: block;
    width: 248px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(176, 82, 23, 0.15));
    transition: filter 0.4s ease;
}

/* Button Animations */
.register-btn-link:hover {
    transform: translateY(-4px) scale(1.05);
}

.register-btn-link:hover .register-btn-img {
    filter: drop-shadow(0 10px 20px rgba(176, 82, 23, 0.3));
}

.register-btn-link:active {
    transform: translateY(-1px) scale(0.98);
}

/* ==========================================================================
   Footer Section (Green Bottom)
   ========================================================================== */
.footer-section {
    background-color: var(--bg-green);
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 30px;
}

.badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 453px;
    perspective: 1000px;
}

.footer-badge {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: floatBadge 6s ease-in-out infinite;
}

.hashtag-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 353px;
}

.hashtag-image {
    display: block;
    width: 100%;
    height: auto;
    animation: pulseHashtag 4s ease-in-out infinite;
}

/* Floating micro-animation for the footer badge */
@keyframes floatBadge {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-0.5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Pulse animation for hashtag */
@keyframes pulseHashtag {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1053px) {
    .header-section {
        min-height: auto;
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    .header-section {
        padding-top: 30px;
    }
    .divider-stripe {
        height: 35px;
    }
    .action-bar-section {
        min-height: 100px;
        padding: 15px;
    }
    .footer-section {
        padding: 40px 20px;
    }
    .badge-container {
        max-width: 320px;
    }
    .hashtag-container {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .header-section {
        padding-top: 20px;
    }
    .divider-stripe {
        height: 25px;
    }
    .register-btn-img {
        width: 200px;
    }
    .badge-container {
        max-width: 240px;
    }
    .hashtag-container {
        max-width: 220px;
    }
}
