/* HOME PAGE SPECIFIC */

/* SLIDER */
.slider-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    z-index: 1;
    overflow: hidden;
}

.slider-container {
    width: 60%;
    height: 60vh;
    position: relative;
    transform-style: preserve-3d;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(0) translateZ(-200px);
    z-index: 0;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: translateX(0) translateZ(100px);
    z-index: 10;
    border: 4px solid white;
    pointer-events: auto;
}

.slide.prev {
    transform: translateX(-60%) translateZ(-100px) rotateY(25deg);
    opacity: 0.7;
    z-index: 5;
    filter: brightness(0.7);
}

.slide.next {
    transform: translateX(60%) translateZ(-100px) rotateY(-25deg);
    opacity: 0.7;
    z-index: 5;
    filter: brightness(0.7);
}

/* FIX: Slide Text Flex Container */
.active-slide-info {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    width: 80%;
    max-width: 600px;
    pointer-events: none;
    display: flex;
    /* Added */
    flex-direction: column;
    /* Added */
    align-items: center;
    /* Added */
    gap: 10px;
    /* Added */
}

.active-slide-info h3 {
    font-size: 3rem;
    color: var(--rose-primary);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.active-slide-info p {
    font-size: 1.2rem;
    color: #555;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.active-slide-info.changing h3,
.active-slide-info.changing p {
    opacity: 0;
    transform: translateY(20px);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--rose-primary);
    cursor: pointer;
    z-index: 101;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prev-btn {
    left: 5%;
}

.next-btn {
    right: 5%;
}

/* THREAD GAME */
.thread-container {
    position: fixed;
    top: 0;
    right: 15%;
    width: 60px;
    height: 300px;
    z-index: 5000;
    pointer-events: none;
}

#thread-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: auto;
    cursor: grab;
}

#thread-svg:active {
    cursor: grabbing;
}

.discount-modal {
    position: fixed;
    top: -300px;
    right: 14%;
    width: 250px;
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 4999;
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid var(--rose-primary);
}

.discount-modal.active {
    top: 0;
}

/* STORY */
.story-section {
    padding: 100px 0;
    min-height: 150vh;
    z-index: 2;
    position: relative;
}

.story-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    position: relative;
    height: 100%;
}

.knitting-path-wrapper {
    width: 100px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.story-content {
    flex: 1;
    padding-left: 120px;
    padding-top: 50px;
}

.story-card {
    margin-bottom: 300px;
    opacity: 0.3;
    transition: 0.5s;
    transform: translateX(50px);
}

.story-card:last-child {
    margin-bottom: 0;
}

.story-card.active {
    opacity: 1;
    transform: translateX(0);
}

.story-card h3 {
    color: var(--rose-primary);
    font-size: 2rem;
}

/* CUSTOMIZER */
.customizer-section {
    padding: 100px 0;
    background: white;
    text-align: center;
    z-index: 2;
    position: relative;
}

.studio-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.yarn-shelf {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.yarn-ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: grab;
    position: relative;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.2);
}

.yarn-ball::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent);
}

.product-stage {
    width: 400px;
    height: 400px;
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    transition: 0.3s;
    overflow: hidden;
}

.product-stage.drag-over {
    border-color: var(--rose-primary);
    background: #fff0f5;
    transform: scale(1.02);
}

#product-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    z-index: 2;
}

.drop-hint {
    position: absolute;
    bottom: 20px;
    color: #999;
    font-size: 0.9rem;
    z-index: 1;
}

/* COLLECTION (Restored) */
.collection-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 20;
}

.cards-trigger-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.collection-card {
    width: 250px;
    height: 350px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.collection-card:hover {
    transform: translateY(-10px);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.collection-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px;
    text-align: left;
}

.dream-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
}

.dream-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dream-center {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dream-center h3 {
    font-size: 3rem;
    color: var(--rose-primary);
    z-index: 10;
    text-transform: capitalize;
}

.dream-orbit {
    position: absolute;
    inset: 0;
}

.dream-item {
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
    margin: -60px;
    transition: 0.3s;
    cursor: pointer;
}

.dream-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.close-dream {
    position: absolute;
    top: 10%;
    right: 10%;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #4a4a4a;
}

/* CONTACT */
.contact-section {
    padding: 100px 20px 50px;
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at top right, #fff0f5 0%, #ffffff 60%);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    align-items: stretch;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(183, 110, 121, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card h3 {
    font-size: 2rem;
    color: var(--rose-primary);
    margin-bottom: 15px;
}

.contact-desc {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--rose-light);
    color: var(--rose-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: 0.3s;
}

.info-item:hover i {
    background: var(--rose-primary);
    color: white;
    transform: scale(1.1);
}

.social-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--rose-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    border: 1px solid var(--rose-light);
}

.social-btn:hover {
    background: var(--rose-primary);
    color: white;
    transform: translateY(-5px);
}

.message-paper {
    flex: 1.2;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.message-paper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 100px;
    height: 25px;
    background: rgba(212, 175, 55, 0.3);
}

.message-paper h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.stitch-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px dashed #ddd;
    background: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.stitch-input:focus {
    border-bottom-color: var(--rose-primary);
    border-bottom-style: solid;
}

.btn-send {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #d4af37, #b76e79);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(183, 110, 121, 0.3);
}