/* invitation-message.css */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&family=Noto+Serif+Tamil:wght@400;700&display=swap');

:root {
    --ivm-bg: #eef7ef;
    --ivm-sage: #6b9b78;
    --ivm-soft-green: #a7c4a0;
    --ivm-dark-green: #355e3b;
    --ivm-white: #f8faf6;
    --ivm-purple: #8b5fbf;
    --ivm-shadow: 0 15px 40px rgba(53, 94, 59, 0.1);
}

.ivm-romantic-wrapper {
    background-color: var(--ivm-bg);
    padding: 120px 20px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    position: relative;
}

/* TOP CENTER HEADING */
.ivm-top-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.ivm-top-header.reveal {
    opacity: 1;
    transform: translateY(0);
}

.ivm-tamil-main-title {
    font-family: 'Noto Serif Tamil', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--ivm-dark-green);
    margin-bottom: 20px;
    font-weight: 700;
}

.ivm-tamil-poem {
    font-family: 'Noto Serif Tamil', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 2;
    color: var(--ivm-sage);
    font-style: italic;
    white-space: pre-line;
}

/* 2-COLUMN LAYOUT */
.ivm-main-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 8vw, 100px);
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column: Arch Frame */
.ivm-frame-column {
    flex: 1;
    min-width: 350px;
    position: relative;
    max-width: 500px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.ivm-frame-column.reveal {
    opacity: 1;
    transform: translateX(0);
}

.ivm-arch-frame {
    width: 100%;
    height: 600px;
    border-radius: 300px 300px 40px 40px; /* Stronger Arch */
    overflow: hidden;
    border: 15px solid var(--ivm-white);
    box-shadow: var(--ivm-shadow);
    transition: transform 0.6s ease;
    background-color: var(--ivm-soft-green);
}

.ivm-arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.ivm-arch-frame:hover img {
    transform: scale(1.08);
}

/* Floral Decorations */
.ivm-flower-decor {
    position: absolute;
    width: 250px;
    z-index: 5;
    pointer-events: none;
}

.ivm-flower-left {
    bottom: -40px;
    left: -50px;
    animation: ivmFloatLeft 6s ease-in-out infinite;
}

.ivm-flower-right {
    top: -30px;
    right: -50px;
    animation: ivmFloatRight 7s ease-in-out infinite;
}

@keyframes ivmFloatLeft {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, -20px) rotate(8deg); }
}

@keyframes ivmFloatRight {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, -15px) rotate(-8deg); }
}

/* Right Column: Content Area */
.ivm-message-area {
    flex: 1.2;
    min-width: 350px;
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.ivm-message-area.reveal {
    opacity: 1;
    transform: translateX(0);
}

.ivm-couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 6vw, 5rem);
    color: var(--ivm-purple);
    margin-bottom: 10px;
    line-height: 1.2;
}

.ivm-couple-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--ivm-dark-green);
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.ivm-romantic-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--ivm-sage);
    margin-bottom: 40px;
    max-width: 500px;
}

.ivm-bottom-highlight {
    margin: 80px auto 0;
    text-align: center;
    padding-top: 50px;
    border-top: 1px dashed var(--ivm-soft-green);
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.5s;
}

.ivm-bottom-highlight.reveal {
    opacity: 1;
    transform: translateY(0);
}

.ivm-date-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--ivm-purple);
    margin-bottom: 12px;
    font-weight: 700;
}

.ivm-footer-tag {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--ivm-dark-green);
    letter-spacing: 1px;
}

/* Floating Petals */
.ivm-petal {
    position: absolute;
    font-size: 1.8rem;
    z-index: 6;
    opacity: 0.5;
    animation: ivmPetalMove 12s linear infinite;
}

.ivm-petal-1 { top: 15%; left: -30px; }
.ivm-petal-2 { top: 45%; right: -30px; animation-delay: 2s; }
.ivm-petal-3 { bottom: 15%; left: 60%; animation-delay: 4s; }

@keyframes ivmPetalMove {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-150px) rotate(360deg) scale(1.2); opacity: 0; }
}

/* Responsive */
@media (max-width: 992px) {
    .ivm-main-layout {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .ivm-message-area {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .ivm-arch-frame {
        height: 500px;
        max-width: 400px;
        margin: 0 auto;
    }

    .ivm-bottom-highlight {
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .ivm-romantic-wrapper {
  background-color: var(--ivm-bg);
  padding: 10px 10px;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  position: relative;
}
.ivm-tamil-main-title {
  font-family: 'Noto Serif Tamil', serif;
  font-size: clamp(1.5rem, 5vw, 4rem);
  color: var(--ivm-dark-green);
  margin-bottom: 0px;
  font-weight: 700;
}
.ivm-tamil-poem {
  font-family: 'Noto Serif Tamil', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ivm-sage);
  font-style: italic;
  white-space: pre-line;
  margin: 0px;
}
.ivm-top-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.ivm-bottom-highlight {
  margin: 80px auto 0;
  text-align: center;
  padding-top: 50px;
  border-top: 1px dashed var(--ivm-soft-green);
  max-width: 800px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 0.5s;

}
.ivm-couple-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.5rem, 6vw, 5rem);
  color: var(--ivm-purple);
  margin-bottom: 10px;
  line-height: 1.2;
}
 .ivm-bottom-highlight {
    margin: 0px auto 0;
    text-align: center;
    padding-top: 0px;
    border-top: 1px dashed var(--ivm-soft-green);
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.5s;
  }
  .ivm-couple-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ivm-dark-green);
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}
}