/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #D32F2F;
    --red-dark: #B71C1C;
    --red-light: #FFEBEE;
    --red-mid: #E57373;
    --gray: #546E7A;
    --gray-dark: #37474F;
    --gray-light: #ECEFF1;
    --green: #558B2F;
    --green-light: #F1F8E9;
    --text-dark: #1A1A2E;
    --text-mid: #455A64;
    --text-light: #78909C;
    --bg: #FAFAFA;
    --bg-cream: #FFF8F8;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --shadow-card: 0 8px 32px rgba(211, 47, 47, 0.08);
    --shadow-hover: 0 20px 50px rgba(211, 47, 47, 0.16);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --footer-bg: #1A1A2E;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #ffffff;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
}

/* NAVIGATION */
nav {
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(211, 47, 47, 0.12);
    height: 72px;
    transition: box-shadow .3s;
}

nav.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-logo img {
    height: 48px;
}

.nav-links {
    gap: .9rem;
}

.nav-links a {
    font-size: 13px;
    color: var(--text-mid);
    transition: color .2s;
    white-space: nowrap;
}

.nav-links a i {
    font-size: 12px;
    opacity: .8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    transition: width .25s;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-links a:hover::after  ,.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--red);
    font-weight: 700 !important;
}

.nav-cta {
    background: var(--red) !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: background .2s, transform .15s !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--red-dark) !important;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: .3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO SECTION */
#hero {
    /* min-height: 100vh; */
    grid-template-columns: 1fr 1fr;
    padding:100px 0 60px;
    gap: 4rem;
    margin-top: 3rem;
}

.hero-bg {
    inset: 0;
    background: linear-gradient(135deg, #fff 55%, #FFEBEE 100%);
}

.hero-bg-blob {
    filter: blur(80px);
    opacity: .15;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--red);
    top: -150px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--green);
    bottom: -50px;
    right: 10%;
}

.hero-badge {
    background: var(--red-light);
    color: var(--red-dark);
    padding: 7px 16px;
    margin-bottom: 1rem;
    border-radius: 50px;
    font-size: 13px;
    border: 1px solid rgba(211, 47, 47, 0.2);
    animation: fadeUp .6s ease both;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--red);
    animation: pulse 1.8s infinite;
}

.hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    animation: fadeUp .6s .15s ease both;
}

.hero-title span {
    color: var(--red);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-mid);
    line-height: 1.9;
    max-width: 520px;
    margin-bottom: 2.5rem;
    animation: fadeUp .6s .25s ease both;
}

.hero-actions {
    animation: fadeUp .6s .35s ease both;
}

/* Buttons */
.btn-primary {
    background: var(--text-dark);
    color: #FFFFFF;
    padding: 13px 24px;
    border-radius: 50px;
    border: 2px solid var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    box-shadow: 0 6px 24px rgba(26, 26, 46, 0.2);
    letter-spacing: 0.02em;
    width: fit-content;
}

.btn-primary:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(211, 47, 47, 0.35);
}

.btn-secondary {
    color: var(--text-dark);
    gap: 10px;
    transition: var(--transition);
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid rgba(26, 26, 46, 0.18);
    background: transparent;
    letter-spacing: 0.02em;
    width: fit-content;
}

.btn-secondary:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.12);
}

/* Hero Visuals */
.hero-visual {
    animation: fadeScale .7s .2s ease both;
}

.hero-card-stack {
    max-width: 460px;
}

.hero-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(211, 47, 47, 0.08);
}

.hero-card-float {
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    gap: 10px;
    font-size: 13px;
    white-space: nowrap;
    animation: float 3.5s ease-in-out infinite;
}

.card-float-1 {
    bottom: 16px;
    left: -16px;
}

.card-float-1 i{
    color:#6366F1;
    font-size:18px;    
}

.card-float-2 {
    top: 16px;
    left: -16px;
    animation-delay: 1.2s;
}
.card-float-2 i{
    color:#0EA5E9;
    font-size:18px;    
}

/* Hero image wrapper */
.hero-img-wrap {
    height: 260px;
}

.hero-img-wrap img {
    transition: transform .5s ease;
}

.hero-card-main:hover .hero-img-wrap img {
    transform: scale(1.04);
}

.hero-img-overlay {
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.55) 0%, transparent 55%);
}

.hero-img-badge {
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 6px 14px;
    gap: 6px;
    font-size: 12px;
    color: var(--red);
    border: 1px solid rgba(211, 47, 47, 0.15);
}

.hero-img-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    animation: pulse 1.8s infinite;
}

.hero-card-bottom {
    padding: 18px 20px;
}

.hero-card-label {
    font-size: 12px;
    color: var(--text-light);
}

.hero-card-value {
    font-size: 22px;
    color: var(--text-dark);
}

.hero-card-change {
    font-size: 12px;
    color: var(--green);
}

/* STATS */
#stats {
    background: transparent;
    margin-top: -36px;
    z-index: 10;
}

.stats-grid {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(211, 47, 47, 0.09);
    padding: 2rem 2.5rem;
}

.stat-item {
    padding: 1rem 2rem;
    border-left: 1px solid rgba(211, 47, 47, 0.12);
    flex: 1;
    min-width: 140px;
}

.stat-item:last-child {
    border-left: none;
}

.stat-num {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: .35rem;
    letter-spacing: -0.02em;
}

.stat-num.rate {
    color: var(--red);
}

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

/* SHARED SECTION STYLES */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--red);
    background: var(--red-light);
    padding: 6px 18px;
    border-radius: 50px;
}

.section-tag::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text-dark);
    line-height: 1.3;
}

.section-sub {
    color: var(--text-mid);
    max-width: 540px;
    line-height: 1.8;
}

/* SERVICES SECTION */
#services {
    padding: 100px 0;
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: var(--transition);
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--red);
    border-radius: 0 var(--radius) 0 0;
    transition: height .35s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    font-size: 28px;
}

.service-icon i {
    font-size: 28px;
}

.icon-red {
    background: var(--red-light);
}

.icon-gray {
    background: var(--gray-light);
}

.icon-green {
    background: var(--green-light);
}

.service-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: .75rem;
}

.service-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.85;
}

.service-link {
    margin-top: 1.25rem;
    font-size: 13px;
    color: var(--red);
    transition: gap .2s;
}

.service-link:hover {
    gap: 10px;
}

/* HOW IT WORKS SECTION */
#how {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-cream) 100%);
    padding: 100px 0;
}

.steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--red), transparent);
    z-index: 0;
}

.step-num {
    width: 72px;
    height: 72px;
    background: var(--red);
    color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
    border: 4px solid #fff;
    transition: transform .3s;
}

.step-card:hover .step-num {
    transform: scale(1.12);
    box-shadow: 0 10px 28px rgba(211, 47, 47, 0.4);
}

.step-title {
    margin-bottom: .6rem;
    color: var(--text-dark);
}

.step-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.8;
}

/* PORTFOLIO SECTION */
#portfolio {
    padding: 100px 0;
    background: #fff;
}

.portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.portfolio-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.portfolio-card:hover .portfolio-thumb {
    transform: scale(1.06);
}

.portfolio-overlay {
    inset: 0;
    background: linear-gradient(to top, rgba(27, 27, 46, 0.85) 0%, transparent 55%);
    padding: 1.25rem;
    opacity: 0;
    transition: opacity .3s;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.portfolio-name {
    color: #fff;
}

/* Portfolio placeholder colors */
.ph-1 {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
}

.ph-2 {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}

.ph-3 {
    background: linear-gradient(135deg, #F1F8E9, #DCEDC8);
}

.ph-4 {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}

.ph-5 {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
}

.ph-6 {
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
}

.ph-icon {
    height: 200px;
    font-size: 56px;
}

/* PRICING SECTION */
#pricing {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFF5F5 0%, #fff 100%);
}

.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.pricing-card.featured {
    border: 2px solid var(--red);
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(211, 47, 47, 0.18);
}

.pricing-badge {
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: var(--red);
    color: #fff;
    font-size: 12px;
    padding: 5px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-plan {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

.pricing-price {
    font-size: 3rem;
    color: var(--text-dark);
    line-height: 1;
}

.pricing-price sup {
    font-size: 1.2rem;
    vertical-align: super;
}

.pricing-period {
    font-size: 13px;
    color: var(--text-light);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 9px 0;
    font-size: 14px;
    color: var(--text-mid);
    border-bottom: 1px solid var(--gray-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.check {
    color: var(--green);
}

.cross {
    color: #ccc;
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid rgba(211, 47, 47, 0.25);
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.btn-outline:hover {
    background: var(--red);
    color: #fff;
}

.pricing-card.featured .btn-outline {
    background: var(--red);
    color: #fff;
}

.pricing-card.featured .btn-outline:hover {
    background: var(--red-dark);
}

/* FAQ SECTION */
#faq {
    padding: 100px 0;
    background: #fff;
}

.faq-wrap {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-light);
}

.faq-q {
    background: none;
    padding: 1.25rem 0;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
}

.faq-q:hover {
    color: var(--red);
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: var(--red-light);
    color: var(--red);
    font-size: 18px;
    transition: background .25s, color .25s;
}

.faq-item.open .faq-icon {
    background: var(--red);
    color: #fff;
}

.faq-a {
    max-height: 0;
    transition: max-height .4s ease;
}

.faq-a-inner {
    padding: 0 0 1.25rem;
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.9;
}

/* BRANDS / CLIENTS SECTION */
#brands {
    padding: 60px 0;
    background: var(--bg-cream);
    border-top: 1px solid rgba(211, 47, 47, 0.07);
    border-bottom: 1px solid rgba(211, 47, 47, 0.07);
}

.brands-title {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: .08em;
    margin-bottom: 2.5rem;
}

.brand-pill {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    padding: .75rem 1.75rem;
    color: var(--text-mid);
    transition: all .2s;
    white-space: nowrap;
}

.brand-pill:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* TESTIMONIALS SECTION */
#testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #FFF5F5 100%);
}

.owl-testimonials {
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    border: 1px solid rgba(211, 47, 47, 0.08);
    margin: 0 11px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(211, 47, 47, 0.25);
    border-right: 3px solid var(--red);
}

.t-stars {
    color: #F59E0B;
    font-size: 14px;
    letter-spacing: 2px;
}

.t-quote-mark {
    font-size: 3.5rem;
    color: var(--red-light);
    line-height: 1;
    font-family: Georgia, serif;
}

.t-text {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.95;
}

.t-author {
    gap: 12px;
    border-top: 1px solid var(--gray-light);
}

.t-avatar {
    width: 46px;
    height: 46px;
    font-size: 15px;
    color: #fff;
}

.av-red {
    background: var(--red);
}

.av-gray {
    background: var(--gray);
}

.av-green {
    background: var(--green);
}

.av-dark {
    background: var(--text-dark);
}

.av-teal {
    background: #00838F;
}

.av-purple {
    background: #6A1B9A;
}

.t-name {
    font-size: 14px;
    color: var(--text-dark);
}

.t-role {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 1px;
}

/* Owl custom nav/dots */
.owl-testimonials {
    position: relative;
    padding: 0 56px;
}

.owl-testimonials .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    box-sizing: border-box;
}

.owl-testimonials .owl-nav button {
    pointer-events: all;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(211, 47, 47, 0.2) !important;
    background: var(--red) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition) !important;
    z-index: 2;
    outline: none;
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.25) !important;
}

.owl-testimonials .owl-nav button:hover {
    background: var(--red-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.35) !important;
}

.owl-testimonials .owl-nav .owl-prev {
    right: 0;
}

.owl-testimonials .owl-nav .owl-next {
    left: 0;
}

.owl-testimonials .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.8rem !important;
}

.owl-testimonials .owl-dot {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.owl-testimonials .owl-dot span {
    display: block;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(211, 47, 47, 0.18) !important;
    transition: var(--transition) !important;
    margin: 0 !important;
}

.owl-testimonials .owl-dot.active span {
    background: var(--red) !important;
    width: 24px !important;
    border-radius: 50px !important;
}

/* CTA BAND SECTION */
#cta-band {
    margin: 0 0 80px;
    background: var(--red);
    border-radius: 0;
    padding: 5rem 0;
}

#cta-band::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -150px;
    left: -80px;
}

#cta-band::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -100px;
    right: 5%;
}

.cta-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: .12em;
}

.cta-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    color: #fff;
    line-height: 1.35;
}

.cta-sub {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.cta-pills {
    margin-bottom: 2rem;
}

.cta-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
}

.btn-white {
    background: #fff;
    color: var(--red);
    padding: 15px 36px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

/* CONTACT SECTION - NEW DESIGN */
#contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-cream) 100%);
}

/* Contact Info Card */
.contact-info {
    background: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: var(--bg);
    box-shadow: var(--shadow-hover);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--red);
}

.contact-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.85;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--red);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--red);
    color: #fff;
}

.contact-item-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-item-val {
    color: #fff;
}

/* Social Links */
.contact-social {
    gap: 10px;
    margin-top: 2rem;
}

.contact-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.contact-social a:hover {
    background: var(--red);
    transform: translateY(-2px);
}

/* Form Wrapper */
.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.contact-form-wrap h3 {
    color: var(--text-dark);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    grid-template-columns: 1fr 1fr;
}

.form-group {
    gap: .4rem;
}

.form-group label {
    font-size: 13px;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: #fff;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Error Message Styling */
.error-msg {
    color: #D32F2F;
    font-size: 11px;
    margin-top: 2px;
    display: none;
    animation: fadeUp 0.3s ease;
}

/* Invalid state */
.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
    border-color: #D32F2F !important;
    background: #FFEBEE !important;
}

.form-group input.is-invalid+.error-msg,
.form-group textarea.is-invalid+.error-msg,
.form-group select.is-invalid+.error-msg {
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Success message container */
#formSuccess {
    display: none;
    padding: 3rem 2rem;
    background: var(--green-light);
    border-radius: var(--radius);
    border: 1px solid var(--green);
    animation: fadeUp 0.6s ease both;
}

#formSuccess i {
    font-size: 3.5rem;
    color: var(--green);
}

#formSuccess h3 {
    color: var(--text-dark);
}

#formSuccess p {
    color: var(--text-mid);
}

.btn-submit {
    background: var(--text-dark);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(211, 47, 47, 0.3);
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.03em;
}

.btn-submit:hover {
    background: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(211, 47, 47, 0.35);
}

/* FOOTER */
footer {
    background: var(--footer-bg);
    padding: 64px 0 0;
    color: var(--footer-text);
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.footer-top {
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand-name {
    color: var(--footer-heading);
    margin-bottom: .75rem;
    letter-spacing: .01em;
}

.footer-brand-name span {
    color: var(--red);
}

.footer-brand p {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--footer-text);
    max-width: 240px;
    margin-bottom: 1.4rem;
}

.footer-brand-social {
    gap: 10px;
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    transition: all .22s;
}

.footer-social-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer Columns */
.footer-col h4 {
    font-size: 15px;
    color: var(--footer-heading);
    margin-bottom: 1.3rem;
    letter-spacing: .01em;
}

.footer-col ul li {
    margin-bottom: .55rem;
}

.footer-col ul a {
    color: var(--footer-text);
    font-size: 13.5px;
    transition: color .2s;
}

.footer-col ul a i {
    color: var(--red);
    font-size: 12px;
    flex-shrink: 0;
    transition: color .2s;
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-col ul a:hover i {
    color: #fff;
}

/* Footer Contact */
.footer-contact-item {
    gap: 10px;
    margin-bottom: .85rem;
    font-size: 13.5px;
    color: var(--footer-text);
}

.footer-contact-item i {
    color: var(--red);
}

/* Footer Bottom */
.footer-bottom {
    padding: 18px 0;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-copy span {
    color: var(--red);
}

/* BACK TO TOP BUTTON */
.back-top {
    bottom: 28px;
    left: 28px;
    width: 46px;
    height: 46px;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 50;
}

.back-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(.94)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-8px)
    }
}

@keyframes pulse {

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

    50% {
        opacity: .5;
        transform: scale(.7)
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    top: 42px;
    z-index: 99;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 5vw 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul li {
    border-bottom: 1px solid var(--gray-light);
}

.mobile-menu ul a {
    gap: 10px;
    padding: 13px 0;
    font-size: 15px;
    color: var(--text-mid);
    transition: color .2s;
}

.mobile-menu ul a i {
    color: var(--red);
    font-size: 15px;
    width: 18px;
}

.mobile-menu ul a:hover {
    color: var(--red);
}

.mobile-menu ul a.mob-cta {
    color: var(--red);
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================ */

/* Large Devices (1024px and below) */
@media (max-width: 1024px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }

    .stats-grid {
        flex-wrap: wrap;
        padding: 1.5rem 1rem;
    }

    .stat-item {
        flex: 1 1 45%;
        border-left: none;
        border-bottom: 1px solid rgba(211, 47, 47, 0.1);
        padding: 1rem;
    }

    .stat-item:nth-child(odd) {
        border-left: 1px solid rgba(211, 47, 47, 0.1);
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .pricing-card.featured {
        transform: none;
    }

    #services,
    #how,
    #portfolio,
    #pricing,
    #faq,
    #contact {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

}

/* Tablets (992px and below) */
@media (max-width: 992px) {
    nav {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none !important;
    }

    .hero-content{
        text-align: center;
    }

    .hero-content .hero-sub {
        margin: 0 auto 1rem;
    }

    .hero-content .hero-actions{
        margin:  auto;
        justify-content: center;
    }

    .hero-card-stack {
        overflow: hidden;
    }

    .card-float-1,
    .card-float-2 {
        display: none;
    }

    #hero {
        padding: 80px 0 40px;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-card,
    .portfolio-card {
        padding: 0;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .owl-testimonials {
        padding: 0 40px;
    }

    .owl-testimonials .owl-nav button {
        width: 40px !important;
        height: 40px !important;
    }

    .contact-form-wrap,
    .contact-info {
        padding: 2rem;
    }
}

/* Medium Devices (768px and below) */
@media (max-width: 768px) {
    nav {
        height: 60px;
    }

    .nav-logo img {
        height: 40px;
    }

    #hero {
        grid-template-columns: 1fr;
        padding: 100px 0 40px;
        gap: 2rem;
        min-height: auto;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .services-grid,
    .portfolio-grid,
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-desc {
        font-size: 13px;
    }

    .stats-grid {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0;
    }

    .stat-item {
        flex: 1 1 50%;
        border-left: none;
        border-bottom: 1px solid rgba(211, 47, 47, 0.1);
        padding: 0.75rem;
    }

    .stat-item:nth-child(odd) {
        border-left: none;
    }

    .stat-item:nth-child(n+3) {
        border-bottom: none;
    }

    .stat-num {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
    }

    .stat-label {
        font-size: 12px;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

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

    .section-sub {
        font-size: 14px;
    }

    #cta-band {
        margin: 0 0 50px;
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-sub {
        font-size: 14px;
        margin-bottom: 1.5rem;
    }

    .cta-pills {
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cta-pill {
        padding: 5px 14px;
        font-size: 12px;
    }

    .btn-white {
        padding: 12px 28px;
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap,
    .contact-info {
        padding: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-form-wrap h3 {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 13px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .btn-submit {
        padding: 12px 24px;
        font-size: 14px;
    }

    .owl-testimonials {
        padding: 0 30px;
    }

    .owl-testimonials .owl-nav button {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin: 0 8px;
    }

    .t-quote-mark {
        font-size: 2.5rem;
    }

    .t-text {
        font-size: 13px;
    }

    .portfolio-thumb {
        height: 180px;
    }

    .ph-icon {
        height: 180px;
        font-size: 48px;
    }

    #services,
    #how,
    #portfolio,
    #pricing,
    #faq,
    #contact {
        padding: 60px 0;
    }

    .footer-top {
        padding-bottom: 30px;
    }

    footer {
        padding: 40px 0 0;
    }

    .back-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Small Devices (576px and below) */
@media (max-width: 576px) {
    nav {
        height: 56px;
        padding: 0 12px;
    }

    .nav-logo img {
        height: 36px;
    }

    /* .hamburger {
        gap: 4px;
    } */

    .hamburger span {
        width: 20px;
        height: 1.5px;
    }

    #hero {
        padding: 80px 0 30px;
        gap: 1.5rem;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-sub {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.7;
    }




    .services-grid,
    .portfolio-grid,
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .service-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .service-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .service-link {
        font-size: 12px;
        margin-top: 1rem;
    }

    .stats-grid {
        flex-direction: column;
        padding: 1rem 0.5rem;
        gap: 0;
    }

    .stat-item {
        flex: 1 1 100%;
        border-left: none !important;
        border-bottom: 1px solid rgba(211, 47, 47, 0.1);
        padding: 0.75rem 0.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 11px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-tag {
        font-size: 10px;
        padding: 5px 14px;
    }

    .section-tag::before {
        width: 16px;
    }

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

    .section-sub {
        font-size: 13px;
    }

    .step-num {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 auto 1rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-desc {
        font-size: 12px;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-price {
        font-size: 2.2rem;
    }

    .pricing-features li {
        padding: 8px 0;
        font-size: 13px;
    }

    .btn-outline {
        padding: 10px 20px;
        font-size: 13px;
    }

    .faq-wrap {
        margin: 2rem auto 0;
    }

    .faq-q {
        padding: 1rem 0;
        font-size: 14px;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .faq-a-inner {
        padding: 0 0 1rem;
        font-size: 13px;
    }

    .brand-pill {
        padding: 0.65rem 1.25rem;
        font-size: 12px;
    }

    .brand-pill i {
        font-size: 14px;
    }

    #cta-band {
        margin: 0 0 40px;
        padding: 2.5rem 0;
    }

    #cta-band::before,
    #cta-band::after {
        display: none;
    }

    .cta-label {
        font-size: 12px;
    }

    .cta-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .cta-sub {
        font-size: 13px;
        margin-bottom: 1.25rem;
    }

    .cta-pills {
        margin-bottom: 1.25rem;
    }

    .cta-pill {
        padding: 5px 12px;
        font-size: 11px;
    }

    .btn-white {
        padding: 11px 24px;
        font-size: 13px;
    }

    #contact {
        padding: 60px 0;
    }

    .contact-info {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 13px;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        margin-bottom: 1rem;
    }

    .contact-item-label {
        font-size: 12px;
    }

    .contact-item-val {
        font-size: 13px;
    }

    .contact-social {
        gap: 8px;
    }

    .contact-social a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .contact-form-wrap {
        padding: 1.25rem;
    }

    .contact-form-wrap h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 9px 12px;
        font-size: 13px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .btn-submit {
        padding: 11px 20px;
        font-size: 13px;
        width: 100%;
    }

    .owl-testimonials {
        padding: 0 20px;
        margin-top: 2rem;
    }

    .owl-testimonials .owl-nav button {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    .testimonial-card {
        padding: 1.25rem;
        margin: 0 6px;
    }

    .t-quote-mark {
        font-size: 2rem;
    }

    .t-text {
        font-size: 12px;
        line-height: 1.7;
    }

    .t-avatar {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .t-name {
        font-size: 13px;
    }

    .t-role {
        font-size: 11px;
    }

    .portfolio-thumb {
        height: 150px;
    }

    .ph-icon {
        height: 150px;
        font-size: 40px;
    }

    #services,
    #how,
    #portfolio,
    #pricing,
    #faq {
        padding: 50px 0;
    }

    .brands-title {
        font-size: 12px;
        margin-bottom: 1.5rem;
    }

    #brands {
        padding: 40px 0;
    }

    #testimonials {
        padding: 50px 0;
    }

    /* Footer Responsive */
    footer {
        padding: 30px 0 0;
    }

    .footer-top {
        padding-bottom: 25px;
        margin-bottom: 1.5rem;
    }

    .footer-brand-name {
        font-size: 1.1rem;
    }

    .footer-brand p {
        font-size: 12px;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .footer-brand-social {
        gap: 8px;
    }

    .footer-social-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 1rem;
    }

    .footer-col ul a {
        font-size: 12px;
    }

    .footer-contact-item {
        font-size: 12px;
        margin-bottom: 0.75rem;
    }

    .footer-bottom {
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-copy {
        font-size: 12px;
    }

    .back-top {
        bottom: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
    }

    .back-top i {
        font-size: 16px;
    }
}

/* Extra Small Devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    #hero {
        padding: 70px 0 25px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-sub {
        font-size: 0.85rem;
    }

    .hero-actions .btn-primary{
        width: 100%;
    }

    .hero-actions .btn-secondary{
        width: 100%;
    }

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

    .section-sub {
        font-size: 12px;
    }

    .service-card {
        padding: 1rem;
    }

    .service-title {
        font-size: 0.95rem;
    }

    .service-desc {
        font-size: 12px;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 10px;
    }

    .step-num {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .pricing-price {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .contact-info h3 {
        font-size: 1.1rem;
    }

    .contact-form-wrap h3 {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 12px;
    }

    .btn-submit {
        padding: 10px 18px;
        font-size: 12px;
    }

    .testimonial-card {
        padding: 1rem;
        margin: 0 4px;
    }

    .owl-testimonials {
        padding: 0 15px;
    }

    .owl-testimonials .owl-nav button {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .back-top {
        width: 32px;
        height: 32px;
    }
}
