/* ===== CSS Variables & Reset ===== */
:root {
    --green: #556B2F;
    --green-light: #6B8E3A;
    --green-dark: #3E5020;
    --gold: #DAA520;
    --gold-light: #E8C44A;
    --gold-dark: #B8860B;
    --bg: #FDFCF0;
    --bg-card: #FFFFFF;
    --text: #2D2A1E;
    --text-muted: #7A7560;
    --text-light: #A09C8A;
    --border: rgba(85, 107, 47, 0.12);
    --shadow-sm: 0 2px 8px rgba(85, 107, 47, 0.06);
    --shadow-md: 0 8px 30px rgba(85, 107, 47, 0.1);
    --shadow-lg: 0 20px 60px rgba(85, 107, 47, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
}

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

/* ===== Floating Particles ===== */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wheat-particle {
    position: absolute;
    font-size: 1.6rem;
    opacity: 0.12;
    animation: floatUp linear infinite;
}

.wheat-1 { right: 8%; animation-duration: 18s; animation-delay: 0s; top: 100%; }
.wheat-2 { right: 25%; animation-duration: 22s; animation-delay: 3s; top: 100%; font-size: 1.2rem; }
.wheat-3 { right: 55%; animation-duration: 20s; animation-delay: 6s; top: 100%; }
.wheat-4 { right: 75%; animation-duration: 24s; animation-delay: 2s; top: 100%; font-size: 1.4rem; }
.wheat-5 { right: 40%; animation-duration: 19s; animation-delay: 8s; top: 100%; font-size: 1rem; }
.wheat-6 { right: 90%; animation-duration: 21s; animation-delay: 5s; top: 100%; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.12; }
    90% { opacity: 0.12; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* ===== Header ===== */
.header {
    padding: 30px 0 10px;
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    text-align: center;
}

.logo {
    height: 110px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(85, 107, 47, 0.15));
    animation: logoReveal 1s ease-out;
}

@keyframes logoReveal {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Hero ===== */
.hero {
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(85, 107, 47, 0.08), rgba(218, 165, 32, 0.08));
    border: 1px solid var(--border);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.title-line {
    display: block;
    color: var(--green-dark);
}

.title-accent {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 8px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-subtitle-en {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
    direction: ltr;
    animation: fadeInUp 0.8s ease-out 0.9s both;
    font-style: italic;
}

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

/* ===== Countdown ===== */
.countdown-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.section-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    direction: ltr;
    animation: fadeInUp 0.8s ease-out 1.1s both;
}

.countdown-item {
    text-align: center;
}

.countdown-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.countdown-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(85, 107, 47, 0.08);
    stroke-width: 3;
}

.ring-fill {
    fill: none;
    stroke: url(#ring-gradient);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease;
}

/* Fallback stroke colors */
#ring-days { stroke: var(--green); }
#ring-hours { stroke: var(--green-light); }
#ring-minutes { stroke: var(--gold-dark); }
#ring-seconds { stroke: var(--gold); }

.countdown-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green-dark);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* ===== Notify / Lead Capture ===== */
.notify-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.notify-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.notify-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--green));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.notify-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(85,107,47,0.08), rgba(218,165,32,0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--green);
    animation: bellSwing 3s ease-in-out infinite;
}

@keyframes bellSwing {
    0%, 100% { transform: rotate(0); }
    5% { transform: rotate(10deg); }
    10% { transform: rotate(-10deg); }
    15% { transform: rotate(6deg); }
    20% { transform: rotate(-4deg); }
    25% { transform: rotate(0); }
}

.notify-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.notify-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.notify-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.notify-input {
    width: 100%;
    padding: 14px 20px 14px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
}

.notify-input::placeholder {
    color: var(--text-light);
}

.notify-input:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 0 4px rgba(85, 107, 47, 0.1);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.notify-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notify-btn:hover::before {
    opacity: 1;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(85, 107, 47, 0.3);
}

.btn-text, .btn-icon { position: relative; z-index: 1; }

.btn-icon {
    display: flex;
    transition: transform 0.3s ease;
}

.notify-btn:hover .btn-icon {
    transform: translateX(-4px);
}

.notify-success {
    display: none;
    padding: 20px;
    animation: fadeInUp 0.5s ease-out;
}

.notify-success.show {
    display: block;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.notify-success p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-dark);
}

/* ===== Features ===== */
.features-section {
    padding: 50px 0 60px;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(85, 107, 47, 0.2);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card.featured {
    border-color: rgba(218, 165, 32, 0.25);
    background: linear-gradient(180deg, #FFFDF5, #FFFFFF);
}

.feature-icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(85,107,47,0.08), rgba(218,165,32,0.08));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--green);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: #fff;
    transform: scale(1.08) rotate(-5deg);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(85, 107, 47, 0.06);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0 30px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

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

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-link {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.social-link:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(85, 107, 47, 0.25);
}

.footer-made {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.bahrain-flag {
    font-size: 1.2rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .logo { height: 85px; }

    .hero { padding: 30px 0 20px; }
    .hero-title { font-size: 2.2rem; }

    .countdown { gap: 12px; }
    .countdown-ring { width: 78px; height: 78px; }
    .countdown-value { font-size: 1.4rem; }
    .countdown-label { font-size: 0.75rem; }

    .notify-card { padding: 32px 24px; margin: 0 8px; }
    .notify-form { flex-direction: column; }
    .notify-btn { justify-content: center; }

    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 28px 24px 24px; }
}

@media (max-width: 480px) {
    .logo { height: 70px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .countdown { gap: 8px; }
    .countdown-ring { width: 68px; height: 68px; }
    .countdown-value { font-size: 1.2rem; }

    .section-title { font-size: 1.6rem; }
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
