/* ===== GORILLA WEBSITE STYLES ===== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bungee:wght@400&family=Comic+Neue:wght@400;700&family=VT323&display=swap');

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --banana: #8B4513;
    /* Changed from #FFE135 to brown */
    --gorilla-green: #4CAF50;
    --jungle-green: #2E7D32;
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --red-500: #ef4444;
    --green-500: #22c55e;
    --gray-500: #6b7280;
}

/* ===== BASIC STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Changed from auto to smooth for better UX */
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: var(--gray-100);
    overflow-x: hidden;
    line-height: 1.6;
    /* Add will-change for better performance */
    will-change: scroll-position;
}

/* Optimize sections for better scroll performance */
section {
    /* Add performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    /* Force hardware acceleration */
}

/* Optimize images for better performance */
img {
    /* Add performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    /* Force hardware acceleration */
}

/* ===== BACKGROUND STYLES ===== */
.notebook-bg {
    background-image: url('./notebook-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Changed from fixed to scroll for better performance */
    min-height: 100vh;
    position: relative;
}

/* Alternative background options for no overflow */
.notebook-bg-contain {
    background-image: url('./notebook-bg.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Changed from fixed to scroll */
    min-height: 100vh;
}

.notebook-bg-fit {
    background-image: url('./notebook-bg.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Changed from fixed to scroll */
    min-height: 100vh;
}

/* ===== PARALLAX BACKGROUND ===== */
.notebook-bg-parallax {
    background-image: url('./notebook-bg.svg');
    background-repeat: repeat;
    background-size: contain;
    background-position: left top;
    background-attachment: scroll;
    /* Normal scroll behavior */
    min-height: 100vh;
    position: relative;
}

/* Remove parallax effect - normal scroll behavior */
.parallax-section {
    background-attachment: scroll;
    background-repeat: repeat;
    background-size: contain;
    background-position: left top;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Content overlay for better readability */
.section-content {
    position: relative;
    z-index: 2;
    background: transparent;
    /* Changed from rgba(255, 255, 255, 0.9) to transparent */
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem;
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
    backdrop-filter: blur(5px);
    border: 2px solid var(--black);
}

/* Hero section special styling */
.hero-content {
    background: transparent;
    /* Changed from rgba(255, 255, 255, 0.95) to transparent */
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem;
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    backdrop-filter: blur(10px);
    border: 3px solid var(--black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Section spacing - more compact */
section {
    padding: 2rem 0;
    /* Reduced from 4rem or more */
    min-height: auto;
    /* Remove min-height constraint */
}

/* Hero section - more compact */
.hero-section {
    padding: 2rem 0 3rem 0;
    /* Reduced padding */
    min-height: auto;
}

/* About section - more compact */
.about-section {
    padding: 2rem 0;
    min-height: auto;
}

/* Why buy section - more compact */
.why-buy-section {
    padding: 2rem 0;
    min-height: auto;
}

/* Tokenomics section - more compact */
.tokenomics-section {
    padding: 2rem 0;
    min-height: auto;
}

/* How to buy section - more compact */
.how-to-buy-section {
    padding: 2rem 0;
    min-height: auto;
}

/* Gallery section - more compact */
.gallery-section {
    padding: 2rem 0;
    min-height: auto;
}

/* FAQ section - more compact */
.faq-section {
    padding: 2rem 0;
    min-height: auto;
}

/* CTA section - more compact */
.cta-section {
    padding: 2rem 0;
    min-height: auto;
}

/* Footer section - more compact */
.footer-section {
    padding: 1.5rem 0;
    min-height: auto;
}

/* Reduce margins within sections */
.container {
    padding: 0 1rem;
    /* Reduced horizontal padding */
}

/* Reduce spacing between elements within sections */
.mb-12 {
    margin-bottom: 2rem !important;
    /* Reduced from 3rem */
}

.mb-8 {
    margin-bottom: 1.5rem !important;
    /* Reduced from 2rem */
}

.mb-6 {
    margin-bottom: 1rem !important;
    /* Reduced from 1.5rem */
}

.mb-4 {
    margin-bottom: 0.75rem !important;
    /* Reduced from 1rem */
}

/* ===== TYPOGRAPHY ===== */
.font-bungee {
    font-family: 'Bungee', cursive;
}

.font-comic {
    font-family: 'Comic Neue', cursive;
}

.font-vt323 {
    font-family: 'VT323', monospace;
}

/* ===== RUNNING TEXT ANIMATION ===== */
.running-text {
    white-space: nowrap;
    overflow: hidden;
    animation: slideLeft 20s linear infinite;
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===== HOVER EFFECTS ===== */
/* Removed all hover effects except for buttons */

/* Only keep hover for highlighter buttons */
.highlighter-btn:hover {
    background-color: #45a049;
    /* Darker green on hover */
    color: #ffffff;
}

.social-highlighter:hover {
    background-color: #45a049;
    /* Darker green on hover */
    color: #ffffff;
}

/* ===== CARD STYLES ===== */
.tokenomics-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border: 2px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
}

.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: transparent;
    /* Changed from rgba(255, 225, 53, 0.1) to transparent */
}

/* FAQ style like highlighted text in notebook */
.faq-question {
    background-color: #FFE135;
    /* Yellow color */
    color: #000000;
    padding: 2px 4px;
    /* Minimal padding */
    border-radius: 0;
    /* No border radius */
    display: inline-block;
    font-weight: bold;
    margin: 8px 0 4px 0;
    /* Spacing */
}

.faq-answer {
    background-color: #4CAF50;
    /* Green color */
    color: #ffffff;
    padding: 2px 4px;
    /* Minimal padding */
    border-radius: 0;
    /* No border radius */
    display: inline-block;
    font-weight: bold;
    margin: 4px 0 12px 0;
    /* Spacing */
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== MOBILE MENU ANIMATION ===== */
.mobile-menu {
    transition: all 0.3s ease;
    transform-origin: top;
}

.mobile-menu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

.mobile-menu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra Large Screens */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    h1 {
        font-size: 4rem;
    }

    .hero-image {
        width: 400px;
        height: 400px;
    }
}

/* Large Screens */
@media (max-width: 1279px) and (min-width: 1024px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3.5rem;
    }
}

/* Medium Screens (Tablets) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    h1 {
        font-size: 3rem;
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens (Mobile) */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8rem;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .cta-btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .social-btn {
        width: 3rem;
        height: 3rem;
    }

    .running-text {
        font-size: 0.875rem;
    }

    .tokenomics-card {
        padding: 1rem;
    }

    .faq-item {
        padding: 1rem;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    .social-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 1.5rem 0;
        /* Even more compact on mobile */
    }

    .hero-section {
        padding: 1.5rem 0 2rem 0;
    }

    .container {
        padding: 0 0.75rem;
        /* Reduced padding on mobile */
    }

    .mb-12 {
        margin-bottom: 1.5rem !important;
    }

    .mb-8 {
        margin-bottom: 1rem !important;
    }

    .mb-6 {
        margin-bottom: 0.75rem !important;
    }

    .mb-4 {
        margin-bottom: 0.5rem !important;
    }

    /* Specific mobile adjustments for WHY BUY section */
    .why-buy-section {
        padding: 1rem 0 !important;
    }

    .why-buy-section .text-center.mb-12 {
        margin-bottom: 1rem !important;
    }

    .why-buy-section .grid {
        margin-top: 1rem !important;
    }

    .why-buy-section .flex.justify-center.mt-6 {
        margin-top: 1rem !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 1rem 0;
        /* Most compact on small devices */
    }

    .hero-section {
        padding: 1rem 0 1.5rem 0;
    }

    .container {
        padding: 0 0.5rem;
    }

    /* Extra compact for WHY BUY section on small mobile */
    .why-buy-section {
        padding: 0.75rem 0 !important;
    }

    .why-buy-section .text-center.mb-12 {
        margin-bottom: 0.75rem !important;
    }

    .why-buy-section .grid {
        margin-top: 0.75rem !important;
    }

    .why-buy-section .flex.justify-center.mt-6 {
        margin-top: 0.75rem !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.m-4 {
    margin: 1rem;
}

.m-8 {
    margin: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border-2 {
    border-width: 2px;
}

.border-black {
    border-color: var(--black);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== ANIMATION UTILITIES ===== */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -30px, 0);
    }

    70% {
        transform: translate3d(0, -15px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .notebook-bg {
        background: none !important;
    }

    .running-text,
    .social-btn,
    .cta-btn {
        display: none !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--banana);
    outline-offset: 2px;
}

/* ===== BUTTON FONT STYLES ===== */
/* Copy button font */
.copy-btn {
    font-family: 'Bungee', cursive;
    font-weight: bold;
}

/* Mobile menu button font */
#mobile-menu-btn {
    font-family: 'Bungee', cursive;
    font-weight: bold;
}

/* All buttons should use main font */
button {
    font-family: 'Bungee', cursive;
    font-weight: bold;
}

/* Navbar navigation links should also use consistent font */
.navbar a,
.navbar .social-highlighter,
#mobile-menu-btn {
    font-family: 'Bungee', cursive !important;
    font-weight: bold;
}

/* Mobile menu button specific styling */
#mobile-menu-btn {
    font-family: 'Bungee', cursive;
    font-weight: bold;
    font-size: 1.5rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --banana: #000000;
        --gorilla-green: #000000;
        --black: #000000;
        --white: #ffffff;
    }
}

/* ===== HIGHLIGHTER STYLE ELEMENTS ===== */
.highlighter-text {
    background-color: #4CAF50;
    /* Green color like gallery images */
    color: #ffffff;
    padding: 8px 12px;
    /* Increased padding */
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 4px 0;
    /* Add margin for spacing */
}

.highlighter-text-yellow {
    background-color: #FFE135;
    /* Yellow color */
    color: #000000;
    padding: 8px 12px;
    /* Increased padding */
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 4px 0;
    /* Add margin for spacing */
}

/* Highlighter style for buttons without containers */
.highlighter-btn {
    background-color: #4CAF50;
    /* Green color */
    color: #ffffff;
    padding: 12px 20px;
    /* Increased padding */
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-family: 'Bungee', cursive;
    /* Changed to Bungee font for main buttons */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 4px;
    /* Add margin for spacing */
}

.highlighter-btn:hover {
    background-color: #45a049;
    /* Darker green on hover */
    color: #ffffff;
}

/* Highlighter style for social media buttons without containers */
.social-highlighter {
    background-color: #4CAF50;
    /* Green color */
    color: #ffffff;
    padding: 6px;
    /* Reduced padding from 12px to 6px */
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-family: 'Bungee', cursive;
    /* Added Bungee font for social buttons */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 2px;
    /* Reduced margin from 4px to 2px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-highlighter:hover {
    background-color: #45a049;
    /* Darker green on hover */
    color: #ffffff;
}

/* Social media icons - fix proportions */
.social-highlighter img,
.navbar .social-highlighter img,
.footer .social-highlighter img {
    width: 24px;
    height: 24px;
    /* Reduced to 0.5x from 48px to 24px */
    object-fit: contain;
    object-position: center;
}

/* Filter for all social icons to have same black color */
.social-highlighter img[src*="Social-icons_x.png"],
.social-highlighter img[src*="Social-icons_telegram.png"],
.social-highlighter img[src*="Social-icons_dex.png"] {
    filter: brightness(0) saturate(100%);
}

/* Navbar social icons */
.navbar .social-highlighter {
    width: 40px;
    height: 40px;
    /* Reduced to 0.5x from 80px to 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    /* Override Tailwind text-black */
}

/* Footer social icons */
.footer .social-highlighter {
    width: 50px;
    height: 50px;
    /* Reduced to 0.5x from 100px to 50px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    /* Override Tailwind text-black */
}

/* CTA section social icons */
.cta-section .social-highlighter {
    width: 80px;
    height: 80px;
    /* Reduced to 0.5x from 160px to 80px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    /* Override Tailwind text-black */
}

.cta-section .social-highlighter img {
    width: 48px;
    height: 48px;
    /* Reduced to 0.5x from 96px to 48px */
}

/* Mobile responsive for social icons */
@media (max-width: 768px) {
    .navbar .social-highlighter {
        width: 36px;
        height: 36px;
        /* Reduced to 0.5x from 72px to 36px */
        color: #ffffff !important;
        padding: 6px !important;
        margin: 2px !important;
    }

    .navbar .social-highlighter img {
        width: 20px;
        height: 20px;
        /* Reduced to 0.5x from 40px to 20px */
    }

    .footer .social-highlighter {
        width: 44px;
        height: 44px;
        /* Reduced to 0.5x from 88px to 44px */
        color: #ffffff !important;
        padding: 6px !important;
        margin: 2px !important;
    }

    .footer .social-highlighter img {
        width: 22px;
        height: 22px;
        /* Reduced to 0.5x from 44px to 22px */
    }

    .cta-section .social-highlighter {
        width: 70px;
        height: 70px;
        /* Reduced to 0.5x from 140px to 70px */
        color: #ffffff !important;
        padding: 6px !important;
        margin: 2px !important;
    }

    .cta-section .social-highlighter img {
        width: 42px;
        height: 42px;
        /* Reduced to 0.5x from 84px to 42px */
    }
}

@media (max-width: 480px) {
    .navbar .social-highlighter {
        width: 32px;
        height: 32px;
        /* Reduced to 0.5x from 64px to 32px */
        color: #ffffff !important;
        padding: 6px !important;
        margin: 2px !important;
    }

    .navbar .social-highlighter img {
        width: 18px;
        height: 18px;
        /* Reduced to 0.5x from 36px to 18px */
    }

    .footer .social-highlighter {
        width: 40px;
        height: 40px;
        /* Reduced to 0.5x from 80px to 40px */
        color: #ffffff !important;
        padding: 6px !important;
        margin: 2px !important;
    }

    .footer .social-highlighter img {
        width: 20px;
        height: 20px;
        /* Reduced to 0.5x from 40px to 20px */
    }

    .cta-section .social-highlighter {
        width: 60px;
        height: 60px;
        /* Reduced to 0.5x from 120px to 60px */
        color: #ffffff !important;
        padding: 6px !important;
        margin: 2px !important;
    }

    .cta-section .social-highlighter img {
        width: 36px;
        height: 36px;
        /* Reduced to 0.5x from 72px to 36px */
    }
}

/* Footer Image - Absolute positioned */
.footer-image-absolute {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    /* Ubah dari 0 ke 1 agar gambar terlihat */
    transform: rotateX(0deg);
    /* Ubah dari -100deg ke 0deg */
    transform-origin: top;
}

.footer-gorilla-img {
    width: 300px;
    /* Ubah ukuran di sini - Desktop */
    height: auto;
    max-width: 40vw;
    /* Ubah max-width di sini */
    opacity: 0.9;
}

/* Swing-in-top-fwd animation - hanya saat class ditambahkan */
.footer-image-absolute.swing-in-top-fwd {
    -webkit-animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
    animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
}

@-webkit-keyframes swing-in-top-fwd {
    0% {
        -webkit-transform: rotateX(-100deg);
        transform: rotateX(-100deg);
        -webkit-transform-origin: top;
        transform-origin: top;
        opacity: 0;
    }

    100% {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
        -webkit-transform-origin: top;
        transform-origin: top;
        opacity: 1;
    }
}

@keyframes swing-in-top-fwd {
    0% {
        -webkit-transform: rotateX(-100deg);
        transform: rotateX(-100deg);
        -webkit-transform-origin: top;
        transform-origin: top;
        opacity: 0;
    }

    100% {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
        -webkit-transform-origin: top;
        transform-origin: top;
        opacity: 1;
    }
}

/* Mobile responsive for footer image */
@media (max-width: 768px) {
    .footer-gorilla-img {
        width: 200px;
        /* Ubah ukuran di sini - Tablet */
        max-width: 50vw;
    }
}

@media (max-width: 480px) {
    .footer-gorilla-img {
        width: 150px;
        /* Ubah ukuran di sini - Mobile */
        max-width: 60vw;
    }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #FFE135);
    z-index: 9999;
    transition: width 0.1s ease;
    transform: translateZ(0);
    /* Force hardware acceleration */
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Reduce repaints and reflows */
.notebook-bg-parallax {
    transform: translateZ(0);
    will-change: scroll-position;
}

/* Optimize animations */
@media (prefers-reduced-motion: no-preference) {
    .animate-fade-in {
        animation: fadeIn 0.6s ease-out;
    }
}

/* Reduce animation complexity */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ===== ADDITIONAL PERFORMANCE OPTIMIZATIONS ===== */
/* Optimize all images */
img {
    image-rendering: -webkit-optimize-contrast;
    -webkit-image-rendering: crisp-edges;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize sections */
section {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize navbar */
.navbar {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize buttons */
.highlighter-btn,
.social-highlighter {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce layout thrashing */
.container {
    contain: layout style;
}

/* Optimize grid layouts */
.grid {
    contain: layout style;
}

/* Optimize text rendering */
.font-bungee,
.font-comic,
.font-vt323 {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: none;
}

/* ===== SMOOTH SCROLLING OPTIMIZATIONS ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed navbar */
}

/* Optimize scroll performance on mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
        /* Disable smooth scroll on mobile for better performance */
    }

    /* Reduce animation complexity on mobile */
    .animate-fade-in {
        animation: none;
    }

    /* Disable complex animations on mobile */
    .footer-image-absolute.swing-in-top-fwd {
        animation: none;
        opacity: 1 !important;
        transform: rotateX(0deg) !important;
    }
}

/* ===== GALLERY HOVER EFFECTS ===== */
.gallery-section .aspect-square {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-section .aspect-square:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.gallery-section .aspect-square img {
    transition: all 0.3s ease;
    transform: scale(1);
}

.gallery-section .aspect-square:hover img {
    transform: scale(1.1);
}

/* Add a subtle overlay effect on hover */
.gallery-section .aspect-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.1), rgba(255, 225, 53, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-section .aspect-square:hover::before {
    opacity: 1;
}

/* Add a cute baby gorilla emoji on hover */
.gallery-section .aspect-square::after {
    content: '🐒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-section .aspect-square:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Mobile responsive hover effects */
@media (max-width: 768px) {
    .gallery-section .aspect-square:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);
    }

    .gallery-section .aspect-square:hover img {
        transform: scale(1.05);
    }

    .gallery-section .aspect-square::after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-section .aspect-square:hover {
        transform: translateY(-2px) scale(1.005);
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    }

    .gallery-section .aspect-square:hover img {
        transform: scale(1.03);
    }

    .gallery-section .aspect-square::after {
        font-size: 14px;
    }
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-family: 'Bungee', cursive;
    /* Changed to Bungee font for consistency */
    font-weight: bold;
    z-index: 10000;
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
}

.notification-success {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-left: 4px solid #2E7D32;
}

.notification-info {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    border-left: 4px solid #0D47A1;
}

.notification-error {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    border-left: 4px solid #b71c1c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOut 0.3s ease forwards;
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    @keyframes slideIn {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }

        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
}