@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Premium Pastel Blue & White Theme */
    --primary-color: #8CA6D1;
    --primary-dark: #5B82B1;
    --primary-light: #C6D7EB;
    --secondary-color: #EAF2FA;
    --text-main: #2C3E50;
    --text-muted: #6B7C93;
    --bg-base: #F4F8FB;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(91, 130, 177, 0.08);
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-main);
    background: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, hsla(212, 57%, 85%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(0, 0%, 100%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(213, 40%, 89%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(0, 0%, 100%, 1) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .heading-font { font-family: var(--font-heading); font-weight: 500; color: var(--primary-dark); }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar - Glass */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 30px;
    margin: 20px auto; max-width: 1000px; border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: sticky; top: 20px; z-index: 1000;
}
.nav-brand { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary-dark); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 400; margin-left: 25px; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); }
.admin-link { color: var(--primary-dark) !important; font-weight: 600 !important; }

/* Photo Placeholder */
.photo-placeholder {
    width: 100%; height: 500px; border-radius: 20px;
    background: linear-gradient(135deg, #EAF2FA 0%, #C6D7EB 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--primary-dark); text-align: center;
    border: 2px dashed rgba(255,255,255,0.7);
    margin-bottom: 40px; box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
    animation: placeholderPulse 3s infinite alternate;
}
.photo-placeholder i { font-size: 3rem; margin-bottom: 10px; opacity: 0.8; }
.photo-placeholder p { font-size: 1.1rem; font-weight: 400; letter-spacing: 1px; }

@keyframes placeholderPulse { from { box-shadow: inset 0 0 20px rgba(255,255,255,0.5); } to { box-shadow: inset 0 0 40px rgba(255,255,255,1); } }

/* Hero Section */
.hero-section {
    padding: 80px 0; text-align: center;
    opacity: 0; animation: fadeUp 1s ease 0.2s forwards;
}
.hero-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 5px; color: var(--text-muted); margin-bottom: 20px; }
.couple-names { font-size: 4.5rem; line-height: 1.2; margin: 20px 0; background: linear-gradient(45deg, var(--primary-dark), #82A9D4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.wedding-date { font-size: 1.5rem; letter-spacing: 2px; font-weight: 400; margin: 30px 0; display: inline-block; padding: 10px 30px; border-top: 1px solid var(--primary-light); border-bottom: 1px solid var(--primary-light); }
.hero-actions { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

/* Glass Components */
.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    border-radius: 20px; padding: 50px; text-align: center; margin: 50px 0;
    transition: 0.4s ease;
}
.glass-panel:hover { transform: translateY(-5px); box-shadow: 0 15px 40px 0 rgba(91, 130, 177, 0.12); }

/* Buttons */
.btn {
    padding: 14px 35px; border-radius: 30px; text-decoration: none; font-size: 1rem;
    font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: 0.4s;
    border: none; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; box-shadow: 0 4px 15px rgba(140, 166, 209, 0.4); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(140, 166, 209, 0.6); transform: translateY(-2px); }
.btn-secondary { background: white; color: var(--primary-dark); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.btn-secondary:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }

/* Forms & Inputs */
.input-group { display: flex; max-width: 400px; margin: 20px auto; }
.input-group input { flex: 1; padding: 15px 25px; border: 1px solid var(--primary-light); border-radius: 30px 0 0 30px; outline: none; font-family: var(--font-body); background: rgba(255,255,255,0.7); }
.input-group input:focus { background: white; border-color: var(--primary-color); }
.input-group button { border-radius: 0 30px 30px 0; }

/* Grid Layouts */
.info-grid, .family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.info-card, .family-card {
    background: rgba(255,255,255,0.7); padding: 40px 30px; border-radius: 20px;
    border: 1px solid white; box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.info-card:hover, .family-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.95); }
.info-card h3 { margin-bottom: 15px; font-size: 1.4rem; letter-spacing: 1px; }
.info-icon { width: 70px; height: 70px; background: var(--secondary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; color: var(--primary-dark); }

/* Invitation Specific Styles */
.invitation-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.invitation-card {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 20px 50px rgba(91, 130, 177, 0.15);
    border-radius: 24px; padding: 60px 40px; max-width: 600px; width: 100%;
    text-align: center; position: relative; overflow: hidden;
}

/* Corner Decor */
.corner-tl, .corner-tr, .corner-bl, .corner-br { position: absolute; width: 100px; height: 100px; opacity: 0.3; pointer-events: none; }
.corner-tl { top: 15px; left: 15px; border-top: 2px solid var(--primary-color); border-left: 2px solid var(--primary-color); border-top-left-radius: 15px; }
.corner-tr { top: 15px; right: 15px; border-top: 2px solid var(--primary-color); border-right: 2px solid var(--primary-color); border-top-right-radius: 15px; }
.corner-bl { bottom: 15px; left: 15px; border-bottom: 2px solid var(--primary-color); border-left: 2px solid var(--primary-color); border-bottom-left-radius: 15px; }
.corner-br { bottom: 15px; right: 15px; border-bottom: 2px solid var(--primary-color); border-right: 2px solid var(--primary-color); border-bottom-right-radius: 15px; }

/* Footer */
.footer { text-align: center; padding: 40px 0; margin-top: 50px; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.5); }
.footer-heart { color: #e74c3c; animation: beat 1s infinite alternate; display: inline-block; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes beat { to { transform: scale(1.2); } }

/* Floating Elements for Background */
.bg-bubble { position: fixed; border-radius: 50%; opacity: 0.4; z-index: -1; animation: float 10s infinite ease-in-out; }
.bubble-1 { width: 300px; height: 300px; background: rgba(140, 166, 209, 0.2); top: -100px; left: -100px; filter: blur(40px); }
.bubble-2 { width: 400px; height: 400px; background: rgba(198, 215, 235, 0.3); bottom: -150px; right: -100px; filter: blur(60px); animation-delay: -3s; }
.bubble-3 { width: 250px; height: 250px; background: rgba(255, 255, 255, 0.5); top: 40%; left: 60%; filter: blur(40px); animation-delay: -6s; }

@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.05); } }

/* Mobile Break Utility */
.mobile-break { display: none; }

/* Mobile Optimization & Responsive Design */
@media (max-width: 768px) {
    /* Base adjust */
    body { font-size: 14px; }
    .container { padding: 0 10px; }
    
    /* Hero section */
    .hero-section { padding: 30px 0; }
    .couple-names { font-size: 2.6rem; margin: 15px 0; line-height: 1.3; }
    .mobile-break { display: block; }
    .wedding-date { font-size: 1.1rem; padding: 8px 15px; margin: 15px 0; }
    .hero-actions { flex-direction: column; gap: 12px; align-items: stretch; margin-top: 15px; }
    .hero-actions .btn { justify-content: center; width: 100%; }

    /* Layout & Panels */
    .glass-panel { padding: 25px 15px; margin-top: 40px !important; border-radius: 15px; }
    
    /* Navigation Bar */
    .navbar { padding: 12px 20px; border-radius: 50px; margin: 15px auto; position: sticky; top: 10px; width: 95%; }
    .menu-toggle { display: block !important; }
    .nav-links { 
        display: none; position: absolute; top: 75px; left: 0; width: 100%; 
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px);
        border-radius: 20px; box-shadow: 0 10px 30px rgba(91, 130, 177, 0.2);
        flex-direction: column; padding: 20px; text-align: center; border: 1px solid var(--glass-border);
    }
    .nav-links.active { display: flex !important; }
    .nav-links a { margin: 12px 0; padding: 10px; font-size: 1.1rem; font-weight: 500; display: block; border-radius: 10px; }
    .nav-links a:hover { background: var(--secondary-color); }
    
    /* Location Map */
    iframe { height: 300px !important; }

    /* Album Gallery */
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 10px !important; }
}