@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

:root {
    --primary-color: #ff1f5a;
    --secondary-color: #05ffa1;
    --dark-color: #0f0f1a;
    --light-color: #f8f9fa;
    --accent-color: #7209b7;
    --gold-color: #ffd700;
    --pink-color: #ff69b4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--light-color);
    overflow-x: hidden;
    width: 100%;
    cursor: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 5px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0.7;
    transition: width 0.3s, height 0.3s, opacity 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: width 0.6s, height 0.6s, border-color 0.3s;
    opacity: 0.5;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    width: 0%;
    transition: width 0.1s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-photo-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

.hero-photo {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 31, 90, 0.5);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.hero-photo-container:hover .hero-photo {
    transform: rotateY(180deg);
}

.hero-photo-front, .hero-photo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.hero-photo-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.special-date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--light-color);
    margin-bottom: 15px;
}

.hero-quote {
    font-style: italic;
    font-size: 1rem;
}

.hero-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        transparent,
        transparent,
        rgba(255, 31, 90, 0.5),
        rgba(5, 255, 161, 0.5)
    );
    transform: rotate(45deg);
    z-index: 1;
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateY(-100%); }
    100% { transform: rotate(45deg) translateY(100%); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(255, 31, 90, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 30px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 5;
}

.scroll-indicator i {
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Fixed Nav */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-100%);
    transition: transform 0.5s;
}

.fixed-nav.visible {
    transform: translateY(0);
}

.nav-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.nav-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-title {
    font-size: 1.2rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'Orbitron', sans-serif;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-controls button {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.music-controls button:hover {
    color: var(--secondary-color);
}

/* 3D Model Section */
.model-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* content-visibility: auto; */ /* Kept from original as per request, though it was part of the issue with gallery */
    /* contain-intrinsic-size: 1px 5000px; */ /* Kept from original */
}

.model-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

#heart-model {
    width: 100%;
    height: 100%;
}

.model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4), transparent);
}

.model-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    font-family: 'Dancing Script', cursive;
    color: var(--pink-color);
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.model-description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Gallery Section */
.gallery {
    padding: 100px 10%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    font-family: 'Orbitron', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 100px;
}

.gallery-item {
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    /* content-visibility: auto; */ /* MODIFICATION: Removed for fix */
    /* contain-intrinsic-size: 1px 5000px; */ /* MODIFICATION: Removed for fix */
    z-index:1;
}

.gallery-item:nth-child(even) {
    flex-direction: row-reverse;
}

.gallery-photo {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-photo:hover img {
    transform: scale(1.05);
}

.gallery-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0.3;
    transition: opacity 0.3 ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-photo:hover::before {
    opacity: 0;
}

.gallery-content {
    flex: 1;
}

.gallery-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--secondary-color);
}

.gallery-content h3::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.gallery-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
}

.gallery-content .romantic-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--pink-color);
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-item:hover .romantic-text {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Floating Elements */
#floating-elements-container { /* Changed from .floating-elements to target ID if this is unique */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Check z-index relative to gallery items */
    overflow: hidden; /* Prevent elements from showing outside bounds before animation */
}
/* If .floating-elements was intentional for multiple such containers, revert ID to class */
.floating-elements { /* Assuming this was the original selector for the container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}


.floating-element {
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    animation: float 15s infinite linear;
}

.floating-heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff1f5a'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.floating-star {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd700'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.floating-flower {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2305ffa1'%3E%3Cpath d='M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l-.02-.19c.4.28.89.44 1.42.44 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.02-.19C14.5 2.12 13.38 1 12 1S9.5 2.12 9.5 3.5l.02.19c-.4-.28-.89-.44-1.42-.44-1.38 0-2.5 1.12-2.5 2.5 0 1 .59 1.85 1.43 2.25-.84.4-1.43 1.25-1.43 2.25zM12 5.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8s1.12-2.5 2.5-2.5zM3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9z'/%3E%3C/svg%3E");
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--translate-x, 100px), var(--translate-y, -1000px)) rotate(360deg);
        opacity: 0;
    }
}

/* Final Section */
.final-message {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle at center, rgba(114, 9, 183, 0.3), transparent);
    position: relative;
    overflow: hidden;
    /* content-visibility: auto; */ /* Kept from original */
    /* contain-intrinsic-size: 1px 5000px; */ /* Kept from original */
}

.message-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, var(--pink-color), var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'Dancing Script', cursive;
    position: relative;
}

.birthday-wishes {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}

.romantic-wish {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--pink-color);
    margin: 30px 0;
    opacity: 0;
    transform: translateY(30px);
}

.heart-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 40px auto;
    perspective: 1000px;
}

.heart-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: heartbeat 1.5s infinite, rotate 15s infinite linear;
}

.heart-side {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: rotate(45deg);
    border-radius: 10%;
    box-shadow: 0 0 30px rgba(255, 31, 90, 0.7);
}

.heart-side::before,
.heart-side::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.heart-side::before {
    top: -50%;
    left: 0;
}

.heart-side::after {
    top: 0;
    left: -50%;
}

.heart-side:nth-child(1) { transform: rotateY(0deg) translateZ(20px) rotate(45deg); }
.heart-side:nth-child(2) { transform: rotateY(180deg) translateZ(20px) rotate(45deg); }
.heart-side:nth-child(3) { transform: rotateY(90deg) translateZ(75px) rotate(45deg); }
.heart-side:nth-child(4) { transform: rotateY(-90deg) translateZ(75px) rotate(45deg); }
.heart-side:nth-child(5) { transform: rotateX(90deg) translateZ(75px) rotate(45deg); }
.heart-side:nth-child(6) { transform: rotateX(-90deg) translateZ(75px) rotate(45deg); }

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.final-cta {
    margin-top: 50px;
    padding: 15px 40px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    z-index: 2;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.final-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 31, 90, 0.3);
}

.final-cta:hover::before {
    left: 100%;
}

/* Footer Section */
.footer-section {
    margin-top: 50px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chiru-footer-logo {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 31, 90, 0.6);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chiru-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.chiru-footer-logo:hover img {
    transform: scale(1.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 31, 90, 0.3);
}

.footer-credit {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    font-style: italic;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Fireflies effect */
.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px 2px var(--secondary-color);
    opacity: 0;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-item {
        flex-direction: column;
        gap: 30px;
    }
    
    .gallery-item:nth-child(even) {
        flex-direction: column;
    }
    
    .gallery-photo {
        width: 250px;
        height: 250px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .model-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .gallery {
        padding: 80px 5%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .gallery-content h3 {
        font-size: 1.6rem;
    }
    
    .model-description {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-photo-container {
        width: 250px;
        height: 250px;
    }
    
    .gallery-grid {
        gap: 70px;
    }
    
    .gallery-content p {
        font-size: 0.95rem;
    }
    
    .romantic-wish {
        font-size: 1.4rem;
    }
    
    .birthday-wishes {
        font-size: 1rem;
    }
    
    .nav-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-photo-container {
        width: 200px;
        height: 200px;
    }
    
    .model-title, .message-title, .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-photo {
        width: 200px;
        height: 200px;
    }
    
    .gallery-content h3 {
        font-size: 1.4rem;
    }
    
    .romantic-text { /* This class was missing in your original file's media query for 576px */
        font-size: 1.2rem;
    }
    
    .message-title { /* Corrected if this was meant to be different */
        font-size: 1.8rem;
    }
    
    .section-title { /* Already covered, ensure consistency */
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .romantic-wish {
        font-size: 1.2rem;
    }
    
    .birthday-wishes {
        font-size: 0.9rem;
    }
    
    .final-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-photo-container {
        width: 180px;
        height: 180px;
    }
    
    .model-title, .message-title, .section-title {
        font-size: 1.6rem;
    }
    
    .gallery-photo {
        width: 180px;
        height: 180px;
    }
    
    .gallery-content h3 {
        font-size: 1.3rem;
    }
    
    .romantic-text { /* This class was missing in your original file's media query for 400px */
        font-size: 1.1rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    .nav-photo {
        width: 35px;
        height: 35px;
    }
    
    .music-controls button {
        font-size: 1rem;
    }
}

/* Hide custom cursor on mobile/touch devices */
@media (hover: none), (pointer: coarse) {
  .custom-cursor,
  .custom-cursor-follower {
    display: none;
  }
}

img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Add better handling for mid-size screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        gap: 60px;
    }

    .gallery-photo {
        width: 250px;
        height: 250px;
    }

    .gallery-item {
        gap: 30px;
    }
}
