/* ======================================
   WeOryx - Digital Marketing Agency
   Brand-Accurate CSS Stylesheet
   ====================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables / Design Tokens - Matching Figma */
:root {
    /* Primary Colors - Final Brand Palette */
    --primary-blue: #12485b;
    --primary-blue-light: #195c76;
    --primary-gradient: linear-gradient(135deg, #12485b 0%, #195c76 100%);

    /* Accent Colors - Final Brand Palette */
    --accent-orange: #f75c40;
    --accent-orange-dark: #d64b32;
    --accent-orange-light: #ff7d66;

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --light-gray: #E8E8E8;
    --medium-gray: #9CA3AF;
    --gray: #6B7280;
    --dark-gray: #374151;
    --black: #1F2937;

    /* Typography - English (LTR) */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 5px 25px rgba(26, 95, 122, 0.1);
    --shadow-orange: 0 4px 20px rgba(232, 90, 60, 0.35);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 25px;
    --radius-full: 50%;
    --radius-pill: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Global Direction Styles */
html[dir="rtl"] body {
    text-align: right;
    direction: rtl;
}

html[dir="ltr"] body {
    text-align: left;
    direction: ltr;
}

/* Ensure specific components follow direction */
.hero-text,
.section-header,
.footer-about,
.footer-links,
.footer-contact,
.footer-newsletter {
    text-align: start;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ======================================
   Container
   ====================================== */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ======================================
   Typography
   ====================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-blue);
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

.text-primary {
    color: var(--accent-orange);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-blue);
    padding: 6px 16px;
    border: 1px solid var(--primary-blue);
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.section-tag-center {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 16px;
}

.section-title-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* ======================================
   Buttons
   ====================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: var(--radius-pill);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 90, 60, 0.45);
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-outline-primary:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-cta-primary {
    background: var(--white);
    color: var(--primary-blue);
    font-size: 1.05rem;
    padding: 16px 38px;
    box-shadow: var(--shadow-lg);
}

.btn-cta-primary:hover {
    background: var(--off-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-cta-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    font-size: 1.05rem;
    padding: 16px 38px;
}

.btn-cta-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}


.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ======================================
   Header / Navigation
   ====================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.home .header {
    position: fixed;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header.scrolled,
.home .header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

@media (max-width: 991px) {

    .header.scrolled,
    .home .header.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
        /* Hardware acceleration to prevent flickering/vanishing content */
    }
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition-normal);
}

.logo-white {
    display: none;
}

.logo-colored {
    display: block;
}

/* Home / Front Page - White logo on transparent header */
.home .header:not(.scrolled) .logo-white,
.front-page .header:not(.scrolled) .logo-white {
    display: block;
}

.home .header:not(.scrolled) .logo-colored,
.front-page .header:not(.scrolled) .logo-colored {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--dark-gray);
    position: relative;
    padding: 5px 0;
    transition: var(--transition-normal);
    text-transform: uppercase;
}

.home .nav-link {
    color: var(--white);
}

/* Bordered Menu for Homepage */
.home .header:not(.scrolled) .nav-menu {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 30px;
    border-radius: 50px;
    gap: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.home .header:not(.scrolled) .nav-link:hover,
.home .header:not(.scrolled) .nav-link.active {
    color: var(--white);
    opacity: 0.8;
}

.home .header:not(.scrolled) .nav-link::after {
    display: none;
}

.home .header.scrolled .nav-menu {
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    gap: 40px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange);
}

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

.nav-link-highlight {
    color: var(--accent-orange);
}

.nav-link-highlight:hover {
    color: var(--accent-orange-dark);
}

/* Header scrolled state - dark nav links on white background */
.header.scrolled .nav-link {
    color: var(--dark-gray);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-blue);
}

.header.scrolled .nav-link-highlight {
    color: var(--accent-orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-actions .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.home .lang-toggle {
    color: var(--white);
}

.lang-toggle:hover {
    background: var(--off-white);
    color: var(--primary-blue);
}

.header.scrolled .lang-toggle,
.home .header.scrolled .lang-toggle {
    color: var(--dark-gray);
}

.header.scrolled .lang-toggle:hover {
    background: var(--off-white);
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 5px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.header.scrolled .menu-toggle span {
    background: var(--dark-gray);
}

/* ======================================
   Hero Section - Matching Figma
   ====================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

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

.hero-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    clip-path: ellipse(85% 100% at 30% 0%);
}

.hero-curve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="40" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: cover;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-swiper {
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 40px 0;
}

.hero-text {
    padding-left: 40px;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    margin-bottom: 25px;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 35px;
    max-width: 450px;
    line-height: 1.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    max-width: 500px;
}

.hero-main-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.floating-chat {
    top: 5%;
    right: 20%;
    background: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation-delay: 0s;
}

.chat-bubble {
    display: flex;
    gap: 5px;
}

.chat-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: var(--radius-full);
}

.floating-heart {
    top: 15%;
    right: 5%;
    background: var(--accent-orange);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-orange);
    animation-delay: 0.5s;
}

.floating-like {
    bottom: 40%;
    right: 0;
    background: var(--white);
    color: var(--accent-orange);
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    animation-delay: 1s;
}

.floating-target {
    bottom: 20%;
    left: 5%;
    background: var(--accent-orange);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-orange);
    animation-delay: 1.5s;
}

.floating-chart {
    bottom: 10%;
    right: 15%;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation-delay: 2s;
}

.floating-chart i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.floating-code,
.floating-mobile,
.floating-desktop,
.floating-search,
.floating-graph {
    background: var(--white);
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.floating-code {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-mobile {
    bottom: 30%;
    right: 5%;
    animation-delay: 1s;
}

.floating-desktop {
    top: 30%;
    right: 10%;
    animation-delay: 0.5s;
}

.floating-search {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.floating-graph {
    bottom: 25%;
    left: 5%;
    animation-delay: 1s;
}

@keyframes float {

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

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

/* Swiper Pagination */
.hero-swiper .swiper-pagination {
    bottom: 40px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: var(--transition-normal);
}

/* Blog Pagination */
.pagination {

    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    border: 1px solid var(--light-gray);
}

.pagination .page-numbers.current {
    background: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-orange);
}

.pagination .page-numbers:not(.current):hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: 1.1rem;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ======================================
   About Section
   ====================================== */
.about-section {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 100px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-main-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 48, 73, 0.12);
    position: relative;
    z-index: 2;
}

.about-image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 2px solid var(--accent-orange);
    border-radius: 30px;
    z-index: 1;
    transition: var(--transition-slow);
}

.about-image-wrapper:hover .about-image-decoration {
    transform: translate(-10px, -10px);
}

.about-experience-badge {
    position: absolute;
    bottom: 50px;
    left: -30px;
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
    text-align: center;
    min-width: 150px;
    border-bottom: 5px solid var(--accent-orange);
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 5px;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-header {
    margin-bottom: 30px;
}

.about-description {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 45px;
}

.feature-item {
    display: flex;
    flex-direction: row;
    /* Horizontal as requested */
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: var(--off-white);
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    background: var(--white);
    transform: translateX(10px);
    /* Slide horizontally on hover */
    box-shadow: 0 15px 40px rgba(0, 48, 73, 0.08);
    border-color: rgba(232, 90, 60, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--accent-orange);
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item:hover .feature-icon {

    color: var(--white);
    transform: rotateY(360deg);
    transition: transform 0.6s ease;
}

.feature-content h4 {
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.feature-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.about-cta {
    margin-top: 10px;
}

/* ======================================
/* ======================================
   Services Section (Premium Glass)
   ====================================== */
/* ======================================
   Service Intro Section
   ====================================== */
.service-intro-section {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.service-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 100px;
    align-items: center;
}

/* Image position control - Left */
.service-intro-grid.flex-row-reverse {
    grid-template-columns: 1.1fr 1fr;
}

.service-intro-grid.flex-row-reverse .intro-content-col {
    order: 2;
}

.service-intro-grid.flex-row-reverse .intro-image-col {
    order: 1;
}

.service-intro-image-wrapper {
    position: relative;
    padding: 20px;
}

.service-intro-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(26, 95, 122, 0.12);
    position: relative;
    z-index: 2;
}

/* Add a badge or decoration like the about section if you want, but sticking to clean luxury */
.service-intro-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 2px solid var(--accent-orange);
    border-radius: 30px;
    z-index: 1;
    transform: translate(20px, 20px);
}

.service-intro-grid.flex-row-reverse .service-intro-image::after {
    transform: translate(-20px, 20px);
}

.service-intro-content .section-tag {
    margin-bottom: 25px;
}

.service-intro-content .section-title {
    margin-bottom: 30px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.service-intro-content .section-description {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--gray);
    margin-bottom: 40px;
}

.intro-btn .btn {
    padding: 18px 45px;
    font-size: 1.05rem;
}

@media (max-width: 1200px) {
    .service-intro-grid {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .service-intro-grid {
        grid-template-columns: 1fr !important;
        gap: 80px;
        text-align: center;
    }

    .service-intro-grid .intro-content-col,
    .service-intro-grid .intro-image-col {
        order: unset !important;
    }

    .service-intro-image img {
        height: 400px;
    }

    .service-intro-image::after {
        display: none;
    }
}

.services-section {
    padding: var(--section-padding);
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

/* Subtle tech pattern */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(26, 95, 122, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 4 Columns */
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: left;
    /* Modern Left Align */
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(232, 90, 60, 0.2);
    background: var(--white);
}

/* Bottom Gradient Line on Hover */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 95, 122, 0.05);
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
    background: var(--accent-orange);
    color: var(--white);
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(232, 90, 60, 0.2);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--accent-orange);
}

.service-description {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.service-link:hover {
    color: var(--primary-blue);
    gap: 12px;
}

.services-cta {
    position: relative;
    text-align: center;
    z-index: 1;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px;
        align-items: center;
        text-align: center;
    }

    .service-card::after {
        display: none;
        /* No hover line on mobile */
    }
}

/* ======================================
   Portfolio Section
   ====================================== */
.portfolio-section {

    background: var(--off-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    margin-bottom: 50px;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.portfolio-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-item-large .portfolio-image {
    height: 100%;
}

.portfolio-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 95, 122, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

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

.portfolio-category {
    font-size: 0.8rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-title {
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 600;
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-orange);
    color: var(--white);
    border-radius: var(--radius-full);
    transform: rotate(-45deg);
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-link {
    opacity: 1;
}

.portfolio-link:hover {
    background: var(--white);
    color: var(--accent-orange);
}

.portfolio-cta {
    padding-bottom: 20px;
    text-align: center;
}

/* ======================================
   Stats Section (Clean Luxury)
   ====================================== */
.stats-section {
    padding: 60px 0;
    background: var(--primary-gradient);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    /* Remove gap for dividers */
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Subtle Vertical Divider */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 90, 60, 0.1);
    color: var(--accent-orange);
    border-radius: var(--radius-full);
    margin-bottom: 15px;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--accent-orange);
    color: var(--white);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    color: var(--accent-orange);
    /* Solid color for better visibility */
    font-family: 'Outfit', sans-serif;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    vertical-align: top;
    -webkit-text-fill-color: var(--accent-orange);
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Stats */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-item:nth-child(odd)::after {
        display: block;
        /* Restore divider for grid of 2 */
        content: '';
        position: absolute;
        right: -15px;
        /* Adjust position for gap */
        top: 10%;
        height: 80%;
        width: 1px;
        background: rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-item::after {
        /* Remove all dividers on mobile */
        display: none !important;
    }
}


/* ======================================
   Clients Section
   ====================================== */
/* ======================================
   Clients Section (Premium Carousel)
   ====================================== */
.clients {
    padding: 30px 0;
    /* Ultra-tight Architectural Integration */
    background: #fdfdfd;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.clients-header {
    text-align: center;
    margin-bottom: 15px;
    /* Minimum heading delay */
}

/* CSS Marquee Integration (Phase 12 - Ultra Reliable) */
.weoryx-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    will-change: transform;
}

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

.marquee-track {
    display: flex;
    align-items: center;
    gap: 80px;
    padding-right: 80px;
}

.marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7) contrast(1);
    transition: all 0.6s ease;
}

.marquee-item:hover img {
    filter: grayscale(0%) brightness(1) contrast(1);
    transform: scale(1.1);
}

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

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

/* RTL Support for Marquee */
html[dir="rtl"] .marquee-content {
    animation: marquee-scroll-rtl 25s linear infinite;
}

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

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

.client-logo-item {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.client-logo-item img {
    max-width: 140px;
    max-height: 50px;
    height: auto;
    object-fit: contain;
    /* Monochrome Branding - Clean Luxury Standard */
    filter: grayscale(100%) brightness(0.2) opacity(0.2);
    transition: all 0.5s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: translateY(-8px);
}

/* ======================================
   Testimonials Section (Phase 21: Infinity Stack - Refined)
   ====================================== */
.testimonials-stack-section {

    background: #FBFBFC;
    /* Technical Hardware White */
    position: relative;
    overflow: hidden;
}

.stack-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

/* Stack Info (Left Side) */
.stack-info {
    max-width: 520px;
}

.stack-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--accent-orange);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 35px;
}

.stack-title {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -4px;
    color: var(--primary-blue);
    margin-bottom: 45px;
}

.stack-accent {
    display: block;
    color: var(--accent-orange);
    font-weight: 300;
    letter-spacing: -2px;
}

.stack-description {
    font-size: 1.15rem;
    color: #4A5568;
    /* Steel Gray Body */
    line-height: 1.9;
    margin-bottom: 70px;
    opacity: 0.9;
}

/* Stack Controls */
.stack-controls {
    display: flex;
    gap: 25px;
}

.stack-nav {
    position: static;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #E2E8F0;
    color: var(--primary-blue);
    border-radius: var(--radius-full);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

.stack-nav:after {
    display: none;
}

.stack-nav:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 95, 122, 0.15);
}

/* Stack Visual (Right Side) */
.stack-visual {
    position: relative;
    width: 100%;
}

.stack-swiper {
    width: 100%;
    max-width: 480px;
    height: 520px;
    /* Reduced for a more compact look */
    overflow: visible;
}

.tech-card {
    background: #ffffff;
    border: 1px solid #E8EEF2;
    /* Precision Edge */
    padding: 50px;
    /* Tighter padding for balanced whitespace */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s ease;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.01),
        0 40px 80px rgba(0, 0, 0, 0.03);
}

.tech-quote {
    font-size: 6rem;
    line-height: 1;
    color: var(--accent-orange);
    opacity: 0.15;
    font-family: serif;
    margin-bottom: 25px;
}

.tech-text {
    font-size: 1.7rem;
    line-height: 1.8;
    color: #1a1a1a;
    font-weight: 300;
    /* Light Sophisticated Weight */
    font-style: normal;
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 2;
}

.tech-footer {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #F7FAFC;
}

.tech-avatar {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tech-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-meta {
    text-align: left;
}

.tech-name {
    font-size: 1.25rem;
    font-weight: 800;
    /* Bold Contrast */
    color: var(--primary-blue);
    margin: 0;
}

.tech-role {
    font-size: 0.75rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

/* Swiper Cards Effect Specific Tweaks */
.swiper-slide-shadow {
    background: rgba(232, 90, 60, 0.1) !important;
    /* Brand Orange Glow */
}

/* Responsive Stack */
@media (max-width: 1200px) {
    .stack-layout {
        gap: 50px;
    }

    .stack-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .stack-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stack-info {
        max-width: 100%;
        order: 2;
        text-align: center;
    }

    .stack-visual {
        order: 1;
        margin-bottom: 80px;
    }

    .stack-swiper {
        width: 100%;
        max-width: 400px;
        height: 480px;
        /* Compact height for mobile */
        margin: 0 auto;
    }

    .stack-controls {
        justify-content: center;
    }

    .stack-description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Oasis */
@media (max-width: 1200px) {
    .oasis-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .testimonials-precision-section {
        padding: 100px 0;
    }

    .testimonials-precision-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .precision-sticky-box {
        position: relative;
        top: 0;
    }

    .precision-title {
        font-size: 3.2rem;
    }

    .precision-card {
        padding: 50px 40px;
    }
}

/* ======================================
   Blog Section (Clean Luxury)
   ====================================== */
.blog-section {
    padding: var(--section-padding);
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

/* Texture Pattern Overlay */
.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 95, 122, 0.15);
    border-color: rgba(232, 90, 60, 0.2);
}

.blog-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

/* Category Tag */
.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(232, 90, 60, 0.3);
    z-index: 2;
    white-space: nowrap;
    width: max-content;
}

/* Home Page specific widening */
.home .blog-category {
    padding: 5px 1px;
    min-width: 140px;
    text-align: center;
    left: auto;
    right: 0;
    top: 0;
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    align-items: center;
}

.blog-meta i {
    color: var(--accent-orange);
    margin-right: 6px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-blue);
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a:hover {
    color: var(--accent-orange);
}

.blog-excerpt {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-link:hover {
    color: var(--accent-orange);
}

.blog-link:hover i {
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-content {
        padding: 25px 20px;
    }
}

/* ======================================
   Flush Full-Width Orange CTA Section
   ====================================== */
.cta-full-orange {
    position: relative;
    padding: 40px 0;
    /* Reduced padding for a more delicate look */
    background: var(--accent-orange);
    overflow: hidden;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.cta-full-content {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
    max-width: 900px;
    margin: 0 auto;
}

.cta-full-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    /* Reduced title size for a more delicate look */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -0.5px;
}

.cta-full-description {
    font-size: 1rem;
    /* Reduced description size */
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--white);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Elegant Large Button below description */
.btn-full-white {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    /* Reduced button size */
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--white);
    color: var(--accent-orange);
    border-radius: var(--radius-pill);
    font-weight: 400;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-full-white:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: var(--black);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .cta-full-orange {
        padding: 80px 0 0;
    }

    .cta-full-content {
        padding-bottom: 80px;
    }
}

/* ======================================
   Special Offer Section
   ====================================== */
.offer-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.offer-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.offer-tag {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.offer-title {
    color: var(--white);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 30px;
    line-height: 1.3;
}

.offer-price {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    color: var(--white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.offer-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.offer-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

.offer-feature i {
    color: var(--accent-orange);
    font-size: 1.2rem;
}

/* ======================================
   Footer (Clean Luxury)
   ====================================== */
.footer {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

/* Footer Background Texture */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px, 60px 100%;
    opacity: 0.2;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(232, 90, 60, 0.3);
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 0;
}

.footer-links li {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--accent-orange);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--white);
    line-height: 1.6;
}

.contact-info i {
    color: var(--accent-orange);
    font-size: 1.1rem;
    margin-top: 4px;
}

/* Newsletter Styles */
.newsletter-desc {
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.newsletter-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(232, 90, 60, 0.2);
}

.newsletter-input-group input,
.newsletter-input-group input:focus,
.newsletter-input-group input:active {
    background: transparent !important;
    border: none !important;
    padding: 12px 20px;
    color: var(--white) !important;
    width: 100%;
    outline: none;
    box-shadow: none !important;
}

/* Fix for Chrome/Edge autofill background */
.newsletter-input-group input:-webkit-autofill,
.newsletter-input-group input:-webkit-autofill:hover,
.newsletter-input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--white) !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.newsletter-input-group input::placeholder {
    color: var(--white);
}

.newsletter-input-group button {
    background: var(--accent-orange);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-input-group button i {
    transform: translateY(1px);
    /* Optical centering for fa-paper-plane */
}

.newsletter-input-group button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(232, 90, 60, 0.4);
}

/* Contact Form 7 Fixes */
.newsletter-form-cf7 .wpcf7-form {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
}

.newsletter-form-cf7 .wpcf7-form:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(232, 90, 60, 0.2);
}

.newsletter-form-cf7 input[type="email"],
.newsletter-form-cf7 input[type="email"]:focus,
.newsletter-form-cf7 input[type="email"]:active {
    background: transparent !important;
    border: none !important;
    padding: 10px 20px !important;
    color: var(--white) !important;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
}

.newsletter-form-cf7 input[type="email"]:-webkit-autofill,
.newsletter-form-cf7 input[type="email"]:-webkit-autofill:hover,
.newsletter-form-cf7 input[type="email"]:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--white) !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.newsletter-form-cf7 input[type="submit"] {
    background: var(--accent-orange) !important;
    border: none !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    color: var(--white) !important;
    cursor: pointer;
    font-size: 0 !important;
    /* Hide text */
    position: relative;
    padding: 0 !important;
    flex-shrink: 0;
}

.newsletter-form-cf7 .wpcf7-submit::after {
    content: '\f1d8';
    /* fa-paper-plane */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.newsletter-form-cf7 .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    margin: 0 !important;
}

.newsletter-form-cf7 .wpcf7-response-output {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 10px 0 0 0 !important;
    font-size: 0.8rem;
    padding: 5px 15px !important;
    border-radius: var(--radius-md) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    border: none !important;
}

.newsletter-input-group .wpcf7 {
    flex: 1;
}

.newsletter-input-group form {
    display: flex;
    width: 100%;
    align-items: center;
}

.newsletter-input-group .wpcf7-form-control-wrap {
    flex: 1;
}

.newsletter-input-group .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: 60px;
    margin: 0 !important;
    transform: translateY(-50%);
}

.newsletter-input-group .wpcf7-response-output {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 10px 0 0 0 !important;
    font-size: 0.8rem;
    padding: 5px 15px !important;
    border-radius: var(--radius-md) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--white);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-bottom p {
    color: var(--white);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: var(--white);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--accent-orange);
}

/* ======================================
   Back to Top Button
   ====================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: var(--radius-full);
    text-align: center;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1) translateY(-5px);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-orange);
    transform: translateY(-5px);
}

/* ======================================
   Page-Specific Styles
   ====================================== */

/* Page Header Banner */
.page-header {
    position: relative;
    padding: 35px 0 25px;
    background: linear-gradient(135deg, #134B5F 0%, #1A5F7A 50%, #0F3D4D 100%);
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 25%, rgba(232, 90, 60, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(26, 130, 166, 0.25) 0%, transparent 45%);
    filter: blur(50px);
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
}

.page-breadcrumb a {
    color: var(--white);
    transition: var(--transition-normal);
}

.page-breadcrumb a:hover {
    color: var(--white);
}

.page-breadcrumb span {
    color: var(--accent-orange);
}

/* ======================================
   Responsive Design
   ====================================== */
@media (max-width: 1200px) {
    .hero-content {
        gap: 30px;
    }

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

    .portfolio-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        padding: 40px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
        z-index: 1001;
        overflow: hidden;
    }

    .nav-menu.active {
        right: 0;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-actions .btn {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
        --container-padding: 0 24px;
    }

    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content {
        min-height: auto;
        padding: 20px 0;
    }

    .hero-curve {
        clip-path: ellipse(120% 100% at 50% 0%);
        /* Better curve visibility for iPad */
    }

    .hero-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }

    /* Fix partners/clients section visibility */
    .clients {
        padding: 60px 0;
    }

    .clients-track {
        gap: 60px;
    }

    .client-logo {
        width: 140px;
        height: 80px;
        opacity: 0.6;
        /* Higher visible baseline for mobile */
    }

    .client-logo img {
        max-width: 100px;
        max-height: 40px;
    }

    .floating-element {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }

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

    .cta-curve {
        clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0% 100%);
    }
}

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

    .about-image-decoration {
        display: none;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .testimonial-card {
        padding: 25px;
    }

    .testimonial-author {
        flex-wrap: wrap;
    }

    .testimonial-rating {
        width: 100%;
        margin-top: 10px;
    }
}

/* ======================================
   Utility Classes
   ====================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 10px !important;
}

.mb-2 {
    margin-bottom: 20px !important;
}

.mb-3 {
    margin-bottom: 30px !important;
}

.mb-4 {
    margin-bottom: 40px !important;
}

.mb-5 {
    margin-bottom: 50px !important;
}

/* ======================================
   Choose Us Block
   ====================================== */
/* ======================================
   Choose Us Block (Split Layout)
   ====================================== */
.choose-us {
    padding: var(--section-padding);
    background: var(--off-white);
}

.choose-container {
    display: flex;
    gap: 80px;
    /* Space between Header and List */
    align-items: flex-start;
}

/* Left Side: Sticky Header */
.choose-header-side {
    flex: 0 0 35%;
    /* Takes 35% of width */
    position: sticky;
    top: 120px;
    /* Sticks below header */
    padding-right: 20px;
}

.choose-header-side .section-tag {
    margin-bottom: 20px;
    display: inline-block;
}

.choose-header-side .section-title {
    font-size: 2.75rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* ... previous styles ... */

.choose-header-side .section-subtitle {
    margin: 0;
    max-width: 100%;
    text-align: left;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* Digital Wave Animation */
.tech-waves {
    display: flex;
    gap: 8px;
    /* Highlighting spacing */
    height: 60px;
    /* Increased height */
    align-items: center;
    margin-top: 10px;
}

.tech-waves span {
    width: 10px;
    /* Thicker bars */
    height: 100%;
    background: var(--accent-orange);
    border-radius: 5px;
    animation: wave 1.2s ease-in-out infinite;
    opacity: 0.8;
}

.tech-waves span:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
    background: var(--primary-blue);
}

.tech-waves span:nth-child(2) {
    height: 70%;
    animation-delay: 0.1s;
}

.tech-waves span:nth-child(3) {
    height: 100%;
    animation-delay: 0.2s;
    background: var(--primary-blue);
}

.tech-waves span:nth-child(4) {
    height: 60%;
    animation-delay: 0.3s;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

/* Right Side: Items List */
.choose-items-side {
    /* ... rest ... */
    flex: 1;
    /* Takes remaining space */
}

.choose-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Tighter vertical spacing */
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.choose-grid::before {
    display: none;
    /* No line needed */
}

/* Item Card */
.choose-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 35px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: var(--transition-normal);
}

.choose-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 90, 60, 0.1);
}

/* Icon */
.choose-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(232, 90, 60, 0.1);
    color: var(--accent-orange);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0;
    box-shadow: none;
    border: none;
    grid-column: auto;
}

.choose-item:hover .choose-icon {
    background: var(--accent-orange);
    color: var(--white);
    transform: none;
    box-shadow: var(--shadow-orange);
}

/* Content */
.choose-content {
    flex: 1;
    width: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.choose-item:hover .choose-content {
    transform: none;
    box-shadow: none;
    border: none;
}

.choose-content::before {
    display: none;
    /* No arrows */
}

.choose-item:nth-child(odd),
.choose-item:nth-child(even),
.choose-item:nth-child(odd) .choose-content,
.choose-item:nth-child(even) .choose-content {
    flex-direction: row;
    text-align: left;
    margin: 0;
}

/* RTL Support */
html[dir="rtl"] .choose-item:nth-child(odd),
html[dir="rtl"] .choose-item:nth-child(even),
html[dir="rtl"] .choose-item:nth-child(odd) .choose-content,
html[dir="rtl"] .choose-item:nth-child(even) .choose-content {
    text-align: right;
}

.choose-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.choose-desc {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .choose-container {
        flex-direction: column;
        gap: 50px;
    }

    .choose-header-side {
        position: static;
        width: 100%;
        text-align: center;
        padding-right: 0;
    }

    .choose-header-side .section-subtitle {
        text-align: center;
        margin: 0 auto;
    }

    .choose-item {
        padding: 30px;
    }
}

@media (max-width: 576px) {

    .choose-item,
    .choose-item:nth-child(even) {
        flex-direction: column;
        /* Stack on very small screens */
        align-items: center;
        text-align: center;
    }

    .choose-icon {
        margin-bottom: 15px;
    }
}



/* ======================================
   Offer Block - High Fidelity
   ====================================== */
.offer-section {
    position: relative;
    padding: 100px 0;
    color: var(--white);
    overflow: hidden;
    text-align: center;


}

.offer-price {
    position: absolute;
    top: -20px;
    right: 30px;
    background: var(--white);
    color: var(--accent-orange);
    font-size: 2.5rem;
    font-weight: 800;
    padding: 20px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: rotate(5deg);
    z-index: 5;
}

.offer-content {
    position: relative;
    z-index: 2;
}

.offer-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.offer-title {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.offer-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.offer-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* ======================================
   Pricing Section
   ====================================== */
.pricing-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid var(--light-gray);
}

.pricing-featured {
    transform: scale(1.05);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.75rem;
    border-radius: var(--radius-pill);
}

.pricing-header h3 {
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 20px;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 800;
}

.pricing-features {
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.pricing-features .disabled {
    color: var(--medium-gray);
    text-decoration: line-through;
}

/* ======================================
   Team Section
   ====================================== */
.team-section {
    padding: var(--section-padding);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.team-image img {
    transition: var(--transition-slow);
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: var(--transition-normal);
}

.team-card:hover .team-social {
    bottom: 0;
}

/* ======================================
   Mission Vision
   ====================================== */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.mv-card {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

/* ======================================
   Responsive Additions
   ====================================== */
@media (max-width: 992px) {

    .pricing-grid,
    .choose-grid,
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ======================================
   Process Section (Steps)
   ====================================== */
.process-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--accent-orange);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--accent-orange);
}

.process-content h4 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* ======================================
   Stats Section
   ====================================== */
.stats-section {
    padding: 80px 0;
    background: var(--primary-gradient);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======================================
   Contact Page Addition
   ====================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: var(--section-padding);
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.contact-form {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

.reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    /* Ensure on top of image */
    opacity: 0;
    transition: var(--transition-normal);
}

.reel-item:hover .reel-video {
    opacity: 1;
}

.reel-item:hover>img {
    opacity: 0;
}

/* ======================================
   Premium Video Block Refinements
   ====================================== */
.video-section {
    padding-top: 30px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.video-section-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-blue-light) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.video-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 48, 73, 0.15);
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    border: 8px solid var(--white);
}

.video-thumbnail {
    width: 100%;
    height: 500px;
    display: block;
    transition: var(--transition-slow);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 95, 122, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.play-button {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
    animation: videoPulse 2s infinite;
    cursor: pointer;
}

.play-button i {
    margin-left: 5px;
    /* Visual center adjustment */
}

.video-container:hover .video-thumbnail {
    transform: scale(1.03);
}

.video-container:hover .video-overlay {
    background: rgba(26, 95, 122, 0.4);
}

.video-container:hover .play-button {
    transform: scale(1.1);
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 30px var(--accent-orange);
}

@keyframes videoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* ======================================
   Premium Reels Block Refinements
   ====================================== */
/* ======================================
   Premium Reels Block Refinements
   ====================================== */
.reels-section {
    padding: var(--section-padding);
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.reels-section .section-title {
    color: var(--primary-blue);
}

.reels-section .section-subtitle {
    color: var(--text-muted);
}

.reels-swiper {
    padding: 20px 0 60px;
    z-index: 1;
}

.reel-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 3px solid #ffffff;
    transform: scale(0.9);
    /* Initial smaller size */
    z-index: 1;
}

.reel-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reel-item:hover::after {
    opacity: 1;
}

.reel-item:hover {
    transform: translateY(-10px) scale(1.05);
    /* Scales up to slightly larger than original */
    box-shadow: 0 30px 60px rgba(0, 48, 73, 0.2);
    border-color: #ffffff;
    z-index: 10;
    /* Ensure it stays on top while scaled */
}

.reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: all 0.6s ease;
    z-index: 1;
}

.reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reel-item:hover .reel-video {
    opacity: 1;
}

.reel-item:hover img {
    opacity: 0.3;
    transform: scale(1.05);
}

.reel-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reel-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.reel-item:hover .reel-play-icon {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.5);
}

.reel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px 20px;
    z-index: 10;
    pointer-events: none;
}

.reel-category {
    display: inline-block;
    color: var(--accent-orange);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.4s ease;
}

.reel-item:hover .reel-category {
    opacity: 1;
    transform: translateY(0);
}

.reel-title {
    color: var(--primary-blue);
    /* High contrast on white */
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.4s ease 0.1s;
}

.reel-item:hover .reel-title {
    opacity: 1;
    transform: translateY(0);
}

.reel-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(0, 48, 73, 0.1);
    border-radius: 1px;
    margin-top: 10px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reel-item:hover .reel-progress-bar {
    opacity: 1;
}

.reel-progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent-orange);
}

.reel-item:hover .reel-progress-bar span {
    animation: reelProgress 5s linear infinite;
}

@keyframes reelProgress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.reel-item:hover .reel-play-icon {
    opacity: 0;
    visibility: hidden;
}

/* Bottom Controls Bar */
.reels-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.reels-nav-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--primary-blue);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.reels-nav-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
    transform: scale(1.08);
    box-shadow: var(--shadow-orange);
}

/* Disabled state */
.reels-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* RTL - flip chevrons */
html[dir="rtl"] .reels-nav-btn .fa-chevron-left::before  { content: "\f054"; }
html[dir="rtl"] .reels-nav-btn .fa-chevron-right::before { content: "\f053"; }

/* Pagination inside controls bar */
.reels-pagination {
    position: static !important;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    width: auto !important;
    margin: 0 !important;
}

.reels-section .swiper-pagination-bullet {
    background: var(--light-gray);
    width: 10px;
    height: 10px;
    opacity: 1;
    transition: all 0.25s ease;
    margin: 0 !important;
}

.reels-section .swiper-pagination-bullet-active {
    background: var(--accent-orange);
    width: 28px;
    border-radius: 5px;
}

/* ======================================
   Offer Section (Clean Luxury)
   ====================================== */
/* ======================================
   Offer Section (Split Layout - Enhanced)
   ====================================== */
.offer-section {
    padding: var(--section-padding);
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

/* Background Texture */
.offer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* Decor Container */
.offer-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Animated Orbs */
.offer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 10s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-blue-light) 0%, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232, 90, 60, 0.25) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Tech Grid Overlay */
.offer-grid-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--white) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.offer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Column: Content */
.offer-content-col {
    padding-right: 20px;
}

.offer-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: rgba(232, 90, 60, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(232, 90, 60, 0.3);
    box-shadow: 0 0 15px rgba(232, 90, 60, 0.1);
}

.offer-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.offer-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.offer-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.offer-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: rgba(232, 90, 60, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(232, 90, 60, 0.2);
    border: 1px solid rgba(232, 90, 60, 0.2);
}

.feature-text {
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
}

/* Right Column: Pricing Card */
.offer-card {
    position: relative;
    max-width: 450px;
    margin-left: auto;
}

.card-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.offer-card:hover .card-content {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Top Glow Line */
.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    box-shadow: 0 0 20px var(--accent-orange);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 10px;
}

.card-price {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    /* Gradient Text */
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, var(--accent-orange-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    margin-bottom: 5px;
}

.card-body {
    text-align: center;
}

.card-desc {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(232, 90, 60, 0.1) 0%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 6s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.btn-block {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    /* Pulse Animation */
    animation: pulse-orange 2s infinite;
    box-shadow: 0 10px 25px rgba(232, 90, 60, 0.4);
}

.btn-block:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(232, 90, 60, 0.6);
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 90, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(232, 90, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 90, 60, 0);
    }
}

.card-note {
    font-size: 0.85rem;
    color: var(--white);
    font-style: italic;
}

/* Responsive */
@media (max-width: 991px) {
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .offer-content-col {
        padding-right: 0;
    }

    .offer-features {
        grid-template-columns: 1fr;
        /* Stack features on mobile */
        justify-items: center;
        /* Center items if text centered */
        text-align: left;
        /* Keep feature text left-aligned for readability */
        align-items: center;
        /* Center items on mobile */
    }

    .offer-feature-item {
        width: fit-content;
        /* Center the unit, keep internal left alignment */
    }

    .offer-card {
        margin: 0 auto;
    }
}

/* ======================================
   Testimonials (Infinity Stack - Enhanced)
   ====================================== */
.testimonials-stack-section {

    background: var(--off-white);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Atmospheric Glow */
.testimonials-stack-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(26, 95, 122, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.testimonials-stack-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(232, 90, 60, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.stack-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.stack-info {
    position: relative;
    z-index: 2;
}

.stack-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 60px;
    opacity: 0.9;
}

.stack-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 2px;
    background: var(--accent-orange);
    box-shadow: 0 0 10px rgba(232, 90, 60, 0.4);
}

.stack-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 35px;
    color: var(--primary-blue);
    font-weight: 600;
}



.stack-description {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 50px;
    max-width: 480px;
    line-height: 1.8;
}

.stack-controls {
    display: flex;
    gap: 20px;
}

.stack-nav {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 1px solid rgba(26, 95, 122, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--white);
    position: static;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.stack-nav:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(26, 95, 122, 0.25);
}

.stack-nav::after {
    display: none;
}

/* Stack Visual & Card Loop */
.stack-visual {
    position: relative;
    padding: 30px;
}

.stack-swiper {
    padding: 30px;
    overflow: visible;
}

.tech-card {
    background: var(--white);
    padding: 50px 45px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(26, 95, 122, 0.06), 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    height: 100%;
}

/* Premium Top Border Accent */
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 45px;
    right: 45px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 0 0 10px 10px;
    opacity: 0.8;
}

.tech-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 90px rgba(26, 95, 122, 0.12), 0 10px 30px rgba(0, 0, 0, 0.04);
}

.tech-quote {
    font-size: 6rem;
    line-height: 0.8;
    font-family: 'Times New Roman', serif;
    color: var(--light-gray);
    /* Lighter for elegance */
    opacity: 0.5;
    position: absolute;
    top: 40px;
    left: 35px;
    z-index: 0;
}

.tech-text {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 45px;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.tech-author {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
    position: relative;
    z-index: 2;
}

.tech-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Stronger avatar shadow */
}

.tech-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-gray) 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 50%;
}

.tech-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-icon {
    color: #3b82f6;
    /* Verified Blue */
    font-size: 0.9rem;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.tech-role {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .stack-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .stack-tag {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 20px;
        text-align: center;
    }

    .stack-info {
        text-align: center;
    }

    .stack-description {
        margin-left: auto;
        margin-right: auto;
    }

    .stack-controls {
        justify-content: center;
    }

    .tech-author {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tech-meta {
        text-align: center;
    }

    .stack-tag::before {
        display: none;
    }

    .stack-title {
        font-size: 2.5rem;
    }

    .stack-description {
        margin: 0 auto 40px;
    }

    .stack-controls {
        justify-content: center;
        margin-bottom: 40px;
    }

    .tech-card {
        padding: 40px 30px;
        margin: 10px;
    }

    .tech-quote {
        top: 20px;
        left: 20px;
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .stack-visual {
        padding: 10px;
    }

    .stack-swiper {
        padding: 10px;
    }

    .tech-card {
        padding: 30px 20px;
    }

    .tech-quote {
        font-size: 4rem;
        top: 15px;
        left: 15px;
    }

    .tech-text {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}



/* ======================================
   About Section
   ====================================== */
.about {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-image-decoration {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: var(--accent-orange);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

.about-content .section-tag {
    margin-bottom: 20px;
}

.about-content .section-title {
    margin-bottom: 30px;
}

.about-content .section-description {
    margin-bottom: 40px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(232, 90, 60, 0.1);
    color: var(--accent-orange);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-image {
        order: -1;
        /* Image first on mobile */
    }

    .features-list {
        text-align: left;
    }
}

/* ======================================
   AOS Fail-Safe & Mobile Stability
   ====================================== */
/* Prevent items from staying hidden if AOS fails to initialize */
body:not(.aos-init) [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force hardware acceleration for AOS elements on mobile */
@media (max-width: 991px) {
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
        /* Disable animations if they cause disappearing issues */
    }

    /* Disable expensive backdrop filters on mobile for smoother scroll */
    .service-content,
    .service-card,
    .portfolio-overlay,
    .tech-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* ======================================
   Offer Section (Premium Redesign)
   ====================================== */
.offer-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.offer-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.offer-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.offer-orb.orb-1 {
    top: -250px;
    right: -100px;
    background: var(--accent-orange);
}

.offer-orb.orb-2 {
    bottom: -250px;
    left: -100px;
    background: var(--white);
}

.offer-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
}

.offer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.offer-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(232, 90, 60, 0.15);
    color: var(--accent-orange);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(232, 90, 60, 0.3);
}

.offer-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
}

.offer-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.offer-feature-item .feature-icon {
    color: var(--accent-orange);
}

/* Offer Card */
.offer-card {
    position: relative;
    z-index: 2;
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--accent-orange);
    filter: blur(100px);
    opacity: 0.1;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 10px;
}

.card-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 30px;
}

.card-desc {
    color: var(--white);
    margin-bottom: 30px;
}

.card-note {
    font-size: 0.85rem;
    color: var(--white);
    margin-top: 20px;
    text-align: center;
}

/* ======================================
   Success Stories (Reels) Block
   ====================================== */
.reels-section {
    padding: 100px 0;
    background: var(--white);
}

.reels-swiper {
    padding: 20px 0 50px;
}

.reel-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    cursor: pointer;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

/* .reel-play-popup - Enhanced play button style for popup trigger */
.reel-play-popup {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 3;
}

.reel-play-popup i {
    font-size: 2rem;
    color: #fff;
    background: var(--accent-orange);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(247, 92, 64, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-left: 4px; /* optical center for play icon */
}

.reel-item:hover .reel-play-popup {
    opacity: 1;
}

.reel-item:hover .reel-play-popup i {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(247, 92, 64, 0.65);
}

/* ======================================
   Reels Video Popup Modal
   ====================================== */
.reels-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.reels-modal.is-open {
    pointer-events: all;
    opacity: 1;
}

/* Glassmorphism Backdrop */
.reels-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modal Container (mobile phone silhouette) */
.reels-modal__container {
    position: relative;
    z-index: 1;
    width: min(92vw, 400px);
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08),
        0 40px 120px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(247, 92, 64, 0.15);
    transform: scale(0.88) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reels-modal.is-open .reels-modal__container {
    transform: scale(1) translateY(0);
}

/* Video Wrap fills the container */
.reels-modal__video-wrap {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reels-modal__video-wrap video,
.reels-modal__video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Close Button */
.reels-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.reels-modal__close:hover {
    background: var(--accent-orange);
    border-color: transparent;
    transform: scale(1.1) rotate(90deg);
}

/* RTL support */
html[dir="rtl"] .reels-modal__close {
    right: auto;
    left: 14px;
}

/* Landscape / small screens */
@media (max-width: 480px) {
    .reels-modal__container {
        width: min(96vw, 340px);
        border-radius: 20px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .reels-modal__container {
        width: auto;
        height: 90vh;
        aspect-ratio: 9 / 16;
    }
}



/* Responsive Fixes */
@media (max-width: 991px) {
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .offer-tag {
        margin: 0 auto 20px;
    }

    .offer-title {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        margin-bottom: 25px;
    }

    .offer-feature-item {
        justify-content: center;
        font-size: 1rem;
        gap: 10px;
        margin-bottom: 12px;
    }
}

/* ======================================
   Blog Section (Premium Home Design)
   ====================================== */
.blog-section {
    padding: var(--section-padding);
    background-color: var(--off-white);
    position: relative;
    border-top: 1px solid var(--light-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

html[dir='rtl'] .blog-overlay {
    left: auto;
    right: 20px;
}

.blog-category {
    background: var(--accent-orange);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(26, 95, 122, 0.3);
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin-bottom: 15px;
}

.meta-date {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--black);
    flex-grow: 1;
}

.blog-title a:hover {
    color: var(--primary-blue);
}

.blog-footer {
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

.blog-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--accent-orange);
    font-size: 0.95rem;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

html[dir='rtl'] .blog-link:hover i {
    transform: translateX(-10px);
}

.blog-all {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 220px;
    }
}

.single-content h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    padding-bottom: 20px;
    padding-top: 20px;
}

.wp-post-image {
    width: 100%;

}

/* ======================================
   Single Post Details Styles
   ====================================== */
.single-post-container {
    max-width: none;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.single-featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 50px;
}

.single-content p {
    margin-bottom: 25px;
}

.single-content h2,
.single-content h3 {
    color: var(--primary-blue);
    margin: 40px 0 20px;
}

.single-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
    gap: 20px;
}

.single-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.single-tags strong {
    color: var(--black);
    font-weight: 700;
}

.single-tag {
    display: inline-block;
    background: rgba(26, 95, 122, 0.08);
    /* var(--primary-blue) at low opacity */
    color: var(--primary-blue);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-normal);
    border: 1px solid rgba(26, 95, 122, 0.15);
}

.single-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.single-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.single-share strong {
    color: var(--black);
    font-weight: 700;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    color: var(--dark-gray);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    font-size: 1.1rem;
    border: 1px solid var(--light-gray);
}

.share-btn:hover {
    transform: translateY(-5px);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook:hover {
    background: #3b5998;
    border-color: #3b5998;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* Post Navigation */
.single-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--off-white);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    transition: var(--transition-normal);
}

.nav-btn:hover {
    background: var(--off-white);
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.nav-btn span {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
}

.nav-btn i {
    color: var(--accent-orange);
    font-size: 1.2rem;
}

.nav-btn.next {
    justify-content: flex-end;
    text-align: right;
}

@media (max-width: 768px) {
    .single-post-container {
        padding: 30px 20px;
        margin-top: -50px;
    }

    .single-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-navigation {
        grid-template-columns: 1fr;
    }
}

/* ======================================
   WeOryx - Page Specific Styles
   ====================================== */

/* ======================================
   About Page Styles
   ====================================== */
.about-story-section {
    padding: var(--section-padding);
    background: var(--white);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-story-image-wrapper {
    position: relative;
}

.about-story-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-story-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-orange);
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.badge-text {
    font-size: 0.85rem;
    display: block;
}

.about-story-text {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-story-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.story-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
    font-weight: 500;
}

.story-feature i {
    color: var(--accent-orange);
}

.mission-vision-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mv-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

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

.mv-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 2rem;
    margin: 0 auto 25px;
}

.mv-card h3 {
    margin-bottom: 15px;
    color: var(--black);
}

.mv-card p {
    color: var(--gray);
    line-height: 1.7;
}

.why-choose-section {
    padding: var(--section-padding);
    background: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.why-card {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.why-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
}

.why-content h4 {
    margin-bottom: 10px;
    color: var(--black);
}

.why-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

.team-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

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

.team-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.team-card:hover .team-social {
    transform: translateY(0);
}

.team-social a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.team-social a:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h4 {
    margin-bottom: 5px;
    color: var(--black);
}

.team-info span {
    color: var(--accent-orange);
    font-size: 0.9rem;
}

/* ======================================
   Services Page Styles
   ====================================== */
.services-intro-section {
    padding: 80px 0 50px;
    background: var(--white);
}

.services-main-section {
    padding: 0 0 100px;
    background: var(--white);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--light-gray);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-reverse {
    direction: rtl;
}

.service-detail-reverse>* {
    direction: ltr;
}

.service-detail-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.service-detail-content h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--black);
}

.service-detail-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-features {
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--dark-gray);
}

.service-features i {
    color: var(--accent-orange);
}

.service-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.process-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--accent-orange);
}

.process-step:last-child::after {
    display: none;
}

.process-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin: 0 auto 20px;
}

.process-content h4 {
    margin-bottom: 10px;
    color: var(--black);
}

.process-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ======================================
   Portfolio Page Styles V2 (Minimalist Luxury)
   ====================================== */
.portfolio-page-v2 {
    background-color: var(--white);
    color: var(--black);
}

.portfolio-hero-minimal {
    padding: 160px 0 100px;
    background: linear-gradient(to bottom, #fcfdfe, #ffffff);
    text-align: center;
}

.minimal-tag {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-orange);
    margin-bottom: 25px;
}

.hero-title-v2 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-desc-v2 {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 700px;
    line-height: 1.7;
    margin: 0 auto;
}

/* Portfolio Filter V2 - Static & Refined */
.portfolio-filter-v2 {
    background: transparent;

    margin-bottom: 40px;
}

.filter-list-v2 {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.filter-link-v2 {
    padding: 14px 28px;
    text-decoration: none !important;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 100px;
    border: 1px solid rgba(26, 95, 122, 0.1);
    background: var(--white);
    display: inline-block;
}

.filter-link-v2 .link-text {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-link-v2:hover {
    color: var(--primary-blue);
    background: rgba(26, 95, 122, 0.05);
    border-color: var(--primary-blue);
}

/* --- LUXURY PORTFOLIO ENHANCEMENTS --- */

.portfolio-page-v2 {
    position: relative;
    overflow: hidden;
    background: #fbfbfc;
    padding-bottom: 150px;
}

/* Dynamic Aurora Background */
.portfolio-bg-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: blur(100px);
    opacity: 0.6;
}

.aurora-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    mix-blend-mode: multiply;
    animation: drift 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.aurora-1 {
    background: rgba(26, 95, 122, 0.15);
    top: -10%;
    left: -10%;
}

.aurora-2 {
    background: rgba(255, 153, 0, 0.08);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.aurora-3 {
    background: rgba(26, 95, 122, 0.1);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, 50px) scale(1.2);
    }

    66% {
        transform: translate(-50px, 150px) scale(0.9);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

.portfolio-filter-v2 {
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    padding-top: 80px;
}

.filter-link-v2.is-active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.25);
}

.portfolio-tab-content-wrapper {
    position: relative;
    z-index: 5;
}

/* Visibility Control */
.portfolio-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.portfolio-tab-content.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Group Headers */
.service-portfolio-group {
    margin-bottom: 120px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.header-icon-v2 {
    width: 70px;
    height: 70px;
    background: var(--white);
    border: 1px solid rgba(26, 95, 122, 0.1);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-blue);
    box-shadow: 0 15px 35px rgba(26, 95, 122, 0.05);
    position: relative;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-icon-v2::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid var(--primary-blue);
    border-radius: 26px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-portfolio-group:hover .header-icon-v2 {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 95, 122, 0.15);
}

.service-portfolio-group:hover .header-icon-v2::after {
    opacity: 0.1;
    transform: scale(1);
}

.header-content-v2 {
    flex: 1;
}

.group-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--primary-blue);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.group-desc {
    color: var(--gray);
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
    border-left: 3px solid var(--accent-orange);
    padding-left: 20px;
}

html[dir="rtl"] .group-desc {
    border-left: none;
    border-right: 3px solid var(--accent-orange);
    padding-left: 0;
    padding-right: 20px;
}

.projects-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Staggered Entrance Animation */
.portfolio-tab-content.is-active .project-card-v2 {
    animation: revealCard 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes revealCard {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

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

/* Apply staggered delays (up to 10 items) */
.portfolio-tab-content.is-active .project-card-v2:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-tab-content.is-active .project-card-v2:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-tab-content.is-active .project-card-v2:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-tab-content.is-active .project-card-v2:nth-child(4) {
    animation-delay: 0.4s;
}

.portfolio-tab-content.is-active .project-card-v2:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-tab-content.is-active .project-card-v2:nth-child(6) {
    animation-delay: 0.6s;
}

.portfolio-tab-content.is-active .project-card-v2:nth-child(7) {
    animation-delay: 0.7s;
}

.portfolio-tab-content.is-active .project-card-v2:nth-child(8) {
    animation-delay: 0.8s;
}

.project-card-v2 {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--white);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(26, 95, 122, 0.05);
    perspective: 1000px;
    /* Enable 3D */
    transform-style: preserve-3d;
}

.project-card-v2:hover {
    transform: translateY(-20px) rotateX(4deg) rotateY(-2deg);
    box-shadow:
        0 40px 100px rgba(26, 95, 122, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(26, 95, 122, 0.2);
}

/* Shine Sweep Effect */
.project-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.8s;
    z-index: 2;
}

.project-card-v2:hover::before {
    left: 150%;
}

.card-link-v2 {
    display: block;
    height: 100%;
    cursor: pointer;
}

.card-media-v2 {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f2f5;
}

.card-media-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-v2:hover .card-media-v2 img {
    transform: scale(1.1) rotate(1deg);
}

.card-overlay-v2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 95, 122, 0.95), rgba(26, 95, 122, 0.4), transparent);
    display: flex;
    align-items: flex-end;
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.project-card-v2:hover .card-overlay-v2 {
    opacity: 1;
    visibility: visible;
}

.overlay-content-v2 {
    width: 100%;
}

.overlay-cat,
.overlay-title,
.view-btn-v2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-v2:hover .overlay-cat {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.project-card-v2:hover .overlay-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.project-card-v2:hover .view-btn-v2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.overlay-cat {
    display: block;
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.overlay-title {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.view-btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.view-btn-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.4s ease;
}

.project-card-v2:hover .view-btn-v2::after {
    width: 100%;
}

.view-btn-v2 i {
    font-size: 0.8rem;
    transition: transform 0.4s ease;
}

.project-card-v2:hover .view-btn-v2 i {
    transform: translateX(10px);
}

/* Minimal Footer CTA */
.portfolio-footer-cta {
    padding: 120px 0;
    background: #0a0a0a;
    color: var(--white);
    text-align: center;
}

.cta-v2-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.cta-v2-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.cta-v2-desc {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 50px;
    line-height: 1.8;
}

.btn-luxury-v2 {
    display: inline-block;
    padding: 22px 50px;
    background: var(--white);
    color: var(--black);
    text-decoration: none !important;
    font-weight: 800;
    border-radius: 100px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-luxury-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
    background: var(--accent-orange);
    color: var(--white);
}

.empty-state-v2 {
    text-align: center;
    padding: 100px 0;
    color: var(--gray);
}

/* Responsive V2 */
@media (max-width: 991px) {
    .hero-title-v2 {
        font-size: 3rem;
    }

    .filter-list-v2 {
        justify-content: flex-start;
    }

    .projects-grid-v2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-v2-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero-minimal {
        padding: 120px 0 60px;
    }

    .group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-overlay-v2 {
        padding: 30px;
    }

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


/* ======================================
   Pricing/Offers Page Styles
   ====================================== */
.pricing-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-featured {
    background: var(--primary-gradient);
    color: var(--white);
}

.pricing-featured .pricing-header p,
.pricing-featured .pricing-features li {
    color: var(--white);
}

.pricing-featured .pricing-features li.disabled {
    color: var(--white);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: var(--white);
    padding: 8px 25px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 30px;
}

.pricing-featured .pricing-header {
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pricing-featured .pricing-header h3 {
    color: var(--white);
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--gray);
    align-self: flex-end;
    margin-bottom: 8px;
}

.pricing-featured .pricing-price .period {
    color: var(--white);
}

.pricing-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.pricing-features {
    flex: 1;
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--dark-gray);
}

.pricing-features li i {
    color: var(--accent-orange);
}

.pricing-features li.disabled {
    color: var(--medium-gray);
}

.pricing-features li.disabled i {
    color: var(--medium-gray);
}

.pricing-featured .pricing-features li i {
    color: var(--white);
}

/* ======================================
   Contact Page Styles
   ====================================== */
/* ======================================
   Contact Page
   ====================================== */
.contact-section,.service-request-section {

    background: var(--off-white);
}

.contact-grid,.service-request-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 800;
}

.contact-info>p {
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h4 {
    margin-bottom: 8px;
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-info-content p,
.contact-info-content a {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info-content a {
    transition: var(--transition-normal);
}

.contact-info-content a:hover {
    color: var(--accent-orange);
}

.contact-social {
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.contact-social h4 {
    margin-bottom: 20px;
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-social .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-social .social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    font-size: 1.1rem;
}

.contact-social .social-link:hover {
    background: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-orange);
}

/* Contact Form Wrapper */
.contact-form-wrapper ,.service-request-form-wrapper{
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.contact-form-placeholder h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-form-placeholder p {
    color: var(--gray);
}

/* Contact Form 7 Styling */
.contact-form-wrapper .wpcf7-form ,.service-request-form-wrapper .wpcf7-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-wrapper .wpcf7-form p ,.service-request-form-wrapper .wpcf7-form p{
    margin: 0;
}

.contact-form-wrapper label ,.service-request-form-wrapper label{
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper select,
.contact-form-wrapper textarea
,.service-request-form-wrapper input[type="text"]
,.service-request-form-wrapper input[type="email"]
,.service-request-form-wrapper input[type="tel"]
,.service-request-form-wrapper input[type="url"]
,.service-request-form-wrapper select
,.service-request-form-wrapper textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--off-white);
    font-family: inherit;
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper input[type="url"]:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus 
,.service-request-form-wrapper input[type="text"]:focus
,.service-request-form-wrapper input[type="email"]:focus
,.service-request-form-wrapper input[type="tel"]:focus
,.service-request-form-wrapper input[type="url"]:focus
,.service-request-form-wrapper select:focus
,.service-request-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.contact-form-wrapper textarea ,.service-request-form-wrapper textarea{
    resize: vertical;
    min-height: 150px;
}

.contact-form-wrapper input[type="submit"],
.contact-form-wrapper button[type="submit"],.service-request-form-wrapper input[type="submit"]
,.service-request-form-wrapper button[type="submit"]{
    width: 100%;
    padding: 16px 30px;
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper button[type="submit"]:hover ,.service-request-form-wrapper input[type="submit"]:hover,
.service-request-form-wrapper button[type="submit"]:hover{
    background: var(--accent-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 90, 60, 0.45);
}

/* Contact Form 7 Validation */
.contact-form-wrapper .wpcf7-not-valid-tip,.service-request-form-wrapper .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.contact-form-wrapper .wpcf7-validation-errors,
.contact-form-wrapper .wpcf7-acceptance-missing,
.service-request-form-wrapper .wpcf7-validation-errors,
.service-request-form-wrapper .wpcf7-acceptance-missing{
    border: 2px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.contact-form-wrapper .wpcf7-mail-sent-ok ,.service-request-form-wrapper .wpcf7-mail-sent-ok {
    border: 2px solid #28a745;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.contact-form-wrapper .wpcf7-spinner,.service-request-form-wrapper .wpcf7-spinner {
    margin: 0 10px;
}

/* Map Section */
.contact-map-section {
    margin-top: 0;
}

.contact-map-wrapper {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ======================================
   Page Responsive Updates
   ====================================== */
/* ======================================
   Responsive Design - Tablet & iPad
   ====================================== */
@media (max-width: 1024px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .hero-content {
        min-height: auto !important;
        padding: 20px 0 !important;
        gap: 30px;
    }

    .hero-text {
        padding-left: 0;
    }

    .page-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .contact-form-wrapper {
        padding: 40px;
    }
}

/* ======================================
   Responsive Design - Tablet
   ====================================== */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 85px 0 30px;
    }

    .about-grid,
    .contact-grid,
    .service-detail,
    .service-intro-grid {
        grid-template-columns: 1fr !important;
        gap: 50px;
    }

    .service-detail-reverse {
        direction: ltr;
    }

    .mv-grid,
    .process-grid,
    .services-grid,
    .stats-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .process-step::after {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        min-height: auto !important;
        padding: 20px 0 !important;
    }

    .hero-text {
        padding: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-main-img,
    .service-intro-image img {
        height: auto !important;
        max-height: 400px;
        object-fit: cover;
    }

    .about-image-decoration,
    .service-intro-image::after {
        display: none !important;
    }



    /* Contact page */
    .contact-info-list {
        gap: 25px;
    }

    /* Single portfolio */
    .project-info-bar {
        flex-wrap: wrap;
        gap: 20px;
    }

    .project-info-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
}

/* ======================================
   Responsive Design - Mobile & Small Tablets
   ====================================== */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-story-badge {
        right: 20px;
        bottom: -20px;
    }

    .about-story-features {
        grid-template-columns: 1fr;
    }

    .mv-grid,
    .process-grid,
    .team-grid,
    .services-grid,
    .stats-grid,
    .blog-grid,
    .blog-page-grid,
    .portfolio-page-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filter {
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }



    .page-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

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

    /* Hero section */
    .hero-content {
        gap: 30px;
    }

    .hero-text {
        padding: 0;
        text-align: center;
    }

    /* Services */
    .service-card {
        padding: 30px 20px;
    }

    /* Contact */
    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    /* Single portfolio */
    .project-info-item {
        flex: 1 1 100%;
    }

    .project-content {
        padding: 40px 20px;
    }

    .portfolio-navigation {
        margin-top: 50px;
    }

    .portfolio-navigation h5 {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand,
    .footer-links ul {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ======================================
   Responsive Design - Mobile Only
   ====================================== */
@media (max-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-curve {
        clip-path: none !important;
        background: var(--primary-gradient);
        /* Keep the color as requested (one color/gradient) */
    }

    .hero {
        padding-top: 100px;
    }

    .hero-swiper .swiper-pagination {
        bottom: 0px !important;
    }



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

    .page-breadcrumb {
        font-size: 0.85rem;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 25px 15px;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }

    .contact-info>p {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Single portfolio */
    .project-hero-media {
        height: 300px;
    }

    .project-content {
        padding: 30px 15px;
    }

    .project-content h2 {
        font-size: 1.6rem;
    }

    .project-share-wrapper {
        margin-top: 40px;
        padding-top: 30px;
    }

    /* Services */
    .service-card {
        padding: 25px 15px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Blog */
    .blog-card {
        padding: 20px 15px;
    }

    /* Portfolio grid */
    .portfolio-card {
        height: 280px;
    }
}

/* ======================================
   Responsive Design - Very Small Mobile
   ====================================== */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .contact-info h2 {
        font-size: 1.4rem;
    }

    .contact-info-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .contact-social .social-link {
        width: 45px;
        height: 45px;
    }

    .project-hero-media {
        height: 250px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* =========================================
   Services Page Styles
   ========================================= */

.services-page-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.services-list-section {
    padding: 80px 0;
    /* Reduced from 120px */
}

.service-item-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    position: relative;
}

.service-item-row:last-child {
    margin-bottom: 0;
}

/* Alternating Layout */
.service-item-row.reverse {
    flex-direction: row-reverse;
}

/* Text Content - The Glass Card Effect */
.service-content {
    flex: 1.2;
    position: relative;
    z-index: 2;
    padding: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-item-row:hover .service-content {
    background: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(26, 95, 122, 0.08);
    border-color: rgba(26, 95, 122, 0.1);
}

.service-item-row.reverse .service-content {
    margin-left: -40px;
}

.service-item-row:not(.reverse) .service-content {
    margin-right: -40px;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(26, 95, 122, 0.2);
    transition: all 0.5s ease;
}

.service-item-row:hover .service-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    background: var(--accent-orange);
    box-shadow: 0 15px 30px rgba(26, 95, 122, 0.3);
}

.service-item-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -1px;
    position: relative;
}

.service-item-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 10px;
    margin-top: 15px;
    transition: width 0.4s ease;
}

.service-item-row:hover .service-item-title::after {
    width: 100px;
}

.service-item-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 35px;
    font-weight: 400;
}

.service-item-description p:last-child {
    margin-bottom: 0;
}

/* Features List */
.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 1rem;
}

.service-features-list li i {
    color: var(--accent-orange);
    font-size: 0.8rem;
    background: rgba(232, 90, 60, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Read More Button */
.service-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(26, 95, 122, 0.15);
}

.service-read-more i {
    transition: transform 0.4s ease;
}

.service-read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(232, 90, 60, 0.25);
}

.service-read-more:hover i {
    transform: translateX(5px);
}

/* Image Side */
.service-detail-image {
    flex: 1;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-item-row:hover .service-detail-image img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1100px) {
    .service-item-row {
        gap: 40px;
    }

    .service-content {
        padding: 40px;
    }

    .service-item-row.reverse .service-content {
        margin-left: 0;
    }

    .service-item-row:not(.reverse) .service-content {
        margin-right: 0;
    }
}

@media (max-width: 991px) {
    .services-list-section {
        padding: 60px 0;
    }

    .service-item-row,
    .service-item-row.reverse {
        flex-direction: column;
        gap: 0;
        margin-bottom: 80px;
    }

    .service-content {
        width: 100%;
        margin: -60px 0 0 0 !important;
        border-radius: 30px;
        padding: 35px;
    }

    .service-detail-image {
        width: 100%;
        height: 350px;
        border-radius: 30px;
    }

    .service-item-title {
        font-size: 1.75rem;
    }

    .service-features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-item-row {
        margin-bottom: 60px;
    }

    .service-content {
        padding: 30px 20px;
    }

    .service-item-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   Single Service Page Styles
   ============================================ */
.single-service-page {
    background: #f8f9fa;
}

.service-detail-section {
    padding: 100px 0;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

.service-main-content {
    background: var(--white);
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.service-featured-image {
    margin-bottom: 40px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.entry-content p {
    margin-bottom: 25px;
}

/* Sidebar Styles */
.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 35px;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-icon-widget {
    text-align: center;
    background: var(--primary-gradient);
    color: var(--white);
}

.service-icon-widget .side-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.service-icon-widget h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-icon-widget p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-orange);
}

.side-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-services-list li {
    margin-bottom: 15px;
}

.side-services-list li:last-child {
    margin-bottom: 0;
}

.side-services-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.side-services-list a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateX(5px);
}

.side-services-list a i {
    font-size: 0.8rem;
    opacity: 0.5;
}

.side-services-list a:hover i {
    opacity: 1;
}

/* CTA Card */
.service-cta-widget {
    padding: 0;
    overflow: hidden;
    background: none;
    box-shadow: none;
}

.cta-glass-card {
    background: var(--primary-blue);
    padding: 40px;
    border-radius: 30px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.cta-glass-card p {
    margin-bottom: 25px;
    font-size: 1rem;
    opacity: 0.9;
}

.cta-icon {
    position: absolute;
    bottom: -10px;
    right: 20px;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* Responsive Service Detail */
@media (max-width: 1200px) {
    .service-detail-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 991px) {
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
        margin-top: 50px;
    }

    .service-main-content {
        padding: 30px;
    }
}


/* ======================================
   Service Request Form Section
   ====================================== */
.service-request-section {
    background-color: var(--off-white);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
}

.service-request-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.service-request-content {
    padding-right: 30px;
}

html[dir="rtl"] .service-request-content {
    padding-right: 0;
    padding-left: 30px;
}

.service-request-content .section-title {
    margin-bottom: 30px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.service-request-content .section-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 40px;
}

.service-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--accent-orange);
}

.service-request-form-wrapper {
    position: relative;
    z-index: 1;
}

.form-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(26, 95, 122, 0.1);
    border: 1px solid rgba(26, 95, 122, 0.05);
    position: relative;
}

.form-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

/* CF7 Specific Styling */
.wpcf7-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wpcf7-form .form-group {
    margin-bottom: 20px;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--black);
    transition: all 0.3s ease;
    text-align: inherit;
    /* Inherit from body/html dir */
}

html[dir="rtl"] .wpcf7-form input:not([type="submit"]),
html[dir="rtl"] .wpcf7-form textarea {
    text-align: right;
    direction: rtl;
}

/* Maintain consistency for all inputs in RTL */
html[dir="rtl"] .wpcf7-form input[type="email"],
html[dir="rtl"] .wpcf7-form input[type="tel"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .wpcf7-form input[type="email"]::placeholder,
html[dir="rtl"] .wpcf7-form input[type="tel"]::placeholder {
    direction: rtl;
    text-align: right;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    background: var(--white);
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(232, 90, 60, 0.1);
    outline: none;
}

.wpcf7-form textarea {
    height: 120px;
    resize: vertical;
}

.wpcf7-form .submit-group {
    margin-top: 30px;
}

.wpcf7-form .btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-orange);
}

/* Service Content Area */
.service-content-area {
    padding-bottom: 80px;
}

/* Responsive */
@media (max-width: 991px) {
    .service-request-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .service-request-content {
        padding-right: 0;
        padding-left: 0;
    }

    .service-features-list {
        align-items: center;
    }

    .form-card {
        padding: 40px 30px;
    }

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

/* ======================================
   Portfolio Animations
   ====================================== */
@keyframes mainReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.main-reveal {
    animation: mainReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blobFloat {

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

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.blob {
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-2 {
    animation-delay: -5s;
}

.blob-3 {
    animation-delay: -10s;
}

/* --- SINGLE PORTFOLIO REFINED DESIGN --- */
.single-portfolio-main {
    background: #fff;
    overflow: hidden;
}

.portfolio-content-section {
    padding: 80px 0 100px;
}

/* Featured Image */
.project-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Content Typography */
.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray);
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--black);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.wp-block-columns {
    margin-bottom: 2rem;
    gap: 40px;
}

.wp-block-column h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.wp-block-column h3 i {
    margin-right: 10px;
}

html[dir="rtl"] .wp-block-column h3 i {
    margin-right: 0;
    margin-left: 10px;
}

/* Sidebar Widgets */
.portfolio-sidebar {
    padding-left: 30px;
}

html[dir="rtl"] .portfolio-sidebar {
    padding-left: 0;
    padding-right: 30px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    color: var(--black);
}

.project-info-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info-list li:last-child {
    border-bottom: none;
}

.project-info-list .label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-info-list .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.project-info-list .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Share Links */
.share-links {
    display: flex;
    gap: 10px;
}

.share-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    background: rgba(26, 95, 122, 0.05);
    transition: all 0.3s ease;
}

.share-link:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: scale(1.1);
}

/* Post Navigation */
.portfolio-navigation {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-navigation a {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
}

.portfolio-navigation a:hover {
    background: rgba(26, 95, 122, 0.03);
}

.portfolio-navigation small {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 8px;
}

.portfolio-navigation h5 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: var(--black);
}

.portfolio-navigation a:hover h5 {
    color: var(--primary-blue);
}

@media (max-width: 991px) {
    .portfolio-sidebar {
        padding-left: 0;
        padding-right: 0;
        margin-top: 50px;
    }
}

/* ======================================
   Standard Page Header (Global Fix)
   ====================================== */
.page-header {
    background-color: var(--primary-blue-dark);

    color: var(--white);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 90, 60, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 1;
}


.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-orange);
    border: 1px solid rgba(232, 90, 60, 0.3);
}

.page-breadcrumb {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.page-breadcrumb a:hover {
    color: var(--accent-orange);
}

.page-breadcrumb i {
    font-size: 0.7rem;
    color: var(--white);
}

.footer ul {
    padding-right: 0;
}

/* ======================================
   Modern Portfolio Styles (Grid + Filter)
   ====================================== */

.portfolio-page-modern {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.portfolio-bg-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Page Header */
.page-header-modern {
    padding: 120px 0 60px;
    position: relative;
    z-index: 1;
}

.page-title-modern {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
    line-height: 1.1;
}

.page-subtitle-modern {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Navigation */
.portfolio-filter-container {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
    margin-top: 60px;
    /* Added spacing from header */
}

.portfolio-filter-modern {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.filter-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.3);
    /* Matches primary blue shadow */
}

/* Portfolio Grid */
.portfolio-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Portfolio Card */
.portfolio-item-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, opacity 0.4s ease;
    aspect-ratio: 4/3;
}

.portfolio-item-modern.hide {
    display: none;
}

/* Animation for showing items */
.portfolio-item-modern.show {
    animation: fadeInEnlarge 0.5s ease forwards;
}

@keyframes fadeInEnlarge {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.portfolio-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-card-inner {
    width: 100%;
    height: 100%;
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.portfolio-item-modern:hover .card-image-wrapper img {
    transform: scale(1.1);
}

/* Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 75, 95, 0.9);
    /* Darker Blue Overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 30px;
    text-align: center;
}

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

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.portfolio-item-modern:hover .overlay-content {
    transform: translateY(0);
}

.overlay-category {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.2s;
}

.portfolio-item-modern:hover .overlay-category {
    opacity: 1;
    transform: translateY(0);
}

.overlay-title {
    font-size: 1.5rem;
    color: #fff;
    margin: 5px 0 15px;
    line-height: 1.3;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.3s;
}

.portfolio-item-modern:hover .overlay-title {
    opacity: 1;
    transform: translateY(0);
}

.overlay-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-blue);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease 0.4s;
}

.portfolio-item-modern:hover .overlay-arrow {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item-modern:hover .overlay-arrow:hover {
    background: var(--accent-orange);
    color: #fff;
    transform: scale(1.1);
}

.no-projects-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ======================================
   Modern Single Portfolio Page
   ====================================== */

.single-portfolio-content {
    background: #fff;
}

.portfolio-visuals .img-fluid {
    /* Ensure images responsive but respecting container */
    width: 100%;
    height: auto;
}

.project-description-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-top: 30px;
}

.project-description-body p {
    margin-bottom: 20px;
}

/* Sidebar Details */
.portfolio-details-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.details-title {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.details-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.details-list li:last-child {
    border-bottom: none;
}

.details-list .label {
    font-weight: 600;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-list .label i {
    color: var(--accent-orange);
    font-size: 1rem;
}

.details-list .value {
    color: var(--text-muted);
    font-weight: 500;
}

.project-action .btn {
    padding: 12px 20px;
    font-weight: 600;
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.share-links a:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Project Navigation Modern */
.project-navigation-modern {
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.nav-link-modern {
    display: block;
    text-decoration: none;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link-modern:hover {
    background: #f8f9fa;
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-link-modern .nav-title {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin: 0;
    font-weight: 700;
}

.nav-link-modern:hover .nav-title {
    color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 991px) {
    .portfolio-sidebar {
        margin-top: 40px;
    }
}

/* ======================================
   Agency Single Portfolio Page
   ====================================== */

.portfolio-header-agency {
    padding: 180px 0 60px;
    background: #fff;
}

.agency-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.agency-breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

.agency-breadcrumb a:hover {
    color: var(--accent-orange);
}

.agency-breadcrumb span {
    margin: 0 10px;
    color: #ccc;
}

.agency-breadcrumb .current {
    color: var(--primary-blue);
}

.agency-title {
    color: var(--dark-blue);
    line-height: 1.1;
    margin-top: 0;
}

/* Sticky Info */
.project-description-agency {
    padding-top: 40px;
    margin-bottom: 60px;
}

/* Description Text Blocks */
.agency-text-block {
    margin-bottom: 40px;
}

.agency-text-block:last-child {
    margin-bottom: 0;
}

.agency-text-block h5 {
    font-size: 1.1rem;
    /* Larger, clearer heading */
    font-weight: 800;
    color: #000;
    /* Pitch black for hierarchy */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
    position: relative;
    padding-bottom: 15px;
}

.agency-text-block h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    /* Slightly longer underline */
    height: 3px;
    /* Thicker underline */
    background-color: var(--accent-orange);
}

.desc-content {
    font-size: 1.15rem;
    /* significantly larger for readability */
    line-height: 1.8;
    color: #333;
    /* Darker grey */
    font-weight: 400;
}

.desc-content p {
    margin-bottom: 30px;
}


.project-meta-agency {
    margin-top: 50px;
}

.project-meta-agency .meta-item {
    border: none !important;
    /* Remove bootstrap borders */
    border-bottom: 1px solid #f0f0f0 !important;
    /* Lighter cleaner separator */
    padding: 25px 0 !important;
    display: flex;
    flex-direction: column;
    /* Stacked layout */
    align-items: flex-start;
    /* Align Left (or Right in RTL) */
    justify-content: center;
}

.project-meta-agency .meta-item:first-child {
    border-top: 1px solid #f0f0f0 !important;
}

.project-meta-agency .meta-item span.text-muted {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c5a059 !important;
    /* Brand Gold */
    margin-bottom: 8px;
    /* Space between label and value */
    display: block;
    width: 100%;
}

.project-meta-agency .meta-item span.fw-bold {
    font-size: 1.1rem;
    /* Larger value */
    color: #444;
    /* Charcoal */
    font-weight: 500 !important;
    text-align: left;
    /* Default LTR */
    display: block;
    width: 100%;
    line-height: 1.2;
}

/* RTL Override for text alignment is handled automatically by 'align-items: flex-start' in RTL dir mode, 
   but we need to ensure text-align matches. */
[dir="rtl"] .project-meta-agency .meta-item span.fw-bold {
    text-align: right;
}

/* Share Links Container */
.project-meta-agency .meta-item:last-child {
    border-bottom: none !important;
    align-items: flex-start;
}

/* Share Links */
.agency-share-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.agency-share-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.agency-share-links a:hover {
    background: #000;
    border-color: #000;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.portfolio-gallery-agency img {
    border-radius: 0;
    /* Agency style is often sharp or minimal radius */
}

/* Nav */
.project-navigation-agency a {
    transition: 0.3s;
}

.project-navigation-agency a:hover {
    color: var(--accent-orange) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .portfolio-sticky-info {
        padding-right: 0;
        margin-bottom: 50px;
        position: static !important;
        /* Disable sticky on mobile */
    }

    .portfolio-header-agency {
        padding: 120px 0 40px;
    }

    .agency-title {
        font-size: 2.5rem;
    }
}

/* ======================================
   Bootstrap 5 Partial Grid System (RESTORED)
   ====================================== */
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {

    .container-sm,
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {

    .container-md,
    .container-sm,
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {

    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {

    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {

    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1320px;
    }
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.col-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .mb-lg-0 {
        margin-bottom: 0 !important;
    }

    .sticky-top {
        position: sticky;
        top: 0;
        z-index: 1020;
    }
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.gap-5 {
    gap: 3rem !important;
}

.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

.ratio>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* RTL overrides for Grid */
[dir="rtl"] .row {
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

/* Text alignment utils */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

/* ======================================
   Project Navigation - Delicate & Modern (Minimalist Redesign)
   ====================================== */
.project-navigation-refined {
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.nav-refined-item {
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.nav-refined-tag {
    display: block;
    color: #c5a059;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.nav-refined-title {
    display: block;
    color: #444;
    /* Charcoal */
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.grid-icon-wrap {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    color: #ccc;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-refined-grid:hover .grid-icon-wrap {
    border-color: #c5a059;
    color: #c5a059;
    transform: rotate(90deg);
}

.nav-refined-item:hover .nav-refined-title {
    color: #c5a059;
}

.nav-refined-item.prev:hover {
    transform: translateX(-5px);
}

.nav-refined-item.next:hover {
    transform: translateX(5px);
}

/* Responsive Touch */
@media (max-width: 768px) {
    .project-navigation-refined {
        padding: 60px 0;
    }

    .nav-refined-title {
        font-size: 1rem;
    }
}



/* ======================================
   Portfolio Sticky Info & Content
   ====================================== */
.portfolio-sticky-info {
    top: 50px;
    z-index: 10;
}

.desc-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.gallery-item img {
    width: 100%;
}

/* ======================================
   404 Page (Premium Design)
   ====================================== */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-blue);
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.content-404 {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.error-code {
    font-size: clamp(8rem, 20vw, 15rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E85A3C 50%, #1A5F7A 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: pulse-glow 3s infinite alternate;
    filter: drop-shadow(0 0 30px rgba(232, 90, 60, 0.4));
}

.error-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.error-description {
    font-size: 1.25rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.error-actions .btn i {
    font-size: 0.9em;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(232, 90, 60, 0.4));
    }

    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.6));
    }
}

@media (max-width: 768px) {
    .error-actions {
        flex-direction: column;
        gap: 15px;
    }

    .error-actions .btn {
        width: 100%;
    }
}

/* ======================================
   Payment Pages (USD & SAR)
   ====================================== */

/* Hide default WP page elements on payment pages */
.page-template-page-payment-usd .page-header,
.page-template-page-payment-sar .page-header,
.page-template-page-payment-usd .breadcrumb-wrap,
.page-template-page-payment-sar .breadcrumb-wrap {
    display: none !important;
}

/* Full-width below header */
.payment-page {
    min-height: calc(100vh - 80px);
    padding: 0;
    margin: 0;
}

/* Two-column grid */
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
}

/* ===== LEFT / BRANDING PANEL ===== */
.payment-panel-left {
    background: linear-gradient(135deg, #0d2e3a 0%, #12485b 60%, #195c76 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    overflow: hidden;
}

[dir="rtl"] .payment-panel-left {
    order: 2;
    text-align: right;
}

.payment-panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(247,92,64,0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Logo */
.pay-logo-wrap {
    margin-bottom: 50px;
    position: relative;
}

.pay-site-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.pay-site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* Heading */
.pay-panel-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 16px;
    position: relative;
}

.pay-panel-title span {
    color: var(--accent-orange);
}

.pay-panel-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 40px;
    position: relative;
    max-width: 400px;
}

[dir="rtl"] .pay-panel-subtitle {
    margin-right: 0;
    margin-left: auto;
}

/* Feature list */
.pay-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    margin-bottom: 0;
}

.pay-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

[dir="rtl"] .pay-features-list li {
    flex-direction: row;
    justify-content: flex-start;
}

.pay-features-list li i {
    width: 30px;
    height: 30px;
    background: rgba(247, 92, 64, 0.2);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

/* Trust badges */
.pay-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 44px;
    position: relative;
}

[dir="rtl"] .pay-trust-badges {
    flex-direction: row;
    justify-content: flex-start;
}

.pay-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pay-trust-badge i {
    color: var(--accent-orange);
}

/* ===== RIGHT / FORM PANEL ===== */
.payment-panel-right {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

[dir="rtl"] .payment-panel-right {
    order: 1;
}

.pay-form-wrap {
    width: 100%;
    max-width: 480px;
}

.pay-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.pay-form-subtitle {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* Form groups */
.pay-form-group {
    margin-bottom: 20px;
}

.pay-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.pay-form-group label i {
    color: var(--accent-orange);
    font-size: 0.8rem;
    margin-right: 5px;
}

[dir="rtl"] .pay-form-group label i {
    margin-right: 0;
    margin-left: 10px;
}

.pay-form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--black);
    background: var(--off-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: textfield;
}

.pay-form-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(18, 72, 91, 0.08);
    background: var(--white);
}

.pay-optional {
    color: var(--medium-gray);
    font-weight: 400;
}

/* Amount input */
.pay-amount-wrap {
    position: relative;
}

.pay-currency-sym {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray);
    pointer-events: none;
    z-index: 1;
}

[dir="rtl"] .pay-currency-sym {
    left: auto;
    right: 16px;
}

.pay-amount-wrap input {
    padding-left: 42px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

[dir="rtl"] .pay-amount-wrap input {
    padding-left: 16px;
    padding-right: 52px;
}

/* Stripe Element */
.pay-stripe-element {
    padding: 13px 16px;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-md);
    background: var(--off-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pay-stripe-element.StripeElement--focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(18, 72, 91, 0.08);
    background: var(--white);
}

.pay-stripe-element.StripeElement--invalid {
    border-color: #ef4444;
}

/* Divider */
.pay-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--gray);
    font-size: 0.82rem;
    font-weight: 500;
}

.pay-divider::before,
.pay-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

/* Order Summary */
.pay-order-summary {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--light-gray);
}

.pay-order-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.pay-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.pay-order-row:last-child {
    margin-bottom: 0;
}

.pay-order-amount {
    font-weight: 700;
    color: var(--primary-blue);
}

.pay-order-total {
    border-top: 1px solid var(--light-gray);
    margin-top: 8px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-blue);
}

/* Pay Button */
.btn-pay {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-orange);
    letter-spacing: 0.02em;
    margin-top: 4px;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(247, 92, 64, 0.45);
}

.btn-pay:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner inside button */
.pay-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: paySpinAnim 0.7s linear infinite;
    display: none;
    flex-shrink: 0;
}

.btn-pay--loading .pay-spinner { display: block; }
.btn-pay--loading .pay-btn-text { display: none; }

@keyframes paySpinAnim {
    to { transform: rotate(360deg); }
}

/* Message */
.pay-message {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.pay-message--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.pay-message--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Powered by Stripe */
.pay-powered-by {
    text-align: center;
    margin-top: 22px;
    color: var(--gray);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pay-powered-by i { color: #635bff; font-size: 1.1rem; }

/* ===== Thank You Page ===== */
.thankyou-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.thankyou-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--light-gray);
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
}

.thankyou-icon i {
    font-size: 2rem;
    color: var(--white);
}

.thankyou-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.thankyou-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.thankyou-amount-box {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 32px;
    border: 1px solid var(--light-gray);
}

.thankyou-amount-box .label {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.thankyou-amount-box .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.thankyou-amount-box .currency {
    font-size: 1rem;
    color: var(--gray);
    margin-right: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .payment-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .payment-panel-left,
    .payment-sar .payment-panel-left {
        order: 1;
        padding: 50px 30px;
        text-align: left;
    }

    .payment-sar .payment-panel-left {
        text-align: right;
    }

    .payment-panel-right,
    .payment-sar .payment-panel-right {
        order: 2;
        padding: 40px 24px;
    }

    .pay-panel-subtitle { max-width: 100%; }

    .pay-features-list li {
        flex-direction: row !important;
        justify-content: flex-start !important;
    }

    .payment-sar .pay-features-list li {
        flex-direction: row-reverse !important;
        justify-content: flex-end !important;
    }

    .pay-trust-badges {
        flex-direction: row !important;
        justify-content: flex-start !important;
    }

    .payment-sar .pay-trust-badges {
        flex-direction: row-reverse !important;
        justify-content: flex-end !important;
    }
}

@media (max-width: 480px) {
    .payment-panel-left { padding: 40px 20px; }
    .payment-panel-right { padding: 30px 16px; }
    .pay-form-wrap { max-width: 100%; }
    .thankyou-card { padding: 40px 24px; }
    .thankyou-amount-box .amount { font-size: 1.6rem; }
}