/* ==========================================================================
   AL-FANAR ENGINEERING - Design System & Styles
   ========================================================================== */

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

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors */
    --color-red: #ec343a;
    --color-red-dark: #c42a2f;
    --color-red-light: #f16b6f;
    --color-red-bg: rgba(236, 52, 58, 0.08);
    --color-navy: #023859;
    --color-navy-dark: #011e30;
    --color-navy-light: #0a4d73;
    --color-navy-bg: rgba(2, 56, 89, 0.08);

    /* Neutrals */
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-gray-100: #f1f3f5;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #868e96;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --color-black: #0a0a0a;

    /* Typography */
    --font-en: 'Cairo', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --font-primary: var(--font-en);

    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3rem;
    --fs-5xl: 3.5rem;
    --fs-6xl: 4rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --section-padding: 100px 0;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --border-radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-card: 0 4px 20px rgba(2, 56, 89, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(2, 56, 89, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-nav: 1000;
    --z-overlay: 2000;
    --z-modal: 3000;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

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

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

/* ---------- Utility Classes ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section--gray {
    background-color: var(--color-off-white);
}

.section--navy {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section--dark {
    background-color: var(--color-gray-900);
    color: var(--color-white);
}

.section-label {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-red);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--color-red);
    border-radius: 2px;
}

.section-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-navy);
    margin-bottom: var(--space-lg);
}

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

.section--navy .section-title,
.section--dark .section-title {
    color: var(--color-white);
}

.section-subtitle {
    font-size: var(--fs-md);
    color: var(--color-gray-600);
    max-width: 650px;
    line-height: 1.8;
}

.section--navy .section-subtitle,
.section--dark .section-subtitle {
    color: var(--color-gray-400);
}

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

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.text-center .section-label {
    justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn--primary {
    background: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(236, 52, 58, 0.3);
}

.btn--primary:hover {
    background: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(236, 52, 58, 0.4);
}

.btn--secondary {
    background: var(--color-navy);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(2, 56, 89, 0.3);
}

.btn--secondary:hover {
    background: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(2, 56, 89, 0.4);
}

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

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

.btn--outline-red {
    background: transparent;
    color: var(--color-red);
    border: 2px solid var(--color-red);
}

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

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 20px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.navbar__logo {
    height: 48px;
    transition: all var(--transition-base);
}

.navbar:not(.scrolled) .navbar__logo {
    filter: brightness(0) invert(1);
}

.navbar.scrolled .navbar__logo {
    height: 40px;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar__link {
    padding: 8px 18px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-white);
    border-radius: 50px;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar.scrolled .navbar__link {
    color: var(--color-gray-800);
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--color-red);
}

.navbar__link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--color-red);
    border-radius: 1px;
}

/* Maintain visible links on red inner backgrounds when not scrolled */
.navbar:not(.scrolled) .navbar__link:hover,
.navbar:not(.scrolled) .navbar__link.active {
    color: var(--color-white);
    opacity: 0.8;
}

.navbar:not(.scrolled) .navbar__link.active::after {
    background: var(--color-white);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.navbar.scrolled .navbar__lang {
    color: var(--color-navy);
    border-color: var(--color-gray-300);
}

.navbar__lang:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.navbar__cta {
    padding: 10px 24px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-base);
}

.navbar__cta:hover {
    background: var(--color-red-dark);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    cursor: pointer;
    position: relative;
    z-index: calc(var(--z-overlay) + 1);
}

.navbar__toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar.scrolled .navbar__toggle span {
    background: var(--color-navy);
}

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

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

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

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: calc(var(--z-nav) - 1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ---------- Hero Section (Profile Inspired) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-off-white);
    padding-bottom: 120px;
}

.hero__bg-split {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 65%;
    background: var(--color-navy);
    z-index: 0;
}

.hero__bg-split::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -100px;
    width: 200px;
    background: var(--color-navy);
    border-radius: 0 50% 50% 0 / 0 30% 30% 0;
}

.hero__image-wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    z-index: 1;
}

.hero__swoosh-mask {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    clip-path: path('M0,0 C150,400 150,1500 0,3000 L3000,3000 L3000,0 Z');
    background: var(--color-white);
    overflow: hidden;
}

/* Fallback for clip-path path() if not supported */
@supports not (clip-path: path('M0,0')) {
    .hero__swoosh-mask {
        border-radius: 400px 0 0 0;
    }
}

.hero__swoosh-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__swoosh-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 56, 89, 0.2);
}

.hero__circle-accent {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 40px solid var(--color-red);
    opacity: 0.9;
    z-index: -1;
}

.hero__container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero__content {
    max-width: 600px;
    padding: 160px 0 120px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    color: var(--color-white);
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-size: var(--fs-6xl);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.hero__title span {
    color: var(--color-red);
    position: relative;
}

.hero__description {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 550px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Stats Bar - Moved into content area for split layout */
.hero__stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--color-white);
}

.hero__stat-number span {
    color: var(--color-red);
}

.hero__stat-label {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- About Preview Section ---------- */
.about-preview {
    position: relative;
    overflow: hidden;
}

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

.about-preview__image-wrap {
    position: relative;
    padding: 40px;
}

/* Large RED SWOOSH CURVE — matching the profile brochure */
.about-preview__image-wrap::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100%);
    height: calc(100% + 50px);
    border-radius: 50% 10% 10% 50%;
    background: var(--color-red);
    z-index: 0;
}

/* Deep Swoosh Image Mask */
.about-preview__image-main {
    position: relative;
    width: 90%;
    aspect-ratio: 4/5;
    border-radius: 400px 400px 40px 40px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 1;
    border: 15px solid var(--color-white);
}

.about-preview__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Circular floating image — like profile's circular frames */
.about-preview__image-float {
    position: absolute;
    bottom: -10px;
    right: 0px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--color-white);
    box-shadow: 0 8px 30px rgba(236, 52, 58, 0.25);
    z-index: 2;
}

.about-preview__image-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Large decorative red circle behind images */
.about-preview__circle-deco {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-red);
    opacity: 0.15;
    z-index: 0;
}

.about-preview__text .section-subtitle {
    margin-bottom: var(--space-xl);
}

.about-preview__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: var(--space-2xl);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.about-feature__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--color-red-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
}

.about-feature__icon svg {
    width: 22px;
    height: 22px;
}

.about-feature__text h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 2px;
}

.about-feature__text p {
    font-size: var(--fs-xs);
    color: var(--color-gray-600);
}

/* ---------- Decorative Shapes ---------- */
.section {
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0;
    padding-bottom: calc(var(--space-4xl) + 120px);
    z-index: 2;
    background: var(--color-white);
    
    /* Elegant sweeping native curve masking */
    margin-top: -120px;
    padding-top: calc(var(--space-4xl) + 120px);
    -webkit-mask-image: radial-gradient(ellipse 60vw 120px at 50% 120px, black 99.8%, transparent 100%), linear-gradient(to bottom, transparent 120px, black 120px);
    mask-image: radial-gradient(ellipse 60vw 120px at 50% 120px, black 99.8%, transparent 100%), linear-gradient(to bottom, transparent 120px, black 120px);
}

.section--gray {
    background: var(--color-gray-100);
    z-index: 1;
}

/* Remove dome mask from the first section after an inner-page hero */
.page-hero + .section {
    margin-top: 0;
    padding-top: var(--space-4xl);
    -webkit-mask-image: none;
    mask-image: none;
}

.shape-swoosh {
    position: absolute;
    top: 0;
    left: 0;
    width: 35vw;
    height: 100%;
    background: var(--color-navy);
    clip-path: ellipse(100% 80% at 0% 0%);
    z-index: 0;
    pointer-events: none;
}

.shape-swoosh--right {
    top: auto;
    bottom: 0;
    left: auto;
    right: 0;
    width: 40vw;
    height: 100%;
    background: var(--color-red);
    clip-path: ellipse(100% 80% at 100% 100%);
}

.shape-blob,
.shape-ring {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.shape-blob--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 60%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.shape-blob--2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(29,53,87,0.04) 0%, transparent 60%);
    bottom: -250px;
    left: -250px;
    border-radius: 50%;
}

.shape-ring--1 {
    width: 400px;
    height: 400px;
    border: 40px solid rgba(230,57,70,0.02);
    top: 50%;
    left: -150px;
    transform: translateY(-50%);
    border-radius: 50%;
}

.shape-ring--2 {
    width: 500px;
    height: 500px;
    border: 2px dashed rgba(29,53,87,0.05);
    top: -100px;
    right: -150px;
    border-radius: 50%;
}

/* ---------- Services Section ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: var(--space-3xl);
}

.service-card {
    background: var(--color-white);
    border-radius: 20px 80px 20px 20px; /* Profile leaf/drop asymmetric style */
    padding: 40px 30px;
    transition: all var(--transition-base);
    border: none;
    box-shadow: 0 10px 40px rgba(2, 56, 89, 0.08); /* Heavy but soft shadow */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-navy));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-red-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
    background: var(--color-red);
    transform: scale(1.1);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-red);
    transition: color var(--transition-base);
}

.service-card:hover .service-card__icon svg {
    color: var(--color-white);
}

.service-card__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.service-card__desc {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-red);
    transition: gap var(--transition-fast);
}

.service-card__link:hover {
    gap: 14px;
}

.service-card__link svg {
    width: 18px;
    height: 18px;
}

/* Two-column layout for last row */
.services-grid .service-card:nth-child(4) {
    grid-column: 1 / 2;
}

.services-grid .service-card:nth-child(5) {
    grid-column: 2 / 3;
}

/* ---------- Why Choose Us / Values ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: var(--space-3xl);
}

.value-card {
    background: var(--color-white);
    border-radius: 0 30px 0 30px; /* Opposite asymmetry */
    padding: 36px 24px;
    text-align: center;
    transition: all var(--transition-base);
    border: none;
    box-shadow: 0 10px 40px rgba(2, 56, 89, 0.08);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-red);
}

.value-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-red-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    transition: all var(--transition-base);
}

.value-card:hover .value-card__icon {
    background: var(--color-red);
}

.value-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-red);
    transition: color var(--transition-base);
}

.value-card:hover .value-card__icon svg {
    color: var(--color-white);
}

.value-card__title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.value-card__desc {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ---------- Stats Section ---------- */
.stats {
    background: var(--color-navy);
    position: relative;
    overflow: hidden;
}

/* Red curved swoosh accent for stats */
.stats::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    top: -300px;
    right: -150px;
    background: radial-gradient(circle, transparent 55%, var(--color-red) 56%, var(--color-red) 62%, transparent 63%);
    opacity: 0.2;
}

.stats::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    bottom: -250px;
    left: -100px;
    background: radial-gradient(circle, transparent 55%, var(--color-red) 56%, var(--color-red) 62%, transparent 63%);
    opacity: 0.15;
}

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

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

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.15);
}

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

.stat-item__number {
    font-size: var(--fs-5xl);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-item__number span {
    color: var(--color-red);
}

.stat-item__label {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- Projects Section ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: var(--space-3xl);
}

.project-card {
    background: var(--color-white);
    border-radius: 30px 0 30px 0;
    padding: 0;
    transition: all var(--transition-base);
    border: none;
    box-shadow: 0 10px 40px rgba(2, 56, 89, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-red), var(--color-navy));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-base);
}

.project-card:hover::before {
    transform: scaleY(1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.project-card__image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: visible;
    border-radius: 30px 0 0 0;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px 0 0 0;
    transition: transform var(--transition-base);
}

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__number {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    font-weight: 800;
    position: absolute;
    bottom: -26px;
    right: 24px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(2, 56, 89, 0.2);
}

.project-card__content {
    padding: 36px 36px 36px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--color-red-bg);
    color: var(--color-red);
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: var(--space-sm);
}

.project-card__title {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.project-card__desc {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.project-card__meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.project-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    color: var(--color-gray-600);
}

.project-card__meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--color-red);
}

.project-card__meta-item strong {
    color: var(--color-navy);
    font-weight: 700;
}

/* ---------- CTA Section ---------- */
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
}

/* Red swoosh circles for CTA — matching profile style */
.cta__circle {
    position: absolute;
    border-radius: 50%;
}

.cta__circle--1 {
    width: 500px;
    height: 500px;
    top: -280px;
    left: -150px;
    background: radial-gradient(circle, transparent 55%, var(--color-red) 56%, var(--color-red) 62%, transparent 63%);
    opacity: 0.2;
}

.cta__circle--2 {
    width: 400px;
    height: 400px;
    bottom: -220px;
    right: -100px;
    background: radial-gradient(circle, transparent 55%, var(--color-red) 56%, var(--color-red) 62%, transparent 63%);
    opacity: 0.15;
}

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

.cta__title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

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

.cta__text {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.7);
    max-width: 550px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

.cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-4xl) 0 var(--space-2xl);
    position: relative;
    z-index: 3;
    
    /* Elegant sweeping native curve masking */
    margin-top: -120px;
    padding-top: calc(var(--space-4xl) + 120px);
    -webkit-mask-image: radial-gradient(ellipse 60vw 120px at 50% 120px, black 99.8%, transparent 100%), linear-gradient(to bottom, transparent 120px, black 120px);
    mask-image: radial-gradient(ellipse 60vw 120px at 50% 120px, black 99.8%, transparent 100%), linear-gradient(to bottom, transparent 120px, black 120px);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand-logo {
    height: 55px; /* Larger logo for the heavy footer */
    margin-bottom: var(--space-lg);
    filter: brightness(0) invert(1);
}

.footer__brand-desc {
    font-size: var(--fs-sm);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    color: var(--color-gray-500);
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--color-gray-500);
}

.footer__social a:hover {
    background: var(--color-red);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer__social a svg {
    width: 18px;
    height: 18px;
}

.footer__heading {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: 12px;
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--color-red);
    border-radius: 2px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: var(--fs-sm);
    color: var(--color-gray-500);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__links a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-red);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-white);
    padding-left: 6px;
}

.footer__links a:hover::before {
    opacity: 1;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: var(--space-lg);
}

.footer__contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(236, 52, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
}

.footer__contact-icon svg {
    width: 18px;
    height: 18px;
}

.footer__contact-item p {
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.footer__contact-item a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
    color: var(--color-red);
}

.footer__bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
}

.footer__copyright strong {
    color: var(--color-red);
    font-weight: 600;
}

/* ---------- Page Hero (inner pages Profile Inspired) ---------- */
.page-hero {
    position: relative;
    padding: 180px 0 200px;
    background: var(--color-navy);
    color: var(--color-white);
    overflow: hidden;
    z-index: 1;
}

/* Add massive red swoosh to the background overlay via pseudo-element */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: var(--color-red);
    border-radius: 0 0 0 100%;
    z-index: 1;
}

.page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    clip-path: ellipse(100% 100% at 0% 0%); /* massive sweeping arc for image */
    z-index: 0;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 56, 89, 0.75); /* Darken image heavily */
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-size: var(--fs-5xl);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.page-hero__title span {
    color: var(--color-red);
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
}

.page-hero__breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
    color: var(--color-red);
}

.page-hero__breadcrumb .separator {
    color: var(--color-red);
}

/* Red swoosh circles for inner page hero — matching profile */
.page-hero__circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.page-hero__circle--1 {
    width: 450px;
    height: 450px;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, transparent 55%, var(--color-red) 56%, var(--color-red) 62%, transparent 63%);
    opacity: 0.25;
}

.page-hero__circle--2 {
    width: 300px;
    height: 300px;
    left: 5%;
    bottom: -120px;
    background: radial-gradient(circle, transparent 55%, var(--color-red) 56%, var(--color-red) 62%, transparent 63%);
    opacity: 0.15;
}

/* ---------- Services Page Detail ---------- */
.service-detail {
    position: relative;
}

.service-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch; /* Force equal height for both columns */
}

.service-detail__grid--reverse {
    direction: ltr;
}

.service-detail__grid--reverse .service-detail__image {
    order: -1;
}

/* ---------- Profile-Inspired Service Images ---------- */
.service-detail__image {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Base image container */
.service-detail__image-main {
    position: relative;
    width: 100%;
    flex: 1; /* Stretch to fill padding wrapper */
    min-height: 420px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 2;
    border-radius: 20px;
    transition: border-radius var(--transition-base);
}

.service-detail__image-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONCEPT 1: Red Sweep & Navy Angle */
.brochure-sweep--red-bottom {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 80%;
    height: 150px;
    background: var(--color-red);
    clip-path: ellipse(100% 100% at 0% 100%);
    z-index: 3;
}

.service-detail__grid--reverse .brochure-sweep--red-bottom {
    left: auto;
    right: -10px;
    clip-path: ellipse(100% 100% at 100% 100%);
}

.brochure-cut--navy-angle {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    background: var(--color-navy);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 4;
}

.service-detail__grid--reverse .brochure-cut--navy-angle {
    right: auto;
    left: -10px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* CONCEPT 2: Offset Arch Backdrop */
.service-image--arch {
    border-radius: 50% 50% 0 0 / 200px 200px 0 0;
}

.brochure-backdrop--arch-navy {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80%;
    height: 80%;
    background: var(--color-navy);
    border-radius: 50% 50% 0 0 / 200px 200px 0 0;
    z-index: 1; 
}
.service-detail__grid--reverse .brochure-backdrop--arch-navy {
    left: auto;
    right: -20px;
}

/* CONCEPT 3: Leaf/Drop Mask */
.service-image--drop {
    border-radius: 50% 0 50% 50% / 50% 0 50% 50%;
}
.service-detail__grid--reverse .service-image--drop {
    border-radius: 0 50% 50% 50% / 0 50% 50% 50%;
}

.brochure-outline--red {
    position: absolute;
    top: 5%;
    left: -15px;
    width: 60%;
    height: 90%;
    border-radius: 50% 0 0 50% / 50% 0 0 50%;
    background: var(--color-red);
    z-index: 1;
}

.service-detail__grid--reverse .brochure-outline--red {
    left: auto;
    right: -15px;
    border-radius: 0 50% 50% 0 / 0 50% 50% 0;
}

.service-detail__content h3 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: var(--space-lg);
}

.service-detail__content h3 span {
    color: var(--color-red);
}

.service-detail__content p {
    font-size: var(--fs-base);
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.service-detail__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-detail__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--fs-sm);
    color: var(--color-gray-700);
    line-height: 1.6;
}

.service-detail__list li::before {
    content: '';
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--color-red);
    margin-top: 7px;
}

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: var(--space-3xl);
}

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

/* Asymmetric cards for contact info */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    background: var(--color-off-white);
    border-radius: 30px 0 30px 0;
    transition: all var(--transition-base);
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.contact-info-card:hover {
    background: var(--color-white);
    border-color: var(--color-red);
    box-shadow: var(--shadow-card);
    transform: translateX(6px);
}

.contact-info-card__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.contact-info-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-card h4 {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
    line-height: 1.6;
}

.contact-info-card a:hover {
    color: var(--color-red);
}

.contact-form {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
}

.contact-form__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.contact-form__subtitle {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
    margin-bottom: var(--space-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: var(--fs-sm);
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    background: var(--color-off-white);
    transition: all var(--transition-fast);
    color: var(--color-gray-800);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-red);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(236, 52, 58, 0.1);
}

.form-control::placeholder {
    color: var(--color-gray-500);
}

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

.form-message {
    margin-top: var(--space-md);
    padding: 14px 20px;
    border-radius: var(--border-radius);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.contact-map {
    margin-top: var(--space-3xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ---------- About Page Specifics ---------- */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: var(--space-3xl);
}

.mv-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

.mv-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
    transform: translateY(-4px);
}

.mv-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.mv-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

.mv-card h3 {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.mv-card p {
    font-size: var(--fs-base);
    color: var(--color-gray-600);
    line-height: 1.8;
}

.mv-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(236,52,58,0.08);
}

/* Company Growth Timeline */
.timeline {
    position: relative;
    margin-top: var(--space-3xl);
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-red), var(--color-navy));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
    padding-left: var(--space-2xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-red);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 3px var(--color-red);
}

.timeline-item h4 {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.timeline-item p {
    font-size: var(--fs-base);
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* ---------- Curved Section Divider ---------- */
.section-curve {
    position: relative;
}

.section-curve::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-white);
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 5;
}

.section-curve--gray::before {
    background: var(--color-off-white);
}

.section-curve--bottom::before {
    top: auto;
    bottom: -1px;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ---------- Red Swoosh Decorative Overlay for sections ---------- */
/* Adds the signature red curve accent between sections */
.section--gray::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, var(--color-red) 61%, var(--color-red) 65%, transparent 66%);
    opacity: 0.08;
    pointer-events: none;
}

.section--gray::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, var(--color-red) 61%, var(--color-red) 65%, transparent 66%);
    opacity: 0.06;
    pointer-events: none;
}

/* Image Hover Zoom Effect */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.6s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* ---------- Mission Vision Red Accent Curves ---------- */
.mv-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-red);
    opacity: 0.05;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid .service-card:nth-child(5) {
        grid-column: auto;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero__title {
        font-size: var(--fs-4xl);
    }

    .hero__stats .container {
        gap: 30px;
    }

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

    /* Shape background adjustments */
    .shape-swoosh {
        top: 250px;
        width: 30vw;
    }
    
    .shape-swoosh--right {
        top: auto;
        width: 30vw;
    }

    .about-preview__image-wrap {
        max-width: 500px;
    }

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

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .service-detail__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .service-detail__grid--reverse .service-detail__image {
        order: 0;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --fs-4xl: 2.25rem;
        --fs-5xl: 2.5rem;
        --fs-6xl: 2.75rem;
    }

    /* Navigation Mobile */
    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
        z-index: var(--z-overlay);
    }

    .navbar__menu.active {
        right: 0;
    }

    .navbar__menu .navbar__link {
        color: var(--color-gray-800);
        font-size: var(--fs-md);
        padding: 12px 24px;
    }

    .navbar__logo,
    .navbar.scrolled .navbar__logo {
        height: 32px;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__actions {
        gap: 6px;
    }

    .navbar__lang {
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 500;
        gap: 4px;
    }

    .navbar__lang svg {
        width: 14px;
        height: 14px;
    }

    .navbar__cta {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        align-items: flex-start;
        padding-top: 100px;
        min-height: auto; /* Let content dictate height */
    }

    .hero__bg-split {
        width: 100%;
        display: none; /* Replaced by full image on mobile */
    }

    .hero__image-wrap {
        width: 100%;
        z-index: 0;
    }

    .hero__swoosh-mask {
        clip-path: none !important;
        border-radius: 0 !important;
    }

    .hero__swoosh-mask::after {
        background: rgba(2, 56, 89, 0.85); /* Dim image to read white text */
    }

    .hero__content {
        padding: 40px 0 60px;
    }

    .hero__title {
        font-size: var(--fs-3xl);
    }

    .hero__description {
        font-size: var(--fs-base);
    }

    .hero__stats .container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero__stat {
        width: calc(50% - 10px);
    }

    .hero__circle--1 {
        width: 300px;
        height: 300px;
    }

    .hero__circle--2 {
        width: 200px;
        height: 200px;
    }

    /* About Preview Mobile */
    .about-preview__image-wrap {
        padding: 20px 10px;
    }

    .about-preview__image-wrap::before {
        top: -15px;
        left: -15px;
        width: calc(100% + 15px);
        height: calc(100% + 30px);
        border-radius: 60px 20px 20px 60px;
    }

    .about-preview__image-float {
        width: 100px;
        height: 100px;
        bottom: -15px;
        right: -10px;
        border-width: 4px;
    }

    /* Services Mobile */
    .shape-swoosh {
        top: 280px;
        width: 40vw;
    }

    .shape-swoosh--right {
        top: auto;
        width: 40vw;
    }

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

    /* Values Mobile */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Projects Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item::after {
        display: none;
    }

    /* About Features Mobile */
    .about-preview__features {
        grid-template-columns: 1fr;
    }

    /* Mission Vision Mobile */
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Form Mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 24px;
    }

    /* Page Hero Mobile */
    .page-hero {
        padding: 140px 0 60px;
    }

    .page-hero__title {
        font-size: var(--fs-3xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .project-card {
        flex-direction: column;
        padding: 24px;
    }

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