/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    cursor: none;
}
.scroll-text{font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;}
/* Typography */
.title {
    font-family: 'Kapakana', sans-serif;
}

.subtitle {
    font-family: 'Philosopher', serif;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Body states */
body:not(.loaded) {
    overflow: hidden;
}

body.loaded {
    overflow-x: hidden;
}

body.loaded .main-content {
    opacity: 1;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    opacity: 0.8;
    margin-left:auto;
    margin-right: auto;
}

.loading-bar {
    width: 256px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress {
    height: 100%;
    background: #10b981;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease-out;
}

.loading-text {
    color: #10b981;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

/* Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 40;
    mix-blend-mode: screen;
}

.cursor-dot {
    width: auto;
    height: auto;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.5s infinite ease-in-out;
}

.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.cursor-glow {
    position: absolute;
    top: 0px;
    left:0px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 800vh;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

body.loaded .main-content {
    opacity: 1;
}

/* Canvas Animation */
.canvas-container {
      position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.canvas-container canvas { 
    /* transform: unset !important; */
    object-fit: cover;
    object-position: center;
    left: 50%;
    top: 50%;
    /* transform: translate(-50%, -50%) !important; */
    z-index: 10;
    backface-visibility: hidden;
    will-change: transform;
}

canvas#animation-canvas2 {
    z-index: 2 !important;
    position: relative;
}

canvas#animation-canvas {
    position: absolute;
    z-index: -1;
}
#canvas-container2 {
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease;
}
.animation-canvas {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 10;
    backface-visibility: hidden;
    will-change: transform;
    transition: opacity 0.7s ease-in-out !important;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-video,
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.7s ease-in-out;
}

.background-image {
    transform: scale(1.008) !important;
}
body{cursor: default;}
/* Sections */
.section {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;    align-items: center;
   
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Only apply fade-in effect when body is loaded, but exclude hero section */
body.loaded .section:not(.hero-section):not(.fade-in) {
    opacity: 0;
    transform: translateY(50px);
}

body.loaded .section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section always visible */
body.loaded .hero-section {
    opacity: 1;
    transform: translateY(0);
}

.section.fade-in-delayed {
    transition-delay: 0.2s;
}

/* Enhanced fade-in animations for different elements - exclude hero section */
body.loaded .section:not(.hero-section):not(.fade-in) .story-content,
body.loaded .section:not(.hero-section):not(.fade-in) .craftsmanship-content,
body.loaded .section:not(.hero-section):not(.fade-in) .carousel-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.3s;
}

body.loaded .section.fade-in .story-content,
body.loaded .section.fade-in .craftsmanship-content,
body.loaded .section.fade-in .carousel-container {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for text elements - exclude hero section */
body.loaded .section:not(.hero-section):not(.fade-in) .story-title,
body.loaded .section:not(.hero-section):not(.fade-in) .craftsmanship-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.5s;
}

body.loaded .section.fade-in .story-title,
body.loaded .section.fade-in .craftsmanship-title {
    opacity: 1;
    transform: translateY(0);
}

body.loaded .section:not(.hero-section):not(.fade-in) .story-description,
body.loaded .section:not(.hero-section):not(.fade-in) .craftsmanship-description {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.7s;
}

body.loaded .section.fade-in .story-description,
body.loaded .section.fade-in .craftsmanship-description {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel specific animations - exclude hero section */
/* body.loaded .section:not(.hero-section):not(.fade-in) .carousel-images {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.4s;
}

body.loaded .section.fade-in .carousel-images {
    opacity: 1;
    transform: scale(1);
}

body.loaded .section:not(.hero-section):not(.fade-in) .carousel-name {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.6s;
}

body.loaded .section.fade-in .carousel-name {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.loaded .section:not(.hero-section):not(.fade-in) .carousel-btn {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.8s;
}

body.loaded .section:not(.hero-section):not(.fade-in) .carousel-btn.carousel-prev {
    transform: translateX(-20px);
}

body.loaded .section.fade-in .carousel-btn {
    opacity: 1;
    transform: translateX(0);
} */

/* Hero Section */
.hero-section {
    top: 0;
    align-items: flex-end;
    padding-bottom: 0;
    justify-content: center;
    height:calc(100vh - 100px);
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}
/* .hero-text{padding-bottom: 2;} */
.hero-title {
   font-weight: 500;
     
    padding-bottom: 1rem;
    opacity: 0; 
    animation: fadeInUp 0.8s ease-out 0.5s forwards;   
    font-size: 3.75rem;
    line-height: 1;
    letter-spacing: .1em;
    margin:0;
}

.hero-subtitle {
    font-size:3rem;
    font-weight: 100;
    line-height: 1;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.scroll-indicator {
    margin-top: 4rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto;
    animation: bounce 2s infinite ease-in-out;
}

/* Story Section */
.story-section {
    top: 100vh;
    height: 200vh;
    align-items: flex-start;
    padding: 0 4rem;
    justify-content: flex-start;
}

.story-content {
    position: sticky;
    top: 0;
    padding-top: 12rem;
    max-width: 32rem;
}

.story-title {
    font-size: 3rem;
     line-height: 1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    font-weight: 100;
   
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.story-description {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 24rem;
    line-height: 1.625;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

/* Craftsmanship Section */
.craftsmanship-section {
    top: 300vh;
    height: 400vh;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 4rem;
}

.craftsmanship-content {
    position: sticky;
    top: 0;
    padding-top: 12rem;
    padding-bottom: 14rem;
    max-width: 32rem;
}

.craftsmanship-title {
 font-size: 3rem;
     line-height: 1;
    margin-bottom: 2rem;
    font-weight: 100;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}
 
.craftsmanship-description {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 24rem;
    line-height: 1.625;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}
/* Carousel Section */
.carousel-section {
    top: 700vh;
    z-index: -1;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

/* .carousel-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}



.carousel-image.active {
    transform: translateX(0);
    z-index: 2;
}

.carousel-image.slide-out-left {
    transform: translateX(-100%);
    z-index: 1;
}

.carousel-image.slide-out-right {
    transform: translateX(100%);
    z-index: 1;
}

.carousel-image.slide-in-left {
    transform: translateX(-100%);
    z-index: 2;
}

.carousel-image.slide-in-right {
    transform: translateX(100%);
    z-index: 2;
}


*/
 
.embreldemerald-name-wrapper {
  margin-top: 2rem;
  text-align: center;
}
.emerald-name-wrapper .emerald-name{    text-align: center;}
  
.emerald-name-wrapper .emerald-name.slick-current {
  opacity: 1;
 
  
}
.carousel-images .slick-slide img{height:100vh;margin: 0 auto;object-fit: cover;}
.emerald-name-wrapper h3 {
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
    letter-spacing: .05em;
    transition: all linear .8s;
    transform: translateX(100px);
    transition-delay: 300ms;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    

}
.emerald-name-wrapper .emerald-name.slick-current h3{transform: translateX(0); visibility: visible; opacity: 1;}
 .emerald-name-wrapper {
 
    z-index: 30;
     padding: 0 2rem;
}
.carousel-images{height: calc(100vh - 120px);}
 
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: none;
    border: none;
    color: #fff;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatBtn 5s ease-in-out infinite;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
    animation-delay: 1s;
}

.carousel-btn svg {
    width: 2rem;
    height: 2rem;
    transition: transform 0.3s ease;
}

.carousel-btn:hover svg {
    transform: scale(1.1);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 50;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sound-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}
div#scroll-text span{padding: .5rem 1rem;}
.sound-toggle:hover {
    color: #fff;
}

.sound-bars {
    display: flex;
    gap: 2px;
    margin-right: 0.5rem;
}

.sound-bar {
    width: 2px;
    height: 12px;
    background:rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    transition: all 0.3s ease;
}
.sound-toggle.active {
    color:#fff;
    
}

.sound-toggle.active .sound-bar {
    background:  #fff;;
    animation: soundWave 2s cubic-bezier(.4,0,.6,1) infinite;
    
}

.sound-toggle.active .sound-bar:nth-child(1) {
    animation-delay: 0s;
}

.sound-toggle.active .sound-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 16px;
}

.sound-toggle.active .sound-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 20px;
}

.sound-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-text,
.back-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    animation: bounce 2s infinite ease-in-out;
}

.back-link:hover {
    color: #fff;
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(4px);
}
/* 
.carousel-images {
    position: relative;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    object-fit: contain;
}

.carousel-image.active {
    z-index: 1;
    opacity: 1;
} */
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes floatBtn {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(0) translateY(-3px);
    }
}

/* @keyframes soundWave {
    0%, 100% {
        opacity:1;
    }
    50% {
        opacity: .5;
    }
} */
@keyframes soundWave {
    50% {
        opacity: .5
    }
}
 
/* Responsive Design */
@media (max-width: 767px) {
.emerald-name-wrapper h3 { 
    font-size: 2.25rem;
    line-height: 2.5rem;
}
  .hero-title{font-size: 1.875rem;}
    .section {
        padding: 0 1rem;
    }
    .hero-subtitle {  font-size:1.875rem;line-height: 2.25rem;}
    .story-section,
    .craftsmanship-section {
        padding: 8rem 2rem;
    }
    
    .story-content,
    .craftsmanship-content {
        padding-top: 8rem;
    }
    
    .carousel-btn {
        padding: 0.75rem;
    }
    
    .carousel-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
    
    .footer {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .craftsmanship-title,.story-title {font-size: 1.875rem;
    line-height: 2.25rem;}

 
}

@media (max-width: 480px) {
    .hero-section {
        padding-bottom: 2rem;
    }
    
    .story-description,
    .craftsmanship-description {
        font-size: 0.875rem;
    }
    
    .carousel-name {
        bottom: 3rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}