/* ============================================
   التخطيط الجديد - New Layout
   Header, Hero, Sections, Footer
   ============================================ */

/* ========================================
   HEADER - الهيدر
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: transparent;
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: all var(--transition-base);
}

.logo .site-header-icon,
.logo .icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.header.scrolled .logo .site-header-icon,
.header.scrolled .logo .icon-circle {
    width: 45px;
    height: 45px;
}

.logo .icon-circle {
    background: var(--gradient-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--text-white);
    box-shadow: var(--shadow-emerald);
}

.logo-text .site-name {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--text-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
}

.header.scrolled .logo-text .site-name {
    color: var(--text-dark);
    text-shadow: none;
}

/* Navigation */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    color: var(--text-white);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    border-radius: var(--radius-full);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all var(--transition-base);
}

.header.scrolled .nav-list li a {
    color: var(--text-primary);
    text-shadow: none;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    transform: translateX(50%);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 70%;
}

.nav-list li a:hover {
    color: var(--accent-gold);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-3xl);
    color: var(--text-white);
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
}

.header.scrolled .mobile-menu-btn {
    color: var(--text-dark);
    text-shadow: none;
}

/* ========================================
   HERO SECTION - القسم الرئيسي
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-navy);
}

/* Hero Background with Parallax */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(30, 58, 138, 0.92) 0%,
            rgba(4, 120, 87, 0.88) 50%,
            rgba(30, 58, 138, 0.92) 100%);
}

/* Animated Pattern */
.hero::after {
    content: '';
    position: absolute;
    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 0L45 15L30 30L15 15z M30 30L45 45L30 60L15 45z' fill='%23f59e0b' fill-opacity='0.05'/%3E%3C/svg%3E");
    animation: patternMove 30s linear infinite;
    opacity: 0.6;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-20) var(--space-4);
}

.hero-info {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Logo */
.info-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.info-logo .icon-circle,
.info-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.info-logo .icon-circle {
    background: var(--gradient-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-5xl);
    color: var(--text-white);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
}

.info-logo img {
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.info-logo-text {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--font-black);
    color: var(--text-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Title */
.info-title {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
    font-weight: var(--font-black);
    color: var(--text-white);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.info-title span {
    background: linear-gradient(135deg, var(--accent-gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.info-subtitle {
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-6);
    font-weight: var(--font-medium);
}

/* Typewriter Container */
.typewriter-container {
    min-height: 100px;
    margin: var(--space-8) 0;
}

.typewriter-line {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    color: var(--accent-gold);
    font-weight: var(--font-semibold);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

/* Hero Actions */
.info-actions {
    margin: var(--space-10) 0;
}

.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Hero Badges */
.info-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-top: var(--space-10);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    transition: all var(--transition-base);
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.badge-item i {
    font-size: var(--text-xl);
    color: var(--accent-gold);
}

/* ========================================
   SECTIONS - الأقسام
   ======================================== */

section {
    padding: var(--space-20) 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-light);
}

/* ========================================
   FOOTER - الفوتر
   ======================================== */

.footer {
    background: var(--gradient-navy);
    color: var(--text-white);
    padding: var(--space-16) 0 var(--space-6);
    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='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L45 15L30 30L15 15z M30 30L45 45L30 60L15 45z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: var(--space-4);
}

.footer-logo img,
.footer-logo .icon-circle {
    width: 70px;
    height: 70px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--leading-relaxed);
}

.footer-column h4 {
    color: var(--text-white);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    position: relative;
    padding-bottom: var(--space-2);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: var(--radius-full);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        padding: var(--space-20) var(--space-6);
        transition: right var(--transition-base);
        z-index: var(--z-modal);
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-1);
    }

    .nav-list li a {
        color: var(--text-dark);
        text-shadow: none;
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-lg);
        justify-content: flex-start;
    }

    .nav-list li a:hover {
        background: var(--bg-light);
    }

    .nav-list li a.active {
        background: rgba(4, 120, 87, 0.1);
        color: var(--primary-emerald);
    }

    .nav-list li a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: calc(var(--z-modal) + 1);
    }

    /* Backdrop */
    .nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: var(--space-4);
    }

    .logo .site-header-icon,
    .logo .icon-circle {
        width: 45px;
        height: 45px;
    }

    .logo-text .site-name {
        font-size: var(--text-xl);
    }

    .hero {
        min-height: 90vh;
    }

    .hero-content {
        padding: var(--space-16) var(--space-4);
    }

    .info-logo .icon-circle,
    .info-logo img {
        width: 70px;
        height: 70px;
    }

    .action-row {
        flex-direction: column;
        width: 100%;
    }

    .action-row .btn {
        width: 100%;
        max-width: 300px;
    }

    .info-badges {
        gap: var(--space-3);
    }

    .badge-item {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }

    section {
        padding: var(--space-12) 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 480px) {
    .typewriter-container {
        min-height: 120px;
    }

    .info-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}