:root {
    /* Base Colors - Light Mode (Default) sesuai color palette */
    --primary: #97999b;
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --text-main: #000000;
    --text-muted: #666666;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --hero-gradient: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 100%);
    --card-hover: rgba(0, 0, 0, 0.02);
    --blend-mode: multiply;
    --image-opacity: 0.8;
}

body.dark-mode {
    --primary: #97999b;
    --bg-dark: #0f0f0f;
    --bg-darker: #050505;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 15, 15, 0.85);
    --hero-gradient: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 100%);
    --card-hover: rgba(255, 255, 255, 0.05);
    --blend-mode: screen;
    --image-opacity: 0.4;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: none;
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .navbar {
    background: #0f0f0f;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    /* Adjust height as needed */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.dark-mode .nav-links a {
    color: #ffffff;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.theme-toggle {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #000000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: #97999b;
    background: #97999b;
    color: #000000;
}

body.dark-mode .theme-toggle:hover {
    color: #ffffff;
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}



/* Hero Overlay for background image opacity control */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

body.dark-mode .hero-overlay {
    background: rgba(15, 15, 15, 0.5);
}

.hero-left-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(151, 153, 155, 0.6) 0%,
            rgba(180, 182, 184, 0.5) 8%,
            rgba(151, 153, 155, 0.3) 15%,
            transparent 30%);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: multiply;
}

body.dark-mode .hero-left-gradient {
    mix-blend-mode: overlay;
    background: linear-gradient(to right,
            rgba(151, 153, 155, 0.5) 0%,
            rgba(180, 182, 184, 0.45) 8%,
            rgba(151, 153, 155, 0.25) 15%,
            transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.hero-image-side {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-main-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
}

.hero-main-title {
    text-align: left;
    width: 100%;
}


.hero h1 {
    font-size: 6.5rem;
    font-weight: 950;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    opacity: 1;
}

/* Hero Background Text Animation */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

.bg-text-line {
    font-size: 8rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 0.5rem;
    white-space: nowrap;
}

.hero-title-large {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1.1;
    color: transparent;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    display: block;
    /* Line Art Effect */
    -webkit-text-stroke: 3px #000000;
    paint-order: stroke fill;
}

body.dark-mode .hero-title-large {
    color: transparent;
    -webkit-text-stroke: 3px #ffffff;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-main);
    max-width: 650px;
    margin-top: 1rem;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

body.dark-mode .hero-subtitle {
    color: var(--text-main);
}

/* Hero CTA Button */
.btn-hero-cta {
    display: inline-block;
    background: #a8e6cf;
    color: #000;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(168, 230, 207, 0.3);
}

.btn-hero-cta:hover {
    background: #8fd9b8;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 230, 207, 0.5);
}


.author-tag {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

body.dark-mode .author-tag {
    color: #aaa;
}

.text-gradient {
    background: linear-gradient(to right, #97999b, #666666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-wrapper {
    position: relative;
    display: inline-block;
}

.pulse-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.p-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1.5px solid var(--primary);
    border-radius: 60px;
    opacity: 0;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.p-line:nth-child(1) {
    animation-delay: 0s;
}

.p-line:nth-child(2) {
    animation-delay: 0.6s;
}

.p-line:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    letter-spacing: 1px;
}

.hero-bg-image {
    position: absolute;
    width: 85%;
    max-width: 1200px;
    opacity: var(--image-opacity);
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: var(--blend-mode);
    transition: opacity 0.5s;
}

.dark-hero-img {
    display: none;
}

.light-hero-img {
    display: block;
}

body.dark-mode .dark-hero-img {
    display: block;
}

body.dark-mode .light-hero-img {
    display: none;
}

/* Products Section */
.products-section {
    padding: 10rem 0;
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-20px);
    background: var(--card-hover);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    margin-bottom: 2rem;
    mix-blend-mode: var(--blend-mode);
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.15) rotate(3deg);
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Footer Section */
.footer {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.footer-wrapper {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    padding: 6rem 5rem 4rem;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    font-weight: 800;
}

.footer-tagline {
    color: var(--text-muted);
    margin: 2rem 0;
    max-width: 320px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--primary);
    opacity: 1;
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-icon {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.newsletter-input {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 1rem 1.8rem;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
}

.newsletter-btn {
    background: var(--primary);
    border: none;
    border-radius: 40px;
    padding: 1rem 2rem;
    color: var(--bg-darker);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bottom-links {
    display: flex;
    gap: 3rem;
}

/* Animations and Utilities */
.badge {
    background: var(--primary);
    color: var(--bg-darker);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--bg-darker);
    text-decoration: none;
    font-weight: 800;
    border-radius: 60px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.parallax-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.deco-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.deco-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Fixes */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrapper {
        padding: 4rem 2rem 2rem;
        border-radius: 40px;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Mobile Nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.active li {
        animation: navLinkFade 0.5s ease forwards;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }
}

/* Collection Page Styles */
.collection-page {
    position: relative;
    padding-top: 100px;
    background: var(--bg-dark);
}

.collection-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.collection-section:nth-child(even) {
    background: var(--bg-darker);
}

.collection-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.collection-text-container {
    z-index: 2;
}

.collection-text-container h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.collection-text-container p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Sticky Product Styling */
.sticky-product-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.sticky-product-container {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.sticky-product-image {
    width: 80%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    mix-blend-mode: var(--blend-mode);
}

body.light-mode .sticky-product-image {
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.1));
}

@media (max-width: 1024px) {
    .collection-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .collection-text-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sticky-product-wrapper {
        display: none;
        /* Hide sticky on mobile or adjust for simplified layout */
    }

    .collection-mobile-image {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1025px) {
    .collection-mobile-image {
        display: none;
    }
}

/* soft Decoration Elements */
.collection-deco {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    transition: all 1s ease;
}

.deco-soft-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15), transparent);
    top: -100px;
    left: -100px;
}

.deco-soft-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 215, 187, 0.1), transparent);
    bottom: -50px;
    right: -50px;
}

/* Anime.js Target Defaults */
.collection-text-container h2,
.collection-text-container p,
.collection-text-container .badge,
.collection-text-container .btn-primary {
    will-change: transform, opacity;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.soft-particle {
    position: absolute;
    background: radial-gradient(circle, #fff 20%, var(--primary) 30%, transparent 70%);
    border-radius: 50%;
    filter: drop-shadow(0 0 12px var(--primary));
    opacity: 0.8;
    box-shadow:
        0 0 20px var(--primary),
        0 0 40px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}