/* ========================================
   Modern Home Page - Professional Saudi Theme
   Colors: Saudi Green (#006C35) & Gold (#D4AF37)
   ======================================== */

:root {
    --saudi-green: #006C35;
    --saudi-green-light: #1b8c3e;
    --saudi-green-dark: #004d25;
    --saudi-gold: #D4AF37;
    --saudi-gold-light: #e6c045;
    --saudi-gold-dark: #b8962d;
}

/* ==================== HERO SECTION ==================== */
.hero-modern {
    position: relative;
    min-height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 50%, #e8f5ee 100%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 108, 53, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 108, 53, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid rgba(0, 108, 53, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--saudi-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a2e1a;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 108, 53, 0.2));
}

.hero-row {
    min-height: auto;
    display: flex;
    align-items: center;

}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4a5d4a;
    max-width: 600px;
}

/* Hero Features Pills */
.hero-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e8f5ee;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2e1a;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 108, 53, 0.05);
}

.feature-pill i {
    color: var(--saudi-green);
    font-size: 1.1rem;
}

.feature-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 108, 53, 0.15);
    border-color: var(--saudi-green);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-light) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 108, 53, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 108, 53, 0.4);
    color: white;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-hero-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero-secondary {
    background: white;
    color: var(--saudi-green);
    border: 2px solid var(--saudi-green);
    box-shadow: 0 5px 15px rgba(0, 108, 53, 0.1);
}

.btn-hero-secondary:hover {
    background: var(--saudi-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 108, 53, 0.3);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--saudi-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #7a8d7a;
    font-weight: 500;
}

/* Hero Visual Side */
.hero-visual {
    position: relative;
    z-index: 10;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visual-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #1a2e1a;
    border: 1px solid rgba(0, 108, 53, 0.1);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--saudi-green);
}

.card-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    left: 0%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 15%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.main-logo-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 108, 53, 0.2) 0%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: glow-rotate 8s ease-in-out infinite;
}

.logo-glow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-rotate {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: rotate(180deg) scale(1.15);
        opacity: 0.9;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.main-logo {
    width: 280px;
    height: 280px;
    filter: drop-shadow(0 20px 40px rgba(0, 108, 53, 0.2));
    position: relative;
    z-index: 2;
    animation: logo-breathe 4s ease-in-out infinite;
}

@keyframes logo-breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    background: white;
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a2e1a;
    margin-bottom: 1rem;
}

.title-decoration {
    color: var(--saudi-gold);
    font-size: 2rem;
    margin: 0 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7a8d7a;
}

.service-card-modern {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    border: 2px solid #e8f5ee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--saudi-green) 0%, var(--saudi-gold) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 108, 53, 0.15);
    border-color: var(--saudi-green);
}

.service-card-modern.featured {
    border: 3px solid var(--saudi-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, white 100%);
}

.service-card-modern.featured::before {
    height: 5px;
    background: linear-gradient(90deg, var(--saudi-gold) 0%, var(--saudi-green) 100%);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--saudi-gold);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-icon.elderly {
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.1) 0%, rgba(27, 140, 62, 0.1) 100%);
    color: var(--saudi-green);
}

.card-icon.general {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(230, 192, 69, 0.1) 100%);
    color: var(--saudi-gold);
}

.card-icon.legal {
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.15) 0%, rgba(212, 175, 55, 0.15) 100%);
    color: var(--saudi-green-light);
}

.service-card-modern:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2e1a;
    margin-bottom: 0.75rem;
}

.card-subtitle {
    font-size: 1rem;
    font-style: italic;
    color: var(--saudi-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5d4a;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--saudi-green);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.card-btn:hover {
    background: var(--saudi-green-dark);
    gap: 1rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 108, 53, 0.3);
}

/* ==================== FEATURES SECTION ==================== */
.features-modern {
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5ee 100%);
    padding: 5rem 0;
}

.feature-card-modern {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
}

.feature-icon-modern {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--saudi-green);
    box-shadow: 0 10px 30px rgba(0, 108, 53, 0.1);
    transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    background: var(--saudi-green);
    color: white;
    transform: scale(1.1);
}

.feature-title-modern {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2e1a;
    margin-bottom: 1rem;
}

.feature-text-modern {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5d4a;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .visual-container {
        height: 400px;
        margin-top: 3rem;
    }

    .main-logo {
        width: 200px;
        height: 200px;
    }

    .main-logo-container {
        width: 250px;
        height: 250px;
    }

    .floating-card {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-row {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-features {
        gap: 0.75rem;
    }

    .feature-pill {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card-modern {
        padding: 2rem;
    }
}