/* Font Face Declarations */
@font-face {
    font-family: 'Smooth Relief';
    src: url('./assets/fonts/Smooth Relief/SmoothRelief-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zubilo';
    src: url('./assets/fonts/Zubilo/zubilo-black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zubilo';
    src: url('./assets/fonts/Zubilo/zubilo-inline.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zubilo';
    src: url('./assets/fonts/Zubilo/zubilo-lined.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zubilo';
    src: url('./assets/fonts/Zubilo/zubilo-shadow.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Smooth Relief', 'Inter', sans-serif;
    background-color: #EFE289;
    background-image: url('./assets/images/bg.png');
    background-repeat: repeat;
    background-size: cover;
    min-width: 800px;
    min-height: 100vh;
    color: #8B4513;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: relative;
    padding: 40px;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.leaves-between {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.nav-left {
    display: flex;
    gap: 15px;
}

.ca-btn {
    background: url('./assets/images/ca.svg') no-repeat center;
    background-size: contain;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 112px;
    height: 61px;
    font-family: 'Smooth Relief', 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-btn {
    background: url('./assets/images/chart.svg') no-repeat center;
    background-size: contain;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 156px;
    height: 64px;
    font-family: 'Smooth Relief', 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-btn {
    background: url('./assets/images/buy.svg') no-repeat center;
    background-size: contain;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 233px;
    height: 63px;
    font-family: 'Smooth Relief', 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-btn:hover, .chart-btn:hover, .buy-btn:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.1);
}


.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.leaves {
    position: relative;
    width: 100%;
    height: 100%;
}

.leaf {
    position: absolute;
    height: auto;
    z-index: 0;
}

.leaves-between .leaf {
    position: relative;
    width: 60px;
    height: auto;
    z-index: 1;
    /* animation: sway 4s ease-in-out infinite; */
}

.leaves-between .leaf:hover {
    animation-play-state: paused;
    transform: scale(1.1) rotate(5deg);
}

@keyframes sway {
    /* 0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg); 
    } */
    0%, 100% { 
        transform: translateX(0px) translateY(-2px) rotate(2deg); 
    }
    55% { 
        transform: translateX(7px) translateY(1px) rotate(-1deg); 
    }
    /* 75% { 
        transform: translateX(5px) translateY(-1px) rotate(1deg); 
    } */
}

@keyframes swaydelay {
    /* 0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg); 
    } */
    0%, 100% { 
        transform: translateX(0px) translateY(-2px) rotate(2deg); 
    }
    50% {
        transform: translateX(7px) translateY(1px) rotate(-1deg); 
    }
    55% { 
        transform: translateX(7px) translateY(1px) rotate(-1deg); 
    }
    /* 75% { 
        transform: translateX(5px) translateY(-1px) rotate(1deg); 
    } */
}

@keyframes sway2 {
    0%, 100% { 
        transform: translateX(0px) translateY(-2px) rotate(2deg); 
    }
    50% { 
        transform: translateX(8px) translateY(1px) rotate(-2deg); 
    }
}

@keyframes sway2delay {
    0%, 100% { 
        transform: translateX(0px) translateY(-2px) rotate(2deg); 
    }
    35% {
        transform: translateX(7px) translateY(1px) rotate(-1deg); 
    }
    50% { 
        transform: translateX(8px) translateY(1px) rotate(-2deg); 
    }
}

@keyframes sway3 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg); 
    }
    55% { 
        transform: translateX(3px) translateY(1px) rotate(-1deg); 
    }
}

@keyframes sway4 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg); 
    }
    55% { 
        transform: translateX(4px) translateY(2px) rotate(-1deg); 
    }
}
.leaves-between .leaf-1 {
    width: 264px;
    height: 216px;
    top: -83px;
    left: 100px;
    animation: sway2 4.2s ease-in-out infinite;
    /* animation-delay: 0.1s; */
}

.leaves-between .leaf-2 {
    width: 266px;
    height: 244px;
    top: -40px;
    left: 34px;
    animation: swaydelay 4.2s ease-in-out infinite;
    /* animation-delay: 0.3s; */
}

.leaves-between .leaf-3 {
    width: 175px;
    height: 173px;
    top: -61px;
    left: 5px;
    animation: sway4 4.2s ease-in-out infinite;
    /* animation-delay: 0.2s; */
}

.leaves-between .leaf-4 {
    width: 217px;
    height: 290px;
    top: -64px;
    right: 5px;
    z-index: 2;
    animation: sway3 4.2s ease-in-out infinite;
    /* animation-delay: 1.1s; */
}

.leaves-between .leaf-5 {
    width: 214px;
    height: 284px;
    top: -113px;
    right: 35px;
    animation: sway 4.2s ease-in-out infinite;
    /* animation-delay: 0.3s; */
}

.leaves-between .leaf-6 {
    width: 216px;
    height: 204px;
    top: -57px;
    right: 78px;
    z-index: 0;
    animation: sway2 4.2s ease-in-out infinite;
    /* animation-delay: 0.1s; */
}

.light-rays {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 400px;
    background-image: url('./assets/images/light.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom center;
    opacity: 0.8;
    z-index: 10;
}

/* Hero Section */
.hero {
    padding: 80px 40px;
    text-align: center;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title h1 {
    font-family: 'Zubilo', 'Inter', sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 270px; /* Will be overridden by JavaScript */
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: white;
    margin: 0;
}

.hero-subtitle {
    font-family: 'Smooth Relief', 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    margin-top: 20px;
}

.capybara-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.capybara-left {
    margin-right: -15px;
}
.capybara-right {
    margin-left: -36px;
}

.capybara-image {
    width: 300px; /* Will be overridden by JavaScript */
    max-width: 350px;
    height: auto;
    /* animation: float 3s ease-in-out infinite; */
    position: relative;
    z-index: 2;
}

.capybara-shadow {
    width: 160%;
    height: auto;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.8;
    animation: shadowFloat 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes shadowFloat {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px) scale(1);
    }
    50% { 
        transform: translateX(-50%) translateY(0px) scale(0.9);
    }
}

/* Lore Section */
.lore {
    padding: 80px 40px;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    --lore-width: 100%;
}

.section-title {
    font-family: 'Zubilo', 'Inter', sans-serif;
    font-size: 128px;
    font-weight: 900;
    color: white;
    text-align: center;
    line-height: 1;
    letter-spacing: -1px;
}

.lore-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2.2%;
    margin-top: 2.2%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.lore-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lore-panel-1 {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
}

.lore-panel-1 .lore-image-container {
    flex-direction: row;
    align-items: flex-start;
}

.lore-panel-2 {
    grid-column: 2;
    grid-row: 1 / 3;
    z-index: 2;
    align-self: flex-start;
    justify-self: flex-start;
    margin-left: -90%;
    margin-top: 28%;
}

.lore-panel-2 .lore-image-container {
    flex-direction: column-reverse;
}

.lore-panel-3 {
    grid-column: 1;
    grid-row: 2;
    z-index: 1;
    align-self: flex-start;
    justify-self: flex-start;
}

.lore-panel-3 .lore-image-container {
    flex-direction: column-reverse;
}

.lore-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lore-image {
    height: auto;
}

.lore-image-1 {
    width: 420px; /* Will be overridden by JavaScript */
    max-width: 755px;
    z-index: 2;
}

.lore-image-2 {
    width: 470px; /* Will be overridden by JavaScript */
    max-width: 851px;
}

.lore-image-3 {
    width: 520px; /* Will be overridden by JavaScript */
    max-width: 937px;
}

.lore-text-bubble {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
}

.lore-text-bubble-1 {
    background-image: url('./assets/images/loreText1.svg');
    padding: 26px 35px 26px 89px; /* Will be overridden by JavaScript */
    top: 50px; /* Will be overridden by JavaScript */
    left: -60px; /* Will be overridden by JavaScript */
}

.lore-text-bubble-1 .lore-text {
    white-space: nowrap;
}

.lore-text-bubble-2 {
    background-image: url('./assets/images/loreText2.svg');
    padding: 29px 38px 30px 39px; /* Will be overridden by JavaScript */
    top: 50px; /* Will be overridden by JavaScript */
}

.lore-text-bubble-3 {
    background-image: url('./assets/images/loreText3.svg');
    padding: 27px 61px 27px 61px; /* Will be overridden by JavaScript */
    top: 50px; /* Will be overridden by JavaScript */
    left: -60px; /* Will be overridden by JavaScript */
}

.lore-text {
    font-family: 'Smooth Relief', 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 22px; /* Will be overridden by JavaScript */
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    margin: 0;
    z-index: 1;
    position: relative;
}

/* How to Buy Section */
.how-to-buy {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.how-to-buy .section-title {
    color: white;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.step {
    background: #F5F5F5;
    border: 3px solid #603B28;
    border-radius: 32px;
    padding: 30px;
}

.step p {
    color: #313131;
    font-size: 32px;
    line-height: 1.6;
    font-family: 'Smooth Relief', 'Inter', sans-serif;
    font-weight: 400;
    margin: 0;
}

.step strong {
    font-weight: 700;
    color: #603B28;
}

.step a {
    color: #603B28;
    text-decoration: underline;
    font-weight: 700;
}

.step a:hover {
    color: #4A2F1F;
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #313131;
    margin-top: 10px;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

/* Footer Section */
.footer {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 80px 40px;
}

.social-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cute-title-image {
    max-width: 764px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.social-icons {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.social-icon {
    width: 128px;
    height: 128px;
    color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon:hover {
    color: #D2B48C;
    transform: translateY(-8px) scale(1.1);
}

.social-icon-img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-icon:hover .social-icon-img {
    transform: scale(1.1);
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: bottom;
}

/* Font Utility Classes */
.font-smooth-relief {
    font-family: 'Smooth Relief', 'Inter', sans-serif;
}

.font-zubilo-black {
    font-family: 'Zubilo', 'Inter', sans-serif;
    font-weight: 900;
}

.font-zubilo-inline {
    font-family: 'Zubilo', 'Inter', sans-serif;
    font-weight: 400;
}

.font-zubilo-lined {
    font-family: 'Zubilo', 'Inter', sans-serif;
    font-weight: 300;
}

.font-zubilo-shadow {
    font-family: 'Zubilo', 'Inter', sans-serif;
    font-weight: 700;
}

.header, .hero, .lore, .social-section {
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 1600px) {
    .hero, .lore, .how-to-buy, .social-section {
        padding: 50px 40px;
    }
    /* Font size will be handled by JavaScript */
}

@media (max-width: 1200px) {
    .hero, .lore, .how-to-buy, .social-section {
        padding: 40px 40px;
    }
    .hero {
        padding-top:70px;
    }
    /* Font size will be handled by JavaScript */
    .capybara-shadow {
        width: 100%;
    }
    .social-section {
        gap: 10px;
    }
}
