/* css/style.css */

:root {
    /* Color Palette */
    --clr-ivory: #FFFFF0;
    --clr-cream: #FDFBF7;
    --clr-gold: #D4AF37;
    --clr-gold-light: #F3E5AB;
    --clr-pastel-green: #D5E1D5;
    --clr-dark-green: #2C4A3B;
    --clr-text-main: #333333;
    --clr-text-light: #666666;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    /* Transitions */
    --transition-smooth: all 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-cream);
    color: var(--clr-text-main);
    line-height: 1.8;
    letter-spacing: 0.3px;
    overflow-x: hidden;
}

h2, h3, .bismillah, .countdown-title, .section-title {
    font-family: var(--font-heading);
    font-weight: 500;
}

h1, .couple-names, .couple-names-small, blockquote, .ampersand {
    font-family: var(--font-script);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Controls (Audio & Language) */
.controls-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--clr-gold);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
}

.control-btn:hover {
    transform: scale(1.1);
    background-color: var(--clr-dark-green);
    box-shadow: 0 6px 20px rgba(44, 74, 59, 0.4);
}

.control-btn.playing {
    animation: pulse 2s infinite;
}

#lang-toggle {
    font-size: 0.8rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navbar a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text-main);
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--clr-gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(to bottom, var(--clr-pastel-green) 0%, var(--clr-cream) 100%);
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 4rem 3rem;
    border-radius: 20px;
    border: 2px solid var(--clr-gold);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1), inset 0 0 20px rgba(212, 175, 55, 0.2);
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(5px);
}

.hero-content::before, .hero-content::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--clr-gold);
    border-radius: 5px;
    opacity: 0.6;
}

.hero-content::before {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.hero-content::after {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.bismillah-svg {
    width: 180px;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.couple-names {
    font-size: 5rem;
    color: var(--clr-dark-green);
    margin: 0.5rem 0;
    text-shadow: 0.3px 0.3px 0 var(--clr-dark-green); /* Very subtle thickness, isolated to just the hero names */
}

.heart-icon {
    font-size: 0.6em; /* Scale relative to parent text */
    color: var(--clr-gold);
    animation: heartbeat 2s infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.subtitle {
    font-size: 1rem;
    color: var(--clr-text-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.parents-names {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--clr-dark-green);
    margin-bottom: 3rem;
    line-height: 1.8;
    letter-spacing: 1px;
    font-style: italic;
}

.ampersand {
    color: var(--clr-gold);
    font-size: 2.5rem;
    margin: -0.5rem 0;
}

.countdown-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--clr-gold);
}

.countdown-title {
    font-size: 1.8rem;
    color: var(--clr-dark-green);
    margin-bottom: 1.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--clr-gold);
    font-weight: bold;
    min-width: 60px;
}

.time-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-light);
}

.wedding-date {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--clr-dark-green);
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--clr-dark-green);
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

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

/* Quote Section */
.quote {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--clr-ivory);
    position: relative;
}

.pattern-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--clr-gold-light) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
}

.quote-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 2rem;
    color: var(--clr-gold);
    margin-bottom: 1rem;
}

blockquote {
    font-size: 2.5rem;
    color: var(--clr-dark-green);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-style: italic;
}

cite {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    font-weight: 500;
}

/* Events Section */
.events {
    padding: 6rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    background-color: var(--clr-cream);
}

.event-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--clr-pastel-green);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 74, 59, 0.1);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.event-icon {
    font-size: 2.5rem;
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
}

.event-card h2 {
    font-size: 2rem;
    color: var(--clr-dark-green);
    margin-bottom: 1.5rem;
}

.event-details p {
    margin-bottom: 0.8rem;
    color: var(--clr-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.event-details i {
    color: var(--clr-gold);
    width: 20px;
}

.address {
    font-size: 0.9rem;
    color: var(--clr-text-light) !important;
    margin-top: -5px;
    padding-left: 30px;
}

.btn-location {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--clr-dark-green);
    border: 2px solid var(--clr-dark-green);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-location:hover {
    background-color: var(--clr-dark-green);
    color: #fff;
}

/* Location Section */
.location {
    padding: 6rem 2rem;
    background-color: var(--clr-ivory);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--clr-dark-green);
    margin-bottom: 3rem;
}

.maps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.map-box {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #fff, var(--clr-cream));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.map-box::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

.map-box h3 {
    font-size: 1.5rem;
    color: var(--clr-dark-green);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--clr-ivory);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-dark-green);
    border: 3px solid #fff;
    box-shadow: 0 10px 30px rgba(44, 74, 59, 0.15);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.5s ease;
}

.map-placeholder:hover iframe {
    transform: scale(1.05);
}

.map-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Closing Section */
.closing {
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(to top, var(--clr-pastel-green) 0%, var(--clr-cream) 100%);
}

.closing-message {
    font-size: 1.2rem;
    color: var(--clr-text-main);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.couple-names-small {
    font-size: 4rem;
    color: var(--clr-dark-green);
    margin-bottom: 2rem;
}

.couple-cartoon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 4px solid var(--clr-gold);
    background-color: var(--clr-ivory);
}

.ornament-bottom {
    font-size: 2rem;
    color: var(--clr-gold);
}

/* Animations */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .couple-names { font-size: 7vw; white-space: nowrap; }
    .countdown { gap: 1rem; }
    .time-box span { font-size: 2rem; min-width: 50px; }
    blockquote { font-size: 2rem; }
    .navbar { padding: 0.8rem 0; }
    .navbar ul { gap: 1rem; }
    .navbar a { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .couple-names { font-size: 11.5vw; margin: 0.5rem 0; line-height: 1.2; white-space: nowrap; }
    .subtitle { font-size: 0.8rem; letter-spacing: 2px; }
    .countdown { gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
    .time-box span { font-size: 1.8rem; min-width: 50px; }
    .time-box p { font-size: 0.75rem; }
    .hero { padding-top: 6rem; padding-bottom: 3rem; }
    .hero-content { padding: 2.5rem 1rem; }
    .events, .location, .quote, .closing { padding: 4rem 1.2rem; }
    .parents-names { font-size: 0.9rem; margin-bottom: 2rem; }
    blockquote { font-size: 2.5rem; line-height: 1.5; }
    .couple-names-small { font-size: 3rem; }
    .event-card { padding: 2rem 1.5rem; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
}
