/* Main Styles for Wedding Website */

/* Custom Font Declaration */
@font-face {
    font-family: 'Mogul Boyarsky';
    src: url('../fonts/Mogul Boyarsky.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mogul Arbat';
    src: url('../fonts/Mogul Arbat.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mogul Europe';
    src: url('../fonts/Mogul Europe.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    /* Green & White Theme */
    --primary-color: #4c6444;     /* Dark olive green */
    --secondary-color: #f8f7f4;   /* Off-white */
    --text-color: #3c4d36;        /* Dark green for text */
    --light-color: #ffffff;       /* White */
    --accent-color: #4c6444;      /* Dark olive green for accent */
    --dark-accent: #3b4d34;       /* Darker green */
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

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

h1, h2, h3, h4 {
    font-family: 'Mogul Arbat', 'Playfair Display', serif;
    margin-bottom: 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--dark-accent);
}

.section-title:after {
    content: "";
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../images/gallery/123.jpg');
    background-size: cover;
    background-position: center 20%;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Mobile fix for hero background */
@media screen and (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 100vh;
        background-size: cover;
        background-position: center center;
        /* Fallback background color in case image doesn't load */
        background-color: var(--primary-color);
    }
    
    /* Ensure overlay is visible on mobile */
    .hero .overlay {
        background: linear-gradient(135deg, rgba(76, 100, 68, 0.7), rgba(59, 77, 52, 0.8));
    }
}

/* iOS specific fix */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Mogul Boyarsky', 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-content .couple-names {
    font-size: 1.5rem;
    font-family: 'Mogul Europe', 'Playfair Display', serif;
    color: #fff;
    margin: 15px 0;
    font-weight: 400;
    letter-spacing: 1.5px;
}

.hero-content .english {
    font-style: italic;
    opacity: 0.8;
}

/* Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Share Button Styles */
.share-btn {
    background: rgba(236, 243, 248, 0.8);
    border: 2px solid #859fb6;
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
}

.share-btn:hover {
    background: #ecf3f8;
    border-color: #859fb6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn i {
    font-size: 1rem;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Couple Section */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.decoration-line {
    height: 1px;
    width: 80px;
    background-color: var(--primary-color);
}

.decoration-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 15px;
}

.elegant-couple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 70px;
}

.couple-card {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(133, 159, 182, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(133, 159, 182, 0.1);
    overflow: hidden;
}

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

.card-decoration {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23f8f7f4"><path d="M50,0 C60,30 70,40 100,50 C70,60 60,70 50,100 C40,70 30,60 0,50 C30,40 40,30 50,0 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 0;
}

.card-decoration.top-left {
    top: -10px;
    left: -10px;
}

.card-decoration.top-right {
    top: -10px;
    right: -10px;
    transform: rotate(90deg);
}

.card-decoration.bottom-left {
    bottom: -10px;
    left: -10px;
    transform: rotate(270deg);
}

.card-decoration.bottom-right {
    bottom: -10px;
    right: -10px;
    transform: rotate(180deg);
}

.couple-photo-frame {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    z-index: 1;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(133, 159, 182, 0.25);
}

.photo-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.couple-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 2;
    border: 5px solid white;
    transform: scale(1.0);
}

.couple-details {
    position: relative;
    z-index: 2;
}

.couple-title {
    font-size: 1rem;
    color: #777;
    margin-bottom: 5px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.couple-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Mogul Arbat', 'Playfair Display', serif;
}

.couple-divider {
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    opacity: 0.5;
}

.couple-info {
    text-align: left;
}

.couple-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.couple-info i {
    width: 28px;
    height: 28px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.couple-connection {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    z-index: 10;
}

.connection-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(133, 159, 182, 0.3);
    transition: transform 0.3s ease;
}

.connection-circle:hover {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .elegant-couple-container {
        flex-direction: column;
    }
    
    .couple-card {
        width: 100%;
        max-width: 320px;
    }
    
    .couple-connection {
        margin: -20px 0;
    }
}

.love-story {
    margin-top: 80px;
    padding-bottom: 40px;
    text-align: center;
}

/* Story Header Styles */
.story-header {
    position: relative;
    margin-bottom: 70px;
}

.butterfly-decoration {
    position: relative;
    margin-bottom: 15px;
}

.butterfly-decoration img {
    width: 80px;
    height: auto;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark-accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.story-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 150px;
}

.divider-line {
    height: 1px;
    flex-grow: 1;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.divider-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin: 0 10px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.timeline-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: rgba(133, 159, 182, 0.3); /* #859fb6 with transparency */
    transform: translateX(-50%);
}

/* Milestone Styles */
.milestone {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

.milestone:last-child {
    margin-bottom: 0;
}

.milestone-point {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.milestone-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(133, 159, 182, 0.3);
}

/* Left Milestone Styles */
.left-milestone .milestone-content {
    width: 40%;
    text-align: right;
    padding-right: 40px;
}

.left-milestone .milestone-image {
    width: 40%;
    margin-left: 60px;
}

/* Right Milestone Styles */
.right-milestone {
    flex-direction: row-reverse;
}

.right-milestone .milestone-content {
    width: 40%;
    text-align: left;
    padding-left: 40px;
}

.right-milestone .milestone-image {
    width: 40%;
    margin-right: 60px;
}

/* Milestone Content Styles */
.milestone-title {
    font-family: 'Playfair Display', serif;
    color: var(--dark-accent);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.milestone-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.milestone-description {
    color: var(--text-color);
    line-height: 1.7;
}

/* Image Frame Styles */
.image-frame {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

/* Flower Decoration Styles */
.flower-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23859fb6"><path d="M50,0 C60,30 70,40 100,50 C70,60 60,70 50,100 C40,70 30,60 0,50 C30,40 40,30 50,0 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 2;
}

.bottom-right {
    bottom: -20px;
    right: -20px;
}

.bottom-left {
    bottom: -20px;
    left: -20px;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .image-frame {
        width: 200px;
        height: 200px;
    }
    
    .milestone-title {
        font-size: 1.3rem;
    }
    
    .milestone-description {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .timeline-center-line {
        left: 40px;
    }
    
    .milestone {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .milestone-point {
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .milestone-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .left-milestone .milestone-content,
    .right-milestone .milestone-content {
        width: 100%;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .left-milestone .milestone-image,
    .right-milestone .milestone-image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        justify-content: center;
    }
    
    .image-frame {
        width: 180px;
        height: 180px;
    }
    
    .right-milestone {
        flex-direction: column;
    }
}

/* Quote Section */
.quote-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
}

.quote-container:before,
.quote-container:after {
    content: '\201C';
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.quote-container:before {
    top: -20px;
    left: 0;
}

.quote-container:after {
    content: '\201D';
    bottom: -60px;
    right: 0;
}

.quote-text {
    font-size: 1.8rem;
    font-family: 'Mogul Arbat', 'Playfair Display', serif;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--dark-accent);
}

.quote-ref.event-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    background-color: var(--secondary-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.quote-reference {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Event Section */
.elegant-event-container {
    display: flex;
    justify-content: center;
    margin: 50px auto;
}

.elegant-event-card {
    position: relative;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(133, 159, 182, 0.2);
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    transition: transform 0.3s ease;
    border: 2px solid rgba(133, 159, 182, 0.1);
    overflow: hidden;
}

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

.event-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23ecf3f8"><path d="M50,0 C60,30 70,40 100,50 C70,60 60,70 50,100 C40,70 30,60 0,50 C30,40 40,30 50,0 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 0;
}

.event-decoration.top-left {
    top: -10px;
    left: -10px;
}

.event-decoration.top-right {
    top: -10px;
    right: -10px;
    transform: rotate(90deg);
}

.event-decoration.bottom-left {
    bottom: -10px;
    left: -10px;
    transform: rotate(270deg);
}

.event-decoration.bottom-right {
    bottom: -10px;
    right: -10px;
    transform: rotate(180deg);
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.event-date-badge {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(133, 159, 182, 0.3);
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.event-month {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 2px;
}

.event-year {
    font-size: 1rem;
    line-height: 1;
}

.event-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    margin: 0;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.event-time, .event-venue, .event-description {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.event-time i, .event-venue i, .event-description i {
    width: 35px;
    height: 35px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .elegant-event-card {
        padding: 30px 20px;
    }
    
    .event-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .event-title {
        font-size: 1.8rem;
    }
    
    .event-time, .event-venue, .event-description {
        font-size: 0.95rem;
    }
}

.map-container {
    margin-top: 50px;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RSVP Section */
.rsvp-section {
    background-color: var(--secondary-color);
}

.rsvp-info {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

.radio-group {
    margin-bottom: 20px;
}

.radio-options {
    display: flex;
    gap: 20px;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.submit-btn {
background-color: var(--primary-color);
color: white;
border: none;
padding: 12px 30px;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: background-color 0.3s ease;
}

.submit-btn:hover {
background-color: var(--dark-accent);
}

/* Bank Account Section */
.bank-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--secondary-color);
}

.bank-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bank-title {
    margin-bottom: 30px;
    color: var(--dark-accent);
    font-family: 'Mogul Arbat', 'Playfair Display', serif;
}

.bank-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.bank-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bank-account-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.bank-account {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    border: 1px dashed var(--primary-color);
}

.bank-copy-btn {
background-color: var(--primary-color);
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
margin-left: 10px;
transition: background-color 0.3s ease;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
min-height: 44px;
min-width: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
}

.bank-copy-btn:hover {
background-color: var(--dark-accent);
}

/* Mobile-specific styles for better touch interaction */
@media screen and (max-width: 768px) {
    .bank-copy-btn {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px;
        min-width: 120px;
        margin: 10px 5px;
    }
    
    .bank-account-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .bank-account-number {
        margin-bottom: 10px;
        text-align: center;
        font-size: 16px;
        padding: 15px;
    }
    
    /* Ensure all clickable elements have proper touch targets */
    button, .btn, a {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
    }
    
    /* Gallery items touch improvements */
    .gallery-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .gallery-item img {
        cursor: pointer;
    }
    
    /* Modal controls for mobile */
    .modal-close, .modal-prev, .modal-next {
        min-height: 48px;
        min-width: 48px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 15px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(133, 159, 182, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid white;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(133, 159, 182, 0.3), transparent);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

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

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

.head-focus {
    object-position: center 20% !important;
}

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

.gallery-item:hover {
    box-shadow: 0 12px 30px rgba(133, 159, 182, 0.3);
    z-index: 1;
    transform: translateY(-5px);
}

@media screen and (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

#modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: 300;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Mobile responsive for modal */
@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .modal-nav {
        font-size: 18px;
        padding: 12px 16px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-counter {
        bottom: 10px;
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        max-width: 98vw;
        max-height: 80vh;
    }
    
    .modal-close {
        top: 5px;
        right: 5px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    
    .modal-nav {
        font-size: 16px;
        padding: 8px 12px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .modal-prev {
        left: 5px;
    }
    
    .modal-next {
        right: 5px;
    }
    
    .modal-counter {
        bottom: 5px;
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Countdown Section */
.countdown-section {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.countdown-section .section-title {
    margin-bottom: 60px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.countdown-item {
    position: relative;
    width: 140px;
    height: 140px;
    transform: rotate(45deg);
    background-color: white;
    border: 1px solid rgba(133, 159, 182, 0.4); /* Using #859fb6 with transparency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 25px rgba(133, 159, 182, 0.15); /* Using #859fb6 with transparency */
}

.countdown-item::before,
.countdown-item::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23859fb6" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zm0-18c-4.97 0-9 4.03-9 9 4.97 0 9-4.03 9-9zm0 0c0 4.97 4.03 9 9 9-4.97 0-9-4.03-9-9zm0 0c0-4.97-4.03-9-9-9 4.97 0 9 4.03 9 9z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.countdown-item::before {
    top: -15px;
    left: -15px;
    transform: rotate(-45deg);
}

.countdown-item::after {
    bottom: -15px;
    right: -15px;
    transform: rotate(135deg);
}

.countdown-content {
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.countdown-item span {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--dark-accent);
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.countdown-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
}

@media screen and (max-width: 768px) {
    .countdown {
        gap: 25px;
    }
    
    .countdown-item {
        width: 120px;
        height: 120px;
    }
    
    .countdown-item span {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        width: 100px;
        height: 100px;
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: #4c6444;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .burger {
        display: block;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 70px;
        background-color: white;
        width: 100%;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-active li {
        margin: 15px 0;
    }
    
    .nav-active li a {
        padding: 15px 20px;
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(even) .event {
        margin-right: 0;
        margin-left: 20px;
        text-align: left;
    }
    
    .date {
        width: 60px;
        height: 60px;
        margin-left: -10px;
    }
    
    .event {
        width: calc(100% - 90px);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}
