/* Deen @ Dartmouth - Elegant Minimal Styles */

:root {
    --color-primary: #1a4d3a;
    --color-primary-light: #2a6b52;
    --color-accent: #c4a052;
    --color-accent-light: #d4b872;
    --color-bg: #faf8f5;
    --color-bg-alt: #f0ede8;
    --color-text: #2d2d2d;
    --color-text-light: #5a5a5a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 18px;
}

body.loading {
    overflow: hidden;
}

/* Loading Screen */
.loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-crescent {
    width: 80px;
    height: 80px;
    fill: var(--color-accent);
    animation: loaderFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(196, 160, 82, 0.6));
}

@keyframes loaderFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 20px rgba(196, 160, 82, 0.4));
    }
    50% {
        transform: translateY(-15px) scale(1.05);
        filter: drop-shadow(0 0 40px rgba(196, 160, 82, 0.8));
    }
}

.loader-text {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-top: 24px;
    letter-spacing: 2px;
    animation: loaderFade 2s ease-in-out infinite;
}

@keyframes loaderFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 77, 58, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: white;
    font-weight: 500;
    text-decoration: none;
}

.nav-brand .logo-icon {
    width: 28px;
    height: 28px;
    fill: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-primary) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    opacity: 1 !important;
}

.nav-cta:hover {
    background: var(--color-accent-light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='arabesque' patternUnits='userSpaceOnUse' width='100' height='100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.1' stroke-width='0.8'%3E%3Ccircle cx='50' cy='50' r='45'/%3E%3Ccircle cx='50' cy='50' r='35'/%3E%3Ccircle cx='50' cy='50' r='25'/%3E%3Cpath d='M50 5 Q80 50 50 95 Q20 50 50 5'/%3E%3Cpath d='M5 50 Q50 20 95 50 Q50 80 5 50'/%3E%3Cpath d='M15 15 Q50 35 85 15 Q65 50 85 85 Q50 65 15 85 Q35 50 15 15'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23arabesque)'/%3E%3C/svg%3E");
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(196, 160, 82, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(196, 160, 82, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
}

.parallax-layer-1 {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='0.5'%3E%3Ccircle cx='40' cy='40' r='35'/%3E%3Ccircle cx='40' cy='40' r='25'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3Cpath d='M40 5 L40 75 M5 40 L75 40'/%3E%3Cpath d='M15 15 L65 65 M65 15 L15 65'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.parallax-layer-2 {
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c4a052' stroke-opacity='0.08' stroke-width='0.8'%3E%3Cpolygon points='60,10 110,40 110,80 60,110 10,80 10,40'/%3E%3Cpolygon points='60,25 95,45 95,75 60,95 25,75 25,45'/%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

@media (max-width: 768px) {
    .parallax-layer {
        display: none;
    }
}

/* Decorative border frame like the flyer */
.hero-decoration {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(196, 160, 82, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(196, 160, 82, 0.2);
    border-radius: 4px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
}

/* Animated Crescent */
.animated-crescent {
    margin-bottom: 16px;
    animation: float 4s ease-in-out infinite;
}

.animated-crescent svg {
    width: 64px;
    height: 64px;
    fill: var(--color-accent);
    filter: drop-shadow(0 0 20px rgba(196, 160, 82, 0.5));
    animation: glow-svg 3s ease-in-out infinite;
}

@keyframes glow-svg {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(196, 160, 82, 0.4)) drop-shadow(0 0 40px rgba(196, 160, 82, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(196, 160, 82, 0.8)) drop-shadow(0 0 60px rgba(196, 160, 82, 0.4));
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(196, 160, 82, 0.4), 0 0 40px rgba(196, 160, 82, 0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(196, 160, 82, 0.8), 0 0 60px rgba(196, 160, 82, 0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 8px;
    min-width: 80px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(196, 160, 82, 0.3);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 4px;
}

.event-live {
    font-size: 1.5rem;
    color: var(--color-accent-light);
    font-weight: 600;
}

.arabic-greeting {
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: 'Amiri', 'Traditional Arabic', serif;
    color: var(--color-accent-light);
    margin-bottom: 8px;
    direction: rtl;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.greeting {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 32px;
    opacity: 0.9;
}

.dates {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent-light);
    margin-bottom: 8px;
}

.location {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 40px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-large {
    padding: 20px 56px;
    font-size: 1.2rem;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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%3Cg fill='none' stroke='%231a4d3a' stroke-opacity='0.03' stroke-width='1'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='40' viewBox='0 0 80 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c4a052' stroke-width='1.5'%3E%3Cpath d='M0 20 L20 0 L40 20 L60 0 L80 20'/%3E%3Cpath d='M0 20 L20 40 L40 20 L60 40 L80 20'/%3E%3Ccircle cx='40' cy='20' r='6' fill='%23c4a052'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin: 20px auto 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -24px auto 40px;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-content p {
    margin-bottom: 24px;
    color: var(--color-text-light);
}

.section-content.centered {
    text-align: center;
}

.highlight {
    font-size: 1.3rem;
    color: var(--color-primary) !important;
    font-weight: 600;
    text-align: center;
    padding: 24px 0;
}

.large-text {
    font-size: 1.4rem;
    color: var(--color-text) !important;
    font-weight: 500;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

.feature::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a4d3a' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 15 L65 40 L40 65 L15 40 Z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-accent);
    fill: var(--color-accent);
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.feature p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e5e2dc 100%);
    border: 2px dashed var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0;
    color: var(--color-text-light);
    font-style: italic;
}

/* Registration Section */
.register-info {
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.register-info p {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.register-info p:last-child {
    margin-bottom: 0;
}

.note {
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 32px;
    font-size: 1rem;
}

/* Gallery Section - Split Screen */
.gallery-section {
    padding-bottom: 0;
}

.gallery-section .container {
    padding-bottom: 40px;
}

.gallery-split {
    display: flex;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
}

.day-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-split:hover .day-panel {
    flex: 0.6;
}

.gallery-split .day-panel:hover {
    flex: 1.4;
}

/* Panel overlay gradient */
.day-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 77, 58, 0.3) 0%,
        rgba(26, 77, 58, 0.6) 100%
    );
    z-index: 2;
    transition: all 0.4s ease;
}

.day-panel:hover .day-panel-overlay {
    background: linear-gradient(
        to bottom,
        rgba(26, 77, 58, 0.1) 0%,
        rgba(26, 77, 58, 0.4) 100%
    );
}

/* Panel content (Day title) */
.day-panel-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    color: white;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.day-panel:hover .day-panel-content {
    transform: translateY(-10px);
}

.day-panel-content h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.day-panel-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Gold border glow on hover */
.day-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    z-index: 4;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.day-panel:hover::before {
    border-color: var(--color-accent);
    box-shadow: inset 0 0 30px rgba(196, 160, 82, 0.3);
}

/* Gold shimmer effect */
.day-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(196, 160, 82, 0.2) 50%,
        transparent 100%
    );
    z-index: 5;
    pointer-events: none;
    transition: left 0.6s ease;
}

.day-panel:hover::after {
    left: 100%;
}

/* Slider container */
.day-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.day-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.day-slider .slide.active {
    opacity: 1;
}

.day-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 8s ease-out infinite alternate;
}

/* Ken Burns effect */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* Alternate Ken Burns directions */
.day-panel[data-day="2"] .slide img {
    animation-name: kenBurns2;
}

@keyframes kenBurns2 {
    0% {
        transform: scale(1.1) translate(-2%, -2%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.slide-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicators .indicator.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.slide-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(26, 77, 58, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    opacity: 0.7;
}

/* Gallery mobile styles */
@media (max-width: 768px) {
    .gallery-split {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .day-panel {
        height: 50vh;
        min-height: 350px;
    }

    .gallery-split:hover .day-panel,
    .gallery-split .day-panel:hover {
        flex: 1;
    }

    .day-panel-content h3 {
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 15px 12px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .day-panel {
        height: 45vh;
        min-height: 300px;
    }

    .day-panel-content h3 {
        font-size: 1.6rem;
    }

    .day-panel-content p {
        font-size: 0.95rem;
    }

    .slide-indicators {
        bottom: 15px;
    }

    .slide-indicators .indicator {
        width: 6px;
        height: 6px;
    }
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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='none' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z'/%3E%3Cpath d='M50 20 L80 50 L50 80 L20 50 Z'/%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}


.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.footer-pattern-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent) 20%,
        var(--color-accent-light) 50%,
        var(--color-accent) 80%,
        transparent 100%
    );
    opacity: 0.6;
}

.footer-main {
    text-align: center;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    fill: var(--color-accent);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
}

.footer-tagline {
    opacity: 0.8;
    font-size: 1.1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-col p {
    opacity: 0.85;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.instagram-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent-light);
}

.instagram-icon {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--color-accent);
    margin: 0 auto 24px;
    opacity: 0.5;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem !important;
    opacity: 0.6 !important;
    max-width: 500px;
    margin: 0 auto;
}

.footer-corner {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c4a052' stroke-opacity='0.15' stroke-width='1'%3E%3Cpath d='M0 0 Q75 37.5 150 0'/%3E%3Cpath d='M0 0 Q37.5 75 0 150'/%3E%3Cpath d='M0 25 Q60 50 120 25'/%3E%3Cpath d='M25 0 Q50 60 25 120'/%3E%3Ccircle cx='40' cy='40' r='25'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3Cpath d='M25 25 L55 25 L55 55 L25 55 Z' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-corner-left {
    top: 40px;
    left: 20px;
}

.footer-corner-right {
    bottom: 40px;
    right: 20px;
    transform: rotate(180deg);
}

/* Islamic Geometric Patterns */
.islamic-star {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c4a052' stroke-width='1.5'%3E%3Cpolygon points='40,5 45,30 70,30 50,45 57,70 40,55 23,70 30,45 10,30 35,30'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
}

.islamic-divider {
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='80' viewBox='0 0 200 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c4a052' stroke-opacity='0.4' stroke-width='1'%3E%3Cpath d='M0 40 Q25 10 50 40 Q75 70 100 40 Q125 10 150 40 Q175 70 200 40'/%3E%3Cpath d='M0 40 Q25 70 50 40 Q75 10 100 40 Q125 70 150 40 Q175 10 200 40'/%3E%3Ccircle cx='50' cy='40' r='12' fill='%23c4a052' fill-opacity='0.1'/%3E%3Ccircle cx='100' cy='40' r='15' fill='%23c4a052' fill-opacity='0.15'/%3E%3Ccircle cx='150' cy='40' r='12' fill='%23c4a052' fill-opacity='0.1'/%3E%3Cpath d='M85 40 L100 25 L115 40 L100 55 Z'/%3E%3Ccircle cx='50' cy='40' r='6'/%3E%3Ccircle cx='150' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

/* Arabesque corner decorations */
.section {
    position: relative;
}

.section::before,
.section::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a4d3a' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M0 0 Q60 30 120 0'/%3E%3Cpath d='M0 0 Q30 60 0 120'/%3E%3Cpath d='M0 20 Q50 40 100 20'/%3E%3Cpath d='M20 0 Q40 50 20 100'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Cpath d='M10 10 L50 10 L50 50 L10 50 Z' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.8;
}

.section::before {
    top: 0;
    left: 0;
}

.section::after {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.geometric-pattern {
    width: 80px;
    height: 80px;
    margin: 32px auto 0;
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.6;
}


/* Mosque arch decoration at top of sections */
.section-alt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='100' viewBox='0 0 200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 L0 50 Q0 0 100 0 Q200 0 200 50 L200 100' fill='none' stroke='%231a4d3a' stroke-opacity='0.1' stroke-width='2'/%3E%3Cpath d='M20 100 L20 55 Q20 15 100 15 Q180 15 180 55 L180 100' fill='none' stroke='%231a4d3a' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    footer {
        padding: 60px 0 32px;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-cta {
        padding: 12px 28px;
    }

    .countdown {
        gap: 12px;
    }

    .countdown-item {
        padding: 12px 16px;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .section {
        padding: 70px 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature {
        padding: 24px 20px;
    }

    .register-info {
        padding: 28px 24px;
    }

    .cta-large {
        padding: 16px 40px;
        font-size: 1.1rem;
    }

    .section-intro {
        font-size: 1rem;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .animated-crescent svg {
        width: 48px;
        height: 48px;
    }

    .arabic-greeting {
        font-size: 1.8rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 16px;
    }

    .dates {
        font-size: 1.3rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 8px;
    }

    .countdown-item {
        padding: 10px 12px;
        min-width: 65px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .hero-decoration {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .hero-decoration::before {
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
    }

    .section::before,
    .section::after {
        width: 60px;
        height: 60px;
    }
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.section {
    animation: fadeInUp 0.8s ease-out;
}
