/* CSS Custom Properties */
:root {
    --primary-color: 340 82% 52%; /* #D63384 - Rose Pink */
    --secondary-color: 210 11% 15%; /* #1E2329 - Dark Navy */
    --accent-color: 43 96% 56%; /* #F4D03F - Gold */
    --background-light: 210 11% 98%; /* #F8F9FA - Off White */
    --background-dark: 210 11% 6%; /* #0F1419 - Very Dark Navy */
    --text-primary: 210 11% 15%; /* #1E2329 - Dark Navy */
    --text-secondary: 210 8% 46%; /* #6C757D - Medium Gray */
    --text-light: 0 0% 100%; /* #FFFFFF - Pure White */
    --border-color: 210 11% 85%; /* #D6D9DC - Light Gray */
    --shadow-light: 210 11% 15% / 0.1; /* Subtle shadow */
    --shadow-medium: 210 11% 15% / 0.15; /* Medium shadow */
    --shadow-heavy: 210 11% 15% / 0.25; /* Heavy shadow */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary-color)) 0%, hsl(340 82% 62%) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(var(--secondary-color)) 0%, hsl(210 11% 25%) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background-light));
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: hsl(var(--background-light) / 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}

.nav-link {
    text-decoration: none;
    color: hsl(var(--text-primary));
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: hsl(var(--primary-color));
    background: hsl(var(--primary-color) / 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        hsl(var(--secondary-color) / 0.7) 0%,
        hsl(var(--primary-color) / 0.6) 50%,
        hsl(var(--secondary-color) / 0.8) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: hsl(var(--text-light));
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.5s ease;
}

.couple-names {
    margin-bottom: 2rem;
}

.groom-name,
.bride-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px hsl(var(--shadow-medium));
}

.ampersand {
    font-size: clamp(2rem, 6vw, 4rem);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: hsl(var(--accent-color));
    margin: 1rem 0;
    text-shadow: 2px 2px 4px hsl(var(--shadow-medium));
}

.wedding-tagline {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.wedding-date {
    margin-bottom: 4rem;
}

.date-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.date-value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: hsl(var(--accent-color));
    text-shadow: 1px 1px 2px hsl(var(--shadow-light));
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid hsl(var(--text-light));
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Details Section */
.details {
    padding: 6rem 0;
    background: hsl(var(--background-light));
}

.countdown-container {
    text-align: center;
    margin-bottom: 5rem;
}

.countdown-title {
    color: hsl(var(--text-primary));
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: hsl(var(--text-light));
    padding: 1.5rem 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px hsl(var(--shadow-light));
    min-width: 100px;
    border: 1px solid hsl(var(--border-color));
}

.time-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: hsl(var(--primary-color));
    font-family: 'Playfair Display', serif;
}

.time-label {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.time-separator {
    font-size: 2rem;
    color: hsl(var(--text-secondary));
    font-weight: 300;
}

.event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: hsl(var(--text-light));
    border-radius: 15px;
    box-shadow: 0 5px 20px hsl(var(--shadow-light));
    border: 1px solid hsl(var(--border-color));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px hsl(var(--shadow-medium));
}

.event-icon {
    background: var(--gradient-primary);
    padding: 0.75rem;
    border-radius: 50%;
    color: hsl(var(--text-light));
    flex-shrink: 0;
}

.event-content h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.event-content p {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
}

.venue-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px hsl(var(--shadow-medium));
}

.venue-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.venue-image:hover .venue-img {
    transform: scale(1.05);
}

/* Location Section */
.location {
    padding: 6rem 0;
    background: hsl(var(--background-light));
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: flex-start;
}

.location-info {
    padding: 2rem;
    background: hsl(var(--text-light));
    border-radius: 20px;
    box-shadow: 0 10px 30px hsl(var(--shadow-light));
    border: 1px solid hsl(var(--border-color));
}

.location-info h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.venue-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: hsl(var(--primary-color));
    margin-bottom: 0.5rem;
}

.venue-address {
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
    line-height: 1.6;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    padding: 1rem;
    background: hsl(var(--background-light));
    border-radius: 10px;
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
}

.detail-item strong {
    color: hsl(var(--text-primary));
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px hsl(var(--shadow-medium));
}

.embedded-map {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
}

/* Messages Section */
.messages {
    padding: 6rem 0;
    background: linear-gradient(135deg, hsl(var(--background-light)) 0%, hsl(210 11% 96%) 100%);
}

.messages-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.message-form-container {
    background: hsl(var(--text-light));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px hsl(var(--shadow-light));
    border: 1px solid hsl(var(--border-color));
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: hsl(var(--background-light));
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--gradient-primary);
    color: hsl(var(--text-light));
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 5px 20px hsl(var(--primary-color) / 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(var(--primary-color) / 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.messages-display {
    background: hsl(var(--text-light));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px hsl(var(--shadow-light));
    border: 1px solid hsl(var(--border-color));
}

.messages-title {
    color: hsl(var(--text-primary));
    margin-bottom: 2rem;
    text-align: center;
}

.messages-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-item {
    padding: 1.5rem;
    background: hsl(var(--background-light));
    border-radius: 15px;
    border-left: 4px solid hsl(var(--primary-color));
    animation: slideInLeft 0.5s ease;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-author {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.message-time {
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
}

.message-text {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

.no-messages {
    text-align: center;
    color: hsl(var(--text-secondary));
    padding: 3rem 1rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: rgb(19, 35, 41);
    color: hsl(var(--text-light));
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.couple-signature h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--accent-color));
}

.footer-message {
    max-width: 400px;
    opacity: 0.9;
}

.footer-decoration {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 1rem 0.5rem;
    }
    
    .time-separator {
        display: none;
    }
    
    .event-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .messages-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .message-form-container,
    .messages-display {
        padding: 1.5rem;
    }
    
    .embedded-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 1rem;
    }
    
    .time-unit {
        min-width: auto;
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 0 0 1px hsl(var(--text-primary));
        --shadow-medium: 0 0 0 2px hsl(var(--text-primary));
        --shadow-heavy: 0 0 0 3px hsl(var(--text-primary));
    }
}

/* Print styles */
@media print {
    .navigation,
    .scroll-indicator,
    .submit-btn {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}
