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

/* Water Drop Cursor */
.water-cursor {
    width: 20px;
    height: 20px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.water-cursor::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 204, 255, 0.4);
    border-radius: 50%;
    filter: blur(2px);
    animation: pulsate 2s ease-in-out infinite;
}

.water-cursor::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(1px);
}

@keyframes pulsate {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.4) 0%, transparent 70%);
    animation: rippleEffect 1s ease-out forwards;
    z-index: 9998;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

body {
    cursor: none;
}

a, button {
    cursor: none;
}

a:hover ~ .water-cursor::before,
button:hover ~ .water-cursor::before {
    animation: pulsate 1s ease-in-out infinite;
    transform: scale(1.5);
}

/* 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 {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

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

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    will-change: opacity, transform;
    display: block;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    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) {
    /* Disable custom cursor on mobile */
    .water-cursor {
        display: none;
    }

    body, a, button {
        cursor: auto;
    }

    /* Optimize hero section */
    .hero {
        height: 100vh;
    }

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

    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .hero-content p {
        font-size: clamp(1rem, 4vw, 1.5rem);
        margin: 0.8rem 0;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

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

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

    /* Optimize explore section */
    .explore-section {
        padding: 4rem 1rem;
    }

    .section-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

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

    .design-card {
        margin: 0;
        transform: none !important;
        height: 300px;
    }

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

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

    .card-content {
        padding: 1.5rem;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    }

    .card-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .card-content p {
        font-size: 0.9rem;
        opacity: 0.9;
    }

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

    .see-more {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

@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;
    }

    .card-content {
        padding: 1rem;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    .card-content p {
        font-size: 0.85rem;
    }
}

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

    .slideshow-image {
        transition: none;
    }

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

    .floating-home:hover i {
        transform: none;
    }
}

/* Optimize touch interactions */
@media (hover: none) and (pointer: coarse) {
    .design-card {
        transform: none !important;
    }

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

    .floating-home:hover i {
        transform: none !important;
    }

    .play-button:hover {
        transform: none !important;
    }
}

/* Optimize performance */
.slideshow-image {
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.design-card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimize scrolling */
html {
    scroll-behavior: smooth;
}

@media (hover: none) and (pointer: coarse) {
    html {
        scroll-behavior: auto;
    }
}