/* Modern Redesign Styles */

/* Fonts */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('font/IBMPLEXSANSARABIC-THIN.TTF') format('truetype');
    font-weight: 100;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('font/IBMPLEXSANSARABIC-LIGHT.TTF') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('font/IBMPLEXSANSARABIC-REGULAR.TTF') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('font/IBMPLEXSANSARABIC-MEDIUM.TTF') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('font/IBMPLEXSANSARABIC-SEMIBOLD.TTF') format('truetype');
    font-weight: 600;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('font/IBMPLEXSANSARABIC-BOLD.TTF') format('truetype');
    font-weight: 700;
}

:root {
    --primary-color: #004d40;
    --primary-dark: #00382e;
    --accent-color: #bfa465;
    --accent-light: #f2e6c9;
    --text-main: #1a1a1a;
    --text-secondary: #666666;
    --bg-page: #f9fafb;
    --bg-card: #ffffff;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 50px -10px rgba(0,0,0,0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    direction: rtl;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 20;
    padding: 24px 0;
}

.logo img {
    height: 100px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

/* Hero Section */
.modern-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,20,30,0.4), rgba(0,20,30,0.7) 80%, var(--bg-page));
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translateY(-40px);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.9;
}

/* Main Content */
.main-wrapper {
    position: relative;
    z-index: 5;
    margin-top: -100px;
    padding-bottom: 80px;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: #3e5277;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Steps Timeline */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.step-icon {
    background: var(--accent-light);
    color: #3e5277;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #3e5277;
}

.highlight-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.highlight-link:hover {
    color: var(--primary-color);
}

.divider {
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* Terms List */
.terms-list h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.terms-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px 32px;
}

.terms-list li {
    position: relative;
    padding-right: 24px;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--text-secondary);
}

.terms-list li::before {
    content: '•';
    color: var(--accent-color);
    font-size: 24px;
    position: absolute;
    right: 0;
    top: -4px;
}

.disclaimer-box {
    background: #f8f9fa;
    border-right: 4px solid var(--primary-color);
    padding: 24px;
    margin-top: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    color: #3e5277;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Footer */
.modern-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding-top: 60px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 16px;
}

.footer-desc {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom-bar {
    background: #f0e6c0;
    padding: 20px 0;
    font-size: 14px;
    color: #5a5a5a;
    font-weight: 500;
}

.bar-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.bar-contact {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* FAB */
.accessibility-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,77,64,0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

.accessibility-fab:hover {
    transform: scale(1.1) rotate(10deg);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .content-card { padding: 32px 24px; }
    .steps-container { flex-direction: column; }
    .terms-list ul { grid-template-columns: 1fr; }
    .bar-content { flex-direction: column; text-align: center; justify-content: center; }
}
