/* ========================================
   INDEX/HOME PAGE STYLES
   استخدام النظام الموحد من common.css
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0066cc 0%, #00509e 50%, #003d82 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: -60px;
    padding-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, rgba(0, 145, 213, 0.15) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(51, 161, 222, 0.12) 50%, transparent 52%);
    background-size: 400px 400px, 350px 350px;
    background-position: 0 0, 200px 200px;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 2;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 0 var(--spacing-lg);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.title-word {
    display: inline-block;
    animation: titleAnimation 1s ease-out backwards;
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.title-word:nth-child(2) {
    animation-delay: 0.4s;
}

.title-word:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes titleAnimation {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    min-width: 200px;
}

/* ========================================
   INTRO SECTION
   ======================================== */

.intro-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    padding: 4rem 0 6rem;
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-aqua), transparent);
}

.intro-cards {
    /* Grid handled by Bootstrap row/col */
    display: contents;
}

.intro-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1E90FF, #00BFFF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.intro-card:hover::before {
    transform: scaleX(1);
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(30, 144, 255, 0.25);
    border-color: #00BFFF;
}

.intro-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.intro-card:hover .card-icon {
    transform: rotate(360deg) scale(1.1);
}

.intro-card .icon-svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.intro-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background: #fff;
    padding: 4rem 0;
}

.stats-grid {
    /* Grid handled by Bootstrap row/col */
    display: contents;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 145, 213, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 204, 0.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========================================
   MISSION SECTION
   ======================================== */

.mission-section {
    background: linear-gradient(135deg, #fff 0%, #f5f7fa 100%);
    padding: 4rem 0;
}

.mission-grid {
    /* Grid handled by Bootstrap row/col */
    display: contents;
}

.mission-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.mission-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mission-awareness .icon-circle {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(0, 145, 213, 0.15));
    border: 2px solid #0091d5;
    animation: float 3s ease-in-out infinite;
}

.mission-risk .icon-circle {
    background: linear-gradient(135deg, rgba(255, 221, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid var(--warning-yellow);
    animation: float 3.5s ease-in-out infinite;
}

.mission-solutions .icon-circle {
    background: linear-gradient(135deg, rgba(0, 170, 0, 0.2), rgba(0, 204, 0, 0.2));
    border: 2px solid var(--success-green);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.icon-circle svg {
    width: 50px;
    height: 50px;
}

.mission-awareness .icon-circle svg {
    color: #0091d5;
}

.mission-risk .icon-circle svg {
    color: var(--warning-yellow);
}

.mission-solutions .icon-circle svg {
    color: var(--success-green);
}

.mission-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

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

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #00509e 50%, #003d82 100%);
    position: relative;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 145, 213, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(51, 161, 222, 0.08) 50%, transparent 70%);
    background-size: 300px 300px, 250px 250px;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    min-width: 150px;
}

/* ========================================
   PARTNERS SECTION
   ======================================== */

.partners-section {
    background: #fff;
    padding: 4rem 0;
    text-align: center;
}

.marquee-wrapper {
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.04), rgba(0, 145, 213, 0.04));
    border-radius: 12px;
    padding: 1.5rem 0;
    margin-top: 2rem;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-card {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 1.4rem 1.8rem;
    border: 1px solid #e6eef5;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.06), rgba(0, 145, 213, 0.06));
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(30, 144, 255, 0.15));
}

/* ========================================
   TEAM SECTION
   ======================================== */

.team-section {
    background: #f5f7fa;
    padding: 4rem 0;
    text-align: center;
}

.team-grid {
    /* Grid handled by Bootstrap row/col */
    display: contents;
}

.team-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8eef5;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.team-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.team-card h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.team-card .role {
    margin-bottom: 0.6rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.team-card .blurb {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef5fb 100%);
    padding: 4rem 0;
}

.newsletter-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    display: grid;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid #e6eef5;
}

.newsletter-copy h2 {
    margin: 0 0 0.4rem;
    color: var(--text-dark);
}

.newsletter-copy p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

.newsletter-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.newsletter-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--text-dark);
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-family);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}

.newsletter-form .btn {
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
}

.fine-print {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .newsletter-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* ========================================
   SCROLL BUTTON ANIMATION
   ======================================== */

.scroll-btn {
    position: relative;
    overflow: hidden;
}

.scroll-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.scroll-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 600px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        gap: 0.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        min-width: 250px;
    }

    .intro-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .marquee-content {
        animation: marquee 20s linear infinite;
    }
}