/* Performance and Mobile Optimizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-section {
    min-height: 100vh;
    min-height: 100svh; /* Support for newer viewport units */
    background-image: url('ice.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    will-change: transform;
    overflow: hidden;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Floating decorative elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: float-around 8s ease-in-out infinite;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.float-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 25%;
    right: 15%;
    animation-delay: -1s;
}

.float-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: -2s;
}

.float-4 {
    top: 60%;
    right: 25%;
    animation-delay: -3s;
}

.float-5 {
    top: 40%;
    left: 5%;
    animation-delay: -4s;
}

.float-6 {
    bottom: 15%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes float-around {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Title decorations */
.title-decorations {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.sparkle {
    font-size: 2.5rem;
    animation: sparkle 2s ease-in-out infinite;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sparkle-left {
    animation-delay: 0s;
}

.sparkle-right {
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

/* Hero subtitle */
.hero-subtitle {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

/* Hero badges */
.hero-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: badge-glow 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-badge:nth-child(1) {
    animation-delay: 0s;
}

.hero-badge:nth-child(2) {
    animation-delay: 1s;
}

.hero-badge:nth-child(3) {
    animation-delay: 2s;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

/* Ice pattern overlay */
.ice-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    animation: pattern-shift 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pattern-shift {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
}

.noki-title {
    font-family: 'Grobold', 'Fredoka One', cursive;
    font-size: 8rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 
        4px 4px 0px #000000,
        8px 8px 0px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 102, 255, 0.5);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    transform: rotate(-2deg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: rotate(-2deg) translateY(0px);
    }
    50% {
        transform: rotate(-2deg) translateY(-10px);
    }
}

.main-image-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    will-change: transform;
}

.main-image:hover {
    transform: scale(1.05);
}

/* Optimize images for performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .noki-title {
        font-size: 6rem;
    }
    
    .main-image-container {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .noki-title {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .main-image-container {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .noki-title {
        font-size: 3rem;
        letter-spacing: 0.05em;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Marquee Section */
.marquee-section {
    background-color: #000000;
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.marquee {
    display: inline-block;
    animation: scroll-left 50s linear infinite;
    white-space: nowrap;
    will-change: transform;
    padding-left: 100%;
}

.marquee-text {
    font-family: 'Grobold', 'Fredoka One', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2em;
    display: inline-block;
    white-space: nowrap;
    word-spacing: 1em;
    text-transform: uppercase;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Second Section - Info Section */
.info-section {
    background-color: #0066ff;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.info-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Info section decorative image */
.info-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.info-trans-img {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 300px;
    height: auto;
    opacity: 0.3;
    animation: floatGentle 8s ease-in-out infinite;
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        transform: translateY(-60%) rotate(5deg);
    }
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.find-title {
    font-family: 'Grobold', 'Fredoka One', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 
        2px 2px 0px #000000,
        4px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

.contract-info {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ca-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.ca-value {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Responsive for info section */
@media (max-width: 768px) {
    .info-section {
        padding: 3rem 1rem;
    }
    
    .find-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    .contract-info {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-trans-img {
        width: 200px;
        opacity: 0.2;
        right: 2%;
    }
}

@media (max-width: 480px) {
    .find-title {
        font-size: 2rem;
    }
    
    .contract-info {
        font-size: 1rem;
    }
    
    .info-trans-img {
        width: 150px;
        opacity: 0.15;
        right: -5%;
    }
}

/* Story Section */
.story-section {
    background-color: #0066ff;
    padding: 5rem 2rem;
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.story-img:hover {
    transform: translateY(-5px);
    box-shadow: 
        12px 12px 0px #003399,
        16px 16px 0px rgba(0, 0, 0, 0.2),
        0 8px 30px rgba(0, 0, 0, 0.4);
}

.story-text {
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.8;
}

.story-text p {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-align: left;
}

.story-final {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 2rem !important;
    text-align: center !important;
    font-family: 'Fredoka One', cursive !important;
}

/* Responsive for story section */
@media (max-width: 768px) {
    .story-section {
        padding: 3rem 1rem;
    }
    
    .story-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .story-text p {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .story-final {
        font-size: 1.3rem !important;
    }
    
    .story-img {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .story-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .story-final {
        font-size: 1.2rem !important;
    }
    
    .story-img {
        max-width: 250px;
    }
}

/* Facts Section */
.facts-section {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    padding: 5rem 2rem;
    color: #ffffff;
}

.facts-container {
    max-width: 1000px;
    margin: 0 auto;
}

.facts-title {
    font-family: 'Grobold', 'Fredoka One', cursive;
    font-size: 3rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 
        2px 2px 0px #000000,
        4px 4px 10px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid #ffffff;
    box-shadow: 
        6px 6px 0px #000000,
        10px 10px 0px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 
        8px 8px 0px #000000,
        12px 12px 0px rgba(0, 0, 0, 0.3);
}

.faq-question {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.faq-answer {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
}

.contract-addresses-facts {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border: 3px solid #ffffff;
    margin-top: 1rem;
    box-shadow: 
        4px 4px 0px #000000,
        6px 6px 0px rgba(0, 0, 0, 0.3);
}

.contract-addresses-facts p {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1rem;
    color: #ffffff;
    margin: 0.5rem 0;
    font-weight: 600;
}

/* Contract Address Copy Functionality */
.ca-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ca-address-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ca-address {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 5px;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0px);
}

/* Info section contract address styles */
.ca-value-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.ca-value {
    font-family: 'Monaco', 'Menlo', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.copy-btn-info {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.4rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.copy-btn-info:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.copy-btn-info:active {
    transform: translateY(0px);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-link {
    background: #0066ff;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-link:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.how-to-buy {
    margin-top: 1rem;
}

.buy-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 10px;
    border: 3px solid #0066ff;
    box-shadow: 
        4px 4px 0px #000000,
        6px 6px 0px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.buy-step:hover {
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 0px #000000,
        8px 8px 0px rgba(0, 0, 0, 0.2);
}

.step-number {
    background: #0066ff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.buy-step p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1rem;
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

/* Responsive for facts section */
@media (max-width: 768px) {
    .facts-section {
        padding: 3rem 1rem;
    }
    
    .facts-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.2rem;
    }
    
    .faq-answer {
        font-size: 1rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .info-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Contract address mobile styles for 768px */
    .ca-address-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ca-address {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .copy-btn {
        align-self: center;
        width: 60px;
    }
    
    .ca-value-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ca-value {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .copy-btn-info {
        align-self: center;
        width: 60px;
    }
}

@media (max-width: 480px) {
    .facts-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .buy-step {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contract address mobile styles for 480px */
    .ca-address {
        font-size: 0.75rem;
        padding: 0.3rem;
        line-height: 1.2;
    }
    
    .copy-btn {
        width: 50px;
        height: 36px;
        padding: 0.3rem;
    }
    
    .ca-value {
        font-size: 0.75rem;
        padding: 0.3rem;
        line-height: 1.2;
    }
    
    .copy-btn-info {
        width: 50px;
        height: 32px;
        padding: 0.3rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 1024px) {
    .floating-elements {
        display: block;
    }
    
    .float-element {
        font-size: 1.5rem;
    }
    
    .float-element i {
        color: #ffffff;
    }
    
    .main-image {
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* Better performance on mobile */
        min-height: 100vh;
        min-height: 100svh;
    }
    
    .noki-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .marquee-text {
        font-size: 1.2rem;
    }
    
    .main-image {
        max-width: 320px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    /* Reduce animations on mobile for better performance */
    .story-img:hover {
        transform: none;
        box-shadow: 
            8px 8px 0px #003399,
            12px 12px 0px rgba(0, 0, 0, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .noki-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .main-image-container {
        max-width: 90%;
        padding: 0 1rem;
    }
    
    .main-image {
        max-width: 350px; /* Increased from default mobile size */
        width: 100%;
    }
    
    /* Adjust decorative elements for mobile */
    .floating-elements {
        display: none; /* Hide floating elements on small screens for performance */
    }
    
    .title-decorations {
        gap: 1rem;
    }
    
    .sparkle {
        font-size: 2rem;
    }
    
    .sparkle i {
        color: #ffffff;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-badges {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .info-section {
        padding: 3rem 1rem;
    }
    
    .story-section {
        padding: 3rem 1rem;
    }
    
    .marquee-text {
        font-size: 1rem;
    }
    
    /* Disable hover effects on touch devices */
    .faq-item:hover {
        transform: none;
        box-shadow: 
            6px 6px 0px #000000,
            10px 10px 0px rgba(0, 0, 0, 0.2);
    }
    
    .buy-step:hover {
        transform: none;
        box-shadow: 
            4px 4px 0px #000000,
            6px 6px 0px rgba(0, 0, 0, 0.2);
    }
}

/* Touch-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    .main-image:hover,
    .story-img:hover,
    .faq-item:hover,
    .info-link:hover {
        transform: none;
    }
    
    /* Make buttons more touch-friendly */
    .info-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('ice.jpg');
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .noki-title {
        animation: none;
    }
    
    .marquee {
        animation: none;
        transform: translateX(0);
    }
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

.gallery-container {
    text-align: center;
    color: white;
}

.gallery-title {
    font-family: 'Grobold', 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 
        3px 3px 0px #000000,
        6px 6px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.horizontal-scroll {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    height: 100%;
    width: max-content;
    animation: scroll-left-to-right 25s linear infinite;
    will-change: transform;
}

@keyframes scroll-left-to-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

.gallery-item {
    position: relative;
    width: 300px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 
        8px 8px 0px #000000,
        12px 12px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        12px 12px 0px #000000,
        16px 16px 0px rgba(0, 0, 0, 0.4);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}



/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .horizontal-scroll {
        height: 300px;
    }
    
    .gallery-item {
        width: 250px;
        height: 280px;
    }
    
    .gallery-item:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 3rem 0;
    }
    
    .gallery-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .horizontal-scroll {
        height: 250px;
    }
    
    .gallery-item {
        width: 200px;
        height: 220px;
    }
    
    .gallery-track {
        gap: 1rem;
    }
}

/* Focus styles for accessibility */
.info-link:focus,
button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Transparent Images Styling */
.trans-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.trans-img {
    position: absolute;
    width: 150px;
    height: auto;
    opacity: 0.7;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.trans-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    animation-name: floatSlow;
    animation-delay: 0s;
}

.trans-2 {
    top: 20%;
    right: 10%;
    width: 180px;
    animation-name: floatMedium;
    animation-delay: 2s;
}

.trans-3 {
    bottom: 20%;
    left: 15%;
    width: 160px;
    animation-name: floatFast;
    animation-delay: 4s;
}

.trans-4 {
    top: 60%;
    right: 5%;
    width: 190px;
    animation-name: floatSlow;
    animation-delay: 6s;
}

.trans-5 {
    bottom: 10%;
    right: 20%;
    width: 170px;
    animation-name: floatMedium;
    animation-delay: 8s;
}



/* Float animations for transparent images */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

@keyframes floatMedium {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg) scale(1.05);
    }
}

@keyframes floatFast {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(3deg);
    }
    75% {
        transform: translateY(5px) rotate(-2deg);
    }
}

/* Mobile responsive adjustments for transparent images */
@media (max-width: 768px) {
    .trans-img {
        width: 100px !important;
        opacity: 0.5;
    }
    
    .trans-1, .trans-2, .trans-3, .trans-4, .trans-5 {
        width: 100px !important;
    }
}

@media (max-width: 480px) {
    .trans-img {
        width: 80px !important;
        opacity: 0.4;
    }
    
    .trans-1, .trans-2, .trans-3, .trans-4, .trans-5 {
        width: 70px !important;
    }
}