:root {
    --primary-rose: #d4a5a5;
    --secondary-sage: #8b9a8b;
    --accent-gold: #d4af37;
    --dark-brown: #4a3933;
    --cream: #faf8f5;
    --blush: #ffe8e8;
    --sage-light: #e8f0e8;
    --accent-coral: #ff7f7f;
    --accent-teal: #4ecdc4;
    --accent-lavender: #c8a2c8;
    --accent-emerald: #2ecc71;
    --neutral-gray: #6b7280;
    --neutral-light: #f3f4f6;
    --neutral-dark: #374151;
    --success-green: #10b981;
    --warning-amber: #f59e0b;
    --error-red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-brown);
    overflow-x: hidden;
    background: var(--cream);
    line-height: 1.6;
    letter-spacing: 0.01em;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cursive-text {
    font-family: 'Great Vibes', cursive;
}

.serif-text {
    font-family: 'Playfair Display', serif;
}

.sans-text {
    font-family: 'Inter', sans-serif;
}

.display-text {
    font-family: 'Inter', sans-serif;
}

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.text-large {
    font-size: 1.125rem;
    line-height: 1.75;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-rose);
    border-radius: 5px;
}

/* Animated Text */
.animated-text {
    background: linear-gradient(45deg, #8b6f5c, #d4a5a5, #8b9a8b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Falling Petals */
.petal {
    position: fixed;
    top: -10px;
    pointer-events: none;
    z-index: 9999;
    animation: fall linear infinite;
    opacity: 0.7;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Floral Frames */
.floral-frame {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.floral-frame-top-left {
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M0,0 Q50,0 50,50 Q50,0 100,0" fill="%23d4a5a5" opacity="0.3"/><circle cx="30" cy="30" r="15" fill="%238b9a8b" opacity="0.4"/></svg>') no-repeat;
}

.floral-frame-bottom-right {
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M200,200 Q150,200 150,150 Q150,200 100,200" fill="%23d4a5a5" opacity="0.3"/><circle cx="170" cy="170" r="15" fill="%238b9a8b" opacity="0.4"/></svg>') no-repeat;
}

/* Parallax Backgrounds */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Advanced Glass Morphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* Enhanced Micro-Interactions */
.glow-on-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px var(--primary-rose), 0 0 60px var(--primary-rose), 0 0 90px rgba(212, 165, 165, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.icon-rotate {
    transition: transform 0.4s ease;
}

.icon-rotate:hover {
    transform: rotate(360deg);
}

.icon-bounce {
    transition: transform 0.2s ease;
}

.icon-bounce:hover {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }

    60% {
        transform: translateY(-2px);
    }
}

.color-shift {
    transition: color 0.3s ease, fill 0.3s ease;
}

.color-shift:hover {
    color: var(--accent-gold);
    fill: var(--accent-gold);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* 3D Elements */
.perspective {
    perspective: 1000px;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) translateZ(20px);
}

.rotate-on-hover {
    transition: transform 0.4s ease;
}

.rotate-on-hover:hover {
    transform: rotateY(10deg) rotateX(-5deg);
}

.layered-shadow {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24),
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.02);
}

.depth-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.depth-hover:hover {
    transform: translateZ(10px);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 16px 48px rgba(0, 0, 0, 0.04);
}

.floating-3d {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-image {
    aspect-ratio: 1;
    width: 100%;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-loaded {
    opacity: 1;
}

/* Media Image Optimization */
.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.media-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.media-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-image-container:hover img {
    transform: scale(1.05);
}

.content-loading {
    position: relative;
    overflow: hidden;
}

.content-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loadingSweep 1.5s infinite;
}

@keyframes loadingSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Interactive Elements */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-rose), var(--accent-gold));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.validation-success {
    animation: validationPulse 0.6s ease;
}

@keyframes validationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.validation-error {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover::before {
    left: 100%;
}

.interactive-focus {
    transition: outline 0.2s ease;
}

.interactive-focus:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Mobile-First Enhancements */
.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible.open {
    max-height: 500px;
}

.swipe-container {
    touch-action: pan-y;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu ul {
    padding: 100px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-size: 1.5rem;
    color: var(--dark-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-rose);
}


/* Typing Animation */
.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--primary-rose);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-rose);
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-rose), var(--accent-gold), var(--secondary-sage));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Custom Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-rose);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: none;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Section Dividers */
.section-divider {
    width: 100%;
    height: 70px;
    position: relative;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 70%;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--blush);
    border-top-color: var(--primary-rose);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Interactive Flower Growth */
.growing-flower {
    transform-origin: bottom center;
    animation: grow 2s ease-out forwards;
}

@keyframes grow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Particle Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Score/Gamification Counter */
#engagement-score {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark-brown);
}

.score-pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Contact Section Styles */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

#contact-form input,
#contact-form textarea {
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(212, 165, 165, 0.2);
}

#contact-form button {
    transition: all 0.3s ease;
}

#contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 165, 0.3);
}

/* Map Container */
.contact-map-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

@media (max-width: 768px) {
    .contact-map-container {
        height: 300px;
    }
}

@media (min-width: 769px) {
    .contact-map-container {
        height: 400px;
    }
}

/* Gallery Marquee */
.marquee-container {
    position: relative;
    width: 100%;
}

.marquee-wrapper {
    animation: marquee 10s linear infinite;
}

.marquee-container:hover .marquee-wrapper {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Center Glow Effect */
.center-glow {
    box-shadow: 0 0 40px rgba(212, 165, 165, 0.8), 0 0 80px rgba(212, 165, 165, 0.4), 0 0 120px rgba(212, 165, 165, 0.2);
    transform: scale(1.1);
    z-index: 10;
}
/* Floating Home Button */
.floating-home-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #8B5A3C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(139, 90, 60, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-home-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(139, 90, 60, 0.5);
}

/* Video Controls Auto-Hide */
video::-webkit-media-controls-panel {
    opacity: 0;
    transition: opacity 0.3s ease;
}

video:hover::-webkit-media-controls-panel {
    opacity: 1;
}

video::-webkit-media-controls {
    opacity: 0;
    transition: opacity 0.3s ease;
}

video:hover::-webkit-media-controls {
    opacity: 1;
}

/* For Firefox */
video::-moz-media-controls {
    opacity: 0;
    transition: opacity 0.3s ease;
}

video:hover::-moz-media-controls {
    opacity: 1;
}
