/* ===== Web Development Page — Premium Modern Design ===== */
:root {
    --wd-dark: #0a0f1e;
    --wd-brand: #2f5aae;
    --wd-green: #25d366;
    --wd-green-dark: #1da851;
    --wd-light: #f4f8fb;
    --wd-text: #333;
    --wd-text-light: #3d4654;
}

/* ===== KEYFRAMES ===== */
@keyframes wd-blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,30px) scale(1.1)} }

/* ===== 1: HERO ===== */
.wd-hero {
    background: linear-gradient(135deg, #0c2233 0%, #0d3a3a 50%, #0c2233 100%);
    padding: 120px 0 80px;
    overflow: hidden;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.wd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(47,90,174,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 60%, rgba(37,211,102,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.wd-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: rgba(37,211,102,0.08);
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat1 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
/* Decorative shapes */
.wd-hero .container::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.wd-hero .container::after {
    content: '';
    position: absolute;
    top: 20%; left: 5%;
    width: 150px; height: 150px;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat1 12s ease-in-out infinite reverse;
}
.wd-hero .container { position: relative; }
.wd-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.wd-hero__content { color: #fff; }
.wd-hero__title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.4;
}
/* Typewriter */
.wd-typewriter {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 700;
    color: var(--wd-green);
    margin-bottom: 16px;
    min-height: 1.5em;
}
.wd-typewriter__text { }
.wd-typewriter__cursor {
    color: var(--wd-green);
    animation: wd-blink 0.7s infinite;
    margin-right: 2px;
}

.wd-hero__desc {
    font-size: 15px;
    line-height: 2;
    color: rgba(255,255,255,0.8);
}
.wd-hero__images {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.wd-hero__img1 {
    width: 85%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border: 4px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-hero__img1:hover {
    transform: scale(1.03);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

/* Lightbox */
.wd-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(8px);
}
.wd-lightbox-overlay.active { display: flex; }
.wd-lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 100000;
    transition: transform 0.3s;
}
.wd-lightbox-close:hover { transform: rotate(90deg); }
.wd-lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== 2: SERVICES ===== */
.wd-services {
    padding: 80px 0;
    background: linear-gradient(160deg, #f8fbff 0%, #eaf1fd 30%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}
.wd-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
    background: linear-gradient(90deg, #25d366, #338eaa, #2f5aae);
}
.wd-services__heading {
    text-align: center;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--wd-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}
.wd-services__sub {
    text-align: center;
    color: var(--wd-text-light);
    margin-bottom: 50px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
}
.wd-services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* --- Services Card Base --- */
.wd-services__card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 30px;
    border: 2px solid #e8ecf1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.wd-services__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #25d366, #338eaa, #2f5aae);
    opacity: 1;
}
.wd-services__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    border-color: var(--wd-brand);
}
.wd-services__card:hover::before { opacity: 1; }

/* nth-child gradient backgrounds */
.wd-services__card:nth-child(1) { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.wd-services__card:nth-child(2) { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }
.wd-services__card:nth-child(3) { background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.wd-services__card:nth-child(4) { background: linear-gradient(180deg, #fdf2f8 0%, #fff 100%); }

.wd-services__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* nth-child icon gradient backgrounds */
.wd-services__card:nth-child(1) .wd-services__icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.wd-services__card:nth-child(2) .wd-services__icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.wd-services__card:nth-child(3) .wd-services__icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.wd-services__card:nth-child(4) .wd-services__icon { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }

.wd-services__icon img { width: 55%; height: 55%; object-fit: contain; }
.wd-services__card h3 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--wd-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}
.wd-services__card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wd-services__card li {
    background: rgba(255,255,255,0.7);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--wd-text);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.8;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(232,236,241,0.6);
    transition: background 0.3s;
}
.wd-services__card li:hover {
    background: rgba(255,255,255,0.95);
}
.wd-services__card li::before {
    content: '\2713';
    color: var(--wd-green);
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}
.wd-services__wa {
    text-align: center;
    margin-top: 40px;
}

/* ===== BUTTONS ===== */
.wd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.wd-btn--green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    box-shadow: 0 8px 30px rgba(39,174,96,0.3);
}
.wd-btn--green:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(39,174,96,0.4);
}

/* ===== 3: CTA ===== */
.wd-cta {
    background: linear-gradient(160deg, #0c1a2a 0%, #132d4a 50%, #0c1a2a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.wd-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
    background: linear-gradient(90deg, #25d366, #338eaa, #2f5aae);
}
.wd-cta__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.wd-cta__content { color: #fff; }
.wd-cta__label {
    color: var(--wd-green);
    font-weight: 700;
    font-size: 18px;
    display: block;
    margin-bottom: 12px;
}
.wd-cta__content h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.4;
}
.wd-cta__content p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.8;
}
.wd-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 900;
    direction: ltr;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-cta__phone:hover { transform: translateY(-2px); }
.wd-cta__phone-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(39,174,96,0.3);
    transition: box-shadow 0.3s;
}
.wd-cta__phone:hover .wd-cta__phone-icon {
    box-shadow: 0 12px 36px rgba(39,174,96,0.45);
}
.wd-cta__rocket { text-align: center; }
.wd-cta__rocket img {
    max-width: 200px;
    filter: drop-shadow(0 10px 30px rgba(37,211,102,0.2));
}

/* ===== 4: PRICING ===== */
.wd-pricing {
    padding: 80px 0;
    background: linear-gradient(160deg, #f8fbff 0%, #eaf1fd 30%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}
.wd-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
    background: linear-gradient(90deg, #25d366, #338eaa, #2f5aae);
}
.wd-pricing__title {
    text-align: center;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--wd-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}
.wd-pricing__sub {
    text-align: center;
    color: var(--wd-text-light);
    margin-bottom: 50px;
    font-weight: 500;
    line-height: 1.8;
}
.wd-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    direction: ltr;
}

/* --- Pricing Card Base --- */
.wd-pricing__card {
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    direction: rtl;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.wd-pricing__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #25d366, #338eaa, #2f5aae);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-pricing__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    border-color: var(--wd-brand);
}
.wd-pricing__card:hover::before { opacity: 1; }

/* nth-child gradient backgrounds for non-featured */
.wd-pricing__card:nth-child(1) { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.wd-pricing__card:nth-child(2) { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }
.wd-pricing__card:nth-child(3) { background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.wd-pricing__card:nth-child(4) { background: linear-gradient(180deg, #fdf2f8 0%, #fff 100%); }

/* Featured card override */
.wd-pricing__card--featured {
    background: linear-gradient(160deg, #2f5aae, #1e3f7a) !important;
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(47,90,174,0.3);
    transform: scale(1.03);
    color: #fff;
}
.wd-pricing__card--featured::before { opacity: 1; }
.wd-pricing__card--featured:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 30px 80px rgba(47,90,174,0.35);
}
.wd-pricing__card.wd-pricing__card--featured h3 { color: #fff; }
.wd-pricing__card.wd-pricing__card--featured .wd-pricing__amount { color: #fff; }
.wd-pricing__card.wd-pricing__card--featured .wd-pricing__currency { color: rgba(255,255,255,0.7); }
.wd-pricing__card.wd-pricing__card--featured h4 {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.2);
}
.wd-pricing__card.wd-pricing__card--featured li { color: rgba(255,255,255,0.9); }
.wd-pricing__card.wd-pricing__card--featured li::before { color: var(--wd-green); }

.wd-pricing__badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    padding: 6px 24px;
    border-radius: 0 0 14px 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(39,174,96,0.3);
    z-index: 2;
}
.wd-pricing__card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* nth-child icon backgrounds */
.wd-pricing__card:nth-child(1) .wd-pricing__card-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.wd-pricing__card:nth-child(2) .wd-pricing__card-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.wd-pricing__card:nth-child(3) .wd-pricing__card-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.wd-pricing__card:nth-child(4) .wd-pricing__card-icon { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.wd-pricing__card--featured .wd-pricing__card-icon { background: rgba(255,255,255,0.15); }

.wd-pricing__card-icon img { width: 50%; }
.wd-pricing__card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wd-dark);
    margin-bottom: 12px;
}
.wd-pricing__price { margin-bottom: 20px; }
.wd-pricing__amount {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 900;
    color: var(--wd-dark);
}
.wd-pricing__currency {
    font-size: 14px;
    color: var(--wd-text-light);
    display: block;
    margin-top: 4px;
}
.wd-pricing__card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--wd-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf1;
}
.wd-pricing__card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
.wd-pricing__card li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--wd-text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.8;
}
.wd-pricing__card li::before {
    content: '\2713';
    color: var(--wd-green);
    font-weight: 900;
    flex-shrink: 0;
}
.wd-pricing__wa {
    text-align: center;
    margin-top: 40px;
}

/* ===== 5: TESTIMONIALS ===== */
.wd-testimonials {
    padding: 80px 0;
    background: linear-gradient(160deg, #f8fbff 0%, #eaf1fd 30%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}
.wd-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
    background: linear-gradient(90deg, #25d366, #338eaa, #2f5aae);
}
.wd-testimonials__label {
    display: block;
    text-align: center;
    color: var(--wd-brand);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}
.wd-testimonials__title {
    text-align: center;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--wd-dark);
    margin-bottom: 50px;
    line-height: 1.4;
}
.wd-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Testimonials Card Base --- */
.wd-testimonials__card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 28px;
    border: 2px solid #e8ecf1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.wd-testimonials__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #25d366, #338eaa, #2f5aae);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-testimonials__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    border-color: var(--wd-brand);
}
.wd-testimonials__card:hover::before { opacity: 1; }

/* nth-child gradient backgrounds */
.wd-testimonials__card:nth-child(1) { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.wd-testimonials__card:nth-child(2) { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }
.wd-testimonials__card:nth-child(3) { background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.wd-testimonials__card:nth-child(4) { background: linear-gradient(180deg, #fdf2f8 0%, #fff 100%); }

.wd-testimonials__logo {
    width: 80px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wd-testimonials__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.wd-testimonials__card blockquote {
    font-size: 15px;
    font-weight: 500;
    color: var(--wd-text);
    line-height: 2;
    margin: 0 0 16px;
    font-style: normal;
}
.wd-testimonials__name {
    font-weight: 700;
    color: var(--wd-dark);
    font-size: 14px;
    margin-bottom: 4px;
}
.wd-testimonials__company {
    font-size: 13px;
    color: var(--wd-text-light);
}

/* ===== 6: NEWS ===== */
.wd-news {
    padding: 80px 0;
    background: linear-gradient(160deg, #f8fbff 0%, #eaf1fd 30%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}
.wd-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
    background: linear-gradient(90deg, #25d366, #338eaa, #2f5aae);
}
.wd-news__label {
    display: block;
    text-align: center;
    color: var(--wd-brand);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}
.wd-news__title {
    text-align: center;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--wd-dark);
    margin-bottom: 40px;
    line-height: 1.4;
}
.wd-news__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.wd-news__images {
    border-radius: 20px;
    overflow: hidden;
}
.wd-news__images img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 16/10;
    display: block;
}
.wd-news__images .swiper-pagination-bullet { width: 10px; height: 10px; background: #ccc; opacity: 1; }
.wd-news__images .swiper-pagination-bullet-active { background: var(--wd-brand); width: 26px; border-radius: 5px; }
.wd-news__text {
    font-size: 16px;
    line-height: 2.1;
    color: var(--wd-text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .wd-hero__inner { grid-template-columns: 1fr; text-align: center; }
    .wd-hero__images { justify-content: center; }
    .wd-cta__inner { grid-template-columns: 1fr; text-align: center; }
    .wd-cta__rocket { display: none; }
    .wd-pricing__grid { grid-template-columns: 1fr 1fr; }
    .wd-testimonials__grid { grid-template-columns: 1fr 1fr; }
    .wd-news__content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .wd-hero { min-height: 920px; padding: 100px 0 40px; padding-top: 70px; }
    .wd-hero::after { width: 200px; height: 200px; filter: blur(50px); }
    .wd-services__grid { grid-template-columns: 1fr; }
    .wd-pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .wd-pricing__card--featured { transform: none; }
    .wd-pricing__card--featured:hover { transform: translateY(-8px); }
    .wd-testimonials__grid { grid-template-columns: 1fr; }
    .wd-hero__images { flex-direction: column; }
    .wd-hero__img1 { width: 80%; }
    .wd-hero__img2 { width: 50%; }
    .wd-services__card:hover,
    .wd-pricing__card:hover,
    .wd-testimonials__card:hover {
        transform: translateY(-4px);
    }
}
