/* Base Styles & Variables */
:root {
    --primary-color: #d4af37; /* Gold */
    --primary-dark: #b5952f;
    --bg-color: #faf9f6; /* Off-white / Pearl */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --accent-color: #1a3c34; /* Deep Elegant Green */
    
    --font-heading: 'Aref Ruqaa', serif;
    --font-body: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .names, .subtitle, .signature {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 5rem 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.w-100 {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 60, 52, 0.7), rgba(0, 0, 0, 0.4)); /* Greenish dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.names {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.names span {
    color: var(--primary-color);
    font-size: 3rem;
    vertical-align: middle;
}

.date {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--text-light);
    font-size: 2rem;
    opacity: 0.8;
}

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

/* Welcome Section */
.welcome {
    background-color: var(--bg-color);
}

.welcome-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 4rem 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.icon-gold {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.welcome-box h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.welcome-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.welcome-msg {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.signature {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Details Section */
.details {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.details .section-title {
    color: var(--primary-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
}

.detail-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-card p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.detail-card .btn-outline {
    margin-top: 1.5rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detail-card .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

/* RSVP Section */
.rsvp {
    background-color: var(--bg-color);
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.rsvp-desc {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--accent-color);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fcfcfc;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Radio Group for Attendance */
.attendance-toggle label {
    margin-bottom: 1rem;
}
.radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.radio-btn {
    flex: 1;
    position: relative;
    cursor: pointer;
}
.radio-btn input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.radio-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #fcfcfc;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}
.radio-btn input:checked ~ .radio-custom {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.radio-btn input[value="no"]:checked ~ .radio-custom {
    background-color: rgba(26, 60, 52, 0.05);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Textarea improvement */
textarea#message {
    width: 100%;
    resize: none;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #fcfcfc;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}
textarea#message:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
footer {
    background-color: #112621;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .names { font-size: 4rem; }
    .welcome-box { max-width: 90%; }
}

@media (max-width: 768px) {
    .names { font-size: 3rem; }
    .names span { font-size: 2rem; }
    .subtitle { font-size: 1.2rem; }
    .date { font-size: 1rem; margin-bottom: 2rem; }
    
    .section-padding { padding: 3rem 0; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    
    .welcome-box { padding: 2rem 1.5rem; }
    .welcome-box h2 { font-size: 2rem; }
    .welcome-text { font-size: 1.1rem; }
    .icon-gold { font-size: 2.5rem; }
    
    .detail-card { padding: 2rem 1.5rem; }
    
    .rsvp-container { padding: 2rem 1.5rem; margin: 0 10px; }
}

@media (max-width: 480px) {
    .names { font-size: 2.5rem; }
    .names span { font-size: 1.5rem; }
    .subtitle { font-size: 1.1rem; }
    
    .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .radio-custom {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .section-title { font-size: 1.8rem; }
    .welcome-text { font-size: 1rem; }
    .detail-card h3 { font-size: 1.5rem; }
}
