:root {
    --primary-color: #003366;
    --secondary-color: #001f3f;
    --accent-color: #00ccff;
    --text-color: #ffffff;
    --background-color: #000033;
}

/* Leaf Cursor */
.leaf-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 9999;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.leaf-cursor::before {
    content: '🍃';
    position: absolute;
    font-size: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatLeaf 3s ease-in-out infinite;
}

@keyframes floatLeaf {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(15deg);
    }
}

body {
    cursor: none;
}

a, button {
    cursor: none;
}

a:hover ~ .leaf-cursor::before,
button:hover ~ .leaf-cursor::before {
    animation: spinLeaf 1s linear infinite;
}

@keyframes spinLeaf {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Floating Bubble Home Button */
.floating-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    cursor: none;
}

.bubble-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    animation: float 3s ease-in-out infinite;
}

.bubble-shine {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 25%;
    height: 25%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.floating-home i {
    color: var(--text-color);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.floating-home:hover i {
    transform: scale(1.2);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 2s ease, transform 2s ease;
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    transform: none !important;
}

.slideshow-image.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    z-index: 2;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 2rem;
    margin-left: 5px;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Explore Section */
.explore-section {
    background-color: var(--background-color);
    padding: 6rem 2rem;
    transform: translateZ(0);
    will-change: transform;
}

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

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.6;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.design-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.design-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

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

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-color);
}

.card-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.card-content p {
    margin: 0;
    opacity: 0.8;
}

.see-more-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.see-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.see-more:hover {
    color: var(--text-color);
}

.see-more-divider {
    color: var(--accent-color);
    opacity: 0.5;
}

/* Journal Section */
.journal-section {
    background-color: rgba(0, 51, 102, 0.3);
    padding: 6rem 2rem;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.journal-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.journal-card:hover {
    transform: translateY(-10px);
}

.journal-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.journal-content {
    padding: 2rem;
}

.date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.journal-content h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.journal-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.all-posts {
    display: block;
    text-align: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.all-posts:hover {
    color: var(--text-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: -webkit-fill-available;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
        line-height: 1.2;
    }

    .hero-content p {
        font-size: clamp(1rem, 4vw, 1.5rem);
        margin: 0.5rem 0;
    }

    .play-button {
        width: 60px;
        height: 60px;
        margin-top: 1.5rem;
    }

    .play-button i {
        font-size: 1.5rem;
    }

    .explore-section {
        padding: 4rem 1.5rem;
    }

    .section-description {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    h2 {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .design-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .design-card {
        margin: 0 auto;
        max-width: 400px;
        height: 300px;
    }

    .design-card img {
        height: 100%;
    }

    .card-content h3 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .see-more-options {
        margin-top: 3rem;
    }

    .see-more {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .floating-home {
        top: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }

    .floating-home i {
        font-size: 1.2rem;
    }

    /* Optimize animations for mobile */
    .leaf-cursor {
        display: none;
    }

    body, a, button {
        cursor: auto;
    }

    /* Performance optimizations */
    .slideshow-image {
        transition: opacity 0.5s ease;
        transform: none !important;
    }

    .design-card {
        transform: none !important;
    }

    .design-card:hover img {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }

    .design-card {
        height: 250px;
    }

    .explore-section {
        padding: 3rem 1rem;
    }

    .see-more-options {
        flex-direction: column;
        gap: 1rem;
    }

    .see-more-divider {
        display: none;
    }
}

/* Performance optimizations */
.slideshow-image {
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: opacity 1s ease;
    transform: none !important;
}

.design-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.design-card img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

/* Optimize scroll performance */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.explore-section {
    background-color: var(--background-color);
    padding: 6rem 2rem;
    transform: translateZ(0);
    will-change: transform;
}

/* Disable animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}