:root {
    --primary: #e8cbc0;
    --secondary: #636b6f;
    --accent: #9d8189;
    --light: #f9f4f5;
    --dark: #3a3845;
    --gold: #d4af37;
    --ivory: #fffaf0;
    --blush: #f8e0e0;
    --paper: #fcf9f5;
}

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

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
}

.btn:hover {
    background: #8d5c6b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Header Styles */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/home-bg.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.header-content {
    animation: fadeIn 1.5s ease-out;
    z-index: 10;
    padding: 8rem 0 4rem;
}

.names {
    font-size: 5.5rem;
    letter-spacing: 3px;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.wedding-date {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    min-width: 80px;
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guestbook-btn {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    font-size: 1.1rem;
    padding: 15px 35px;
    transition: all 0.3s ease;
}

.guestbook-btn:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-down:hover {
    opacity: 1;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
}

.navbar-brand.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--accent);
}

.navbar-toggler {
    border: none;
    padding: 0;
    color: var(--dark);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Language switch button */
.lang-switch {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-switch:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: var(--gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Wedding Party Section */
.wedding-party {
    background: linear-gradient(rgba(232, 203, 192, 0.1), rgba(232, 203, 192, 0.1));
}

.party-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.party-member {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.party-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary);
}

.member-role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Wedding Details Section */
.wedding-details {
    background-color: var(--ivory);
}

.details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

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

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

.detail-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.location-map {
    margin-top: 15px;
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.location-map:hover {
    text-decoration: underline;
}

/* Transportation Section */
.transportation {
    background: linear-gradient(rgba(232, 203, 192, 0.1), rgba(232, 203, 192, 0.1));
}

.transport-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

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

.transport-card:hover {
    transform: translateY(-10px);
}

.transport-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

/* Gallery */
.gallery {
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover:after {
    opacity: 1;
}

/* RSVP Form */
.rsvp {
    background: var(--blush);
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Guest Book Section */
.guest-book {
    background-color: var(--ivory);
    padding: 100px 0;
}

.guest-book-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.guest-form {
    margin-bottom: 50px;
}

.guest-messages {
    max-height: 1000px;
    overflow-y: auto;
    padding-right: 15px;
}

.message {
    background: #f9f9f9;
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
    position: relative;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-name {
    font-weight: bold;
    color: var(--dark);
}

.message-date {
    color: var(--secondary);
    font-size: 0.9rem;
}

.message-content {
    line-height: 1.6;
}

.message-photo {
    margin-top: 15px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Photo Upload Style */
.photo-upload {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.photo-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--accent);
    font-weight: 500;
}

.photo-label i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.photo-preview {
    display: none;
    margin-top: 10px;
    max-width: 200px;
    border-radius: 8px;
    border: 2px dashed var(--primary);
    padding: 10px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1001;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        display: flex;
    }

    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .names {
        font-size: 3.5rem;
    }
    
    .wedding-date {
        font-size: 1.4rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 10px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .verse-message {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        margin-bottom: 0.8rem;
    }
    
    .header-content {
        padding: 6rem 0 3rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link:after {
        display: none;
    }

    .lang-switch {
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Small Header Styles */
.small-header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/home-bg.jpg') center/cover no-repeat;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.small-header .header-content {
    animation: fadeIn 1.5s ease-out;
    z-index: 10;
}

.small-header .names {
    font-size: 3.5rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.small-header .wedding-date {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Custom styled checkbox for guestbook private message */
.guestbook-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.guestbook-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #8d5c6b;
  border-radius: 6px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
}
.guestbook-checkbox input[type="checkbox"]:checked {
  background: #8d5c6b;
  border-color: #8d5c6b;
}
.guestbook-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  transition: all 0.2s;
}
.guestbook-checkbox label {
  font-weight: 400;
  cursor: pointer;
  color: #8d5c6b;
  font-size: 1rem;
}

/* Guestbook Pagination Styles */
#guestbook-pagination {
  margin-top: 20px;
}
#guestbook-pagination button {
  background: #fff;
  color: #8d5c6b;
  border: 1.5px solid #8d5c6b;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: 1rem;
  font-family: inherit;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#guestbook-pagination button.page-number {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  font-weight: 500;
}
#guestbook-pagination button:disabled {
  background: #f3e9ed;
  color: #bfa2b2;
  border-color: #e0cfd6;
  cursor: not-allowed;
}
#guestbook-pagination button:not(:disabled):hover {
  background: #8d5c6b;
  color: #fff;
  border-color: #8d5c6b;
}
#guestbook-pagination button[disabled]:hover {
  background: #f3e9ed;
  color: #bfa2b2;
}
#guestbook-pagination .arrow {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 2px;
  display: inline-block;
}

/* Invitation Popup Styles */
.invitation-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('images/invitation.png') center top/cover no-repeat;
    padding: 10.5rem 2rem 2.5rem 2rem;
    z-index: 1000;
    text-align: center;
    width: 429px;
    height: 600px;
    max-width: 429px;
    min-width: 429px;
    min-height: 600px;
    max-height: 600px;
    box-shadow: none;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.invitation-popup .invitation-script.large {
    font-family: 'Dancing Script', cursive;
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    margin-top: 0.5rem;
    color: #222;
    letter-spacing: 0.01em;
    outline: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.invitation-popup .invitation-script.large:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.invitation-popup .invitation-script.large:empty:before {
    content: attr(data-placeholder);
    color: #999;
}
.invitation-popup .invitation-script.large:focus {
    background-color: rgba(0, 0, 0, 0.05);
}
.invitation-popup .invitation-script {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #222;
    letter-spacing: 0.01em;
}
.invitation-popup .invitation-details {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    color: #222;
    margin: 0.7rem 0 0.7rem 0;
    line-height: 2.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.invitation-popup .invitation-location {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #222;
    margin-top: 2.5rem;
    font-style: italic;
    letter-spacing: 0.03em;
}
.invitation-popup .close-btn {
    background: #333;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', 'Cairo', sans-serif;
    margin-top: 0.7rem;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Guestbook Section */
.guestbook-section {
    padding: 4rem 0;
    background-color: #f9f5f2;
}

.guestbook-section .guestbook-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(141, 92, 107, 0.2);
}

.guestbook-section .guestbook-btn:hover {
    background-color: #7a4c5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 92, 107, 0.3);
}

/* Verse Message */
.verse-message {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #8d5c6b;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .verse-message {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        margin-bottom: 0.8rem;
    }
} 

.guest-messages .message-photo {
    max-width: 160px;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
} 