* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5B9AD9; /* Soft sky blue */
    --primary-hover: #4A89C7;
    --accent-color-peach: #FFB6A3; /* Soft peach */
    --accent-color-mint: #AAE3C0; /* Mint green */
    --accent-color-lavender: #D4C1E8; /* Lavender */
    --text-color: #4D5159;
    --text-light: #7A7F8C;
    --card-bg: white;
    --bg-light: #F8F9FC;
    --border-color: #E9EDF5;
    --shadow-sm: 0 5px 15px rgba(128, 137, 176, 0.05);
    --shadow-md: 0 10px 20px rgba(128, 137, 176, 0.08);
    --shadow-lg: 0 15px 30px rgba(128, 137, 176, 0.1);
    --border-radius: 16px;
    --transition: 0.3s ease;
    --font-rounded: 'Poppins', system-ui, -apple-system, sans-serif;
}

html {
    font-size: 100%; /* Base font size for easy rem calculations */
}

body {
    font-family: var(--font-rounded);
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M80 50a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-20 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-20 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-20 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z' fill='%23D4C1E8' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
}

img, video, svg {
    max-width: 100%; /* Make media responsive by default */
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem); /* Responsive padding */
}

/* Header styles */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    border-bottom: none;
    padding: 1rem 0;
}

/* Add a container for header content with flex layout */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo::before {
    content: "❤️";
    margin-right: 8px;
    font-size: 1.2em;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap; /* Allow menu items to wrap */
    justify-content: flex-end; /* Align navigation to the right */
    margin: 0; /* Remove any default margins */
}

nav ul li {
    margin-left: clamp(1rem, 3vw, 1.875rem);
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color var(--transition);
    font-size: clamp(0.875rem, 2vw, 1rem);
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(91, 154, 217, 0.08);
}

/* Hero section */
.hero {
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem) 0; /* Reduced padding from clamp(2rem, 6vw, 3.5rem) */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50vh; /* Reduced from 65vh to make content more compact */
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--accent-color-peach);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color-mint);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 1.5rem; /* Reduced margin */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main CTA button in hero section */
.main-cta-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1.5rem, 5vw, 2rem);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(91, 154, 217, 0.25);
    cursor: pointer;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    margin-top: clamp(1.5rem, 4vw, 2rem); /* Reduced margin */
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.main-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(91, 154, 217, 0.35);
    background-color: var(--primary-hover);
}

/* Sample card in hero */
.sample-card {
    max-width: min(500px, 90%);
    margin: 0 auto 1.5rem; /* Added bottom margin */
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(233, 237, 245, 0.8);
}

.sample-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-content {
    padding: clamp(1.25rem, 5vw, 1.5625rem);
}

.card-content p {
    font-size: clamp(0.9375rem, 3vw, 1.1rem);
    color: var(--text-color);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* Wall of Gratitude section */
.wall-of-gratitude {
    padding: clamp(3rem, 8vw, 5rem) 0;
    position: relative;
}

.wall-of-gratitude::before {
    content: "";
    position: absolute;
    top: 10%;
    right: -5%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color-lavender);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.wall-of-gratitude h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    background-color: rgba(91, 154, 217, 0.08);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Thank you cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.thank-you-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    border: 1px solid rgba(233, 237, 245, 0.8);
}

.thank-you-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--accent-color-peach);
    color: #913a3a;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.name {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 6px;
}

.location {
    display: inline-block;
    background: #f0f7ff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-color);
    margin: 0 6px;
}

.time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.heart {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition);
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

.heart:hover {
    transform: scale(1.1);
}

.heart.liked {
    background: rgba(255, 107, 107, 0.2);
    transform: none;
    color: #ff6b6b;
}

/* Floating button styling */
.floating-btn {
    position: fixed;
    bottom: clamp(1.25rem, 5vw, 2.5rem);
    right: clamp(1.25rem, 5vw, 2.5rem);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: clamp(0.75rem, 3vw, 0.9375rem) clamp(1.25rem, 4vw, 1.5625rem);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(91, 154, 217, 0.3);
    cursor: pointer;
    z-index: 100;
    transition: transform var(--transition), box-shadow var(--transition), opacity 0.3s ease;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    opacity: 0;
}

.floating-btn.visible {
    opacity: 1;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(91, 154, 217, 0.4);
}

/* Info message styling */
.info-message {
    background-color: rgba(91, 154, 217, 0.1);
    border: 1px solid rgba(91, 154, 217, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-message p {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition);
    line-height: 1;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Modal content styling */
.modal-content {
    background: white;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

form textarea,
form input,
form select {
    width: 100%;
    padding: 0.9375rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-rounded);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

form textarea:focus,
form input:focus,
form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 154, 217, 0.2);
}

form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9375rem 1.5625rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color var(--transition);
}

form button:hover {
    background-color: var(--primary-hover);
}

/* Notification styling */
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color-mint);
    color: #2c6e49;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-weight: 600;
    pointer-events: none; /* Prevent interactions with the notification */
    opacity: 0; /* Start with opacity 0 */
}

/* Notification adjustment */
.notification.show {
    bottom: 30px;
    opacity: 1; /* Fade in when shown */
}

/* Add this to properly hide notification when not shown */
@media (max-width: 768px) {
    .notification {
        bottom: -200px; /* Move it further down on mobile to ensure it's off-screen */
        padding: 0.8rem 1.5rem; /* Smaller padding on mobile */
        font-size: 0.9rem;
        max-width: 90%;
    }
    
    .notification.show {
        bottom: 20px; /* Slightly different position on mobile */
    }
}

/* Loader */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive styles - Using a mobile-first approach */
/* Small devices (landscape phones) */
@media (min-width: 576px) {
    .card-meta {
        flex-wrap: nowrap;
    }
}

/* Medium devices (tablets) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        margin-top: 0.625rem;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.9375rem;
    }
}

/* Large devices (desktops) */
@media (min-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Extra-large devices */
@media (min-width: 1200px) {
    html {
        font-size: 112.5%; /* Slightly larger base font size for large screens */
    }
}

/* Print styles */
@media print {
    .floating-btn, 
    .filter-buttons,
    .modal,
    .notification {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .thank-you-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for better accessibility */
:focus {
    outline: 3px solid rgba(255, 107, 107, 0.5);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid rgba(255, 107, 107, 0.5);
    outline-offset: 2px;
}

/* High contrast mode adjustments */
@media (forced-colors: active) {
    .filter-btn.active {
        border: 2px solid currentColor;
    }
    
    .heart {
        border: 1px solid currentColor;
        padding: 2px 5px;
    }
}

/* Content wrapper - add padding to account for fixed header */
.content-wrapper {
    padding-top: 1.5rem; /* Reduced from 4.5rem to 1.5rem to decrease the gap on desktop */
}

/* Footer styles */
.main-footer {
    background-color: #f5f5f5;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #eee;
    color: #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

/* About section */
.about-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.about-section::before {
    content: "";
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    background-color: var(--accent-color-mint);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

.about-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    color: var(--text-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}

.feature {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(233, 237, 245, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure all feature cards have the same height */
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer styling updates */
.footer-section .logo {
    margin-bottom: 1rem;
    color: white;
}

.footer-section .logo::before {
    font-size: 1.1em;
}

/* Modal form label styling */
form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

form textarea {
    height: 150px;
    resize: none;
}

/* Media queries - adjust layouts for different screen sizes */
@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: start; /* Align content to the top */
    }
    
    .about-features {
        height: 100%; /* Take full height of the container */
    }
}

@media (max-width: 767px) {
    .about-features {
        margin-top: 1rem;
    }
    
    .about-section h2 {
        margin-bottom: 1.5rem;
    }
    
    .hero {
        min-height: 40vh; /* Reduced from 60vh to make content more compact on mobile */
        padding: 0.5rem 0; /* Less padding on mobile */
    }
    
    .hero h1 {
        margin-bottom: 1rem;
    }
    
    .feature {
        padding: 1.2rem;
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
}

/* Notification adjustment */
.notification.show {
    bottom: 30px;
}

/* Loader styling enhancement */
.loader {
    border: 3px solid rgba(91, 154, 217, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Responsive adjustments for header and footer */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 0.7rem 0;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
    
    .content-wrapper {
        padding-top: 1rem; /* Reduced from 3rem to 1rem to decrease the gap on mobile */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Section subtitles */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin: -1rem auto 2rem;
    max-width: 600px;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

@media (max-width: 767px) {
    .about-features {
        margin-top: 1rem;
    }
    
    .about-section h2 {
        margin-bottom: 1.5rem;
    }
    
    .hero {
        min-height: 40vh; /* Reduced from 60vh to make content more compact on mobile */
        padding: 0.5rem 0; /* Less padding on mobile */
    }
    
    .hero h1 {
        margin-bottom: 1rem;
    }
    
    .feature {
        padding: 1.2rem;
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
}

.custom-location-input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.custom-location-input:focus {
    border-color: #5B9AD9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(91, 154, 217, 0.2);
}

/* Add smooth transition for showing/hiding the custom input */
.custom-location-input {
    transition: all 0.3s ease;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.custom-location-input[style*="display: block"] {
    opacity: 1;
    height: auto;
    margin-top: 8px;
} 