@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Claymorphism Colors */
    --primary: #d47e85;
    --primary-light: #f3a6ad;
    --primary-dark: #b85f67;
    --accent: #fcd556;
    --text-dark: #4a3e3d;
    --text-light: #8e7c7b;
    --bg-color: #fcebeb;
    /* Soft pink background */
    --surface: #fdf5f5;
    /* Lighter surface for clay */

    /* Claymorphism Shadows */
    --clay-shadow:
        10px 10px 20px #e0c5c5,
        -10px -10px 20px #ffffff,
        inset 0 0 0 transparent,
        inset 0 0 0 transparent;

    --clay-hover:
        5px 5px 10px #e0c5c5,
        -5px -5px 10px #ffffff,
        inset 0 0 0 transparent,
        inset 0 0 0 transparent;

    --clay-inner:
        inset 6px 6px 10px #e0c5c5,
        inset -6px -6px 10px #ffffff;

    --clay-btn:
        8px 8px 16px #e0c5c5,
        -8px -8px 16px #ffffff,
        inset 2px 2px 5px rgba(255, 255, 255, 0.8),
        inset -2px -2px 5px rgba(212, 126, 133, 0.2);

    --clay-btn-active:
        2px 2px 5px #e0c5c5,
        -2px -2px 5px #ffffff,
        inset 2px 2px 5px rgba(212, 126, 133, 0.2),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8);

    --glass-shadow: 0 8px 32px 0 rgba(212, 126, 133, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    /* Soft gradient background */
    background-image:
        radial-gradient(circle at top right, rgba(212, 126, 133, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(252, 213, 86, 0.1), transparent 40%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}


/* Floating Flowers & Rice Background Container */
#flowers-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Floating Flower Petal */
.flower-petal {
    position: absolute;
    top: -50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff8da1" stroke="%23d47e85" stroke-width="1"><path d="M12 2c0 0-4 4-2 9 2 5 2 11 2 11s0-6 2-11c2-5-2-9-2-9z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.6;
    animation: fall linear infinite;
}

/* Falling Yellow Rice (Akshat) */
.rice-grain {
    position: absolute;
    top: -50px;
    width: 10px;
    height: 25px;
    background: radial-gradient(ellipse at center, #ffd54f 0%, #ffca28 100%);
    border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
    /* Rice shape */
    box-shadow: inset 1px -1px 3px rgba(212, 175, 55, 0.5);
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}


/* --- Navbar --- */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 3rem;
    transition: all 0.3s ease;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 0.8rem 1.5rem;
    background: var(--surface);
    border-radius: 30px;
    box-shadow: var(--clay-btn);
    transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary);
    box-shadow: var(--clay-inner);
    transform: translateY(2px);
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.8s ease-out;
}

/* Hero Section */
.hero {
    height: 80vh;
    border-radius: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--clay-shadow);
    margin-bottom: 3rem;
    color: white;
    border: 10px solid var(--surface);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(74, 62, 61, 0.3), rgba(74, 62, 61, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    background: transparent;
    max-width: 800px;
    animation: slideUp 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-style: italic;
    color: #fff;
}

.hero h2 {
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 5px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

/* Hero Slider Controls */
.hero-slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.glass-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0;
}

.glass-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.glass-nav-btn:active {
    transform: translateY(0) scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

/* Claymorphism Buttons */
button,
.btn {
    padding: 1.2rem 3rem;
    background: var(--surface);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: var(--clay-btn);
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    color: var(--primary);
    box-shadow: var(--clay-btn-active);
    transform: translateY(2px);
}

/* Claymorphism Card / Container */
.clay-card {
    background: var(--surface);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--clay-shadow);
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.glass-card {
    /* Repurposing previous glass-card class to use claymorphism */
    background: var(--surface);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--clay-shadow);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.clay-card h2,
.glass-card h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* Forms */
.form-group {
    margin-bottom: 1.8rem;
    text-align: left;
}

input,
select,
textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--surface);
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    box-shadow: var(--clay-inner);
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: #ffffff;
    box-shadow: var(--clay-shadow);
}

label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
    padding-left: 10px;
}

/* Dashboard & Lists */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: var(--surface);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--clay-shadow);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.dashboard-card h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--primary-light);
}

.guest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: var(--surface);
    box-shadow: var(--clay-btn);
    border-radius: 15px;
    transition: all 0.2s ease;
}

.guest-item:hover {
    box-shadow: var(--clay-inner);
    transform: translateY(2px);
}

.guest-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    box-shadow: var(--clay-btn);
}

/* Places Grid */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.place-card {
    background: var(--surface);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--clay-shadow);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Hide slider nav on desktop */
.slider-nav {
    display: none;
}

.place-card:hover {
    box-shadow: var(--clay-inner);
    transform: translateY(5px);
}

.place-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 5px solid var(--surface);
    border-radius: 2rem 2rem 0 0;
}

.place-distance {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--surface);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: var(--clay-btn);
}

.place-info {
    padding: 2rem;
    flex-grow: 1;
}

.place-info h4 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.place-info p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.place-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.place-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.see-more-btn {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.see-more-btn:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem;
        gap: 0.8rem;
        flex-wrap: wrap;
        flex-direction: row;
        /* Keep row but wrap */
    }

    nav a {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .container {
        padding: 1rem;
        margin-top: 1rem;
    }

    .hero {
        height: auto;
        min-height: 50vh;
        border-radius: 1.5rem;
        margin-bottom: 2rem;
        border-width: 5px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
    }

    .clay-card,
    .glass-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
        margin: 1rem auto;
    }

    .clay-card h2,
    .glass-card h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

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

    .dashboard-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .guest-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .guest-item>div:last-child {
        width: 100%;
        justify-content: space-between;
    }

    .places-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* Internet Explorer 10+ */
        padding-bottom: 1rem;
        gap: 1.5rem;
    }

    .places-grid::-webkit-scrollbar {
        display: none;
        /* WebKit */
    }

    .place-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        max-width: 350px;
    }

    .slider-nav {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .slider-btn {
        background: var(--surface);
        border: none;
        box-shadow: var(--clay-btn);
        color: var(--primary-dark);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    .slider-btn:active {
        box-shadow: var(--clay-btn-active);
    }

    button,
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        /* Full width buttons on mobile */
    }
}