@font-face {
    font-family: 'Carlsberg Sans';
    src: url('fonts/CarlsbergSans-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Carlsberg Sans';
    src: url('fonts/CarlsbergSans-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Carlsberg Sans';
    src: url('fonts/CarlsbergSans-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background-color: #2A6B42;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 150vh;
    background-color: #2A6B42;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 150px;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/carlsberg_background_top.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

.logo-container {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.logo {
    width: 150px;
    height: auto;
}

.bubble-decoration-top {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
}

.bubble-decoration-top img {
    width: 60vw;
    max-width: 1200px;
    height: auto;
}

.bubble-decoration-bottom-left {
    position: absolute;
    bottom: -150vh;
    left: 0;
    z-index: 5;
    pointer-events: none;
}

.bubble-decoration-bottom-left img {
    width: 50vw;
    max-width: 800px;
    height: auto;
    display: block;
    transform: translateY(20px);
}

.title-container {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    font-family: 'Carlsberg Sans', Arial, sans-serif;
    font-size: 100px;
    font-weight: 900;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: auto;
    -webkit-text-stroke: 12px transparent;
    background: linear-gradient(90deg, #00321E 0%, #00985B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    paint-order: stroke fill;
    position: relative;
    z-index: 12;
    margin: 0;
    transition: filter 0.6s ease, text-shadow 0.6s ease;
    animation: titleIntro 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, lightSweep 5s ease-in-out infinite;
}

.main-title::after {
    content: 'BREWING YOUR GROWTH';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    font-family: 'Carlsberg Sans', Arial, sans-serif;
    font-size: 100px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 35%,
            rgba(255, 255, 200, 0.3) 45%,
            rgba(255, 255, 255, 0.95) 50%,
            rgba(255, 255, 200, 0.3) 55%,
            transparent 65%,
            transparent 100%);
    background-size: 200% 100%;
    background-position: -100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: thinLineSweep 5s ease-in-out infinite;
    pointer-events: none;
    filter: blur(0.5px);
}

@keyframes titleIntro {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lightSweep {
    0% {
        filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.8)) drop-shadow(-100px 0 60px rgba(255, 255, 200, 0));
    }

    50% {
        filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 60px rgba(255, 255, 200, 0.6)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }

    100% {
        filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.8)) drop-shadow(100px 0 60px rgba(255, 255, 200, 0));
    }
}

@keyframes thinLineSweep {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Scaled lightSweep for different screen sizes */
@keyframes lightSweepMobile {
    0% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(-36px 0 22px rgba(255, 255, 200, 0));
    }

    50% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 22px rgba(255, 255, 200, 0.6)) drop-shadow(0 0 11px rgba(255, 255, 255, 0.8));
    }

    100% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(36px 0 22px rgba(255, 255, 200, 0));
    }
}

@keyframes lightSweepTablet {
    0% {
        filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8)) drop-shadow(-56px 0 34px rgba(255, 255, 200, 0));
    }

    50% {
        filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 34px rgba(255, 255, 200, 0.6)) drop-shadow(0 0 17px rgba(255, 255, 255, 0.8));
    }

    100% {
        filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8)) drop-shadow(56px 0 34px rgba(255, 255, 200, 0));
    }
}

@keyframes lightSweepMedium {
    0% {
        filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8)) drop-shadow(-80px 0 48px rgba(255, 255, 200, 0));
    }

    50% {
        filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 48px rgba(255, 255, 200, 0.6)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.8));
    }

    100% {
        filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8)) drop-shadow(80px 0 48px rgba(255, 255, 200, 0));
    }
}

@keyframes lightSweep2K {
    0% {
        filter: drop-shadow(5px 5px 11px rgba(0, 0, 0, 0.8)) drop-shadow(-133px 0 80px rgba(255, 255, 200, 0));
    }

    50% {
        filter: drop-shadow(5px 5px 11px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 80px rgba(255, 255, 200, 0.6)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
    }

    100% {
        filter: drop-shadow(5px 5px 11px rgba(0, 0, 0, 0.8)) drop-shadow(133px 0 80px rgba(255, 255, 200, 0));
    }
}

@keyframes lightSweep4K {
    0% {
        filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.8)) drop-shadow(-200px 0 120px rgba(255, 255, 200, 0));
    }

    50% {
        filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 120px rgba(255, 255, 200, 0.6)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.8));
    }

    100% {
        filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.8)) drop-shadow(200px 0 120px rgba(255, 255, 200, 0));
    }
}

.main-title::before {
    content: 'BREWING YOUR GROWTH';
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    -webkit-text-stroke: 12px transparent;
    background: linear-gradient(90deg, #00321E 0%, #00985B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-family: 'Carlsberg Sans', Arial, sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 11;
    margin-top: 20px;
    animation: subtitleIntro 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes subtitleIntro {
    0% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.cta-banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 11;
    opacity: 0;
    animation: ctaBannerIntro 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background-color: transparent;
}

@keyframes ctaBannerIntro {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cta-text {
    font-family: 'Carlsberg Sans', Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
}

.cta-star {
    position: absolute;
    color: #FFFFFF;
    font-size: 16px;
}

.star-1 {
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(10deg);
    font-size: 32px;
}

.star-2 {
    left: -15px;
    bottom: -8px;
    transform: rotate(-10deg);
}

.star-3 {
    right: -25px;
    top: -12px;
    transform: rotate(10deg);
    font-size: 32px;
}

/* Bubble Section */
.bubble-section {
    position: relative;
    width: 100%;
    min-height: 0vh;
    background-color: #2A6B42;
    overflow: hidden;
    margin-top: 100px;
}

.bubble-container {
    position: absolute;
    width: 100%;
    height: 60%;
    bottom: -100px;
    left: 0;
    z-index: 8;
    transform-origin: center center;
}

.bubble {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 2;
}

.bubble img {
    height: auto;
    pointer-events: none;
    transition: opacity 0.3s ease;
    animation: pulseBubble 2s ease-in-out infinite;
}

@keyframes pulseBubble {

    0%,
    100% {
        transform: scale(1) var(--bubble-rotation, rotate(0deg));
        filter: drop-shadow(0 8px 6px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 15px rgba(0, 255, 136, 0.3)) brightness(1);
    }

    50% {
        transform: scale(1.05) var(--bubble-rotation, rotate(0deg));
        filter: drop-shadow(0 10px 8px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 25px rgba(0, 255, 136, 0.5)) brightness(1.1);
    }
}

@keyframes pulseBubbleMobile {

    0%,
    100% {
        transform: scale(1) var(--bubble-rotation, rotate(0deg));
    }

    50% {
        transform: scale(1.05) var(--bubble-rotation, rotate(0deg));
    }
}

.bubble:hover img {
    transform: scale(1.1) var(--bubble-rotation, rotate(0deg));
}

.bubble.clicked {
    z-index: 100;
}

.bubble.clicked img {
    transform: scale(1.2) var(--bubble-rotation, rotate(0deg));
    filter: brightness(1.4) drop-shadow(0 0 20px rgba(255, 255, 100, 0.9)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.7));
    animation: none;
}

.bubble.faded {
    opacity: 0.3 !important;
    pointer-events: none;
}

.message-overlay {
    position: absolute;
    display: none;
    z-index: 1000;
    pointer-events: none;
    width: max-content;
}

.message-overlay.active {
    display: block;
}

.message-content {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    white-space: normal;
    max-width: 400px;
    line-height: 1.5;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.message-content::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.factory-section {
    position: relative;
    width: 100%;
    min-height: 20vh;
    background-color: #2A6B42;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    margin-top: 10vh;
}

.factory-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    z-index: 5;
}

.factory-container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.factory-image {
    width: 90%;
    max-width: 1200px;
    height: auto;
    transition: filter 0.6s ease, box-shadow 0.6s ease;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.15)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.1));
}

.factory-image.glow {
    filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.6)) brightness(1.15);
    animation: factoryPulse 1.5s ease-in-out infinite;
}

@keyframes factoryPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.6)) brightness(1.15);
    }

    50% {
        filter: drop-shadow(0 0 70px rgba(255, 215, 0, 0.8)) brightness(1.25);
    }
}

@keyframes factoryPulseMobile {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

.noteboard-section {
    position: relative;
    width: 100%;
    min-height: 200vh;
    background-color: #2A6B42;
    padding: 80px 20px;
    padding-bottom: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.noteboard-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 0;
    width: 100%;
    height: 80%;
    background-image: url('assets/carlsberg_background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

.noteboard-title-container {
    position: relative;
    margin-bottom: 60px;
    text-align: left;
    z-index: 10;
    width: 90%;
}

.noteboard-title-text {
    font-family: 'Carlsberg Sans', 'Be Vietnam Pro', Arial, sans-serif;
    font-size: 40px;
    font-weight: bold;
    color: #FFFFFF;
    margin: 0;
    margin-bottom: 8px;
    line-height: 1.1;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.font-fix {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.noteboard-title-text:nth-of-type(1) {
    padding-left: 50px;
}

.noteboard-title-text-highlight:nth-of-type(2) {
    padding-left: 1px;
}

.noteboard-title-text:nth-of-type(3) {
    padding-left: 100px;
}

.noteboard-title-text-highlight:nth-of-type(4) {
    padding-left: 50px;
}

.noteboard-title-text-highlight {
    font-family: 'Carlsberg Sans', 'Be Vietnam Pro', Arial, sans-serif;
    font-size: 56px;
    font-weight: 900;
    margin: 0;
    margin-bottom: 8px;
    line-height: 1.1;
    color: #00321E;
    text-align: left;
    -webkit-text-stroke: 2px #FFFFFF;
    paint-order: stroke fill;
    letter-spacing: 0.05em;
    will-change: transform, opacity;
    transform: translateZ(0);
}



.sticky-notes-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
    pointer-events: none;

    /* CSS Grid Layout - 3 columns, 2 rows */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: clamp(20px, 3vw, 60px);
    justify-items: center;
    align-items: start;
}

.note-group {
    position: relative;
    transition: transform 0.3s ease;
}

/* Reset positioning via transforms */
.note-group.note-1 {
    transform: rotate(-2deg) translateX(40%) translateY(20%);
    grid-column: 1;
    grid-row: 1;
}

.note-group.note-2 {
    transform: rotate(0deg) translateX(0%) translateY(0%);
    grid-column: 2;
    grid-row: 1;
}

.note-group.note-3 {
    transform: rotate(-1deg) translateX(-40%) translateY(40%);
    grid-column: 3;
    grid-row: 1;
}

.note-group.note-4 {
    transform: rotate(3deg) translateX(60%) translateY(0%);
    grid-column: 1;
    grid-row: 2;
}

.note-group.note-5 {
    transform: rotate(-4deg) translateX(40%) translateY(25%);
    grid-column: 2;
    grid-row: 2;
}
.sticky-note {
    position: relative;
    padding: clamp(15px, 2vw, 30px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: clamp(180px, 22vw, 350px);
    height: clamp(180px, 22vw, 350px);
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-note p {
    font-family: 'Patrick Hand', cursive;
    font-size: clamp(11px, 1.3vw, 20px);
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.note-2 .sticky-note p {
font-size: clamp(10px, 1.2vw, 18px);
}

.note-yellow {
    background-color: #FFE66D;
}

.note-cream {
    background-color: #FFF4C4;
}

.note-green {
    background-color: #B8F5B8;
}

.note-yellow-2 {
    background-color: #FFEB99;
}

.note-yellow-3 {
    background-color: #FFE66D;
}

.beer-decoration {
    position: absolute;
    height: auto;
}

.grain-1 {
    width: 35%;
    top: -10%;
    left: -15%;
    z-index: 2;
    transform: rotate(-15deg);
}

.grain-note1 {
    width: 25%;
    top: -12%;
    left: -6%;
    z-index: 2;
    transform: rotate(-10deg);
}

.glass-1 {
    width: 50%;
    top: 15%;
    left: 65%;
    z-index: 1;
}

.grain-2 {
    width: 32%;
    top: -10%;
    left: -17%;
    z-index: 1;
    transform: rotate(25deg);
}

.grain-3 {
    width: 30%;
    bottom: 50%;
    left: 12%;
    z-index: 1;
    transform: rotate(-20deg);
}

.glass-2 {
    width: 50%;
    top: -20%;
    left: 90%;
    z-index: 2;
}

.glass-note2 {
    width: 32%;
    top: -15%;
    right: -25%;
    z-index: 2;
}

.grain-note3 {
    width: 20%;
    top: -15%;
    left: -10%;
    z-index: 2;
    transform: rotate(20deg);
}

.glass-note3 {
    width: 30%;
    top: 15%;
    right: -20%;
    z-index: 1;
}

.grain-note4 {
    width: 20%;
    top: -15%;
    right: 3%;
    z-index: 2;
    transform: rotate(25deg);
}

.quote-display-container {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pin-paper {
    width: 80vw;
    max-width: 1200px;
    height: auto;
    filter: drop-shadow(8px 12px 15px rgba(0, 0, 0, 0.8));
}

.quote-content {
    position: absolute;
    top: 65%;
    left: 45%;
    transform: translate(-50%, -50%) rotate(-2deg);
    width: 70%;
    max-width: 900px;
    padding: 20px;
    margin-left:20px;

}

.quote-text {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 10px 0;
    text-align: left;
}

.memory-note-container {
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    overflow: hidden;
}

.memory-note-prompt {
    background-color: #FFF9E5;
    padding: 25px 45px;
    font-size: 20px;
    color: #333;
    text-align: left;
    max-width: 700px;
    line-height: 1.6;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #FFE66D;
    position: relative;
    transform: rotate(-0.5deg);
}

.memory-note-prompt::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    background: linear-gradient(135deg, #FFE66D 0%, #FFC107 100%);
    opacity: 0.9;
}

.prompt-line {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.prompt-line:first-child {
    margin-bottom: 8px;
}

.prompt-line.accent {
    color: #006400;
    font-style: italic;
    font-size: 0.95em;
}

.sticky-note-input {
    position: relative;
    background-color: #FFF9E5;
    width: 600px;
    height: 600px;
    padding: 60px 40px 40px 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.input-decoration {
    position: absolute;
}

.grain-left {
    width: 150px;
    top: 80px;
    left: -80px;
    transform: rotate(-25deg);
}

.grain-bottom {
    width: 130px;
    bottom: -60px;
    right: -70px;
    transform: rotate(35deg);
}

.orange-beer {
    width: 200px;
    top: 10px;
    left: -160px;
    z-index: 3;
}

.yellow-beer {
    width: 200px;
    bottom: -10px;
    left: -120px;
    z-index: 3;
}

.green-arrow {
    width: 160px;
    bottom: 30px;
    right: -90px;
    transform: rotate(20deg);
    z-index: 3;
}

.grain-memory {
    width: 120px;
    top: -40px;
    left: 200px;
    transform: rotate(25deg);
    z-index: 2;
}

.memory-label {
    position: absolute;
    top: -15px;
    right: 50px;
    background-color: #E91E63;
    padding: 15px 60px;
    transform: rotate(-2deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    clip-path: polygon(2% 8%, 5% 3%, 12% 1%, 20% 2%, 28% 0%, 35% 1%, 43% 0%, 52% 2%,
            60% 1%, 68% 3%, 75% 2%, 83% 4%, 90% 2%, 95% 5%, 98% 10%,
            99% 18%, 100% 28%, 99% 38%, 100% 48%, 99% 58%, 100% 68%, 99% 78%,
            98% 85%, 96% 92%, 92% 97%, 85% 99%, 78% 98%, 70% 99%, 62% 97%,
            54% 99%, 46% 98%, 38% 99%, 30% 97%, 22% 98%, 15% 96%, 8% 93%,
            4% 88%, 1% 82%, 0% 72%, 1% 62%, 0% 52%, 1% 42%, 0% 32%, 2% 22%, 1% 12%);
}

.memory-label span {
    font-family: 'Brush Script MT', cursive;
    font-size: 36px;
    color: white;
    font-weight: bold;
}

.sticky-note-yellow-input {
    width: 100%;
    flex: 1;
    background-color: white;
    padding: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.3s ease;
}

.sticky-note-yellow-input.folding {
    animation: paperPlaneTransform 2.8s cubic-bezier(.2, .8, .2, 1) forwards;
    transform-style: preserve-3d;
    transform-origin: center;
}


@keyframes paperPlaneTransform {

    /* 1 — Lift */
    0% {
        transform: perspective(1200px) translateY(0) scale(1) rotateX(0);
    }

    10% {
        transform: perspective(1200px) translateY(-20px) scale(1.05) rotateX(15deg);
    }

    /* 2 — Fold in half */
    22% {
        transform: perspective(1200px) scaleX(0.45) rotateY(0deg);
    }

    /* 3 — Nose fold */
    36% {
        transform: perspective(1200px) scaleX(0.35) scaleY(0.9) rotateX(-25deg);
    }

    /* 4 — Wings snap open */
    50% {
        transform: perspective(1200px) scaleX(0.7) scaleY(0.4) rotateX(70deg) rotateZ(-12deg);
    }

    /* 5 — Paper plane silhouette */
    62% {
        transform: perspective(1200px) scale(0.55) rotateX(80deg) rotateZ(-20deg);
    }

    /* 6 — Tilt & prepare to fly */
    72% {
        transform: perspective(1200px) scale(0.45) rotateX(75deg) rotateZ(-28deg) translateY(-15px);
    }

    /* 7 — Fly away */
    85% {
        transform: perspective(1200px) scale(0.3) rotateX(70deg) rotateZ(-35deg) translate(120px, -80px);
        opacity: 1;
    }

    /* 8 — Vanish */
    100% {
        transform: perspective(1200px) scale(0.15) rotateX(70deg) rotateZ(-40deg) translate(260px, -180px);
        opacity: 0;
    }
}


#noteInput {
    width: 100%;
    flex: 1;
    padding: 0;
    border: none;
    background-color: transparent;
    font-size: 18px;
    color: #333;
    resize: none;
    outline: none;
    font-family: 'Courier New', monospace;
}

#noteInput::placeholder {
    color: #999;
}

.word-counter {
    display: block;
    text-align: right;
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    color: #8B7355;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 8px;
}

.word-counter.visible {
    opacity: 1;
}

.word-counter.warning {
    color: #D4A574;
}

.add-note-btn {
    background-color: transparent;
    color: #333;
    border: 3px solid #333;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.add-note-btn:hover {
    background-color: #333;
    color: white;
    transform: scale(1.05);
}

/* Paper Plane Animation */
.paper-plane-container {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    pointer-events: none;
}

.paper-plane {
    width: 150px;
    height: 150px;
    background-image: url('assets/paper-airplane.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-45deg);
}


.sticky-note-input.shake {
    animation: shakeInput 0.3s ease-in-out;
}

@keyframes shakeInput {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-5px) rotate(-1deg);
    }

    75% {
        transform: translateX(5px) rotate(1deg);
    }
}

.sticky-note-input.tingle {
    animation: tingleAnimation 0.4s ease-out;
}

@keyframes tingleAnimation {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-0.5px, -0.3px) rotate(-0.15deg);
    }

    20% {
        transform: translate(0.5px, 0.3px) rotate(0.15deg);
    }

    30% {
        transform: translate(-0.3px, 0.3px) rotate(-0.1deg);
    }

    40% {
        transform: translate(0.3px, -0.3px) rotate(0.1deg);
    }

    50% {
        transform: translate(-0.3px, 0px) rotate(-0.08deg);
    }

    60% {
        transform: translate(0.3px, 0px) rotate(0.08deg);
    }

    70% {
        transform: translate(-0.2px, 0px) rotate(-0.05deg);
    }

    80% {
        transform: translate(0.2px, 0px) rotate(0.05deg);
    }

    90% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Thank You Modal */
.brewing-bubble {
    position: fixed;
    background: radial-gradient(circle at 30% 30%, rgba(255, 235, 150, 0.95), rgba(255, 200, 100, 0.7));
    border-radius: 50%;
    pointer-events: none;
    z-index: 2500;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    will-change: transform, opacity;
    display: none;
}

.brewing-bubble.active {
    display: block;
    animation: bubbleRise var(--bubble-duration, 2.5s) ease-out forwards;
}

@keyframes bubbleRise {
    0% {
        transform: translate(var(--drift-x, 0), 0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--drift-x, 0), var(--rise-height, -200px)) scale(1.5);
        opacity: 0;
    }
}

.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 107, 66, 0.97);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.thank-you-modal.active {
    display: flex;
    animation: fadeInModal 0.5s ease forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.thank-you-content {
    position: relative;
    background: linear-gradient(135deg, #FFE66D 0%, #FFF9E5 50%, #FFEB99 100%);
    padding: 60px 80px;
    border-radius: 25px;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(255, 255, 255, 0.3);
    animation: scaleInContent 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
    overflow: visible;
}

@keyframes scaleInContent {
    from {
        transform: scale(0.7) rotateZ(-5deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotateZ(0deg);
        opacity: 1;
    }
}

.modal-decoration {
    position: absolute;
    pointer-events: none;
}

.grain-top-left {
    width: 140px;
    top: -50px;
    left: -60px;
    transform: rotate(-25deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: floatGrain1 3s ease-in-out infinite;
}

.grain-bottom-right {
    width: 130px;
    bottom: -45px;
    right: -55px;
    transform: rotate(35deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: floatGrain2 3.5s ease-in-out infinite;
}

.yellow-beer-left {
    width: 180px;
    top: 50%;
    left: -90px;
    transform: translateY(-50%) rotate(-10deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    animation: floatBeer1 2.8s ease-in-out infinite;
}

.green-beer-right {
    width: 160px;
    top: 50%;
    right: -80px;
    transform: translateY(-50%) rotate(15deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    animation: floatBeer2 3.2s ease-in-out infinite;
}

@keyframes floatGrain1 {

    0%,
    100% {
        transform: rotate(-25deg) translateY(0);
    }

    50% {
        transform: rotate(-25deg) translateY(-10px);
    }
}

@keyframes floatGrain2 {

    0%,
    100% {
        transform: rotate(35deg) translateY(0);
    }

    50% {
        transform: rotate(35deg) translateY(10px);
    }
}

@keyframes floatBeer1 {

    0%,
    100% {
        transform: translateY(-50%) rotate(-10deg) translateX(0);
    }

    50% {
        transform: translateY(-50%) rotate(-10deg) translateX(-8px);
    }
}

@keyframes floatBeer2 {

    0%,
    100% {
        transform: translateY(-50%) rotate(15deg) translateX(0);
    }

    50% {
        transform: translateY(-50%) rotate(15deg) translateX(8px);
    }
}

.modal-message {
    position: relative;
    z-index: 10;
}

.modal-title {
    font-family: 'Carlsberg Sans', Arial, sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #1F5C32;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.modal-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 26px;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

.highlight-text {
    color: #1F5C32;
    font-weight: bold;
    font-size: 30px;
    font-family: 'Carlsberg Sans', Arial, sans-serif;
}

@media (max-width: 480px) {
    .bubble img {
        animation: pulseBubbleMobile 2s ease-in-out infinite;
        filter: none;
    }

    .factory-image.glow {
        filter: brightness(1.15);
        animation: factoryPulseMobile 1.5s ease-in-out infinite;
    }

    .brewing-bubble {
        box-shadow: none;
    }

    .hero-section {
        padding-top: 80px;
        min-height: auto;
    }

    .logo {
        width: 80px;
    }

    .logo-container {
        top: 15px;
        left: 15px;
    }


    .title-container {
        margin-top: 40px;
        margin-bottom: 80px;
        padding: 0 10px;
    }

    .main-title {
        font-size: 36px;
        -webkit-text-stroke: 3px transparent;
        width: 95%;
    }

    .main-title::before {
        -webkit-text-stroke: 3px transparent;
    }

    .main-title::after {
        font-size: 36px;
        animation: thinLineSweep 5s ease-in-out infinite;
    }

    .main-title {
        animation: titleIntro 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, lightSweepMobile 5s ease-in-out infinite;
    }

    .subtitle {
        font-size: 14px;
        width: 90%;
        line-height: 1.6;
    }

    .subtitle br {
        display: none;
    }

    .cta-banner-wrapper {
        margin-top: 20px;
        gap: 10px;
    }

    .cta-banner {
        padding: 12px 20px;
    }

    .cta-text {
        font-size: 12px;
    }

    .cta-star {
        font-size: 12px;
    }

    .star-1 {
        left: -22px;
        font-size: 24px;
    }

    .star-2 {
        left: -18px;
        bottom: -6px;
    }

    .star-3 {
        right: -10px;
        top: -10px;
        font-size: 24px;
    }

    .bubble-container {
        height: 70%;
    }

    .bubble-decoration-bottom-left {
        bottom: 0;
    }

    .message-content {
        padding: 3vw 4vw;
        font-size: 2.5vw;
        max-width: 52vw;
        min-width: 42vw;
    }

    /* Edge-aware tooltip positioning */
    .message-overlay.edge-left .message-content {
        transform: translateX(0);
    }

    .message-overlay.edge-left {
        transform: translate(0, 0) !important;
    }

    .message-overlay.edge-right .message-content {
        transform: translateX(-100%);
    }

    .message-overlay.edge-right {
        transform: translate(0, 0) !important;
    }

    .factory-section {
        margin-top: 16vh;
        min-height: auto;
    }

    .factory-image {
        width: 100%;
    }

    .noteboard-section {
        min-height: auto;
        padding: 40px 10px;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .noteboard-section::after {
        display: none;
    }

    .noteboard-title-container {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-bottom: 30px;
        padding-left: 15px;
    }

    .noteboard-title-text{
        font-size: 16px;
    }
    .noteboard-title-text-highlight {
        font-size: 20px;
    }

    .noteboard-title-text:nth-of-type(1) {
        padding-left: 5%;
    }

    .noteboard-title-text-highlight:nth-of-type(2) {
        padding-left: 15%;
    }

    .noteboard-title-text:nth-of-type(3) {
        padding-left: 10%;
    }

    .noteboard-title-text-highlight:nth-of-type(4) {
        padding-left: 20%;
    }

    .sticky-notes-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        gap: 15px;
        padding: 20px 10px;
        justify-items: center;
    }

    /* Mobile: 2 columns layout */
    .note-group.note-1 {
        grid-column: 1;
        grid-row: 1;
        transform: rotate(3deg) translateY(-2%) translateX(15%);
    }

    .note-group.note-2 {
        grid-column: 2;
        grid-row: 1;
        transform: rotate(-1deg) translateY(20%) translateX(-15%);
    }

    .note-group.note-3 {
        grid-column: 1;
        grid-row: 2;
        transform: rotate(0deg) translateY(-20%) translateX(2%);
    }

    .note-group.note-4 {
        grid-column: 2;
        grid-row: 2;
        transform: rotate(2deg) translateY(0%) translateX(-20%);
    }

    .note-group.note-5 {
        grid-column: 1;
        grid-row: 3;
        transform: rotate(0deg) translateY(-32%)translateX(15%);
        justify-self: center;
    }

    .sticky-note {
width: 36vw;
        height: 36vw;
        padding: 5vw;
    }

    .sticky-note p {
        font-size: 2vw;
        line-height: 1.4;
    }

    .note-2 .sticky-note p {
        font-size: 1.6vw;
    }

    .beer-decoration {
        transform: scale(0.5);
    }

    .glass-note2 {
        right: -2vw;
    }
    .glass-note3 {
        top:20vw;
        right: -2vw;
    }

    .quote-display-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 40px;
    }

    .pin-paper {
        width: 95vw;
        filter: none;
    }

    .quote-content {
        width: 80%;
        padding: 10px;
        left: 40%;
    }

    .quote-text {
        font-size: 10px;
        line-height: 1.6;
        margin: 10px 0;
    }

    .memory-note-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        gap: 25px;
        padding: 0 10px;
        margin-top: 40px;
    }

    .memory-note-prompt {
        padding: 8px 14px;
        font-size: 10px;
        max-width: 80%;
    }

    .prompt-line:first-child {
        margin-bottom: 3px;
    }

    .sticky-note-input {
        width: 95%;
        max-width: 350px;
        height: 95vw;
        max-height: 350px;
        padding: 50px 20px 30px 20px;
        gap: 20px;
    }

    .grain-left,
    .grain-bottom {
        width: 17vw;
    }

    .grain-left {
        top: 12.5vw;
        left: -8vw;
    }

    .grain-bottom {
        bottom: -8vw;
        right: -8vw;
    }

    .orange-beer {
        display: none;
    }

    .yellow-beer {
        width: 10vw;
        bottom: 10vw;
        left: -4vw;
    }

    .green-arrow {
        width: 13.5vw;
        bottom: 6vw;
        right: -6vw;
    }

    .grain-memory {
        width: 10vw;
        top: -1vw;
        left: 3vw;
    }

    .memory-label {
        top: -15px;
        right: 20px;
        padding: 10px 40px;
    }

    .memory-label span {
        font-size: 24px;
    }

    .sticky-note-yellow-input {
        padding: 15px;
    }

    #noteInput {
        font-size: 14px;
    }

    .add-note-btn {
        padding: 12px 35px;
        font-size: 14px;
    }

    .paper-plane {
        width: 100px;
        height: 100px;
    }

    .thank-you-content {
        padding: 32px 24px;
        max-width: 72%;
        border-radius: 16px;
    }

    .grain-top-left {
        width: 14.5vw;
        top: -5vw;
        left: -6vw;
    }

    .grain-bottom-right {
        width: 13.5vw;
        bottom: -4.5vw;
        right: -5.5vw;
    }

    .yellow-beer-left {
        width: 19vw;
        left: -9vw;
    }

    .green-beer-right {
        width: 17vw;
        right: -8vw;
    }

    .modal-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .modal-text {
        font-size: 16px;
    }

    .highlight-text {
        font-size: 18px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        min-height: 130vh;
    }

    .logo {
        width: 100px;
    }

    .logo-container {
        top: 20px;
        left: 20px;
    }


    .title-container {
        margin-top: 60px;
        margin-bottom: 100px;
        padding: 0 20px;
    }

    .main-title {
        font-size: 6vw;
        -webkit-text-stroke: 5px transparent;
        width: 100%;
    }

    .main-title::before {
        -webkit-text-stroke: 5px transparent;
    }

    .main-title::after {
        font-size: 6vw;
        animation: thinLineSweep 5s ease-in-out infinite;
    }

    .main-title {
        animation: titleIntro 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, lightSweepTablet 5s ease-in-out infinite;
    }

    .subtitle {
        font-size: 2.2vw;
        width: 100%;
    }

    .cta-banner-wrapper {
        margin-top: 25px;
        gap: 12px;
    }

    .cta-banner {
        padding: 14px 25px;
    }

    .cta-text {
        font-size: 1.8vw;
    }

    .cta-star {
        font-size: 1.6vw;
    }

    .star-1 {
        left: -26px;
        font-size: 28px;
    }

    .star-2 {
        left: -20px;
        bottom: -7px;
    }

    .star-3 {
        right: -12px;
        top: -10px;
        font-size: 28px;
    }

    .message-content {
        padding: 18px 25px;
        font-size: 16px;
        max-width: 380px;
        min-width: 280px;
    }

    .bubble-container {
        height: 65%;
        bottom: 0;
    }

    .bubble-decoration-bottom-left {
        bottom: -80vh;
    }

    .factory-section {
        margin-top: -15vh;
    }

    .factory-image {
        width: 100%;
    }

    .noteboard-section {
        min-height: 250vh;
        padding: 60px 15px;
        padding-bottom: 40vh;
    }

    .noteboard-title-container {
        position: relative;
        top: auto;
        left: auto;
        width: 90%;
        margin-bottom: 40px;
    }

    .noteboard-title-text,
    .noteboard-title-text-highlight {
        font-size: 5vw;
    }

    .sticky-notes-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 95%;
        max-width: none;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        gap: 25px;
    }

    /* Tablet: 2 columns layout - Offsets Reset */
    .note-group.note-1 {
        grid-column: 1;
        grid-row: 1;
        transform: rotate(2deg) translate(0%,30%);
    }

    .note-group.note-2 {
        grid-column: 2;
        grid-row: 1;
        transform: rotate(0deg) translate(-20%,0);
    }

    .note-group.note-3 {
        grid-column: 1;
        grid-row: 2;
        transform: rotate(-2deg) translate(10%,0);
    }

    .note-group.note-4 {
        grid-column: 2;
        grid-row: 2;
        transform: rotate(3deg) translate(0,-15%);
    }

    .note-group.note-5 {
        grid-column: 1 / -1;
        grid-row: 3;
        transform: rotate(-3deg)translate(0,-15%);
        justify-self: center;
    }

.sticky-note {
    width: 40vw;
    height: 40vw;
    padding: clamp(10px, 5vw, 30px);
}

.sticky-note p {
    font-size: 2vw;
    line-height: 1.5;
}

.note-2 .sticky-note p {
    font-size: 1.8vw;
}

    .beer-decoration {
        transform: scale(0.5);
    }
        .glass-note2 {
        right: -2vw;
    }
    .glass-note3 {
        top:20vw;
        right: -5vw;
    }

    .quote-display-container {
        top: 60%;
    }

    .pin-paper {
        width: 90vw;
    }

    .quote-content {
        width: 75%;
        padding: 15px;
    }

    .quote-text {
        font-size: 2.3vw;
        line-height: 1.7;
        margin: 12px 0;
    }

    .memory-note-container {
        top: 80%;
        gap: 30px;
    }

    .memory-note-prompt {
        padding: 18px 35px;
        font-size: 16px;
        max-width: 85%;
    }

    .sticky-note-input {
        width: 85%;
        max-width: 450px;
        height: 85vw;
        max-height: 450px;
        padding: 55px 35px 35px 35px;
        gap: 25px;
    }

    .grain-left {
        width: 120px;
        top: 70px;
        left: -60px;
    }

    .grain-bottom {
        width: 110px;
        bottom: -50px;
        right: -60px;
    }

    .orange-beer {
        display: none;
    }

    .yellow-beer {
        width: 100px;
        bottom: 45px;
        left: -55px;
    }

    .green-arrow {
        width: 80px;
        bottom: 28px;
        right: -40px;
    }

    .grain-memory {
        width: 90px;
        top: -12px;
        left: 25px;
    }

    .memory-label {
        top: -15px;
        right: 40px;
        padding: 12px 50px;
    }

    .memory-label span {
        font-size: 30px;
    }

    .sticky-note-yellow-input {
        padding: 18px;
    }

    #noteInput {
        font-size: 16px;
    }

    .add-note-btn {
        padding: 13px 40px;
        font-size: 16px;
    }

    .paper-plane {
        width: 120px;
        height: 120px;
    }

    .thank-you-content {
        padding: 50px 45px;
        max-width: 85%;
        border-radius: 22px;
    }

    .grain-top-left {
        width: 100px;
        top: -35px;
        left: -45px;
    }

    .grain-bottom-right {
        width: 95px;
        bottom: -30px;
        right: -40px;
    }

    .yellow-beer-left {
        width: 130px;
        left: -65px;
    }

    .green-beer-right {
        width: 120px;
        right: -60px;
    }

    .modal-title {
        font-size: 38px;
        margin-bottom: 18px;
    }

    .modal-text {
        font-size: 20px;
    }

    .highlight-text {
        font-size: 23px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .logo {
        width: 120px;
    }

    .logo-container {
        top: 30px;
        left: 30px;
    }


    .main-title {
        font-size: 80px;
        -webkit-text-stroke: 6px transparent;
    }

    .main-title::before {
        -webkit-text-stroke: 6px transparent;
    }

    .main-title::after {
        font-size: 80px;
        animation: thinLineSweep 5s ease-in-out infinite;
    }

    .main-title {
        animation: titleIntro 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, lightSweepMedium 5s ease-in-out infinite;
    }

    .subtitle {
        font-size: 26px;
    }

    .message-content {
        padding: 18px 28px;
        font-size: 18px;
        max-width: 420px;
        min-width: 300px;
    }

    .bubble-container {
        height: 60%;
    }

    .factory-section {
        margin-top: 20vh;
    }

    .noteboard-title-container {
        position: relative;
        top: auto;
        left: auto;
        width: 90%;
        margin-bottom: 40px;
    }

    .noteboard-title-text,
    .noteboard-title-text-highlight {
        font-size: 58px;
    }

    .sticky-notes-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 95%;
        gap: 30px;
    }

/* Medium tablet: 3 columns, 2 rows */
.note-group.note-1 {
    grid-column: 1;
    grid-row: 1;
    transform: rotate(2deg) translate(25%, 20%);
}

.note-group.note-2 {
    grid-column: 2;
    grid-row: 1;
    transform: rotate(0deg) translate(0, 0);
}

.note-group.note-3 {
    grid-column: 3;
    grid-row: 1;
    transform: rotate(-2deg) translate(-25%, 40%);
}

.note-group.note-4 {
    grid-column: 1;
    grid-row: 2;
    transform: rotate(3deg) translate(60%, 0);
}

.note-group.note-5 {
    grid-column: 3;
    grid-row: 2;
    transform: rotate(-3deg) translate(-60%, 20%);
}

    .sticky-note {
        width: 220px;
        height: 220px;
        padding: 25px;
    }

    .sticky-note p {
        font-size: 12px;
    }

.grain-note1 {
    width: 11vw;
    right: -8vw;
    top: -5vw;
}

.grain-note3 {
    width: 11vw;
    left: -5vw;
}

.grain-note4 {
    width: 11vw;
    right: -5vw;
}

.glass-note2 {
    width: 15vw;
    right: -8vw;
}

.glass-note3 {
    width: 15vw;
    right: -8vw;
}

    .quote-text {
        font-size: 2vw;
        line-height: 1.5;
        margin-right: 5vw;
    }

    .quote-content {
        left: 48%;
        padding-left: 30px;
    }

    .quote-display-container {
        top: 60%;
    }

    .beer-decoration {
        transform: scale(0.4);
    }

    .memory-note-container {
        top: 85%;
        gap: 30px;
    }

    .memory-note-prompt {
        font-size: 2vw;
        max-width: 650px;
    }

    .sticky-note-input {
        width: 550px;
        height: 550px;
    }

    .thank-you-content {
        padding: 55px 70px;
        max-width: 600px;
        border-radius: 23px;
    }

    .grain-top-left {
        width: 120px;
        top: -40px;
        left: -50px;
    }

    .grain-bottom-right {
        width: 110px;
        bottom: -35px;
        right: -45px;
    }

    .yellow-beer-left {
        width: 150px;
        left: -75px;
    }

    .green-beer-right {
        width: 140px;
        right: -70px;
    }

    .modal-title {
        font-size: 42px;
        margin-bottom: 18px;
    }

    .modal-text {
        font-size: 22px;
    }

    .highlight-text {
        font-size: 26px;
    }

    .bubble-decoration-bottom-left {
        bottom: -100vh;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .main-title {
        font-size: 100px;
    }

    .subtitle {
        font-size: 28px;
    }

    .noteboard-section {
        min-height: 280vh;
        margin-top: 20vh;
    }

    .noteboard-title-container {
        position: relative;
        top: auto;
        left: auto;
        width: 90%;
        margin-bottom: 50px;
    }

    .noteboard-title-text,
    .noteboard-title-text-highlight {
        font-size: 64px;
    }

    .sticky-notes-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        gap: 40px;
    }

    

    .note-group.note-1 {
        grid-column: 1;
        grid-row: 1;
        transform: translate(28%, 10%) rotate(-2deg);
    }

    .note-group.note-2 {
        grid-column: 2;
        grid-row: 1;
        transform: translate(0%, 0%) rotate(0deg);
    }

    .note-group.note-3 {
        grid-column: 3;
        grid-row: 1;
        transform: translate(-20%, 30%) rotate(2deg);
    }

    .note-group.note-4 {
        grid-column: 1;
        grid-row: 2;
        transform: translate(50%, -20%) rotate(-2deg);
    }

    .note-group.note-5 {
        grid-column: 2;
        grid-row: 2;
        transform: translate(30%, 10%) rotate(2deg);
    }

    .sticky-note {
width: 25.36vw;
        height: 25.36vw;
        padding: 2.92vw;
    }

    .sticky-note p {
        font-size: 15px;
    }

    .quote-display-container {
        top: 78%;
    }

    .memory-note-container {
        top: 115%;
    }

    .quote-content {
        font-size: 18px;
        margin-left: 40px;
        padding-right: 40px;
    }

    .quote-text {
        font-size: 2vw;
    }

    .grain-note4 {
        top: -5%;
        right: -8%;
    }

    .bubble-decoration-bottom-left {
        bottom: -180vh;
    }

    .factory-section {
        margin-top: 50vh;
    }
}

@media (min-width: 1367px) and (max-width: 1920px) {
    .logo {
        width: 150px;
    }

    .logo-container {
        top: 40px;
        left: 40px;
    }

    .main-title {
        font-size: 100px;
        -webkit-text-stroke: 12px transparent;
    }

    .main-title::before {
        -webkit-text-stroke: 12px transparent;
    }

    .main-title::after {
        font-size: 100px;
    }

    .subtitle {
        font-size: 42px;
    }

    .message-content {
        padding: 20px 30px;
        font-size: 20px;
        max-width: 400px;
    }

    .noteboard-title-text {
        font-size: 40px;
    }

    .noteboard-title-text-highlight {
        font-size: 56px;
    }

    .sticky-note {
        width: clamp(180px, 22vw, 350px);
        height: clamp(180px, 22vw, 350px);
        padding: clamp(15px, 2vw, 30px);
    }

    .sticky-note p {
        font-size: clamp(11px, 1.3vw, 20px);
    }

    .quote-text {
        font-size: 32px;
    }

    .memory-note-prompt {
        padding: 25px 45px;
        font-size: 20px;
        max-width: 700px;
    }

    .sticky-note-input {
        width: 600px;
        height: 600px;
        padding: 60px 40px 40px 40px;
    }

    .grain-left {
        width: 150px;
        top: 80px;
        left: -80px;
    }

    .grain-bottom {
        width: 130px;
        bottom: -60px;
        right: -70px;
    }

    .orange-beer {
        width: 200px;
        top: 10px;
        left: -160px;
    }

    .yellow-beer {
        width: 200px;
        bottom: -10px;
        left: -120px;
    }

    .green-arrow {
        width: 160px;
        bottom: 30px;
        right: -90px;
    }

    .grain-memory {
        width: 120px;
        top: -40px;
        left: 200px;
    }

    .memory-label {
        top: -15px;
        right: 50px;
        padding: 15px 60px;
    }

    .memory-label span {
        font-size: 36px;
    }

    #noteInput {
        font-size: 18px;
    }

    .add-note-btn {
        padding: 15px 50px;
        font-size: 18px;
    }

    .paper-plane {
        width: 150px;
        height: 150px;
    }

    .thank-you-content {
        padding: 60px 80px;
        max-width: 700px;
        border-radius: 25px;
    }

    .grain-top-left {
        width: 140px;
        top: -50px;
        left: -60px;
    }

    .grain-bottom-right {
        width: 130px;
        bottom: -45px;
        right: -55px;
    }

    .yellow-beer-left {
        width: 180px;
        left: -90px;
    }

    .green-beer-right {
        width: 160px;
        right: -80px;
    }

    .modal-title {
        font-size: 48px;
    }

    .modal-text {
        font-size: 26px;
    }

    .highlight-text {
        font-size: 30px;
    }

    .sticky-notes-container {
        margin-top: 12vh;
    }

    .quote-display-container {
        top: 90%;
    }

    .memory-note-container {
        top: 130%;
    }

    .bubble-decoration-bottom-left {
        bottom: -200vh;
    }
}

@media (min-width: 1921px) and (max-width: 2560px) {
    .hero-section {
        padding-top: 200px;
    }

    .logo {
        width: 200px;
    }

    .logo-container {
        top: 53px;
        left: 53px;
    }

    .bubble-decoration-top img {
        max-width: 1600px;
    }

    .bubble-decoration-bottom-left img {
        max-width: 1066px;
    }

    .title-container {
        margin-top: 133px;
        margin-bottom: 200px;
    }

    .main-title {
        font-size: 133px;
        -webkit-text-stroke: 16px transparent;
        animation: titleIntro 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, lightSweep2K 5s ease-in-out infinite;
    }

    .main-title::before {
        -webkit-text-stroke: 16px transparent;
    }

    .main-title::after {
        font-size: 133px;
    }

    .subtitle {
        font-size: 56px;
        margin-top: 27px;
    }

    .cta-banner-wrapper {
        gap: 20px;
        margin-top: 40px;
    }

    .cta-banner {
        padding: 20px 40px;
        border-radius: 11px;
    }

    .cta-text {
        font-size: 27px;
    }

    .star-1 {
        left: -40px;
        font-size: 43px;
    }

    .star-3 {
        right: -33px;
        top: -16px;
        font-size: 43px;
    }

    .bubble-container {
        height: 60%;
    }

    .message-content {
        padding: 27px 40px;
        font-size: 27px;
        max-width: 533px;
        border-radius: 13px;
    }

    .factory-section {
        margin-top: 13vh;
    }

    .factory-section::before {
        max-width: 1600px;
        height: 53px;
    }

    .factory-image {
        max-width: 1600px;
    }

    .noteboard-section {
        min-height: 200vh;
        padding: 107px 27px;
    }

    .noteboard-title-container {
        margin-bottom: 80px;
    }

    .noteboard-title-text {
        font-size: 53px;
        margin-bottom: 11px;
    }

    .noteboard-title-text:nth-of-type(1) {
        padding-left: 67px;
    }

    .noteboard-title-text:nth-of-type(3) {
        padding-left: 133px;
    }

    .noteboard-title-text-highlight {
        font-size: 75px;
        margin-bottom: 11px;
        -webkit-text-stroke: 3px #FFFFFF;
    }

    .noteboard-title-text-highlight:nth-of-type(4) {
        padding-left: 67px;
    }

    .sticky-notes-container {
        max-width: 1867px;
        gap: clamp(27px, 4vw, 80px);
    }

    .sticky-note {
        width: clamp(240px, 22vw, 467px);
        height: clamp(240px, 22vw, 467px);
        padding: clamp(20px, 2vw, 40px);
    }

    .sticky-note p {
        font-size: clamp(15px, 1.3vw, 27px);
    }

    .pin-paper {
        max-width: 1600px;
    }

    .quote-content {
        max-width: 1200px;
        padding: 27px;
        margin-left: 27px;
    }

    .quote-text {
        font-size: 43px;
        margin: 13px 0;
    }

    .memory-note-container {
        gap: 53px;
    }

    .memory-note-prompt {
        padding: 33px 60px;
        font-size: 27px;
        max-width: 933px;
    }

    .memory-note-prompt::before {
        width: 80px;
        height: 21px;
    }

    .sticky-note-input {
        width: 800px;
        height: 800px;
        padding: 80px 53px 53px 53px;
        gap: 40px;
    }

    .grain-left {
        width: 200px;
        top: 107px;
        left: -107px;
    }

    .grain-bottom {
        width: 173px;
        bottom: -80px;
        right: -93px;
    }

    .orange-beer {
        width: 267px;
        top: 13px;
        left: -213px;
    }

    .yellow-beer {
        width: 267px;
        bottom: -13px;
        left: -160px;
    }

    .green-arrow {
        width: 213px;
        bottom: 40px;
        right: -120px;
    }

    .grain-memory {
        width: 160px;
        top: -53px;
        left: 267px;
    }

    .memory-label {
        top: -20px;
        right: 67px;
        padding: 20px 80px;
    }

    .memory-label span {
        font-size: 48px;
    }

    .sticky-note-yellow-input {
        padding: 27px;
    }

    #noteInput {
        font-size: 24px;
    }

    .word-counter {
        font-size: 19px;
        margin-top: 11px;
    }

    .add-note-btn {
        padding: 20px 67px;
        font-size: 24px;
        border-width: 4px;
    }

    .paper-plane-container {
        bottom: -280px;
    }

    .paper-plane {
        width: 200px;
        height: 200px;
    }

    .thank-you-content {
        padding: 80px 107px;
        max-width: 933px;
        border-radius: 33px;
    }

    .grain-top-left {
        width: 187px;
        top: -67px;
        left: -80px;
    }

    .grain-bottom-right {
        width: 173px;
        bottom: -60px;
        right: -73px;
    }

    .yellow-beer-left {
        width: 240px;
        left: -120px;
    }

    .green-beer-right {
        width: 213px;
        right: -107px;
    }

    .modal-title {
        font-size: 64px;
        margin-bottom: 27px;
    }

    .modal-text {
        font-size: 35px;
    }

    .highlight-text {
        font-size: 40px;
    }
}

@media (min-width: 2561px) and (max-width: 3840px) {
    .hero-section {
        padding-top: 300px;
    }

    .logo {
        width: 300px;
    }

    .logo-container {
        top: 80px;
        left: 80px;
    }

    .bubble-decoration-top img {
        max-width: 2400px;
    }

    .bubble-decoration-bottom-left img {
        max-width: 1600px;
    }

    .title-container {
        margin-top: 200px;
        margin-bottom: 300px;
    }

    .main-title {
        font-size: 200px;
        -webkit-text-stroke: 24px transparent;
        animation: titleIntro 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, lightSweep4K 5s ease-in-out infinite;
    }

    .main-title::before {
        -webkit-text-stroke: 24px transparent;
    }

    .main-title::after {
        font-size: 200px;
    }

    .subtitle {
        font-size: 84px;
        margin-top: 40px;
    }

    .cta-banner-wrapper {
        gap: 30px;
        margin-top: 60px;
    }

    .cta-banner {
        padding: 30px 60px;
        border-radius: 16px;
        border-width: 4px;
    }

    .cta-text {
        font-size: 40px;
    }

    .cta-star {
        font-size: 32px;
    }

    .star-1 {
        left: -60px;
        font-size: 64px;
    }

    .star-2 {
        left: -30px;
        bottom: -16px;
    }

    .star-3 {
        right: -50px;
        top: -24px;
        font-size: 64px;
    }

    .bubble-container {
        height: 60%;
    }

    .message-content {
        padding: 40px 60px;
        font-size: 40px;
        max-width: 800px;
        border-radius: 20px;
        border-width: 4px;
    }

    .factory-section {
        margin-top: 20vh;
    }

    .factory-section::before {
        max-width: 2400px;
        height: 80px;
    }

    .factory-image {
        max-width: 2400px;
    }

    .noteboard-section {
        min-height: 200vh;
        padding: 160px 40px;
    }

    .noteboard-title-container {
        margin-bottom: 120px;
    }

    .noteboard-title-text {
        font-size: 80px;
        margin-bottom: 16px;
    }

    .noteboard-title-text:nth-of-type(1) {
        padding-left: 100px;
    }

    .noteboard-title-text:nth-of-type(3) {
        padding-left: 200px;
    }

    .noteboard-title-text-highlight {
        font-size: 112px;
        margin-bottom: 16px;
        -webkit-text-stroke: 4px #FFFFFF;
    }

    .noteboard-title-text-highlight:nth-of-type(4) {
        padding-left: 100px;
    }

    .sticky-notes-container {
        max-width: 2800px;
        gap: clamp(40px, 4vw, 120px);
    }

    .sticky-note {
        width: clamp(360px, 22vw, 700px);
        height: clamp(360px, 22vw, 700px);
        padding: clamp(30px, 2vw, 60px);
    }

    .sticky-note p {
        font-size: clamp(22px, 1.3vw, 40px);
    }

    .pin-paper {
        max-width: 2400px;
    }

    .quote-content {
        max-width: 1800px;
        padding: 40px;
        margin-left: 40px;
    }

    .quote-text {
        font-size: 64px;
        margin: 20px 0;
    }

    .memory-note-container {
        gap: 80px;
    }

    .memory-note-prompt {
        padding: 50px 90px;
        font-size: 40px;
        max-width: 1400px;
        border-left-width: 8px;
    }

    .memory-note-prompt::before {
        top: -16px;
        width: 120px;
        height: 32px;
    }

    .sticky-note-input {
        width: 1200px;
        height: 1200px;
        padding: 120px 80px 80px 80px;
        gap: 60px;
    }

    .grain-left {
        width: 300px;
        top: 160px;
        left: -160px;
    }

    .grain-bottom {
        width: 260px;
        bottom: -120px;
        right: -140px;
    }

    .orange-beer {
        width: 400px;
        top: 20px;
        left: -320px;
    }

    .yellow-beer {
        width: 400px;
        bottom: -20px;
        left: -240px;
    }

    .green-arrow {
        width: 320px;
        bottom: 60px;
        right: -180px;
    }

    .grain-memory {
        width: 240px;
        top: -80px;
        left: 400px;
    }

    .memory-label {
        top: -30px;
        right: 100px;
        padding: 30px 120px;
    }

    .memory-label span {
        font-size: 72px;
    }

    .sticky-note-yellow-input {
        padding: 40px;
    }

    #noteInput {
        font-size: 36px;
    }

    .word-counter {
        font-size: 28px;
        margin-top: 16px;
    }

    .add-note-btn {
        padding: 30px 100px;
        font-size: 36px;
        border-width: 6px;
    }

    .paper-plane-container {
        bottom: -400px;
    }

    .paper-plane {
        width: 300px;
        height: 300px;
    }

    .thank-you-content {
        padding: 120px 160px;
        max-width: 1400px;
        border-radius: 50px;
    }

    .grain-top-left {
        width: 280px;
        top: -100px;
        left: -120px;
    }

    .grain-bottom-right {
        width: 260px;
        bottom: -90px;
        right: -110px;
    }

    .yellow-beer-left {
        width: 360px;
        left: -180px;
    }

    .green-beer-right {
        width: 320px;
        right: -160px;
    }

    .modal-title {
        font-size: 96px;
        margin-bottom: 40px;
    }

    .modal-text {
        font-size: 52px;
    }

    .highlight-text {
        font-size: 60px;
    }
}
