@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));
    }
}

.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;
}

.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 {
    margin-bottom: 60px;
    text-align: left;
    position: absolute;
    top: 10%;
    left: 5%;
    z-index: 10;
    width: 90%;
}

.noteboard-title-text {
    font-family: 'Carlsberg Sans', Arial, sans-serif;
    font-size: 40px;
    font-weight: bold;
    color: #FFFFFF;
    margin: 0;
    margin-bottom: 8px;
    line-height: 1.1;
    text-align: left;
}

.noteboard-title-text:nth-of-type(1) {
    padding-left: 50px;
}
.noteboard-title-text-highlight:nth-of-type(2) {
    padding-left: 0px;
}
.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', 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;
}



.sticky-notes-container {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.note-group {
    position: absolute;
}

.sticky-note {
    position: relative;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 350px;
    height: 350px;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.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: 120px;
    top: -30px;
    left: -50px;
    z-index: 2;
    transform: rotate(-15deg);
}

.grain-note1 {
    width: 80px;
    top: -40px;
    left: -20px;
    z-index: 2;
    transform: rotate(-10deg);
}

.glass-1 {
    width: 170px;
    top: 50px;
    left: 230px;
    z-index: 1;
}

.grain-2 {
    width: 110px;
    top: -35px;
    left: -60px;
    z-index: 1;
    transform: rotate(25deg);
}

.grain-3 {
    width: 100px;
    bottom: 180px;
    left: 40px;
    z-index: 1;
    transform: rotate(-20deg);
}

.glass-2 {
    width: 180px;
    top: -70px;
    left: 320px;
    z-index: 2;
}

.glass-note2 {
    width: 110px;
    top: -50px;
    right: -80px;
    z-index: 2;
}

.grain-note3 {
    width: 70px;
    top: -35px;
    left: -35px;
    z-index: 2;
    transform: rotate(20deg);
}

.glass-note3 {
    width: 100px;
    top: 50px;
    right: -65px;
    z-index: 1;
}

.grain-note4 {
    width: 65px;
    top: -40px;
    right: 10px;
    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;

}

.quote-text {
    font-family: 'Dancing Script', cursive;
    font-size: 33px;
    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;
}

.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: 15px 20px;
        font-size: 14px;
        max-width: 250px;
        min-width: 200px;
    }

    /* 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: 5vh;
        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,
    .noteboard-title-text-highlight {
        font-size: 28px;
    }

    .sticky-notes-container {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 10px;
        overflow: visible;
    }

    .note-group {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        rotate: none !important;
        width: 155px;
        flex-shrink: 0;
    }

    /* Row 1: notes 1 and 2 side by side */
    .note-group:nth-child(1) {
        transform: rotate(-3deg) !important;
    }

    .note-group:nth-child(2) {
        transform: rotate(2deg) !important;
    }

    /* Row 2: notes 3 and 4 side by side */
    .note-group:nth-child(3) {
        transform: rotate(2deg) !important;
    }

    .note-group:nth-child(4) {
        transform: rotate(-2deg) !important;
    }

    /* Row 3: note 5 centered alone */
    .note-group:nth-child(5) {
        transform: rotate(3deg) !important;
        flex-basis: 100%;
        display: flex;
        justify-content: center;
    }

    .sticky-note {
        width: 155px;
        height: auto;
        min-height: 180px;
        padding: 15px;
    }

    .sticky-note p {
        font-size: 10px;
        line-height: 1.4;
    }

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

    .glass-note2 {
        right: -40px;
    }

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

    .pin-paper {
        width: 95vw;
    }

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

    .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: 15px 25px;
        font-size: 14px;
        max-width: 90%;
    }

    .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: 80px;
    }

    .grain-left {
        top: 60px;
        left: -40px;
    }

    .grain-bottom {
        bottom: -40px;
        right: -40px;
    }

    .orange-beer {
        display: none;
    }

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

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

    .grain-memory {
        width: 50px;
        top: -5px;
        left: 15px;
    }

    .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: 70px;
        top: -25px;
        left: -30px;
    }

    .grain-bottom-right {
        width: 65px;
        bottom: -22px;
        right: -27px;
    }

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

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

    .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: 56px;
        -webkit-text-stroke: 5px transparent;
        width: 90%;
    }

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

    .main-title::after {
        font-size: 56px;
        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: 20px;
        width: 85%;
    }

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

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

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

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

    .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: 320px;
    }

    .bubble-container {
        height: 65%;
    }

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

    .factory-image {
        width: 100%;
    }

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

    .noteboard-title-container {
        top: 8%;
        left: 5%;
    }

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

    .sticky-notes-container {
        top: 20%;
        height: 65%;
    }

    /* Note 1 - yellow, left: 48% */
    .note-group[style*="left: 48%"] {
        left: 15% !important;
        top: 15% !important;
    }

    /* Note 2 - cream, left: 72% */
    .note-group[style*="left: 72%"] {
        left: 50% !important;
        top: 18% !important;
    }

    /* Note 3 - cream, left: 28% */
    .note-group[style*="left: 28%"] {
        left: 10% !important;
        top: 30% !important;
    }

    /* Note 4 - green, left: 50% */
    .note-group[style*="left: 50%"] {
        left: 32% !important;
        top: 45% !important;
    }

    /* Note 5 - yellow-2, left: 73% */
    .note-group[style*="left: 73%"] {
        left: 60% !important;
        top: 30% !important;
    }

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

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

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

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

    .pin-paper {
        width: 90vw;
    }

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

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

    .memory-note-container {
        top: 140%;
        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: 360px;
    }

    .bubble-container {
        height: 60%;
    }

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

    .sticky-notes-container {
        top: 25%;
        height: 60%;
    }

    /* Note 1 - yellow, left: 48% */
    .note-group[style*="left: 48%"] {
        left: 35% !important;
        top: 15% !important;
    }

    /* Note 2 - cream, left: 72% */
    .note-group[style*="left: 72%"] {
        left: 62% !important;
        top: 30% !important;
    }

    /* Note 3 - cream, left: 28% */
    .note-group[style*="left: 28%"] {
        left: 5% !important;
        top: 25% !important;
    }

    /* Note 4 - green, left: 50% */
    .note-group[style*="left: 50%"] {
        left: 15% !important;
        top: 55% !important;
    }

    /* Note 5 - yellow-2, left: 73% */
    .note-group[style*="left: 73%"] {
        left: 50% !important;
        top: 60% !important;
    }

    .sticky-note {
        width: 280px;
        height: 280px;
        padding: 40px;
    }

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

    .grain-note1,
    .grain-note3,
    .grain-note4 {
        width: 90px;
    }

    .glass-note2,
    .glass-note3 {
        width: 130px;
    }

    .quote-text {
        font-size: 22px;
        line-height: 1.6;
    }

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

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

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

    .memory-note-prompt {
        font-size: 18px;
        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;
    }
}

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

    .subtitle {
        font-size: 28px;
    }

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

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

    .sticky-notes-container {
        margin-top: 80px;
    }

    /* Note 1 - yellow, left: 48% */
    .note-group[style*="left: 48%"] {
        top: 16% !important;
    }

    /* Note 2 - cream, left: 72% */
    .note-group[style*="left: 72%"] {
        top: 26% !important;
    }

    .sticky-note {
        width: 320px;
        height: 320px;
        padding: 45px;
    }

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

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

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

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

/* Additional responsive scaling for sticky notes */
@media (max-width: 1280px) {
    .sticky-note {
        width: 300px;
        height: 300px;
        padding: 28px;
    }

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

    .grain-note1, .grain-note3, .grain-note4 {
        width: 75px;
    }

    .glass-note2, .glass-note3 {
        width: 105px;
    }
}

@media (max-width: 1024px) {
    .sticky-note {
        width: 280px;
        height: 280px;
        padding: 25px;
    }

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

@media (max-width: 900px) {
    .sticky-note {
        width: 240px;
        height: 240px;
        padding: 22px;
    }

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

    .grain-note1, .grain-note3, .grain-note4 {
        width: 65px;
    }

    .glass-note2, .glass-note3 {
        width: 95px;
    }
}

@media (max-width: 768px) {
    .sticky-note {
        width: 200px;
        height: 200px;
        padding: 20px;
    }

    .sticky-note p {
        font-size: 11px;
        line-height: 1.5;
    }
}

@media (max-width: 640px) {
    .sticky-note {
        width: 180px;
        height: 180px;
        padding: 18px;
    }

    .sticky-note p {
        font-size: 10px;
        line-height: 1.4;
    }
}
