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

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.ganesh-blessing {
    margin-bottom: 1rem;
}

.ganesh-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wedding-date {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.wedding-location {
    font-size: 1.2rem;
    color: #95a5a6;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 80px;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    font-family: 'Playfair Display', serif;
}

.countdown-item label {
    font-size: 0.9rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.wedding-day-message {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Navigation */
.navigation {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    margin: 0;
}

.nav-menu li {
    margin: 0 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #e74c3c;
}

/* Sections */
.section {
    padding: 4rem 0;
    background-color: #ffffff; /* Default white background */
}

/* Specific section backgrounds for alternating effect */
#schedule {
    background-color: #f8f9fa; /* Light gray background */
}

#registry {
    display: none;
}

/* Removing nth-child selector since we're hiding some sections */
/* .section:nth-child(even) {
    background-color: #f8f9fa;
} */

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #e74c3c;
}

/* Details Section */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card h3 {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.detail-card p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.venue-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #e74c3c;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.venue-link:hover {
    background-color: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.venue-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.copy-btn {
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.copy-btn:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #e74c3c;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e74c3c;
}

.timeline-time {
    flex: 1;
    text-align: right;
    padding-right: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.timeline-content {
    flex: 1;
    padding-left: 2rem;
}

.timeline-content h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

/* Gallery Section - Hidden from view but kept in codebase */
#gallery {
    display: none; /* Hide the gallery section */
}

.gallery-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    font-style: italic;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.photo-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.photo-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    transition: background 0.3s ease;
}

.photo-placeholder span {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.photo-placeholder p {
    font-weight: bold;
    text-align: center;
}

.photo-item:hover .photo-placeholder {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-photo {
    margin-bottom: 1rem;
}

.modal-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    border-radius: 10px;
}

.modal-placeholder span {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-placeholder p {
    font-size: 1.2rem;
    font-weight: bold;
}

#modalCaption {
    font-style: italic;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* RSVP Form */

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.rsvp-button {
    width: 100%;
    padding: 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rsvp-button:hover {
    background-color: #c0392b;
}

.rsvp-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.rsvp-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rsvp-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rsvp-closed-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
}

.rsvp-output {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.rsvp-json {
    width: 100%;
    height: 150px;
    padding: 0.8rem;
    margin: 1rem 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    resize: none;
}

.copy-json {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.copy-json:hover {
    background-color: #2980b9;
}

/* Registry Section */
.registry-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.registry-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.registry-item:hover {
    transform: translateY(-5px);
}

.registry-item h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.registry-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.registry-link:hover {
    background-color: #c0392b;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-item h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Admin Panel */
.admin-panel {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

.admin-button {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.admin-button:hover {
    background-color: #4a6741;
}

.admin-content {
    display: none;
    background-color: #34495e;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: left;
}

.admin-content.show {
    display: block;
}

.admin-content h3 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    text-align: center;
}

.admin-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.admin-stats-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #3a546e;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
}

.stat-item label {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.admin-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #3a546e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.admin-info p {
    margin-bottom: 0.5rem;
}

.admin-info ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.admin-info li {
    margin-bottom: 0.5rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.admin-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.admin-action-btn:not(.danger):not(.primary) {
    background-color: #27ae60;
    color: white;
}

.admin-action-btn:not(.danger):not(.primary):hover {
    background-color: #229954;
}

.admin-action-btn.primary {
    background-color: #3498db;
    color: white;
}

.admin-action-btn.primary:hover {
    background-color: #2980b9;
}

.admin-action-btn.danger {
    background-color: #e74c3c;
    color: white;
}

.admin-action-btn.danger:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .couple-names {
        font-size: 2.5rem;
    }
    
    /* Mobile Navigation */
    .navigation {
        padding: 0;
    }
    
    .nav-container {
        min-height: 60px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-time {
        text-align: left;
        padding-right: 0;
        padding-bottom: 0.5rem;
    }
    
    .timeline-content {
        padding-left: 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .detail-card,
    .registry-item,
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.8rem;
    }
    
    .countdown-item span {
        font-size: 1.5rem;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .modal-placeholder {
        height: 250px;
    }
    
    .modal-placeholder span {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .rsvp-form {
        padding: 1.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 0.5rem;
    }
    
    .countdown-item span {
        font-size: 1.2rem;
    }
    
    .countdown-item label {
        font-size: 0.8rem;
    }
    
    .wedding-day-message {
        font-size: 1.2rem;
        padding: 1rem;
    }
}

/* Scroll Down Arrow */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
}

.scroll-arrow {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    font-size: 2.5rem;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.15));
}

.scroll-arrow:hover {
    color: #e74c3c;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.15));
    }
    40% {
        transform: translateY(-20px);
        filter: drop-shadow(0 25px 15px rgba(0, 0, 0, 0.2));
    }
    60% {
        transform: translateY(-10px);
        filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.18));
    }
}

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

.section {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive adjustments for scroll arrow */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 80px; /* Move arrow higher up on mobile */
    }
    
    .scroll-arrow {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 100px; /* Move even higher on very small screens */
    }
}

/* Admin Login */
.admin-login {
    max-width: 400px;
    margin: 1rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-message {
    color: #e74c3c;
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

/* RSVP Table */
.rsvp-table-container {
    margin-top: 2rem;
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.rsvp-table {
    width: 100%;
    border-collapse: collapse;
    color: #ecf0f1;
}

.rsvp-table th,
.rsvp-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #3a546e;
}

.rsvp-table th {
    font-weight: bold;
    background-color: #2c3e50;
    position: sticky;
    top: 0;
}

.rsvp-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.rsvp-table tr:hover {
    background-color: #3a546e;
}
