/* Cleaned Font Imports: Keeping only what is actively used */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:wght@600&family=Great+Vibes&family=Marcellus&display=swap');

@font-face {
    font-family: 'SamarkanNormal';
    src: url('font/SamarkanNormal-Gg5D.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Marcellus', serif;
    background-color: #fffaf0;
    color: #3c225a;
    overflow: hidden;
}


/* Background Animation Canvas over the top layout layers */
#flowerCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows users to click buttons or links beneath the canvas layer */
    z-index: 100;         /* UPDATED: Increased from 50 to 100 so petals fall over the text card layout */
    opacity: 0;
    transition: opacity 1s ease;
}

body.unlocked #flowerCanvas {
    opacity: 1; /* Optional adjustment: Change to 0.5 or 0.6 if you want them even softer over the text */
}


/* Cover Layer Styling matches your traditional layout palette */
.cover-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #561163 0%, #200427 70%, #0d0111 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
    text-align: center;
    padding: 30px 15px;
    overflow: hidden;
}

/* Clean, Aesthetic Minimalist Star-Flower Pattern with Edge-Fading Mask */
.cover-layer::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.25'%3E%3Cpath d='M30 20c0 2-2 4-4 4s-4-2-4-4 2-4 4-4 4 2 4 4zm0 20c0 2-2 4-4 4s-4-2-4-4 2-4 4-4 4 2 4 4zm-10-10c0 2-2 4-4 4s-4-2-4-4 2-4 4-4 4 2 4 4zm20 0c0 2-2 4-4 4s-4-2-4-4 2-4 4-4 4 2 4 4z'/%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 50px 50px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
    animation: professionalTextureZoom 20s infinite ease-in-out;
}

@keyframes professionalTextureZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.cover-layer.opened {
    transform: translateY(-100%);
}

.cover-border {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    pointer-events: none;
}

.cover-border::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    border: 1px dashed #d4af37;
}

.gayatri-full-screen {
    width: 100%;
    height: 48vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    z-index: 5;
}

.gayatri-full-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(254, 216, 0, 0.185));
    animation: divineGlowPulse 4s infinite ease-in-out;
}

.cover-content-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    z-index: 5;
}

.cover-title {
    font-family: 'SamarkanNormal', sans-serif;
    color: #d4af37;
    font-size: 3.2rem; 
    letter-spacing: 1px;
    margin-top: 2.5vh;
    margin-bottom: 0.6vh;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cover-vatu-name {
    font-family: 'Marcellus', serif;
    color: #ffffff;
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    margin: 5px 0;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    padding-top: 1vh;
}

.cover-subtitle {
    font-family:'Cormorant Garamond', serif;
    color: #e2d1f9;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    padding-top: 1.5vh;
}

@keyframes divineGlowPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(254, 215, 0, 0.25)); }
    50% { transform: scale(1.015); filter: drop-shadow(0 0 25px rgba(254, 216, 0, 0.171)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(254, 215, 0, 0.25)); }
}

.click-hint {
    color: #d4af37;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: bounce 1.5s infinite;
    background: rgba(0,0,0,0.25);
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* UPDATED: Decreased layout paddings (Changed top/bottom from 60px to 25px) */
.main-container {
    height: 100%;
    overflow-y: auto;
    padding: 25px 20px 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: radial-gradient(circle, #fcf4fe 20%, #f7e6f8 70%, #edd3f0 100%);
    position: relative;
}

/* REMOVED: .garland and .garland img references completely */

.shloka-heading {
    font-family: 'Marcellus', serif;
    color: #8f1a26;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.05);
}

.invite-card {
    max-width: 650px;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid #3c225a;
    border-radius: 15px;
    /* UPDATED: Decreased padding (Changed top/bottom from 40px to 25px) */
    padding: 25px 30px;
    box-shadow: 0 15px 35px rgba(60, 34, 90, 0.12);
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease 0.2s;
    z-index: 55;
}

body.unlocked .invite-card {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.unlocked .anim-fade {
    opacity: 1;
    transform: translateY(0);
}

body.unlocked .anim-fade:nth-child(1) { transition-delay: 0.3s; }
body.unlocked .anim-fade:nth-child(2) { transition-delay: 0.4s; }
body.unlocked .anim-fade:nth-child(3) { transition-delay: 0.5s; }
body.unlocked .anim-fade:nth-child(4) { transition-delay: 0.6s; }
body.unlocked .anim-fade:nth-child(5) { transition-delay: 0.7s; }

.main-heading {
    font-family: 'Marcellus', serif;
    color: #3c225a;
    font-size: 2.2rem;
    border-bottom: 2px solid #d4af37;
    text-transform: uppercase;
    padding-bottom: 10px;
    display: inline-block;
    font-weight: 1000;
}

.sub-heading {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #8c6200;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 25px;
}

.welcome-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #444;
}

.vatu-name {
    font-family: 'Marcellus', serif;
    color: #8f1a26;
    font-size: 2.5rem;
    margin: 25px 0; /* Expanded margins slightly to give breathing room for the lines */
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

/* Elegant line design ABOVE the Vatu name */
.vatu-name::before {
    content: "◆"; /* Decorative center diamond point */
    font-size: 0.8rem;
    color: #d4af37;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* Controls how wide the line stretches */
    /* Creates identical left/right horizontal rule branches splitting from the center diamond */
    background: linear-gradient(to right, transparent, #d4af37 20%, #d4af37 40%, transparent 45%, transparent 55%, #d4af37 60%, #d4af37 80%, transparent);
    height: 1px;
    line-height: 1px;
}

/* Elegant line design BELOW the Vatu name */
.vatu-name::after {
    content: "◆";
    font-size: 0.8rem;
    color: #d4af37;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    background: linear-gradient(to right, transparent, #d4af37 20%, #d4af37 40%, transparent 45%, transparent 55%, #d4af37 60%, #d4af37 80%, transparent);
    height: 1px;
    line-height: 1px;
}

.parents-info {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.4;
}

.parents-info strong {
    color: #3c225a;
}

.details-box {
    background: #fbf7ff;
    border-left: 5px solid #d4af37;
    border-right: 5px solid #d4af37;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-top: 1px solid #eadeff;
    border-bottom: 1px solid #eadeff;
}

.detail-item {
    padding: 12px 0;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px dashed #eadeff;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item:first-child {
    padding-top: 0;
}

.action-btn-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #3c225a;
    color: white;
    border: 2px solid #3c225a;
}

.btn-secondary {
    background-color: #fffdf9;
    color: #3c225a;
    border: 2px solid #d4af37;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 215, 0, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: shimmer 3.5s infinite linear;
}

@keyframes shimmer {
    0% { left: -60%; }
    100% { left: 140%; }
}

.family-events-section {
    background-color: rgba(60, 34, 90, 0.04);
    border: 1px dashed #b193d6;
    border-radius: 10px;
    padding: 20px;
    margin: 35px 0;
}

.section-title {
    font-family: 'Marcellus', serif;
    font-size: 1.1rem;
    color: #3c225a;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: bold;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.event-card-btn {
    background: white;
    border: 1.5px solid #dcd0ec;
    padding: 15px 10px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 6px rgba(0,0,0,0.03);
}

.event-card-btn:hover {
    border-color: #3c225a;
    background-color: #fbf7ff;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(60, 34, 90, 0.15);
}

.event-card-btn span {
    font-weight: bold;
    color: #8f1a26;
    font-size: 1rem;
    margin-bottom: 4px;
}

.event-card-btn small {
    color: #444;
    font-size: 0.8rem;
}

.hospitality-text {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: #8f1a26;
    margin: 30px 0;
}

.hosts-section {
    border-top: 1px dashed #d4af37;
    padding-top: 25px;
    margin-top: 30px;
}

.hosts-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3c225a;
    margin-bottom: 15px;
    font-weight: bold;
}

.host-names {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.vatu-photo-container {
    margin-top: 40px;
    scroll-margin-top: 30px;
}

/* UPDATED: Removed border-radius circle logic to allow a beautifully scaled portrait look */
.photo-frame {
    max-width: 280px; /* Expands photo area natively on both mobile/desktop screens */
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* Perfect traditional portrait frame ratio */
    border-radius: 8px; /* Smooth rounded card corners */
    border: 3px double #d4af37;
    padding: 6px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.photo-frame:hover {
    transform: scale(1.03);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.photo-caption {
    margin-top: 12px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #666;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

@media (max-width: 600px) {
    .gayatri-full-screen { height: 50vh; width: 100%; padding: 0; }
    .cover-title { font-size: 2.15rem; }
    .cover-vatu-name { font-size: 1.4rem; }
    .cover-subtitle { font-size: 1.4rem; margin-bottom: 20px; }
    .main-heading { font-size: 1.8rem; }
    .vatu-name { font-size: 2rem; }
    .invite-card { padding: 20px 15px; }
    .event-grid { grid-template-columns: 1fr; gap: 10px; }
    .action-btn-container { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .click-hint { font-size: 0.65rem; }
    .shloka-heading { font-size: 0.65rem; letter-spacing: 0.5px; }
}




/* ==========================================
   7. CUSTOM PRINOPIX FOOTER STYLES
   ========================================== */
.prinopix-footer-section {
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.prinopix-footer-link {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #555555;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.5px;
}

/* Interactivity states */
.prinopix-footer-link:hover {
  color: #111111;
  transform: translateY(-2px);
}

/* Beating Heart Icon Animation */
.heart-icon {
  display: inline-block;
  color: #e24e42;
  animation: heartBeat 1.5s infinite ease-in-out;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.2); }
  70% { transform: scale(1); }
}

/* Mobile responsive font sizing */
@media (max-width: 768px) {
  .prinopix-footer-link {font-size: 0.9rem;}
}