:root {
    /* --- ENHANCED CULTURAL PALETTE --- */
    --bg-shemma: #F9F7F2;      /* Hand-woven cotton feel */
    --bg-ivory-deep: #F2E8D5;
    --burgundy-royal: #63141F; /* Deeper, more traditional red */
    --gold-leaf: #C29B40;      /* Antique gold */
    --coffee-bean: #2B1B14;
    --text-main: #332A24;
    
    /* --- TRADITIONAL PATTERNS (SVG) --- */
    /* Intricate Tibeb diamond/cross pattern */
    --pattern-tibeb-rich: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C29B40' fill-opacity='0.12'%3E%3Cpath d='M50 0 L60 40 L100 50 L60 60 L50 100 L40 60 L0 50 L40 40 Z'/%3E%3Crect x='45' y='45' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E");
    
    /* The "Fringe" Border - mimicking Habesha Kemis hem */
    --tibeb-border-path: url("data:image/svg+xml,%3Csvg width='200' height='40' viewBox='0 0 200 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 L20 0 L40 20 L20 40 Z M40 20 L60 0 L80 20 L60 40 Z M80 20 L100 0 L120 20 L100 40 Z M120 20 L140 0 L160 20 L140 40 Z M160 20 L180 0 L200 20 L180 40 Z' fill='%2363141F' fill-opacity='0.1'/%3E%3Cpath d='M10 20 L30 0 L50 20 L30 40 Z M50 20 L70 0 L90 20 L70 40 Z M90 20 L110 0 L130 20 L110 40 Z' fill='%23C29B40' fill-opacity='0.2'/%3E%3C/svg%3E");

    --shadow-artisan: 0 30px 60px rgba(43, 27, 20, 0.12);
    --transition-slow: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

html, body {
    background-color: var(--bg-shemma);
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png"); /* Mimics woven fabric grain */
    color: var(--text-main);
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.8;
}

/* --- THE TRADITIONAL TILET DIVIDER --- */
.tilet-separator {
    height: 60px; /* Suggested elegant height */
    width: 100%;
    background-image: url('../images/traditional-tilet.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    position: relative;
    z-index: 10;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- THE "NETELA" SIDE BORDER --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 100%;
    background-image: var(--pattern-tibeb-rich);
    background-size: 40px;
    border-right: 1px solid rgba(194, 155, 64, 0.2);
    z-index: 2000;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #FDFBF7 0%, var(--bg-shemma) 100%);
    text-align: center;
    overflow: hidden;
}

.hero-tibeb-fringe {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-image: var(--tibeb-border-path);
    background-repeat: repeat-x;
    background-size: 200px;
}

.hero-frame {
    position: absolute;
    width: 86%;
    height: 86%;
    top: 7%;
    left: 7%;
    border: 1px solid rgba(194, 155, 64, 0.2);
    z-index: 2;
}

.hero-frame::before, .hero-frame::after {
    content: "◈";
    position: absolute;
    color: var(--burgundy-royal);
    font-size: 1.2rem;
    background: var(--bg-shemma);
    padding: 10px;
}
.hero-frame::before { top: -20px; left: -20px; }
.hero-frame::after { bottom: -20px; right: -20px; }

.main-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.5rem, 12vw, 7rem);
    color: var(--coffee-bean);
    text-transform: uppercase;
    letter-spacing: 15px;
    line-height: 0.85;
    margin: 30px 0;
    z-index: 3;
}

/* --- TRADITIONAL SECTION HEADERS --- */
.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--coffee-bean);
    letter-spacing: 10px;
    font-weight: 300;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-header .script-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 3rem;
    color: var(--gold-leaf);
    display: block;
    margin-top: -15px;
}

/* --- THE STORY CARD --- */
.story-section {
    padding: 180px 0;
    background: var(--bg-ivory-deep);
}

.story-card {
    background: var(--bg-shemma);
    padding: 80px;
    border: 1px solid rgba(194, 155, 64, 0.1);
    box-shadow: var(--shadow-artisan);
    position: relative;
    overflow: hidden;
}

.tibeb-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: var(--pattern-tibeb-rich);
    opacity: 0.3;
}
.top-right { top: 0; right: 0; }
.bottom-left { bottom: 0; left: 0; }

.story-content p {
    font-size: 1.4rem;
    color: var(--text-main);
    line-height: 1.9;
    font-weight: 300;
}

/* --- EVENT CARDS --- */
.event-card {
    background: var(--bg-shemma);
    padding: 60px 40px;
    border: 1px solid rgba(43, 27, 20, 0.05);
    transition: var(--transition-slow);
    text-align: center;
    position: relative;
}

.event-card:hover {
    transform: translateY(-15px);
    border-color: var(--gold-leaf);
    box-shadow: var(--shadow-artisan);
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: block;
    filter: sepia(1) saturate(1.5);
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--burgundy-royal);
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- GALLERY --- */
.luxury-frame {
    background: var(--bg-shemma);
    padding: 12px;
    border: 1px solid rgba(194, 155, 64, 0.15);
    transition: var(--transition-slow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.luxury-frame:hover {
    box-shadow: var(--shadow-artisan);
    transform: scale(1.02);
}

.gallery-masonry {
    column-count: 4;
    column-gap: 20px;
    width: 100%;
}

.gallery-masonry-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.gallery-masonry .luxury-frame {
    width: 100%;
}

.gallery-masonry .luxury-frame img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1200px) {
    .gallery-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        column-count: 2;
        column-gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        column-count: 2;
        column-gap: 15px;
    }
}

/* --- THE TRADITIONAL TILET DIVIDER --- */
.tilet-divider {
    height: 55px; /* Suggested height for elegance */
    background-image: url('../images/traditional-tilet.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    width: 100%;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 1px solid rgba(194, 155, 64, 0.1);
    border-bottom: 1px solid rgba(194, 155, 64, 0.1);
}

/* --- NAVIGATION --- */
.nav-luxe {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    background: rgba(249, 247, 242, 0.92);
    display: flex;
    justify-content: center;
    gap: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(194, 155, 64, 0.1);
}

.nav-luxe a {
    color: var(--coffee-bean);
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s;
}

.nav-luxe a:hover {
    color: var(--burgundy-royal);
}

.wish-card {
    background: #fff; 
    padding: 30px; 
    border-left: 4px solid var(--burgundy-royal); 
    border-right: 4px solid var(--burgundy-royal); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- FOOTER --- */
.footer-luxe {
    padding: 120px 20px;
    background: var(--coffee-bean);
    color: #fff;
    text-align: center;
    position: relative;
}

.footer-logo {
    font-family: 'Pinyon Script', cursive;
    font-size: 4.5rem;
    color: var(--gold-leaf);
    margin-bottom: 20px;
}

.floating-wish-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--burgundy-royal);
    color:var(--gold-leaf);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 0;
    border: 1px solid var(--gold-leaf);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition-slow);
}

.floating-wish-btn .btn-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Montserrat', sans-serif;
}

.floating-wish-btn:hover {
    transform: translateY(-10px);
    background: var(--gold-leaf);
    color: var(--burgundy-royal);
    border: 1px solid var(--burgundy-royal);
    box-shadow: var(--shadow-lg);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    body::before { width: 8px; }
    .story-section { padding: 80px 0; }
    .story-card { padding: 40px 25px; }
    .main-title { font-size: 3.2rem; letter-spacing: 6px; }
    
    .nav-luxe { 
        padding: 15px 0;
        gap: 15px;
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .hero-section {
        padding: 20px;
    }

    .hero-frame {
        width: 90%;
        height: 90%;
        top: 5%;
        left: 5%;
    }

    .event-section, .gallery-container, .guestbook-section {
        padding: 80px 0 !important;
    }

    .event-details {
        font-size: 0.7rem !important;
        letter-spacing: 2px !important;
        margin-top: 30px !important;
        line-height: 1.5;
        max-width: 80%;
    }

    .amharic-hero {
        font-size: 1.2rem !important;
        max-width: 90%;
    }
}

