/* ═══════════════════════════════════════════
   ANDALUSIAN LUXURY THEME (FULL VERSION)
   Moorish Architecture & Zellige Art
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Almendra:ital,wght@0,400;0,700;1,400&family=Noto+Naskh+Arabic:wght@400;700&family=Montserrat:wght@300;400;700&display=swap');

:root {
    --anda-blue: #1E3163;
    --anda-blue-light: #2D4263;
    --anda-orange: #D4691E;
    --anda-gold: #D4AF37;
    --anda-cream: #F9F7F2;
    --anda-dark: #121212;
    --anda-shadow: 0 20px 50px rgba(30, 49, 99, 0.15);
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Almendra', 'Noto Naskh Arabic', serif;
    background-color: var(--anda-cream);
    color: var(--anda-blue);
    scroll-behavior: smooth;
    width: 100%;
    direction: rtl;
}

/* Zellige Pattern Background */
.zellige-pattern {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l5 25h25l-20 10 7 25-22-15-22 15 7-25-20-10h25z' fill='%231E3163' fill-opacity='0.02'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.anda-nav {
    background: rgba(30, 49, 99, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    /* position: fixed; */
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--anda-gold);
    transition: 0.4s ease;
}

.anda-nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(30, 49, 99, 1);
}

.anda-brand {
    font-size: 1.8rem;
    color: var(--anda-gold);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.anda-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.anda-menu a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', 'Noto Naskh Arabic';
    font-weight: 400;
    font-size: 0.9rem;
    transition: 0.3s;
    opacity: 0.8;
}

.anda-menu a:hover {
    color: var(--anda-gold);
    opacity: 1;
}

/* Hero Section */
.anda-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, var(--anda-blue-light) 0%, var(--anda-blue) 100%);
    position: relative;
    overflow: hidden;
    color: var(--anda-gold);
}

.anda-hero-frame {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; height: 90%;
    border: 20px solid transparent;
    border-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100' height='100' fill='none' stroke='%23D4AF37' stroke-width='2'/%3E%3Cpath d='M0 0l10 10M90 10l10-10M100 90l-10 10M10 90l-10 10' stroke='%23D4AF37'/%3E%3C/svg%3E") 30 stretch;
    opacity: 0.3;
}

.anda-hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.anda-badge {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--anda-gold);
    border-radius: 50px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--anda-gold);
}

.anda-names {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.anda-ampersand {
    font-family: 'Montserrat';
    font-size: 3rem;
    color: #fff;
    display: inline-block;
}

@media (max-width: 768px) {
    .anda-ampersand { font-size: 2rem; }
}

.anda-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.anda-divider span {
    height: 1px;
    width: 100px;
    background: linear-gradient(to left, transparent, var(--anda-gold));
}

.anda-divider span:last-child {
    background: linear-gradient(to right, transparent, var(--anda-gold));
}

.anda-star {
    font-size: 1.5rem;
    animation: rotate 10s linear infinite;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Section Styling */
.anda-section {
    padding: 120px 0;
}

.anda-section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.anda-section-subtitle {
    color: var(--anda-orange);
    font-family: 'Montserrat';
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.anda-section-title {
    font-size: 3.5rem;
    color: var(--anda-blue);
    position: relative;
    padding-bottom: 1.5rem;
}

/* Cards */
.anda-card {
    background: white;
    padding: 4rem;
    border-radius: 15px;
    box-shadow: var(--anda-shadow);
    text-align: center;
    border-top: 5px solid var(--anda-gold);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anda-card:hover {
    transform: translateY(-15px);
}

.anda-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 2.5rem;
    position: relative;
    padding: 10px;
}

.anda-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50% 50% 0 0;
    border: 3px solid var(--anda-orange);
}

/* Timeline */
.anda-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.anda-timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0; width: 2px; height: 100%;
    background: var(--anda-gold);
    opacity: 0.3;
}

.anda-time-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.anda-time-item:nth-child(even) {
    margin-right: auto;
    text-align: left;
}

.anda-time-item::after {
    content: '✵';
    position: absolute;
    right: -10px; top: 10px;
    color: var(--anda-gold);
    background: var(--anda-cream);
    padding: 5px;
}

/* Events */
.anda-event {
    background: var(--anda-blue);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.anda-event i {
    font-size: 2.5rem;
    color: var(--anda-gold);
    margin-bottom: 1.5rem;
}

/* RSVP Form */
.anda-form-box {
    background: white;
    padding: 5rem;
    border-radius: 30px;
    box-shadow: var(--anda-shadow);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(30, 49, 99, 0.05);
}

.anda-input {
    background: var(--anda-cream);
    border: 2px solid transparent;
    padding: 1.2rem;
    border-radius: 12px;
    width: 100%;
    color: var(--anda-blue);
    font-family: 'Noto Naskh Arabic';
    transition: 0.3s;
}

.anda-input:focus {
    border-color: var(--anda-gold);
    outline: none;
}

.anda-btn {
    background: var(--anda-orange);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    width: 100%;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(212, 105, 30, 0.3);
}

.anda-btn:hover {
    background: var(--anda-blue);
    transform: scale(1.02);
}

/* Footer */
.anda-footer {
    background: var(--anda-dark);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    color: var(--anda-gold);
    margin-bottom: 2rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .anda-names { font-size: 2.8rem; }
    .anda-section-title { font-size: 2.5rem; }
    .anda-section { padding: 80px 0; }
    .anda-card { padding: 2rem 1.5rem; }
    .anda-form-box { padding: 2rem 1.5rem; }
    
    .anda-event { padding: 2rem 1.5rem; }
    
    .anda-time-item { 
        width: 100%; 
        text-align: right !important; 
        padding-right: 40px;
        padding-left: 10px;
        margin-bottom: 3rem;
    }
    .anda-time-item:nth-child(even) {
        text-align: right !important;
    }
    .anda-time-item::after { 
        right: 12px; 
    }
    .anda-timeline::before {
        right: 19px;
    }

    .anda-hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }

    .anda-hero-content {
        padding: 1rem;
    }
    
    .anda-divider span { width: 50px; }
}

@media (max-width: 480px) {
    .anda-names { font-size: 2.2rem; }
    .anda-section-title { font-size: 2rem; }
    .anda-badge { font-size: 0.9rem; padding: 6px 15px; }
}
