/*=================================
  Modern Professional Landing Page
  International Style Design
  تراث عسير - Aseer Heritage System
==================================*/

/* ===== Hero Section Modern ===== */
.hero-section-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding-top: 80px;
}

.hero-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(97, 116, 96, 0.88) 0%,
        rgba(68, 79, 49, 0.90) 50%,
        rgba(97, 116, 96, 0.88) 100%
    );
    backdrop-filter: blur(2px);
}

.hero-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(222, 155, 84, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 148, 135, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(222, 155, 84, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 2px solid rgba(222, 155, 84, 0.5);
    animation: fadeInDown 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-badge i {
    font-size: 1rem;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Title */
.hero-main-title {
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.title-line-1 {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    opacity: 1;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.title-line-2 {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.title-line-2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
    border-radius: 2px;
}

/* Hero Description */
.hero-description {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

/* Hero CTA Buttons */
.hero-cta-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4932f 100%);
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(222, 155, 84, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4932f 0%, var(--accent-gold) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.hero-btn-primary:hover::before {
    opacity: 1;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(222, 155, 84, 0.6);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.hero-btn-primary:hover .btn-shine {
    left: 100%;
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s;
}

.hero-btn:hover .btn-icon-wrapper {
    transform: scale(1.2) rotate(10deg);
}

/* Hero Quick Features */
.hero-features-quick {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.quick-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.quick-feature i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Scroll Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 1s ease-out 1s backwards;
    z-index: 2;
}

.scroll-icon {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-icon i {
    font-size: 1.2rem;
}

.scroll-text {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===== Statistics Section Modern ===== */
.stats-section-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--primary-green) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.stat-card-modern:hover::before {
    transform: scaleX(1);
}

.stat-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.stat-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--sage-green) 100%);
    border-radius: 20px;
    opacity: 0.1;
    transition: all 0.4s;
}

.stat-card-modern:hover .stat-icon-bg {
    opacity: 0.2;
    transform: rotate(45deg) scale(1.1);
}

.stat-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-green);
    z-index: 1;
    transition: transform 0.4s;
}

.stat-card-modern:hover .stat-icon-wrapper i {
    transform: scale(1.15);
    color: var(--accent-gold);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
}

/* ===== Features Section Modern ===== */
.features-section-modern {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(97, 116, 96, 0.1) 0%, rgba(222, 155, 84, 0.1) 100%);
    border-radius: 50px;
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(97, 116, 96, 0.2);
}

.section-badge i {
    color: var(--accent-gold);
}

.section-title-modern {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description-modern {
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 0.9;
    line-height: 1.6;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(97, 116, 96, 0.1);
    overflow: hidden;
}

.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(222, 155, 84, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card-modern:hover .feature-card-glow {
    opacity: 1;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-gold);
}

.feature-icon-modern {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-modern .icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border-radius: 18px;
    opacity: 0.1;
    transition: all 0.4s;
}

.feature-card-modern:hover .feature-icon-modern .icon-bg {
    opacity: 0.15;
    transform: rotate(10deg) scale(1.1);
}

.feature-icon-modern i {
    font-size: 2rem;
    color: var(--primary-green);
    z-index: 1;
    transition: all 0.4s;
}

.feature-card-modern:hover .feature-icon-modern i {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.feature-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description-modern {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.feature-link i {
    transition: transform 0.3s;
}

.feature-link:hover {
    color: var(--accent-gold);
    gap: 0.75rem;
}

[dir="rtl"] .feature-link i {
    transform: rotate(180deg);
}

.feature-link:hover i {
    transform: translateX(-5px);
}

[dir="rtl"] .feature-link:hover i {
    transform: rotate(180deg) translateX(-5px);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-section-modern {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-content-wrapper {
        padding: 0 1rem;
    }
    
    .title-line-1 {
        font-size: 1.5rem;
    }
    
    .title-line-2 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-btn {
        justify-content: center;
    }
    
    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .title-line-1 {
        font-size: 1.2rem;
    }
    
    .title-line-2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-features-quick {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .stat-card-modern {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-card-modern {
        padding: 2rem;
    }
    
    .scroll-down-indicator {
        bottom: 4.5rem;
    }
    
    .scroll-text {
        font-size: 0.75rem;
    }
    
    .scroll-icon {
        width: 35px;
        height: 35px;
    }
}
