/* Timeline desktop overlay and arrow */
.timeline-overlay-desktop {
  display: none;
}

@media (min-width: 769px) {
  .timeline-overlay-desktop {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 2;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 200px;
    transition: background 0.3s;
  }
  .timeline-circle:hover .timeline-overlay-desktop {
    display: flex;
  }
  .timeline-arrow-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #fff;
    opacity: 0.95;
    animation: arrow-move 1s infinite alternate;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
  }
}
/* Timeline arrow for mobile (moved from index.html) */
.timeline-arrow {
  display: none;
}

@media (max-width: 768px) {
  .timeline-arrow {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: middle;
    animation: arrow-move 1s infinite alternate;
    color: #fff;
    font-size: 1.2em;
    transition: color 0.2s;
  }
  .timeline-title-with-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    width: 100%;
    margin-top: 0.2em;
  }
  .timeline-title-with-arrow .timeline-title {
    margin-bottom: 0;
  }
}

@keyframes arrow-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}
/* Font Face Declaration */
@font-face {
    font-family: 'La Mango';
    src: url('fonts/LaMango-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* Optimize for performance */
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Reduce motion for accessibility */
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    will-change: transform;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
    will-change: transform;
}

.logo-image:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #ffffff;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.2);
}

.nav-link::after {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #333;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hamburger menu active state */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile menu active state */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
}

.nav-menu.active li {
    margin: 0.5rem 0;
}

.nav-menu.active a {
    color: #000;
    padding: 0.5rem 1rem;
    display: block;
    text-align: center;
    font-weight: 500;
}

.nav-menu.active a:hover {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* Remove underline effect for mobile menu */
.nav-menu.active a::after {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: #fff;
    padding: 2rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    height: 100vh;
}

.hero-content {
    padding: 2rem 0;
}

.timeline-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding-top: 2rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-circle {
    width: 220px;
    height: 400px;
    border-radius: 200px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid #fff;
    position: relative;
    will-change: transform;
}

.timeline-circle:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.timeline-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: center; */
    /* border-radius: 50%; */
    transition: transform 0.3s ease;
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    aspect-ratio: 1/2;
    /* transform: scale(0.6); */
}

/* First image - pull down */
.timeline-item:nth-child(1) .timeline-circle img {
    /* object-position: bottom 50%; */
    transform: scale(1);
}

/* Second image - zoom to 0.5 */
.timeline-item:nth-child(2) .timeline-circle img {
    /* object-position: right 2px; */
    transform: scale(1);
}

/* Third image - pull to the left */
.timeline-item:nth-child(3) .timeline-circle img {
    transform: scale(1);
}

.timeline-line {
    width: 1px;
    height: 40px;
    background: #ddd;
    margin: 1rem auto;
}

.timeline-caption {
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.timeline-caption-desktop {
    text-align: center;
    margin-top: 1rem;
    display: block;
}

.timeline-date {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.timeline-title {
    font-family: 'La Mango', serif;
    font-size: 1.2rem;
    color: #000;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    will-change: transform;
}

.timeline-link:hover {
    transform: translateY(-5px);
}

.timeline-link:hover .timeline-circle {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-content {
    flex: 1;
    text-align: left;
    z-index: 3;
    position: relative;
    padding: 2rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Font Option 1: La Mango (Current) */
.hero-title {
    font-family: 'La Mango', serif;
    font-size: 9rem;
    font-weight: 400;
    background: linear-gradient(to left, #000, #333, #666, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-shadow: none;
    line-height: 0.8;
    text-align: left;
    text-transform: uppercase;
    will-change: opacity, transform;
    display: block;
}

/* Font Option 2: Moonstone */
.hero-title-moonstone {
    font-family: 'Moonstone', serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* Font Option 3: Elsie */
.hero-title-elsie {
    font-family: 'Elsie', serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* Font Option 4: Dancing Script */
.hero-title-dancing {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* Font Option 5: Great Vibes */
.hero-title-greatvibes {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.hero-subtitle {
    font-family: 'La Mango', serif;
    font-size: 9rem;
    font-weight: 400;
    background: linear-gradient(to left, #333, #666, #999, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
    text-shadow: none;
    line-height: 0.8;
    text-align: left;
    text-transform: uppercase;
    will-change: opacity, transform;
    display: block;
}

.hero-subtitle-moonstone {
    font-family: 'Moonstone', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
    text-transform: uppercase;
}

.hero-subtitle-elsie {
    font-family: 'Elsie', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
    text-transform: uppercase;
}

.hero-subtitle-dancing {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
    text-transform: uppercase;
}

.hero-subtitle-greatvibes {
    font-family: 'La Mango', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
    text-transform: uppercase;
}

.hero-date-title {
    font-family: 'La Mango', serif;
    font-size: 9rem;
    font-weight: 400;
    background: linear-gradient(to left, #000, #333, #666, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    text-shadow: none;
    line-height: 0.8;
    text-align: left;
    text-transform: uppercase;
    will-change: opacity, transform;
    display: block;
}

.hero-invitation {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.invitation-image {
    max-width: 100px;
    height: auto;
    display: block;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    border-radius: 10px;
    margin-top: 5rem;
    transition: transform 0.3s ease;
    will-change: transform;
}

.invitation-image:hover {
    transform: translateY(-5px);
}

.hero-logo {
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-logo-c {
    font-family: 'La Mango', serif;
    font-size: 4rem;
    font-weight: 400;
    color: #333;
    position: relative;
}

.hero-logo-line {
    position: absolute;
    width: 3px;
    height: 30px;
    background: #999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 12px;
}

.hero-date-title-moonstone {
    font-family: 'Moonstone', serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.hero-date-title-elsie {
    font-family: 'Elsie', serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.hero-date-title-dancing {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.hero-date-title-greatvibes {
    font-family: 'La Mango', serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.hero-date {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-countdown {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-countdown .countdown-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-countdown .countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-countdown .countdown-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    font-family: 'Roboto', sans-serif;
}

.hero-countdown .countdown-label {
    font-size: 0.6rem;
    color: #666;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.date-text {
    font-family: 'La Mango', serif;
    font-size: 1.6rem;
    color: #000;
    font-weight: 400;
}

/* Image Gallery Section */
.image-gallery {
    padding: 4rem 0;
    background: #f8f9fa;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    will-change: transform;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.cta-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-hearts i {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.floating-hearts i:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-hearts i:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.floating-hearts i:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.floating-hearts i:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

.floating-hearts i:nth-child(5) {
    top: 70%;
    left: 60%;
    animation-delay: 4s;
}

/* Countdown Section */
.countdown-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    font-family: 'La Mango', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to left, #000, #333, #666, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    will-change: transform;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to left, #000, #333, #666, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Roboto', sans-serif;
}

.countdown-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    will-change: transform;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    border: 2px dashed #ddd;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-placeholder p {
    font-size: 1rem;
    color: #999;
}

/* Details Section */
.details-section {
    padding: 5rem 0;
    background: #fff;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-family: 'La Mango', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.detail-card p {
    color: #666;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer i {
    color: #ff6b6b;
    margin: 0 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .hero-subtitle {
        font-size: 6rem;
    }
    
    .hero-date-title {
        font-size: 6rem;
    }
    
    .timeline-container {
        gap: 1.5rem;
    }
    
    .timeline-circle {
        width: 180px;
        height: 360px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
    }
    
    .nav-container {
        position: relative;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        height: auto;
        min-height: 100vh;
        padding: 1rem;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
    }
    
    .hero-content {
        flex: none;
        height: auto;
        padding: 0.5rem;
        justify-content: flex-start;
        text-align: center;
        max-width: 100%;
        margin-bottom: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        gap: 0;
        position: relative;
        padding-top: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 8px;
        line-height: 1;
        margin-bottom: 0;
        white-space: nowrap;
        display: block;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
        letter-spacing: 8px;
        line-height: 1;
        margin-bottom: 0;
        white-space: nowrap;
        display: block;
    }
    
    .hero-date-title {
        font-size: 2.5rem;
        letter-spacing: 8px;
        line-height: 1;
        margin-bottom: 0;
        white-space: nowrap;
        display: block;
    }
    
    .hero-invitation {
        margin-top: 0;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .invitation-image {
        max-width: 60px;
        margin-top: 0;
    }
    
    .timeline-container {
        order: 1;
        flex-direction: column;
        gap: 1rem;
        height: auto;
        padding: 0;
        position: relative;
        overflow: visible;
        flex: 1;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        align-items: center;
    }
    
    .timeline-item {
        position: relative;
        opacity: 1;
        transform: none;
        transition: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 350px;
        height: auto;
        margin-bottom: 5px;
    }
    
    .timeline-circle {
        position: relative;
        width: 95vw;
        height: 70vw;
        margin: 0 auto;
        max-width: 500px;
        max-height: 400px;
        overflow: hidden;
    }
    
    .timeline-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px;
        text-align: center;
        border-radius: 0 0 50% 50%;
        width: 100%;
        display: block;
        margin-top: 0;
        z-index: 10;
    }
    
    .timeline-caption-desktop {
        display: none;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-date {
        font-size: 0.7rem;
        margin-bottom: 2px;
        color: #fff;
    }
    
    .timeline-title {
        font-size: 0.8rem;
        color: #fff;
        font-weight: 500;
    }
    
    .timeline-item.active {
        opacity: 1;
        transform: none;
        z-index: 1;
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .section-title {
        font-size: 2rem;
        letter-spacing: 6px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }

    .date-day {
        font-size: 1.8rem;
    }
    
    .date-month {
        font-size: 1.8rem;
    }
    
    .date-year {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .hero-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .hero-date-title {
        font-size: 2.5rem;
    }
    
    .timeline-circle {
        width: 95vw;
        height: 70vw;
        margin: 0 auto;
        max-width: 500px;
        max-height: 400px;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .countdown-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .countdown-item {
        width: 150px;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-image {
        height: 25px;
    }
} 