:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.3);
    --butterfly-gold: #FFD700;
    --butterfly-orange: #FFA500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--text-primary);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Entry Animation */
.entry-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-animation.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(30px, 6vw, 50px);
}

.animated-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(15px, 3vw, 25px);
    text-align: center;
}

.animated-line {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: bold;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4),
                 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    animation: lineFlyIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(-100px) rotate(-10deg) scale(0.5);
    white-space: nowrap;
    padding: 0 clamp(10px, 3vw, 20px);
    max-width: 95vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes lineFlyIn {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotate(-10deg) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateY(10px) rotate(2deg) scale(1.1);
    }
    80% {
        transform: translateY(-3px) rotate(-1deg) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.animated-line {
    animation-delay: var(--delay);
}

.entry-butterfly {
    width: clamp(60px, 15vw, 120px);
    height: clamp(60px, 15vw, 120px);
    animation: butterflyEntry 2s ease-in-out 0.9s both,
               butterflyFloat 3s ease-in-out 2.9s infinite;
}

.butterfly-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.butterfly-svg .left-wing,
.butterfly-svg .right-wing {
    animation: wingFlap 0.3s ease-in-out infinite;
    transform-origin: center;
}

.butterfly-svg .right-wing {
    animation-delay: 0.15s;
}

@keyframes butterflyEntry {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes butterflyFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes wingFlap {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.8);
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 2s forwards;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 30px);
}

/* Quote Section */
.quote-section {
    padding: clamp(60px, 12vw, 120px) clamp(15px, 4vw, 30px) clamp(40px, 8vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: clamp(30px, 6vw, 60px) clamp(25px, 5vw, 50px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: clamp(25px, 5vw, 40px);
    box-shadow: var(--shadow-strong),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.quote-carousel {
    position: relative;
    min-height: 200px;
}

.quote-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: translateX(30px);
}

.quote-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.quote-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.quote-icon-wrapper {
    margin-bottom: clamp(20px, 4vw, 30px);
    display: inline-block;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(-5deg);
    }
    75% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.quote-icon {
    width: clamp(50px, 10vw, 80px);
    height: clamp(50px, 10vw, 80px);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.quote-icon .butterfly-icon {
    animation: iconWingFlap 0.4s ease-in-out infinite;
}

.quote-icon .butterfly-icon path:last-of-type {
    animation: none;
}

@keyframes iconWingFlap {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.85);
    }
}

.quote-slide .quote-text {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    line-height: 1.7;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2),
                 0 0 30px rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(15px, 3vw, 25px);
    letter-spacing: 0.02em;
}

.quote-text {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    line-height: 1.7;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2),
                 0 0 30px rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(15px, 3vw, 25px);
    letter-spacing: 0.02em;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-slide .quote-author {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 300;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: clamp(10px, 2vw, 20px);
}

.quote-author {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 300;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: clamp(10px, 2vw, 20px);
}

/* Quote Navigation Dots */
.quote-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    margin-top: clamp(20px, 4vw, 30px);
    flex-wrap: wrap;
}

.quote-dot {
    width: clamp(8px, 2vw, 12px);
    height: clamp(8px, 2vw, 12px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.quote-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.quote-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.quote-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: clamp(20px, 4vw, 35px);
    opacity: 0;
    animation: textFadeIn 1s ease-out 3.2s both;
}

.decoration-line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 2px;
}

.decoration-butterfly {
    width: 30px;
    height: 30px;
    animation: decorationFlutter 2.5s ease-in-out infinite;
}

.decoration-butterfly svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

@keyframes decorationFlutter {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(-8deg) translateY(-3px);
    }
    75% {
        transform: rotate(8deg) translateY(-3px);
    }
}

/* Gallery Section */
.gallery-section {
    padding: clamp(40px, 8vw, 80px) clamp(15px, 4vw, 30px) clamp(60px, 12vw, 120px);
    position: relative;
}

.section-header {
    margin-bottom: clamp(30px, 6vw, 50px);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 3vw, 20px);
    flex-wrap: wrap;
}

.title-text {
    letter-spacing: 0.05em;
}

.title-butterfly {
    width: clamp(35px, 8vw, 50px);
    height: clamp(35px, 8vw, 50px);
    animation: titleButterflyFlutter 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.title-butterfly:last-child {
    animation-delay: 0.5s;
}

.title-butterfly svg {
    width: 100%;
    height: 100%;
}

@keyframes titleButterflyFlutter {
    0%, 100% {
        transform: rotate(0deg) translateY(0) scale(1);
    }
    25% {
        transform: rotate(-12deg) translateY(-5px) scale(1.1);
    }
    75% {
        transform: rotate(12deg) translateY(-5px) scale(1.1);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(4px, 1.5vw, 8px);
    padding: 20px 0;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(3px, 1vw, 6px);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(2px, 0.8vw, 4px);
    }
}

.gallery-item {
    position: relative;
    border-radius: clamp(4px, 1vw, 8px);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover,
.gallery-item:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:active img {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 2px dashed var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.gallery-item:hover .gallery-placeholder,
.gallery-item:active .gallery-placeholder {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.placeholder-icon-wrapper {
    width: clamp(50px, 12vw, 80px);
    height: clamp(50px, 12vw, 80px);
    margin-bottom: clamp(10px, 2vw, 15px);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .placeholder-icon-wrapper,
.gallery-item:active .placeholder-icon-wrapper {
    opacity: 0.9;
    transform: scale(1.1);
}

.placeholder-icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.gallery-placeholder p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 300;
    opacity: 0.8;
    text-align: center;
}

/* Gallery Pagination */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 4vw, 25px);
    margin-top: clamp(30px, 6vw, 50px);
    padding: clamp(15px, 3vw, 25px);
}

.pagination-btn {
    width: clamp(45px, 9vw, 55px);
    height: clamp(45px, 9vw, 55px);
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.pagination-btn:hover:not(:disabled),
.pagination-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn svg {
    width: clamp(20px, 4vw, 24px);
    height: clamp(20px, 4vw, 24px);
    stroke-width: 2.5;
}

.pagination-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    min-width: 80px;
    text-align: center;
}

@media (max-width: 480px) {
    .gallery-pagination {
        gap: 12px;
        padding: 15px;
    }
    
    .pagination-btn {
        width: 40px;
        height: 40px;
    }
    
    .pagination-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .pagination-info {
        font-size: 0.9rem;
        padding: 8px 16px;
        min-width: 70px;
    }
}

/* Floating Butterflies */
.floating-butterfly {
    position: fixed;
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    pointer-events: none;
    z-index: 100;
    opacity: 0.7;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.floating-butterfly svg {
    width: 100%;
    height: 100%;
}

.floating-butterfly .butterfly-body {
    animation: floatingWingFlap 0.25s ease-in-out infinite;
    transform-origin: center;
}

.butterfly-1 {
    top: 15%;
    left: -60px;
    animation: butterflyFlyPath1 20s linear infinite;
    animation-delay: 0s;
}

.butterfly-2 {
    top: 45%;
    left: -60px;
    animation: butterflyFlyPath2 25s linear infinite;
    animation-delay: 5s;
}

.butterfly-3 {
    top: 65%;
    left: -60px;
    animation: butterflyFlyPath3 22s linear infinite;
    animation-delay: 10s;
}

.butterfly-4 {
    top: 25%;
    left: -60px;
    animation: butterflyFlyPath4 18s linear infinite;
    animation-delay: 15s;
}

@keyframes floatingWingFlap {
    0%, 100% {
        transform: scaleY(1) rotate(0deg);
    }
    50% {
        transform: scaleY(0.75) rotate(2deg);
    }
}

@keyframes butterflyFlyPath1 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    20% {
        transform: translateX(20vw) translateY(-40px) rotate(45deg);
    }
    40% {
        transform: translateX(40vw) translateY(30px) rotate(90deg);
    }
    60% {
        transform: translateX(60vw) translateY(-25px) rotate(135deg);
    }
    80% {
        transform: translateX(80vw) translateY(20px) rotate(180deg);
    }
    100% {
        transform: translateX(100vw) translateY(0) rotate(225deg);
    }
}

@keyframes butterflyFlyPath2 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(25vw) translateY(50px) rotate(-45deg);
    }
    50% {
        transform: translateX(50vw) translateY(-30px) rotate(-90deg);
    }
    75% {
        transform: translateX(75vw) translateY(40px) rotate(-135deg);
    }
    100% {
        transform: translateX(100vw) translateY(0) rotate(-180deg);
    }
}

@keyframes butterflyFlyPath3 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    30% {
        transform: translateX(30vw) translateY(-35px) rotate(60deg);
    }
    60% {
        transform: translateX(60vw) translateY(25px) rotate(120deg);
    }
    100% {
        transform: translateX(100vw) translateY(0) rotate(180deg);
    }
}

@keyframes butterflyFlyPath4 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    35% {
        transform: translateX(35vw) translateY(45px) rotate(-60deg);
    }
    70% {
        transform: translateX(70vw) translateY(-20px) rotate(-120deg);
    }
    100% {
        transform: translateX(100vw) translateY(0) rotate(-180deg);
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:active {
        transform: translateY(-8px) scale(1.02);
    }
    
    .quote-container:hover {
        transform: none;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .entry-content {
        gap: 20px;
    }
    
    .animated-text-container {
        gap: 12px;
    }
    
    .animated-line {
        font-size: clamp(1.3rem, 4.5vw, 2.5rem);
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    
    .quote-container {
        padding: 35px 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
        gap: 15px;
    }
    
    .floating-butterfly {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .entry-content {
        gap: 15px;
    }
    
    .animated-text-container {
        gap: 10px;
    }
    
    .animated-line {
        font-size: clamp(1.1rem, 4vw, 2rem);
    }
    
    .quote-container {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(2px, 0.8vw, 4px);
    }
    
    .section-title {
        gap: 8px;
    }
    
    .title-butterfly {
        width: 30px;
        height: 30px;
    }
    
    .floating-butterfly {
        width: 35px;
        height: 35px;
        opacity: 0.4;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .quote-section {
        padding: 40px 20px 30px;
    }
    
    .gallery-section {
        padding: 30px 20px 40px;
    }
    
    .entry-content {
        gap: 20px;
    }
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 60px);
    z-index: 1;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: clamp(8px, 1.5vw, 12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalImageZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

@keyframes modalImageZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: clamp(15px, 4vw, 25px);
    right: clamp(15px, 4vw, 25px);
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover,
.modal-close:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
}

.modal-close svg {
    width: clamp(20px, 4vw, 24px);
    height: clamp(20px, 4vw, 24px);
    stroke-width: 2.5;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(45px, 9vw, 55px);
    height: clamp(45px, 9vw, 55px);
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-prev {
    left: clamp(15px, 4vw, 25px);
}

.modal-next {
    right: clamp(15px, 4vw, 25px);
}

.modal-nav:hover,
.modal-nav:active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav svg {
    width: clamp(24px, 5vw, 28px);
    height: clamp(24px, 5vw, 28px);
    stroke-width: 2.5;
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-counter {
    position: absolute;
    bottom: clamp(20px, 5vw, 30px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Modal Mobile Optimizations */
@media (max-width: 768px) {
    .modal-content {
        padding: clamp(20px, 5vw, 40px) clamp(10px, 3vw, 20px);
    }
    
    .modal-close,
    .modal-nav {
        width: 45px;
        height: 45px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
    }
    
    .modal-counter {
        bottom: 15px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px 10px;
    }
    
    .modal-close,
    .modal-nav {
        width: 40px;
        height: 40px;
    }
    
    .modal-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .modal-close svg {
        width: 18px;
        height: 18px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .butterfly-svg,
    .quote-icon,
    .title-butterfly svg,
    .floating-butterfly svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Site Footer */
.site-footer {
    padding: clamp(30px, 6vw, 50px) clamp(20px, 4vw, 40px);
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.developer-signature {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    font-weight: 300;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.dev-name {
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.9;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
