/* =====================================================
   ARES WEBSITE
   Main Color: #EA5C1A
===================================================== */

/* =====================================================
   FONTS
===================================================== */

@font-face {
    font-family: "BYekan";
    src: url("../assets/fonts/BYekan+_0.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BYekan";
    src: url("../assets/fonts/BYekan+ Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PersianYekan";
    src: url("../assets/fonts/Persian-Yekan.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =====================================================
   VARIABLES
===================================================== */

:root {

    --primary: #EA5C1A;
    --primary-dark: #c9470d;
    --primary-light: #fff1e9;

    --black: #171717;
    --dark: #252525;
    --text: #4f4f4f;
    --muted: #858585;

    --white: #ffffff;
    --light: #f8f8f8;
    --border: #eeeeee;

    --container: 1200px;

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;

    --shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    direction: rtl;
    font-family: "BYekan", "PersianYekan", Tahoma, sans-serif;
    background: #ffffff;
    color: var(--black);
    line-height: 1.8;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

ul {
    list-style: none;
}

/* =====================================================
   GENERAL
===================================================== */

.container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 120px 0;
}

.section-label {
    display: inline-block;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 12px;

    position: relative;
}

.section-label::before {
    content: "";

    display: inline-block;

    width: 28px;
    height: 2px;

    background: var(--primary);

    margin-left: 10px;

    vertical-align: middle;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 55px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading.centered .section-label::before {
    display: none;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.35;
    font-weight: 700;

    margin-bottom: 18px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);
    font-size: 16px;
    max-width: 600px;
}

.centered p {
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   BUTTONS
===================================================== */

.primary-button,
.secondary-button,
.white-button,
.header-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 54px;

    padding: 0 28px;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.primary-button {
    color: var(--white);
    background: var(--primary);

    box-shadow: 0 12px 30px rgba(234, 92, 26, 0.20);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(234, 92, 26, 0.28);
}

.primary-button span,
.white-button span {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.primary-button:hover span,
.white-button:hover span {
    transform: translateX(-4px);
}

.secondary-button {
    color: var(--black);
    background: #ffffff;
    border: 1px solid var(--border);
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.white-button {
    background: #ffffff;
    color: var(--primary);
}

.white-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   HEADER
===================================================== */

.header {

    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {

    height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo-link {
    flex-shrink: 0;
}

.logo {
    width: 105px;
    height: auto;
    object-fit: contain;
}

.navigation {

    display: flex;

    align-items: center;

    gap: 36px;

    margin-right: auto;
    margin-left: auto;
}

.nav-link {

    position: relative;

    color: #5d5d5d;

    font-size: 14px;

    transition: color 0.2s ease;
}

.nav-link::after {

    content: "";

    position: absolute;

    right: 0;
    bottom: -9px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.25s ease;
}

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

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

.header-button {
    background: var(--primary);
    color: #ffffff;

    min-height: 46px;

    padding: 0 22px;

    border-radius: 10px;
}

.header-button:hover {
    background: var(--primary-dark);
}

.mobile-menu-button {
    display: none;

    border: 0;
    background: transparent;

    width: 42px;
    height: 42px;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    background: var(--black);

    margin: 5px auto;
}

.mobile-navigation {
    display: none;
}

/* =====================================================
   FLOATING SOCIALS
===================================================== */

.floating-socials {

    position: fixed;

    left: 22px;
    bottom: 25px;

    z-index: 999;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.social-btn {

    width: 50px;
    height: 50px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.social-btn svg {

    width: 23px;
    height: 23px;

    fill: currentColor;
}

.social-btn.telegram {
    color: #229ED9;
}

.social-btn.whatsapp {
    color: #25D366;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

/* =====================================================
   HERO
===================================================== */

.hero {

    min-height: 760px;

    padding-top: 84px;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;

    background: #ffffff;
}

.hero-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 50px;
}

.hero-content {
    padding: 70px 0;
}

.eyebrow {

    display: inline-flex;

    align-items: center;

    padding: 7px 14px;

    border-radius: 30px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 13px;

    margin-bottom: 22px;
}

.hero h1 {

    font-size: clamp(42px, 5vw, 67px);

    line-height: 1.3;

    font-weight: 700;

    letter-spacing: -1.5px;

    max-width: 650px;

    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {

    color: var(--muted);

    font-size: 17px;

    line-height: 2;

    max-width: 590px;

    margin-bottom: 32px;
}

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 45px;
}

.hero-trust {

    display: flex;

    align-items: center;

    gap: 22px;
}

.trust-item {

    display: flex;

    flex-direction: column;
}

.trust-item strong {

    font-size: 22px;

    color: var(--black);

    line-height: 1.3;
}

.trust-item span {

    color: var(--muted);

    font-size: 12px;
}

.trust-divider {

    width: 1px;
    height: 34px;

    background: var(--border);
}

.hero-visual {

    position: relative;

    min-height: 550px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.hero-circle {

    position: absolute;

    width: 480px;
    height: 480px;

    border-radius: 50%;

    background: var(--primary-light);

    opacity: 0.65;
}

.hero-illustration {
    display: none;
}

.hero-3d-scene {
    position: relative;
    z-index: 2;
    width: min(100%, 570px);
    height: 540px;
    perspective: 1100px;
    transform-style: preserve-3d;
    filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.35));
    animation: heroSceneFloat 6s ease-in-out infinite;
}

.hero-3d-scene::before {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 92, 26, 0.30) 0%, rgba(234, 92, 26, 0.10) 38%, transparent 72%);
    filter: blur(8px);
}

.hero-orbit {
    position: absolute;
    left: 50%;
    top: 51%;
    width: 465px;
    height: 170px;
    border: 1px solid rgba(234, 92, 26, 0.48);
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: 0 0 22px rgba(234, 92, 26, 0.13);
}

.hero-orbit-one {
    transform: translate(-50%, -50%) rotateX(66deg) rotateZ(-12deg);
}

.hero-orbit-two {
    width: 390px;
    height: 135px;
    border-color: rgba(255, 157, 92, 0.28);
    transform: translate(-50%, -50%) rotateX(66deg) rotateZ(48deg);
}

.hero-orbit::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    top: 50%;
    left: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px 4px rgba(234, 92, 26, 0.55);
}

.hero-pedestal {
    position: absolute;
    left: 50%;
    bottom: 66px;
    width: 360px;
    height: 100px;
    transform: translateX(-50%) rotateX(64deg);
    transform-style: preserve-3d;
}

.hero-pedestal-base,
.hero-pedestal-top {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

.hero-pedestal-base {
    bottom: 0;
    width: 360px;
    height: 105px;
    background: linear-gradient(145deg, #2b2d31, #090a0c 58%, #1d2024);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 34px rgba(0,0,0,.48), inset 0 0 18px rgba(255,255,255,.04);
}

.hero-pedestal-top {
    bottom: 24px;
    width: 300px;
    height: 78px;
    background: radial-gradient(ellipse at center, #3a1a0c 0%, #141518 58%, #08090a 100%);
    border: 2px solid rgba(234, 92, 26, 0.75);
    box-shadow: 0 0 24px rgba(234, 92, 26, 0.20), inset 0 0 25px rgba(234, 92, 26, 0.15);
}

.hero-pedestal-ring {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 43px;
    width: 250px;
    height: 58px;
    transform: translateX(-50%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(234, 92, 26, .5);
}

.hero-mark {
    position: absolute;
    left: 50%;
    bottom: 156px;
    width: 190px;
    height: 215px;
    transform: translateX(-50%) translateZ(45px);
    transform-style: preserve-3d;
}

.hero-mark-face,
.hero-mark-depth {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: Arial, sans-serif;
    font-size: 178px;
    font-weight: 900;
    line-height: 1;
    font-style: italic;
    color: #0b0d10;
    -webkit-text-stroke: 10px var(--primary);
    text-shadow: 0 0 18px rgba(234,92,26,.32), 0 18px 0 #8e320d, 0 26px 24px rgba(0,0,0,.55);
}

.hero-mark-depth {
    transform: translateZ(-16px) translate(9px, 9px);
    color: #131519;
    -webkit-text-stroke: 8px #70280d;
    opacity: .92;
}

.hero-tech-ring {
    position: absolute;
    width: 245px;
    height: 245px;
    left: 50%;
    top: 94px;
    transform: translateX(-50%) rotateX(68deg);
    border: 1px dashed rgba(234,92,26,.34);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(234,92,26,.09);
}

.hero-panel {
    position: absolute;
    z-index: 5;
    padding: 14px;
    background: linear-gradient(145deg, rgba(40,43,48,.92), rgba(10,11,13,.95));
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    box-shadow: 0 22px 35px rgba(0,0,0,.40), inset 0 0 20px rgba(255,255,255,.035), 0 0 22px rgba(234,92,26,.08);
    backdrop-filter: blur(8px);
}

.hero-panel-code {
    width: 142px;
    height: 100px;
    top: 72px;
    right: 30px;
    transform: rotateY(-18deg) rotateZ(3deg);
}

.hero-panel-code span {
    display: block;
    height: 4px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: rgba(234,92,26,.50);
}

.hero-panel-code span:nth-child(2) { width: 70%; }
.hero-panel-code span:nth-child(3) { width: 84%; }
.hero-panel-code span:nth-child(4) { width: 52%; }
.hero-panel-code b {
    position: absolute;
    right: 12px;
    bottom: 7px;
    color: var(--primary);
    font: 700 15px/1 Arial, sans-serif;
}

.hero-panel-chart {
    width: 122px;
    height: 92px;
    top: 210px;
    left: 16px;
    transform: rotateY(19deg) rotateZ(-5deg);
}

.hero-panel-chart i {
    display: inline-block;
    width: 13px;
    margin: 0 4px;
    vertical-align: bottom;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, #8c320d, var(--primary));
}
.hero-panel-chart i:nth-child(1) { height: 22px; }
.hero-panel-chart i:nth-child(2) { height: 39px; }
.hero-panel-chart i:nth-child(3) { height: 30px; }
.hero-panel-chart i:nth-child(4) { height: 52px; }
.hero-panel-chart b {
    position: absolute;
    top: 10px;
    right: 12px;
    color: var(--primary);
    font: 700 18px/1 Arial, sans-serif;
}

.hero-panel-data {
    width: 112px;
    height: 112px;
    right: 18px;
    bottom: 116px;
    direction: ltr;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    box-sizing: border-box;
    transform: rotateY(-11deg) rotateZ(-3deg);
    animation: heroPanelFloatThree 5.2s ease-in-out infinite;
}
.hero-panel-data span {
    display: block;
    width: 72%;
    height: 4px;
    margin-bottom: 7px;
    border-radius: 4px;
    background: rgba(255,255,255,.13);
}
.hero-panel-data span:nth-child(2) { width: 92%; }
.hero-panel-data span:nth-child(3) { width: 56%; }
.hero-panel-data b {
    position: absolute;
    right: 12px;
    bottom: 9px;
    color: var(--primary);
    font: 700 13px/1 Arial, sans-serif;
    letter-spacing: 1px;
}

.hero-orb {
    position: absolute;
    z-index: 6;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #ffbd91 0%, var(--primary) 20%, #7d2a0c 68%, #16181b 100%);
    box-shadow: 0 0 20px rgba(234,92,26,.30), inset -7px -8px 12px rgba(0,0,0,.48);
}
.hero-orb-one { width: 22px; height: 22px; top: 128px; left: 112px; animation: orbFloatOne 5s ease-in-out infinite; }
.hero-orb-two { width: 13px; height: 13px; top: 164px; right: 116px; animation: orbFloatTwo 4.4s ease-in-out infinite; }
.hero-orb-three { width: 9px; height: 9px; bottom: 196px; left: 104px; animation: orbFloatThree 4.8s ease-in-out infinite; }

@keyframes heroSceneFloat {
    0%, 100% { transform: translateY(0) rotateZ(0deg); }
    50% { transform: translateY(-9px) rotateZ(.35deg); }
}
@keyframes orbFloatOne { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes orbFloatTwo { 0%,100%{transform:translate(0,0)} 50%{transform:translate(7px,-8px)} }
@keyframes orbFloatThree { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-5px,-10px)} }

@keyframes floating {

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

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

/* =====================================================
   SERVICES
===================================================== */

.services {
    background: #ffffff;
}

.services-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.service-card {

    position: relative;

    min-height: 330px;

    padding: 32px 26px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.service-card::before {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 100%;
    height: 3px;

    background: var(--primary);

    transform: scaleX(0);

    transform-origin: right;

    transition: transform 0.3s ease;
}

.service-card:hover {

    transform: translateY(-8px);

    border-color: rgba(234, 92, 26, 0.18);

    box-shadow: var(--shadow);
}

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

.service-card.featured {

    background: var(--primary);

    color: #ffffff;

    border-color: var(--primary);

    transform: translateY(-10px);

    box-shadow: 0 20px 45px rgba(234, 92, 26, 0.20);
}

.service-card.featured:hover {
    transform: translateY(-16px);
}

.service-number {

    position: absolute;

    left: 22px;
    top: 20px;

    color: #dddddd;

    font-size: 13px;
}

.featured .service-number {
    color: rgba(255, 255, 255, 0.55);
}

.service-icon {

    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 26px;

    margin-bottom: 28px;
}

.featured .service-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.service-card h3 {

    font-size: 20px;

    margin-bottom: 12px;
}

.service-card p {

    color: var(--muted);

    font-size: 14px;

    line-height: 2;

    margin-bottom: 25px;
}

.featured p {
    color: rgba(255, 255, 255, 0.78);
}

.service-card a {

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;
}

.featured a {
    color: #ffffff;
}

/* =====================================================
   PROCESS
===================================================== */

.process {
    background: #fafafa;
}

.process-grid {

    position: relative;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.process-line {

    position: absolute;

    top: 55px;

    right: 12.5%;
    left: 12.5%;

    height: 1px;

    border-top: 1px dashed #d8d8d8;

    z-index: 0;
}

.process-item {

    position: relative;

    z-index: 2;

    text-align: center;

    padding: 0 15px;
}

.process-icon {

    width: 110px;
    height: 110px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid var(--border);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.process-icon img {

    width: 62px;
    height: 62px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.process-item:hover .process-icon {

    transform: translateY(-7px);

    border-color: var(--primary);

    box-shadow: 0 15px 35px rgba(234, 92, 26, 0.12);
}

.process-item:hover .process-icon img {
    transform: scale(1.08);
}

.process-step {

    display: block;

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 5px;
}

.process-item h3 {

    font-size: 18px;

    margin-bottom: 8px;
}

.process-item p {

    color: var(--muted);

    font-size: 13px;

    line-height: 1.9;
}

/* =====================================================
   ABOUT
===================================================== */

.about {
    background: #ffffff;
}

.about-grid {

    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 90px;

    align-items: center;
}

.about-content h2 {

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.45;

    margin-bottom: 25px;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {

    color: var(--muted);

    max-width: 600px;

    font-size: 15px;

    line-height: 2;

    margin-bottom: 15px;
}

.about-content .primary-button {
    margin-top: 18px;
}

.about-box {

    position: relative;

    min-height: 440px;

    border-radius: var(--radius-large);

    background: var(--primary);

    overflow: hidden;

    padding: 45px;

    color: #ffffff;
}

.about-box::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(255, 255, 255, 0.22);

    border-radius: 50%;

    left: -100px;
    bottom: -120px;
}

.about-box::after {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 50%;

    right: -70px;
    top: -50px;
}

.about-stat {

    position: relative;
    z-index: 2;

    display: flex;

    flex-direction: column;

    margin-bottom: 130px;
}

.about-stat strong {

    font-size: 50px;

    line-height: 1;

    letter-spacing: 2px;
}

.about-stat span {

    font-size: 13px;

    opacity: 0.75;

    margin-top: 8px;
}

.about-quote {

    position: relative;
    z-index: 2;

    max-width: 330px;
}

.about-quote > span {

    font-family: Georgia, serif;

    font-size: 70px;

    line-height: 0.5;

    opacity: 0.5;
}

.about-quote p {

    color: #ffffff;

    font-size: 19px;

    line-height: 1.9;

    margin-top: 12px;
}

/* =====================================================
   CONTACT
===================================================== */

.contact {
    padding-top: 70px;
}

.contact-box {

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    overflow: hidden;

    border-radius: var(--radius-large);

    background: #f8f8f8;
}

.contact-content {

    padding: 60px;
}

.contact-content h2 {

    font-size: clamp(32px, 4vw, 47px);

    line-height: 1.45;

    margin-bottom: 18px;
}

.contact-content h2 span {
    color: var(--primary);
}

.contact-content > p {

    color: var(--muted);

    max-width: 530px;

    margin-bottom: 35px;
}

.contact-methods {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.contact-method {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 12px;

    border-radius: 12px;

    transition: background 0.2s ease;
}

.contact-method:hover {
    background: #ffffff;
}

.contact-method-icon {

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 19px;
}

.contact-method div:last-child {

    display: flex;

    flex-direction: column;
}

.contact-method span {

    color: var(--muted);

    font-size: 11px;
}

.contact-method strong {

    font-size: 15px;

    direction: ltr;

    text-align: right;
}

.contact-action {

    background: var(--primary);

    color: #ffffff;

    position: relative;

    overflow: hidden;
}

.contact-action::before {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 50%;

    top: -130px;
    right: -100px;
}

.contact-action::after {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    bottom: -150px;
    left: -70px;
}

.contact-action-inner {

    position: relative;

    z-index: 2;

    height: 100%;

    padding: 60px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;
}

.contact-action-inner > span {

    font-size: 13px;

    opacity: 0.7;

    margin-bottom: 15px;
}

.contact-action h3 {

    font-size: 27px;

    line-height: 1.8;

    margin-bottom: 30px;
}

/* =====================================================
   FOOTER
===================================================== */

.footer {

    margin-top: 120px;

    background: #171717;

    color: #ffffff;

    padding: 70px 0 25px;
}

.footer-main {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 55px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 340px;
}

.footer-logo {

    width: 105px;

    filter: brightness(0) invert(1);

    margin-bottom: 20px;
}

.footer-brand p {

    color: rgba(255, 255, 255, 0.55);

    font-size: 13px;

    line-height: 2;

    margin-bottom: 25px;
}

.footer-socials {

    display: flex;

    gap: 8px;
}

.footer-socials a {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 10px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.footer-socials a:hover {

    background: var(--primary);

    color: #ffffff;

    border-color: var(--primary);
}

.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
}

.footer-column h4 {

    font-size: 15px;

    margin-bottom: 10px;
}

.footer-column a {

    color: rgba(255, 255, 255, 0.52);

    font-size: 13px;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {

    padding-top: 25px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 11px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .navigation {
        gap: 22px;
    }

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

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

    .service-card.featured:hover {
        transform: translateY(-8px);
    }

    .about-grid {
        gap: 50px;
    }

}

@media (max-width: 850px) {

    .container {
        width: min(100% - 32px, 650px);
    }

    .navigation,
    .header-button {
        display: none;
    }

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

    .mobile-navigation {

        display: none;

        position: absolute;

        top: 84px;

        right: 16px;
        left: 16px;

        padding: 15px;

        background: #ffffff;

        border: 1px solid var(--border);

        border-radius: 15px;

        box-shadow: var(--shadow);
    }

    .mobile-navigation.open {
        display: flex;

        flex-direction: column;
    }

    .mobile-navigation a {

        padding: 12px 10px;

        border-bottom: 1px solid #f2f2f2;

        color: var(--text);
    }

    .mobile-navigation a:last-child {
        border-bottom: 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .hero-content {
        padding: 70px 0 20px;

        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        min-height: 420px;
    }

    .hero-circle {
        width: 380px;
        height: 380px;
    }

    .process-grid {

        grid-template-columns: repeat(2, 1fr);

        row-gap: 50px;
    }

    .process-line {
        display: none;
    }

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

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

    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}

@media (max-width: 600px) {

    .section {
        padding: 80px 0;
    }

    .header-inner {
        height: 74px;
    }

    .mobile-navigation {
        top: 74px;
    }

    .logo {
        width: 90px;
    }

    .hero {
        padding-top: 74px;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {

        flex-direction: column;

        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
    }

    .hero-trust {
        gap: 12px;
    }

    .trust-divider {
        height: 28px;
    }

    .trust-item strong {
        font-size: 18px;
    }

    .trust-item span {
        font-size: 10px;
    }

    .hero-visual {
        min-height: 330px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }

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

    .service-card {
        min-height: 290px;
    }

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

    .about-box {
        min-height: 350px;
        padding: 30px;
    }

    .about-stat {
        margin-bottom: 80px;
    }

    .contact-content,
    .contact-action-inner {
        padding: 35px 25px;
    }

    .contact-action h3 {
        font-size: 23px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .floating-socials {
        left: 14px;
        bottom: 14px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
    }

}
/* =====================================================
   ARES CUSTOM ADJUSTMENTS
===================================================== */

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

.logo-name {
    color: var(--primary);
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.service-number,
.process-step {
    display: none !important;
}

.footer-socials a svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* =====================================================
   FINAL ARES SERVICE / BRAND UPDATES
===================================================== */
.logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.logo-name {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card,
.service-card.featured {
    min-height: 290px;
    padding: 34px 30px;
    background: #ffffff;
    color: var(--black);
    border: 1px solid var(--border);
    transform: none;
    box-shadow: none;
}

.service-card:hover,
.service-card.featured:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(234, 92, 26, 0.20);
}

.service-card::before {
    display: none;
}

.service-icon,
.featured .service-icon {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 28px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.service-card:hover .service-icon {
    background: rgba(255,255,255,.16);
    color: #fff;
    transform: scale(1.05);
}

.service-card p,
.featured p {
    color: var(--muted);
}

.service-card:hover p,
.service-card:hover .featured p {
    color: rgba(255,255,255,.82);
}

.service-card a,
.service-card .service-number {
    display: none;
}

.contact-method-icon svg,
.footer-socials svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.telegram-icon { color: #229ED9; }
.whatsapp-icon { color: #25D366; }

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

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

@media (max-width: 600px) {
    .services-grid
}

/* =====================================================
   FINAL POLISH
===================================================== */
.logo-link {
    gap: 0;
}

.logo-name {
    margin-top: -1px;
}

.services .section-heading h2 {
    white-space: nowrap;
}

.service-card,
.service-card.featured {
    min-height: 270px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.36s ease,
        color 0.36s ease;
}

.service-icon,
.service-card:hover .service-icon,
.featured .service-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    margin: 0 0 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0;
    transform: none;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-icon svg path:first-child {
    vector-effect: non-scaling-stroke;
}

.service-card:hover .service-icon {
    background: rgba(255,255,255,.16);
    color: #ffffff;
}

.service-card h3 {
    margin-bottom: 8px;
    white-space: nowrap;
}

.service-card p {
    margin: 0;
    line-height: 1.8;
    white-space: nowrap;
}

.process-item p {
    white-space: nowrap;
}

.about-content h2 {
    line-height: 1.35;
}

.contact-content h2 {
    white-space: nowrap;
}

.contact-method-icon,
.contact-method-icon.telegram-icon,
.contact-method-icon.whatsapp-icon {
    color: var(--primary) !important;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}

.contact-method strong {
    direction: ltr;
    text-align: right;
}

@media (max-width: 1100px) {
    .service-card h3,
    .service-card p,
    .process-item p,
    .services .section-heading h2,
    .contact-content h2 {
        white-space: normal;
    }
}

/* =====================================================
   ARES REQUESTED MICRO ADJUSTMENTS
   Preserve the original design; only small spacing changes.
===================================================== */

.logo-link {
    gap: 0;
}

.logo-name {
    transform: translateY(-3px);
}

.footer-logo-link {
    display: inline-block;
    width: fit-content;
}

@media (min-width: 1101px) {
    .footer-main {
        grid-template-columns: 1.55fr 0.75fr 0.75fr 0.75fr;
        column-gap: 28px;
    }

    .footer-column {
        max-width: 120px;
    }
}

@media (max-width: 1100px) {
    .footer-main {
        column-gap: 28px;
    }
}

/* =====================================================
   FINAL CLIENT ADJUSTMENTS
   Small visual changes only; original design/assets preserved.
===================================================== */

/* 1. Bring the ARES GROUP text closer to the logo. */
.logo-name {
    transform: translateY(-5px);
}

/* 3. Slightly reduce the service cards without changing the grid design. */
.service-card,
.service-card.featured {
    min-height: 245px;
    padding: 22px 20px;
}

.service-icon,
.service-card:hover .service-icon,
.featured .service-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    margin-bottom: 15px;
}

.service-icon svg {
    width: 27px;
    height: 27px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.service-card p {
    font-size: 13px;
    line-height: 1.7;
}

/* 4. Small orange accent on the left edge of the contact panel. */
.contact-box {
    position: relative;
}

.contact-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: var(--primary);
    z-index: 5;
}

/* 6. Keep the footer columns grouped toward the left, leaving the center open. */
@media (min-width: 1101px) {
    .footer-main {
        grid-template-columns: 1fr 130px 130px 130px;
        column-gap: 24px;
        justify-content: start;
    }

    .footer-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        max-width: 300px;
    }

    /* DOM order: brand, quick links, services, contact.
       In RTL grid, column 4 is visually leftmost. */
    .footer-main > .footer-column:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-main > .footer-column:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .footer-main > .footer-column:nth-child(4) {
        grid-column: 4;
        grid-row: 1;
    }

    .footer-column {
        max-width: 130px;
    }
}

@media (max-width: 1100px) {
    .contact-box::before {
        width: 5px;
    }
}

/* =====================================================
   FINAL MICRO ADJUSTMENTS — LAST CLIENT REQUEST
===================================================== */

/* 1. Bring ARES GROUP even closer to the logo. */
.logo-link {
    gap: 0;
}
.logo-name {
    transform: translateY(-8px);
}

/* 3. Make the service cards visibly smaller while preserving the grid. */
.service-card,
.service-card.featured {
    min-height: 210px;
    padding: 18px 18px;
}

.service-icon,
.service-card:hover .service-icon,
.featured .service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin-bottom: 11px;
}

.service-icon svg {
    width: 25px;
    height: 25px;
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 5px;
}

.service-card p {
    font-size: 12px;
    line-height: 1.65;
}

/* 4. Full-height orange strip on the left side of the contact box. */
.contact-box::before {
    /* Fill the small white seam between the two orange areas. */
    width: 80px;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
}

/* 5. Put the footer brand block (logo, text, socials) on the right. */
@media (min-width: 1101px) {
    .footer-brand {
        justify-self: start;
        text-align: right;
        direction: rtl;
    }

    .footer-brand p {
        text-align: right;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}

/* =====================================================
   ARES INTERACTION UPDATE
   Services fit in one desktop viewport and the contact
   CTA can switch into an on-panel request form.
===================================================== */

/* SERVICES: keep the complete service grid visible after
   clicking "خدمات" on normal desktop/laptop viewports. */
@media (min-width: 901px) {
    .services {
        padding: 46px 0 42px;
        min-height: calc(100vh - 84px);
        display: flex;
        align-items: center;
    }

    .services .section-heading {
        margin-bottom: 28px;
        max-width: 820px;
    }

    .services .section-heading h2 {
        font-size: clamp(34px, 3.2vw, 44px);
        margin-bottom: 10px;
    }

    .services .section-heading p {
        font-size: 14px;
    }

    .services-grid {
        gap: 22px;
    }

    .service-card,
    .service-card.featured {
        min-height: 205px;
        padding: 18px;
    }

    .service-icon,
    .service-card:hover .service-icon,
    .featured .service-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        margin-bottom: 10px;
    }
}

/* A little more compact on shorter laptop screens. */
@media (min-width: 901px) and (max-height: 820px) {
    .services {
        padding-top: 34px;
        padding-bottom: 30px;
    }

    .services .section-heading {
        margin-bottom: 20px;
    }

    .services .section-heading h2 {
        font-size: 36px;
    }

    .service-card,
    .service-card.featured {
        min-height: 185px;
    }
}

/* CONTACT PANEL: when the form is open, the left accent becomes part
   of the black panel so there is no orange strip/seam beside the form. */
.contact-box.form-open::before {
    background: #171717;
    width: 80px;
    z-index: 5;
}

/* REQUEST BUTTON: clean, solid ARES orange with no dark/default
   button shading or shadow. */
.contact-form-submit,
.contact-form-submit:hover,
.contact-form-submit:focus,
.contact-form-submit:active {
    appearance: none;
    -webkit-appearance: none;
    background: var(--primary);
    background-image: none;
    color: #ffffff;
    box-shadow: none;
    text-shadow: none;
    transform: none;
}

.contact-form-submit:hover,
.contact-form-submit:focus-visible {
    background: var(--primary-dark);
}

.contact-form-submit:focus {
    outline: none;
}

/* CONTACT FORM */
.contact-form {
    display: none;
    position: relative;
    z-index: 3;
    width: 100%;
    animation: contactFormIn .32s ease both;
}

.contact-action.form-open {
    background: #171717;
}

.contact-action.form-open::before,
.contact-action.form-open::after {
    border-color: rgba(234, 92, 26, .18);
}

.contact-action.form-open .contact-action-inner {
    padding: 28px 34px;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
}

.contact-action.form-open .contact-action-copy,
.contact-action.form-open > .contact-action-inner > .white-button {
    display: none;
}

.contact-action.form-open .contact-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.contact-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.contact-form-header > span {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.contact-form-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.contact-form-close:hover {
    background: rgba(234,92,26,.15);
    border-color: var(--primary);
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-form label > span {
    color: rgba(255,255,255,.78);
    font-size: 11px;
}

.contact-form label em {
    color: rgba(255,255,255,.45);
    font-style: normal;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #36363d;
    border-radius: 11px;
    background: #202025;
    color: #fff;
    font: inherit;
    font-size: 12px;
    outline: none;
    padding: 10px 12px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input,
.contact-form select {
    height: 43px;
}

.contact-form textarea {
    min-height: 72px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8d8d96;
}

.contact-form select {
    appearance: auto;
    cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234,92,26,.12);
    background: #24242a;
}

.contact-form-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.contact-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234,92,26,.22);
}

.contact-form-status {
    min-height: 20px;
    margin: 0;
    color: #ffb28e;
    font-size: 11px;
    text-align: center;
}

@keyframes contactFormIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .services {
        padding-top: 80px;
        padding-bottom: 70px;
    }

    .contact-action.form-open .contact-action-inner {
        padding: 35px 25px;
    }
}

@media (max-width: 600px) {
    .contact-action.form-open .contact-action-inner {
        padding: 28px 20px;
    }

    .contact-form textarea {
        min-height: 85px;
    }
}

/* =====================================================
   CONTACT FORM FINAL POLISH
   Center the open form contents and remove every dark
   browser/default edge from the contact CTA button.
===================================================== */

/* The closed "تماس با ما" button should be a clean white
   button with no browser border, shadow, or dark edge. */
.contact-form-toggle,
.contact-form-toggle:hover,
.contact-form-toggle:focus,
.contact-form-toggle:focus-visible,
.contact-form-toggle:active {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: none;
    background: #ffffff;
    color: var(--primary);
    box-shadow: none;
    text-shadow: none;
}

/* Keep the button clean while preserving the existing motion. */
.contact-form-toggle:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.contact-form-toggle:focus-visible {
    outline: 2px solid rgba(234, 92, 26, .28);
    outline-offset: 3px;
}

/* When the form is open, center the complete form as one unit. */
.contact-action.form-open .contact-action-inner {
    align-items: center;
}

.contact-action.form-open .contact-form {
    width: min(100%, 420px);
    max-width: 420px;
    margin-inline: auto;
    align-items: stretch;
}

.contact-action.form-open .contact-form-header {
    width: 100%;
    justify-content: center;
    position: relative;
    text-align: center;
}

.contact-action.form-open .contact-form-header > span {
    text-align: center;
}

.contact-action.form-open .contact-form-close {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
}

.contact-action.form-open .contact-form label {
    width: 100%;
    text-align: center;
}

.contact-action.form-open .contact-form label > span {
    text-align: center;
}

.contact-action.form-open .contact-form input,
.contact-action.form-open .contact-form select,
.contact-action.form-open .contact-form textarea {
    text-align: right;
}

.contact-action.form-open .contact-form-submit {
    align-self: center;
    width: 100%;
    box-shadow: none;
}

.contact-action.form-open .contact-form-submit:hover,
.contact-action.form-open .contact-form-submit:focus,
.contact-action.form-open .contact-form-submit:active {
    box-shadow: none;
    transform: none;
}

/* =====================================================
   CONTACT FORM — KEEP ORIGINAL PANEL POSITION
   The form stays inside the original colored action column;
   only the black open panel contents are centered.
===================================================== */
.contact-box.form-open .contact-action {
    background: #171717;
}

.contact-box.form-open::before {
    background: #171717;
    width: 80px;
    z-index: 5;
}

.contact-action.form-open .contact-action-inner {
    width: 100%;
    box-sizing: border-box;
    padding: 28px 34px;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
}

.contact-action.form-open .contact-form {
    display: flex;
    flex-direction: column;
    width: min(100%, 420px);
    max-width: 420px;
    margin-inline: auto;
    gap: 11px;
    align-self: center;
}

.contact-action.form-open .contact-form-header

.contact-action.form-open .contact-form-header > span

.contact-action.form-open .contact-form-close

.contact-action.form-open .contact-form label,
.contact-action.form-open .contact-form input,
.contact-action.form-open .contact-form select,
.contact-action.form-open .contact-form textarea,
.contact-action.form-open .contact-form-submit {
    width: 100%;
}

@media (max-width: 900px) {
    .contact-action.form-open .contact-action-inner

    .contact-action.form-open .contact-form {
        max-width: 520px;
    }
}

@media (max-width: 600px) {
    .contact-action.form-open .contact-action-inner
}

/* FINAL CONTACT FORM ALIGNMENT
   Keep the original black contact panel, but center the complete
   form inside that panel instead of stretching it toward one side. */
.contact-action.form-open .contact-action-inner {
    align-items: center;
}

.contact-action.form-open .contact-form {
    width: min(100%, 420px);
    margin-inline: auto;
}

/* Keep the contact-form header aligned with the centered form width. */
.contact-action.form-open .contact-form-header {
    width: 100%;
}

/* The contact toggle is a real button: always show the hand cursor. */
.contact-form-toggle,
.contact-form-toggle:hover,
.contact-form-toggle:focus,
.contact-form-toggle:active {
    cursor: pointer;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
}

/* Backend form safety: invisible to real users, useful against simple bots. */
.contact-form-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.contact-form-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* =====================================================
   ARES - LATEST REQUESTED UPDATES
===================================================== */

/* GitHub placeholders use the same visual treatment as the other social icons. */
.github-icon {
    color: var(--primary) !important;
}

.github-placeholder {
    cursor: default;
}

.github-placeholder svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}

.footer-socials .github-placeholder svg {
    width: 19px;
    height: 19px;
}

.about-page .about-content h1 {
    line-height: 1.35;
    margin-bottom: 22px;
}

.about-page .about-content h1 span {
    color: var(--primary);
}

.about-page .about-content p {
    max-width: 680px;
}

@media (max-width: 900px) {
    .about-page .about-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CONTACT SECTION — TARGETED REBUILD
   Only the orange action panel is rebuilt.
   The gray contact-information panel remains unchanged.
===================================================== */

.contact-box {
    grid-template-columns: 65% 35%;
}

.contact-action {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.contact-action-inner {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    padding: 60px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.contact-action-copy {
    width: min(100%, 420px);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-action-copy > span {
    display: block;
    font-size: 13px;
    opacity: .72;
    margin-bottom: 15px;
}

.contact-action h3 {
    width: 100%;
    margin: 0 0 30px;
    text-align: center;
}

.contact-action-copy .contact-form-toggle {
    margin: 0 auto;
}

/* Open state: the entire orange panel becomes one black form surface. */
.contact-box.form-open .contact-action {
    background: #171717;
}

.contact-action.form-open .contact-action-inner {
    padding: 42px 40px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-action.form-open .contact-action-copy {
    display: none;
}

.contact-action.form-open .contact-form {
    width: min(100%, 420px);
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 11px;
}

.contact-action.form-open .contact-form-header {
    width: 100%;
    justify-content: center;
    position: relative;
    text-align: center;
    margin-bottom: 4px;
}

.contact-action.form-open .contact-form-header > span

.contact-action.form-open .contact-form-close

.contact-action.form-open .contact-form label

.contact-action.form-open .contact-form label > span

.contact-action.form-open .contact-form input,
.contact-action.form-open .contact-form select,
.contact-action.form-open .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.contact-action.form-open .contact-form-submit {
    width: 100%;
    align-self: center;
}

/* Do not let the form-opening state change the gray half. */
.contact-box.form-open .contact-content {
    transform: none;
}

@media (max-width: 1100px) {
    .contact-box {
        grid-template-columns: 65% 35%;
    }

    .contact-action-inner {
        padding: 50px 32px;
    }
}

@media (max-width: 800px) {
    .contact-box {
        grid-template-columns: 1fr;
    }

    .contact-action {
        order: 2;
        min-height: 520px;
    }

    .contact-content {
        order: 1;
    }

    .contact-action-inner {
        padding: 48px 24px;
    }

    .contact-action.form-open .contact-action-inner {
        padding: 34px 22px;
    }
}

/* =====================================================
   CONTACT FORM — FINAL CONTAINMENT FIX
   Only affects the orange contact-action panel when open.
   The gray contact-information side is untouched.
===================================================== */

.contact-box.form-open .contact-action {
    position: relative !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    isolation: isolate !important;
}

.contact-box.form-open .contact-action-inner {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 42px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.contact-box.form-open .contact-form {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: min(600px, calc(100% - 80px)) !important;
    max-width: 600px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
}

.contact-box.form-open .contact-form > * {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.contact-box.form-open .contact-form label,
.contact-box.form-open .contact-form input,
.contact-box.form-open .contact-form select,
.contact-box.form-open .contact-form textarea,
.contact-box.form-open .contact-form-submit {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.contact-box.form-open .contact-form-header {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 4px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.contact-box.form-open .contact-form-close {
    position: absolute !important;
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

/* Keep the decorative circles inside the exact same black parent. */
.contact-box.form-open .contact-action::before,
.contact-box.form-open .contact-action::after {
    pointer-events: none !important;
    z-index: 0 !important;
}

.contact-box.form-open .contact-action-inner {
    z-index: 2 !important;
}

@media (max-width: 900px) {
    .contact-box.form-open .contact-action-inner {
        padding: 42px 24px !important;
    }

    .contact-box.form-open .contact-form {
        width: min(600px, calc(100% - 48px)) !important;
        max-width: 600px !important;
    }
}

@media (max-width: 600px) {
    .contact-box.form-open .contact-action-inner {
        padding: 30px 16px !important;
    }

    .contact-box.form-open .contact-form {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* FINAL CONTACT STABILITY / POSITION
   The open form stays in one fixed layout position. */
.contact-box.form-open .contact-action-inner {
    padding-top: 68px !important;
    padding-bottom: 42px !important;
    justify-content: flex-start !important;
    transform: none !important;
}

.contact-box.form-open .contact-form {
    margin-top: 0 !important;
    transform: none !important;
    animation: none !important;
}

.contact-box.form-open .contact-form-header,
.contact-box.form-open .contact-form label,
.contact-box.form-open .contact-form input,
.contact-box.form-open .contact-form select,
.contact-box.form-open .contact-form textarea,
.contact-box.form-open .contact-form-submit {
    transform: none !important;
}

@media (max-width: 800px) {
    .contact-box.form-open .contact-action-inner {
        padding-top: 58px !important;
        padding-bottom: 34px !important;
    }
}

/* Service detail pages */
.service-detail-page {
    min-height: 70vh;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}
.service-detail-page::before,
.service-detail-page::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(245, 91, 20, .22);
    border-radius: 50%;
    pointer-events: none;
}
.service-detail-page::before {
    width: 520px;
    height: 520px;
    top: -300px;
    right: -180px;
}
.service-detail-page::after {
    width: 420px;
    height: 420px;
    bottom: -280px;
    left: -180px;
}
.service-detail-wrap {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.service-detail-hero {
    text-align: center;
    margin-bottom: 58px;
}
.service-detail-hero .section-label {
    display: inline-block;
    margin-bottom: 18px;
}
.service-detail-hero h1 {
    margin: 0 auto 20px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.35;
}
.service-detail-hero h1 span {
    color: #f55b14;
}
.service-detail-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,.68);
    font-size: 1.08rem;
    line-height: 2.1;
}
.service-detail-card {
    background: #1b1b1f;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 58px);
    box-shadow: 0 25px 80px rgba(0,0,0,.18);
}
.service-detail-card h2 {
    margin: 0 0 18px;
    font-size: 1.65rem;
}
.service-detail-card p {
    color: rgba(255,255,255,.68);
    line-height: 2.15;
    margin: 0 0 24px;
}
.service-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    margin: 28px 0 34px;
    padding: 0;
    list-style: none;
}
.service-detail-list li {
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 15px;
    padding: 16px 18px;
    color: rgba(255,255,255,.82);
    line-height: 1.9;
}
.service-detail-list li::before {
    content: "✓";
    color: #f55b14;
    margin-left: 9px;
    font-weight: 800;
}
.service-detail-cta {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}
.service-detail-cta .primary-button {
    text-decoration: none;
}
@media (max-width: 700px) {
    .service-detail-page {
        padding: 120px 0 70px;
    }
    .service-detail-list {
        grid-template-columns: 1fr;
    }
    .service-detail-card {
        border-radius: 22px;
    }
}

/* Service cards are links on the home page, but keep their existing appearance. */
a.service-card {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
a.service-card:hover {
    color: inherit;
}

/* =====================================================
   SERVICES HEADER DROPDOWN
   Desktop: opens when hovering the "خدمات" item.
===================================================== */

.nav-services-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-services-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.nav-services-arrow {
    font-size: 13px;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform .2s ease;
}

.services-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 50%;
    transform: translateX(50%) translateY(8px);
    min-width: 235px;
    padding: 9px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 1000;
}

.services-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 0;
    left: 0;
    height: 12px;
}

.services-dropdown-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.services-dropdown-menu a:hover {
    background: rgba(245,91,20,.09);
    color: var(--primary);
}

.nav-services-dropdown:hover .services-dropdown-menu,
.nav-services-dropdown:focus-within .services-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(50%) translateY(0);
}

.nav-services-dropdown:hover .nav-services-arrow,
.nav-services-dropdown:focus-within .nav-services-arrow {
    transform: translateY(-1px) rotate(180deg);
}

/* Make the service-detail description heading readable on the dark card. */
.service-detail-card h2 {
    color: #ffffff;
}

/* Mobile service list: same services remain available from the header menu. */
.mobile-services-group {
    border-bottom: 1px solid #f2f2f2;
}

.mobile-services-group > a {
    border-bottom: 0 !important;
}

.mobile-services-submenu {
    display: grid;
    gap: 2px;
    padding: 0 8px 8px;
}

.mobile-services-submenu a {
    padding: 9px 14px !important;
    border-bottom: 0 !important;
    border-radius: 9px;
    font-size: 12px;
    color: rgba(20,20,20,.62) !important;
}

.mobile-services-submenu a:hover {
    color: var(--primary) !important;
    background: rgba(245,91,20,.06);
}

@media (max-width: 850px) {
    .nav-services-dropdown {
        display: none;
    }
}

/* Final polish: perfectly center all service-card contents. */
.services .service-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.services .service-card .service-icon,
.services .service-card .icon,
.services .service-card > .icon,
.services .service-card .service-card-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    margin: 0 auto 22px !important;
    text-align: center !important;
    transform: none !important;
}

.services .service-card svg {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
}

.services .service-card h3 {
    width: 100%;
    margin: 0 0 10px !important;
    text-align: center !important;
}

.services .service-card p {
    width: 100%;
    max-width: 260px;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Keep the services nav item in the normal navigation flow so the scroll indicator
   can still detect the active section. */
.navigation .services-dropdown > .nav-link,
.navigation .nav-services > .nav-link,
.navigation .services-menu > .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* =====================================================
   ARES DARK MODE
   Toggle: .dark-mode on <body>
===================================================== */

:root {
    color-scheme: light;
    --theme-bg: #ffffff;
    --theme-surface: #ffffff;
    --theme-surface-alt: #f8f8f8;
    --theme-text: #171717;
    --theme-text-soft: #4f4f4f;
    --theme-muted: #858585;
    --theme-border: #eeeeee;
    --theme-header: rgba(255, 255, 255, 0.94);
}

body {
    background: var(--theme-bg);
    color: var(--theme-text);
    transition: background-color .25s ease, color .25s ease;
}

/* The pages already contain some intentionally dark panels.
   These rules make the light parts switch cleanly without
   changing the existing orange brand color. */
body.dark-mode {
    color-scheme: dark;
    --theme-bg: #101114;
    --theme-surface: #18191d;
    --theme-surface-alt: #141519;
    --theme-text: #f4f4f5;
    --theme-text-soft: #c4c4c8;
    --theme-muted: #a0a0a8;
    --theme-border: #2c2d33;
    --theme-header: rgba(16, 17, 20, 0.92);
    background: var(--theme-bg);
    color: var(--theme-text);
}

/* Header */
.header {
    background: var(--theme-header);
    border-bottom-color: rgba(0, 0, 0, 0.04);
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

body.dark-mode .header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .nav-link {
    color: #e7e7e9;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: var(--primary);
}

/* Dropdown */
.services-dropdown-menu {
    background: var(--theme-surface);
}

body.dark-mode .services-dropdown-menu {
    border-color: var(--theme-border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

body.dark-mode .services-dropdown-menu a {
    color: var(--theme-text-soft);
}

/* Buttons */
body.dark-mode .secondary-button {
    color: var(--theme-text);
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

body.dark-mode .secondary-button:hover {
    color: var(--primary);
    border-color: var(--primary);
}

body.dark-mode .white-button {
    background: #f3f3f3;
    color: var(--primary);
}

/* Mobile menu */
body.dark-mode .mobile-navigation {
    background: #121317;
    border-top-color: rgba(255,255,255,.08);
    box-shadow: 0 15px 35px rgba(0,0,0,.35);
}

body.dark-mode .mobile-navigation a {
    color: #e7e7e9;
    border-bottom-color: rgba(255,255,255,.08);
}

body.dark-mode .mobile-services-group {
    border-bottom-color: rgba(255,255,255,.08);
}

body.dark-mode .mobile-services-submenu a {
    color: rgba(255,255,255,.65) !important;
}

/* Mobile hamburger */
body.dark-mode .mobile-menu-button span {
    background: #f4f4f5;
}

/* Hero */
body.dark-mode .hero {
    background: var(--theme-bg);
}

body.dark-mode .hero-description,
body.dark-mode .hero-trust .trust-item span {
    color: var(--theme-muted);
}

body.dark-mode .trust-divider {
    background: var(--theme-border);
}

/* Services */
body.dark-mode .services {
    background: var(--theme-surface-alt);
}

body.dark-mode .service-card,
body.dark-mode .service-card.featured {
    background: var(--theme-surface);
    color: var(--theme-text);
    border-color: var(--theme-border);
    box-shadow: none;
}

body.dark-mode .service-card p,
body.dark-mode .service-card.featured p {
    color: var(--theme-muted);
}

body.dark-mode .service-card:hover,
body.dark-mode .service-card.featured:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

body.dark-mode .service-card:hover p,
body.dark-mode .service-card:hover .service-number,
body.dark-mode .service-card:hover .service-icon {
    color: #fff;
}

/* Process */
body.dark-mode .process {
    background: var(--theme-bg);
}

body.dark-mode .process-item h3 {
    color: var(--theme-text);
}

body.dark-mode .process-item p {
    color: var(--theme-muted);
}

body.dark-mode .process-line {
    background: var(--theme-border);
}

/* About */
body.dark-mode .about {
    background: var(--theme-surface-alt);
}

body.dark-mode .about-content p {
    color: var(--theme-muted);
}

body.dark-mode .about-box {
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

body.dark-mode .about-stat span,
body.dark-mode .about-quote p {
    color: var(--theme-muted);
}

/* Contact */
body.dark-mode .contact {
    background: var(--theme-bg);
}

body.dark-mode .contact-content > p {
    color: var(--theme-muted);
}

body.dark-mode .contact-method {
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

body.dark-mode .contact-method:hover {
    border-color: var(--primary);
}

body.dark-mode .contact-method span {
    color: var(--theme-muted);
}

body.dark-mode .contact-method strong {
    color: var(--theme-text);
}

/* Contact form fields when the form is not the intentionally dark panel */
body.dark-mode .contact-form input,
body.dark-mode .contact-form select,
body.dark-mode .contact-form textarea {
    background: #202126;
    color: #f4f4f5;
    border-color: #36373e;
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
    color: #85858d;
}

/* Footer stays dark in both modes, so its visual identity remains intact. */

/* Service detail pages */
.service-detail-page {
    background: var(--theme-bg);
}

.service-detail-hero p {
    color: var(--theme-muted);
}

.service-detail-card {
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

.service-detail-card h2 {
    color: var(--theme-text);
}

.service-detail-card p {
    color: var(--theme-text-soft);
}

.service-detail-list li {
    background: var(--theme-surface-alt);
    border-color: var(--theme-border);
    color: var(--theme-text-soft);
}

body.dark-mode .service-detail-card {
    box-shadow: 0 25px 80px rgba(0,0,0,.28);
}

body.dark-mode .service-detail-list li {
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.07);
    color: rgba(255,255,255,.82);
}

/* Floating social buttons retain their original brand colors. */

/* Theme toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    padding: 0;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle .sun-icon {
    display: block;
}

@media (max-width: 850px) {
    .theme-toggle {
        margin-right: auto;
        margin-left: 12px;
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

@media (max-width: 600px) {
    .theme-toggle {
        margin-left: 10px;
    }
}

/* Respect the user's OS theme on first visit, before JavaScript
   restores a saved preference. */
@media (prefers-color-scheme: dark) {
    html:not(.theme-ready) body {
        background: #101114;
        color: #f4f4f5;
    }
}

/* =====================================================
   FINAL REQUEST — FOOTER LOGO HOVER + DARK CONTACT INFO
===================================================== */

/* Footer logo: white by default, ARES orange on hover/focus. */
.footer-logo-link {
    position: relative;
    display: inline-block;
    width: fit-content;
    line-height: 0;
}

.footer-logo-link .footer-logo {
    transition: filter 0.25s ease, transform 0.25s ease;
}

.footer-logo-link:hover .footer-logo,
.footer-logo-link:focus-visible .footer-logo {
    opacity: 0;
}

/*
   Contact information area: make the complete group containing
   phone/social/email entries dark, not just the individual cards.
*/
.contact-methods {
    background: #171717;
    padding: 18px;
    border-radius: 20px;
}

.contact-methods .contact-method {
    background: #101114;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-methods .contact-method:hover {
    background: #000000;
    border-color: rgba(234, 92, 26, 0.35);
}

.contact-methods .contact-method span {
    color: rgba(255, 255, 255, 0.58);
}

.contact-methods .contact-method strong {
    color: #ffffff;
}

@media (max-width: 700px) {
    .contact-methods {
        padding: 12px;
        border-radius: 16px;
    }
}

/* =====================================================
   FINAL FIX — HERO STATS + CONTACT PANEL
===================================================== */

/* Dark mode: make the hero statistics fully visible on the dark hero. */
body.dark-mode .hero-trust .trust-item strong {
    color: #ffffff;
}

/* Contact section: the complete outer box is black; keep the orange action side. */
.contact-box {
    background: #000000;
}

.contact-content {
    background: #000000;
    color: #ffffff;
}

.contact-content h2,
.contact-content h2 span {
    color: #ffffff;
}

.contact-content h2 span

.contact-content > p {
    color: rgba(255, 255, 255, 0.68);
}

.contact-methods {
    background: #000000;
}

.contact-methods .contact-method:hover {
    background: #111111;
}

/* =====================================================
   ARES - REQUESTED MICRO CHANGES ONLY
===================================================== */

/* Remove the hand-pointer cursor from consultation CTA links.
   The contact-section consultation button is intentionally excluded. */
.primary-button {
    cursor: pointer;
}

/* Bring the ARES GROUP label closer to the logo. */
.logo-name {
    transform: translateY(-11px);
}

/* Darker, richer orange icon backgrounds — icon backgrounds only. */
.service-icon,
.featured .service-icon,
.contact-method-icon {
    background: rgba(234, 92, 26, 0.24);
}

/* Keep the service icon treatment consistent in dark mode. */
body.dark-mode .service-icon,
body.dark-mode .featured .service-icon,
body.dark-mode .contact-method-icon {
    background: rgba(234, 92, 26, 0.28);
}

/* Hero 3D illustration — responsive only */
@media (max-width: 900px) {
    .hero-3d-scene {
        width: min(100%, 500px);
        height: 460px;
        transform: scale(.88);
    }
}

@media (max-width: 600px) {
    .hero-3d-scene {
        width: 100%;
        height: 390px;
        transform: scale(.70);
        transform-origin: center center;
        margin: -35px 0 -45px;
    }
}

/* =====================================================
   ARES HERO REFINEMENT — 3D TECH PANELS
   Requested changes only: remove the central A/circular forms,
   refine the floating panels, and keep the desktop 3D feel.
===================================================== */

.hero-circle {
    display: none !important;
}

.hero-3d-scene {
    width: min(100%, 570px);
    height: 540px;
    overflow: visible;
    filter: drop-shadow(0 28px 42px rgba(0, 0, 0, .38));
}

.hero-panel {
    z-index: 5;
    padding: 15px 16px;
    border-color: rgba(255,255,255,.14);
    box-shadow:
        0 24px 42px rgba(0,0,0,.48),
        0 0 26px rgba(234,92,26,.08),
        inset 0 0 20px rgba(255,255,255,.025);
    background: linear-gradient(145deg, rgba(39,42,47,.94), rgba(9,10,12,.97));
}

/* Top-right: minimal left-to-right code-line graphic, no text labels. */
.hero-panel-code {
    width: 188px;
    height: 112px;
    top: 62px;
    right: 20px;
    direction: ltr;
    text-align: left;
    transform: rotateY(-13deg) rotateZ(2deg);
    animation: heroPanelFloatOne 5.8s ease-in-out infinite;
}

.hero-panel-code .code-line {
    position: relative;
    height: 2px;
    margin: 9px 34px 0 14px;
    padding: 0;
    background: rgba(234,92,26,.78);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(234,92,26,.16);
    font-size: 0;
}

.hero-panel-code .code-line:nth-child(2) { width: 78%; background: rgba(255,157,92,.55); }
.hero-panel-code .code-line:nth-child(3) { width: 61%; }
.hero-panel-code .code-line:nth-child(4) { width: 84%; }
.hero-panel-code .code-line:nth-child(5) { width: 54%; }
.hero-panel-code .code-line:nth-child(6) { width: 72%; }
.hero-panel-code .code-line:nth-child(7) { width: 47%; }
.hero-panel-code .code-line:nth-child(4) { width: 88%; background: rgba(234,92,26,.62); }
.hero-panel-code .code-line:nth-child(5) { width: 66%; background: rgba(255,157,92,.48); }
.hero-panel-code .code-line:nth-child(6) { width: 81%; }
.hero-panel-code .code-line:nth-child(7) { width: 48%; background: rgba(255,157,92,.55); }

.hero-panel-code .code-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 4px;
    height: 10px;
    border-radius: 2px;
    background: rgba(255,255,255,.42);
}

.hero-panel-code b {
    position: absolute;
    right: 13px;
    bottom: 10px;
    color: var(--primary);
    font-size: 16px;
    text-shadow: 0 0 10px rgba(234,92,26,.35);
}

/* Left: taller developer project flow, mapped from top to bottom. */
.hero-panel-flow {
    width: 198px;
    height: 224px;
    top: 154px;
    left: 2px;
    direction: ltr;
    transform: rotateY(14deg) rotateZ(-3deg);
    animation: heroPanelFloatTwo 6.4s ease-in-out infinite;
}

.flow-title,
.stack-label {
    display: block;
    color: rgba(255,255,255,.42);
    font: 700 8px/1 Arial, sans-serif;
    letter-spacing: 1.7px;
    margin-bottom: 14px;
}

.flow-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    direction: ltr;
    margin: 0;
    padding: 0;
}

.flow-row-second {
    padding-left: 0;
}

.flow-row i {
    position: relative;
    z-index: 2;
    width: 88px;
    min-width: 88px;
    padding: 7px 8px;
    border: 1px solid rgba(234,92,26,.38);
    border-radius: 7px;
    background: rgba(234,92,26,.08);
    color: rgba(255,255,255,.82);
    font: 700 7px/1 Arial, sans-serif;
    font-style: normal;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(234,92,26,.05);
}

.flow-row em {
    position: relative;
    width: 1px;
    height: 15px;
    flex: 0 0 15px;
    background: rgba(234,92,26,.68);
}

.flow-row em::after {
    content: "";
    position: absolute;
    left: -3px;
    bottom: -1px;
    width: 0;
    height: 0;
    border-top: 5px solid var(--primary);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
}

/* The second row becomes the continuation of the same vertical chart. */
.flow-row-second {
    margin-top: -1px;
}

.flow-row-second::before {
    content: "";
    width: 1px;
    height: 15px;
    background: rgba(234,92,26,.68);
}

/* Lower-right: HTML / CSS / C++ stacked vertically. */
.hero-panel-data {
    width: 128px;
    height: 138px;
    right: 18px;
    bottom: 106px;
    direction: ltr;
    transform: rotateY(-11deg) rotateZ(-3deg);
    animation: heroPanelFloatThree 5.2s ease-in-out infinite;
}

.stack-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.stack-item:last-child { border-bottom: 0; }

.stack-item b {
    color: var(--primary);
    font: 800 11px/1 Arial, sans-serif;
    letter-spacing: .4px;
}

.stack-item small {
    display: none;
}

.hero-orb-one {
    top: 104px;
    left: 112px;
}

.hero-orb-two {
    top: 172px;
    right: 108px;
}

.hero-orb-three {
    bottom: 152px;
    left: 118px;
}

@keyframes heroPanelFloatOne {
    0%, 100% { transform: rotateY(-13deg) rotateZ(2deg) translate3d(0, 0, 0); }
    50% { transform: rotateY(-13deg) rotateZ(2deg) translate3d(0, -7px, 8px); }
}

@keyframes heroPanelFloatTwo {
    0%, 100% { transform: rotateY(14deg) rotateZ(-3deg) translate3d(0, 0, 0); }
    50% { transform: rotateY(14deg) rotateZ(-3deg) translate3d(0, -8px, 7px); }
}

@keyframes heroPanelFloatThree {
    0%, 100% { transform: rotateY(-11deg) rotateZ(-3deg) translate3d(0, 0, 0); }
    50% { transform: rotateY(-11deg) rotateZ(-3deg) translate3d(0, -6px, 6px); }
}

/* Footer logo: static in place; hover uses the original exact ARES orange asset. */
.footer-logo-link,
.footer-logo-link:hover,
.footer-logo-link:focus,
.footer-logo-link:focus-visible {
    transform: none !important;
}

.footer-logo-link .footer-logo {
    display: block;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: brightness(0) invert(1);
}

@media (max-width: 850px) {
    .hero-3d-scene {
        height: 390px;
        transform: scale(.84);
    }

    .hero-panel-code {
        top: 32px;
        right: 2px;
    }

    .hero-panel-flow {
        top: 132px;
        left: 0;
    }

    .hero-panel-data {
        bottom: 55px;
        right: 8px;
    }
}

@media (max-width: 600px) {
    .hero-3d-scene {
        transform: scale(.67);
        transform-origin: center center;
    }
}

/* FINAL MICRO POLISH — hero illustration */
.hero-panel-flow .flow-title {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

.hero-panel-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 14px 18px;
}
.hero-panel-data .stack-label,
.hero-panel-data .stack-item small {
    display: none !important;
}
.hero-panel-data .stack-item {
    justify-content: center;
    padding: 8px 0;
}
.hero-panel-data .stack-item b {
    color: var(--primary);
}

/* Light mode: keep the same 3D composition, but lift the panels and contrast
   so the illustration belongs naturally on the light desktop theme. */
body:not(.dark-mode) .hero-3d-scene {
    filter: drop-shadow(0 24px 38px rgba(45, 38, 34, 0.18));
}

body:not(.dark-mode) .hero-panel {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,247,249,.98));
    border-color: rgba(45,47,52,.14);
    box-shadow: 0 22px 35px rgba(28,31,36,.16),
                inset 0 0 18px rgba(255,255,255,.72),
                0 0 22px rgba(234,92,26,.08);
    color: #25272b;
}

body:not(.dark-mode) .flow-title,
body:not(.dark-mode) .stack-label {
    color: rgba(37,39,43,.48);
}

body:not(.dark-mode) .flow-row i {
    color: #2b2d31;
    background: rgba(234,92,26,.07);
    border-color: rgba(234,92,26,.34);
}

body:not(.dark-mode) .stack-item {
    border-bottom-color: rgba(37,39,43,.10);
}

body:not(.dark-mode) .hero-panel-code .code-line {
    background: rgba(234,92,26,.82);
    box-shadow: 0 0 8px rgba(234,92,26,.13);
}

body:not(.dark-mode) .hero-panel-code .code-line:nth-child(2),
body:not(.dark-mode) .hero-panel-code .code-line:nth-child(5),
body:not(.dark-mode) .hero-panel-code .code-line:nth-child(7) {
    background: rgba(201,71,13,.58);
}

body:not(.dark-mode) .hero-panel-code .code-line::before {
    background: rgba(37,39,43,.35);
}

body:not(.dark-mode) .hero-orb {
    box-shadow: 0 0 20px rgba(234,92,26,.24), inset -7px -8px 12px rgba(80,45,30,.20);
}

/* FINAL REQUESTED MICRO-FIXES
   1) Tech stack labels centered vertically, one per row.
   2) Footer logo is a single image that directly changes from white to ARES orange.
   3) Floating Telegram/WhatsApp buttons use dark surfaces in dark mode only.
*/
.hero-panel-data {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 14px 18px !important;
}

.hero-panel-data .stack-item {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.hero-panel-data .stack-item b {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    color: var(--primary) !important;
    font: 800 11px/1 Arial, sans-serif !important;
    letter-spacing: .4px !important;
}

.footer-logo-link .footer-logo,
.footer-logo-link:hover .footer-logo,
.footer-logo-link:focus .footer-logo,
.footer-logo-link:focus-visible .footer-logo {
    opacity: 1 !important;
    transform: none !important;
    transition: filter .2s ease !important;
}

.footer-logo-link .footer-logo {
    filter: brightness(0) invert(1) !important;
}

.footer-logo-link:hover .footer-logo,
.footer-logo-link:focus-visible .footer-logo {
    /* Exact ARES orange #EA5C1A */
    filter: brightness(0) saturate(100%) invert(39%) sepia(92%) saturate(2250%) hue-rotate(348deg) brightness(98%) contrast(91%) !important;
}

/* Floating social buttons: preserve brand-colored icons in both modes,
   but use dark button surfaces only while dark mode is active. */
.floating-socials .social-btn {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

body.dark-mode .floating-socials .social-btn {
    background: #171717 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.42) !important;
}

body.dark-mode .floating-socials .social-btn:hover {
    background: #232323 !important;
}

/* Consistent Mac-style controls on every floating hero box. */
.hero-panel::before {
    content: "•  •  •";
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 5;
    font: 900 10px/1 Arial, sans-serif;
    letter-spacing: 2px;
    color: var(--primary);
    opacity: .9;
    text-shadow: 0 0 7px rgba(234,92,26,.25);
    pointer-events: none;
}
.hero-panel {
    position: absolute;
}
.hero-panel .flow-title {
    padding-left: 0;
}
.hero-panel-code,
.hero-panel-flow,
.hero-panel-data {
    padding-top: 22px;
    box-sizing: border-box;
}

/* Alternative desktop-floating presentation: the three panels sit independently above
   the hero plane instead of reading as components embedded inside it. */
.hero-visual {
    overflow: visible !important;
}
.hero-panel-code {
    top: 30px;
    right: -52px;
    z-index: 8;
    transform: rotateY(-9deg) rotateZ(2deg);
}
.hero-panel-flow {
    top: 142px;
    left: -52px;
    z-index: 8;
    transform: rotateY(10deg) rotateZ(-2deg);
}
.hero-panel-data {
    right: -38px;
    bottom: 56px;
    z-index: 9;
    transform: rotateY(-8deg) rotateZ(-2deg);
}
@media (max-width: 850px) {
    .hero-panel-code { right: 4px; top: 28px; }
    .hero-panel-flow { left: 4px; top: 145px; }
    .hero-panel-data { right: 8px; bottom: 70px; }
}

/* ARES monitor presentation: the hero panels emerge from a single 3D monitor. */
.hero-visual::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 330px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) perspective(900px) rotateX(1deg);
    border: 2px solid rgba(234,92,26,.48);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
        #101214;
    box-shadow:
        0 35px 70px rgba(0,0,0,.42),
        0 0 35px rgba(234,92,26,.09),
        inset 0 0 0 7px rgba(255,255,255,.018),
        inset 0 0 50px rgba(234,92,26,.025);
    z-index: 0;
    pointer-events: none;
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 8px;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(234,92,26,.55), transparent);
    box-shadow: 0 22px 0 8px rgba(15,17,19,.96);
    z-index: 0;
    pointer-events: none;
}

/* Keep the three floating panels visually in front of the monitor. */
.hero-panel {
    z-index: 6;
}

/* Strong, explicit downward connector arrow for BUILD -> TEST. */
.hero-panel-flow .flow-row-second::before {
    display: block;
    position: relative;
    width: 2px;
    height: 18px;
    margin: 0 auto;
    background: var(--primary);
    content: "";
}
.hero-panel-flow .flow-row-second::after {
    content: "";
    display: block;
    position: absolute;
    top: 16px;
    left: calc(50% - 4px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--primary);
    filter: drop-shadow(0 0 5px rgba(234,92,26,.4));
}

/* Each vertical connector in the flow gets an unmistakable arrowhead. */
.hero-panel-flow .flow-row em {
    display: block;
    position: relative;
}
.hero-panel-flow .flow-row em::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--primary);
    z-index: 4;
}

/* Light mode: monitor becomes a clean pale glass/screen surface. */
[data-theme="light"] .hero-visual::before,
.light-mode .hero-visual::before,
body.light .hero-visual::before {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,246,247,.96)),
        #f4f5f6;
    border-color: rgba(234,92,26,.42);
    box-shadow:
        0 28px 60px rgba(35,40,45,.16),
        0 0 30px rgba(234,92,26,.08),
        inset 0 0 0 7px rgba(0,0,0,.025);
}

@media (max-width: 1100px) {
    .hero-visual::before {
        width: 460px;
        height: 300px;
    }
}
@media (max-width: 850px) {
    .hero-visual::before {
        width: min(92vw, 430px);
        height: 275px;
    }
}

/* Final monitor proportions and panel spacing. */
.hero-visual::before {
    width: 430px;
    height: 270px;
}

/* Remove both decorative lines beneath the monitor. */
.hero-visual::after {
    display: none !important;
}

/* Panels remain outside the monitor edges, but substantially closer together. */
.hero-panel-code {
    top: 42px;
    right: -10px;
}

.hero-panel-flow {
    width: 218px;
    height: 224px;
    top: 122px;
    left: -10px;
}

.hero-panel-data {
    width: 100px;
    height: 104px;
    right: 4px;
    bottom: 78px;
}

/* Keep the monitor smaller in responsive desktop/tablet layouts. */
@media (max-width: 1100px) {
    .hero-visual::before {
        width: 390px;
        height: 250px;
    }
}

@media (max-width: 850px) {
    .hero-visual::before {
        width: min(88vw, 390px);
        height: 250px;
    }

    .hero-panel-code {
        right: 2px;
        top: 34px;
    }

    .hero-panel-flow {
        left: 2px;
        top: 130px;
    }

    .hero-panel-data {
        right: 6px;
        bottom: 68px;
    }
}

/* Final monitor tilt: subtle rightward 3D angle. */
.hero-visual::before {
    transform: translate(-50%, -50%) perspective(900px) rotateY(-7deg) rotateX(1deg);
}

/* Project Flow: no arrowheads, slightly longer vertically at the bottom. */
.hero-panel-flow {
    height: 244px;
}
.hero-panel-flow .flow-row em::after,
.hero-panel-flow .flow-row-second::after {
    display: none !important;
}
.hero-panel-flow .flow-row-second::before {
    height: 18px;
    background: rgba(234,92,26,.68);
}
.hero-panel-flow .flow-row-second {
    padding-bottom: 12px;
}

/* Code-lines panel: lower it slightly into the monitor while remaining outside its edge. */
.hero-panel-code {
    top: 58px;
}

/* Inner webpage preview: lives inside the monitor, underneath the floating panels. */
.hero-panel-webpage {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 230px;
    height: 118px;
    transform: translateX(-50%) perspective(700px) rotateY(-2deg);
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(234,92,26,.25);
    border-radius: 9px;
    background: rgba(18,20,22,.92);
    box-shadow: inset 0 0 25px rgba(234,92,26,.035);
    direction: ltr;
    pointer-events: none;
}
.hero-panel-webpage .web-topbar {
    height: 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
    position: relative;
}
.hero-panel-webpage .web-topbar::before {
    content: "•  •  •";
    position: absolute;
    left: 8px;
    top: 5px;
    color: rgba(234,92,26,.72);
    font: 900 7px/1 Arial, sans-serif;
    letter-spacing: 1px;
}
.hero-panel-webpage .web-nav {
    height: 15px;
    margin: 8px 12px 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(234,92,26,.55) 0 34%, rgba(255,255,255,.08) 34% 58%, rgba(255,255,255,.05) 58%);
}
.hero-panel-webpage .web-hero {
    height: 37px;
    margin: 0 12px 7px;
    border-radius: 5px;
    background:
        linear-gradient(90deg, rgba(234,92,26,.16) 0 52%, transparent 52%),
        rgba(255,255,255,.035);
    position: relative;
}
.hero-panel-webpage .web-hero::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 9px;
    width: 58px;
    height: 4px;
    border-radius: 99px;
    background: rgba(234,92,26,.68);
    box-shadow: 0 9px 0 rgba(255,255,255,.14), 0 18px 0 rgba(255,255,255,.08);
}
.hero-panel-webpage .web-cards {
    display: flex;
    gap: 7px;
    margin: 0 12px;
}
.hero-panel-webpage .web-card {
    flex: 1;
    height: 23px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.025);
}
.hero-panel-webpage .web-card:first-child {
    border-color: rgba(234,92,26,.18);
}

/* Light mode: the inner monitor webpage stays legible and integrated. */
[data-theme="light"] .hero-panel-webpage,
.light-mode .hero-panel-webpage,
body.light .hero-panel-webpage {
    background: rgba(250,250,250,.94);
    border-color: rgba(234,92,26,.25);
    box-shadow: inset 0 0 25px rgba(40,45,50,.04);
}
[data-theme="light"] .hero-panel-webpage .web-topbar,
.light-mode .hero-panel-webpage .web-topbar,
body.light .hero-panel-webpage .web-topbar {
    background: rgba(20,24,28,.035);
    border-color: rgba(20,24,28,.08);
}
[data-theme="light"] .hero-panel-webpage .web-card,
.light-mode .hero-panel-webpage .web-card,
body.light .hero-panel-webpage .web-card {
    background: rgba(20,24,28,.035);
    border-color: rgba(20,24,28,.08);
}

@media (max-width: 850px) {
    .hero-panel-webpage {
        width: min(52vw, 210px);
        height: 106px;
        bottom: 18px;
    }
}

/* Final monitor orientation: flat / no directional tilt. */
.hero-visual::before {
    transform: translate(-50%, -50%) perspective(900px) rotateX(1deg) !important;
}

/* Larger webpage display, fully contained inside the monitor screen. */
.hero-panel-webpage {
    width: 350px;
    height: 190px;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) !important;
    z-index: 2;
    border-radius: 10px;
    background: rgba(18,20,22,.94);
    border-color: rgba(234,92,26,.28);
}

/* Scale the internal webpage details with the larger screen. */
.hero-panel-webpage .web-topbar {
    height: 25px;
}
.hero-panel-webpage .web-topbar::before {
    left: 11px;
    top: 8px;
    font-size: 8px;
}
.hero-panel-webpage .web-nav {
    height: 19px;
    margin: 11px 18px 8px;
}
.hero-panel-webpage .web-hero {
    height: 65px;
    margin: 0 18px 10px;
}
.hero-panel-webpage .web-hero::after {
    left: 13px;
    top: 13px;
    width: 92px;
    height: 5px;
    box-shadow: 0 12px 0 rgba(255,255,255,.14), 0 24px 0 rgba(255,255,255,.08);
}
.hero-panel-webpage .web-cards {
    gap: 10px;
    margin: 0 18px;
}
.hero-panel-webpage .web-card {
    height: 38px;
}

/* Light mode: make the entire illustration read as a bright, polished 3D UI. */
[data-theme="light"] .hero-visual::before,
.light-mode .hero-visual::before,
body.light .hero-visual::before {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,241,243,.98)),
        #f2f3f4 !important;
    border-color: rgba(234,92,26,.34);
    box-shadow:
        0 26px 55px rgba(25,30,35,.14),
        0 0 28px rgba(234,92,26,.08),
        inset 0 0 0 7px rgba(0,0,0,.025),
        inset 0 0 35px rgba(234,92,26,.025);
}

[data-theme="light"] .hero-panel,
.light-mode .hero-panel,
body.light .hero-panel {
    background: rgba(255,255,255,.93);
    border-color: rgba(20,24,28,.12);
    box-shadow:
        0 18px 38px rgba(20,24,28,.13),
        0 0 18px rgba(234,92,26,.07),
        inset 0 0 0 1px rgba(255,255,255,.55);
}

[data-theme="light"] .hero-panel-code .code-line,
.light-mode .hero-panel-code .code-line,
body.light .hero-panel-code .code-line {
    background: rgba(234,92,26,.72);
    box-shadow: none;
}

[data-theme="light"] .hero-panel-code .code-line::before,
.light-mode .hero-panel-code .code-line::before,
body.light .hero-panel-code .code-line::before {
    background: rgba(30,34,38,.28);
}

[data-theme="light"] .hero-panel-webpage,
.light-mode .hero-panel-webpage,
body.light .hero-panel-webpage {
    background: rgba(252,252,252,.98);
    border-color: rgba(234,92,26,.22);
    box-shadow:
        0 14px 28px rgba(25,30,35,.10),
        inset 0 0 22px rgba(25,30,35,.025);
}

[data-theme="light"] .hero-panel-webpage .web-topbar,
.light-mode .hero-panel-webpage .web-topbar,
body.light .hero-panel-webpage .web-topbar

[data-theme="light"] .hero-panel-webpage .web-nav,
.light-mode .hero-panel-webpage .web-nav,
body.light .hero-panel-webpage .web-nav {
    background: linear-gradient(90deg, rgba(234,92,26,.62) 0 34%, rgba(30,34,38,.09) 34% 58%, rgba(30,34,38,.055) 58%);
}

[data-theme="light"] .hero-panel-webpage .web-hero,
.light-mode .hero-panel-webpage .web-hero,
body.light .hero-panel-webpage .web-hero {
    background:
        linear-gradient(90deg, rgba(234,92,26,.12) 0 52%, transparent 52%),
        rgba(20,24,28,.035);
}

[data-theme="light"] .hero-panel-webpage .web-card,
.light-mode .hero-panel-webpage .web-card,
body.light .hero-panel-webpage .web-card

[data-theme="light"] .hero-orb,
.light-mode .hero-orb,
body.light .hero-orb {
    filter: brightness(.88) saturate(.9);
}

/* Larger screen still fits cleanly on smaller displays. */
@media (max-width: 1100px) {
    .hero-panel-webpage {
        width: 315px;
        height: 170px;
    }
}
@media (max-width: 850px) {
    .hero-panel-webpage {
        width: min(76vw, 315px);
        height: 160px;
        top: 50%;
    }
}

.hero-panel-webpage {
    left: calc(50% - 18px) !important;
    transform: translate(-50%, -50%) !important;
    rotate: 0deg !important;
}

.hero-visual::before { display: none !important; }
.hero-panel-webpage { z-index: 2; }

/* No-monitor final: webpage preview shifted right and kept clear of the other panels. */
.hero-panel-webpage {
    left: calc(50% + 118px) !important;
    top: 54% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    rotate: 0deg !important;
}
@media (max-width: 1100px) {
    .hero-panel-webpage {
        left: calc(50% + 92px) !important;
    }
}
@media (max-width: 850px) {
    .hero-panel-webpage {
        left: 58% !important;
        top: 58% !important;
    }
}

/* ARES illustration redesign — restrained developer-tool composition.
   Inspired by contemporary dashboard heroes: one visual anchor + sparse floating cards,
   rather than a symmetrical collection of decorative objects. */
.hero-visual {
    isolation: isolate;
    perspective: 1100px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 250px;
    left: 50%;
    top: 51%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    background: rgba(17,19,21,.96);
    border: 1px solid rgba(234,92,26,.26);
    box-shadow:
        0 28px 65px rgba(0,0,0,.30),
        0 0 34px rgba(234,92,26,.055),
        inset 0 0 0 6px rgba(255,255,255,.015);
    z-index: 1;
}

.hero-panel-webpage {
    width: 330px !important;
    height: 180px !important;
    left: calc(50% + 4px) !important;
    top: 51% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 9px;
    z-index: 3;
    box-shadow:
        0 18px 42px rgba(0,0,0,.28),
        0 0 18px rgba(234,92,26,.045);
}

.hero-panel-webpage .web-topbar {
    height: 23px;
}

.hero-panel-webpage .web-nav {
    margin-top: 9px;
}

.hero-panel-flow {
    width: 208px !important;
    height: 248px !important;
    left: -8px !important;
    top: 84px !important;
    z-index: 7;
    transform: rotateY(8deg) rotateZ(-1.4deg) !important;
}

.hero-panel-code {
    width: 188px !important;
    height: 112px !important;
    right: -4px !important;
    top: 42px !important;
    z-index: 7;
    transform: rotateY(-7deg) rotateZ(1.2deg) !important;
}

/* Give the existing floating orbs a quieter supporting role. */
.hero-orb {
    opacity: .72;
    box-shadow: 0 0 18px rgba(234,92,26,.16);
}

.hero-orb-one {
    top: 76px !important;
    left: 164px !important;
    width: 8px !important;
    height: 8px !important;
}

.hero-orb-two {
    top: 204px !important;
    right: 94px !important;
    width: 6px !important;
    height: 6px !important;
}

.hero-orb-three {
    bottom: 68px !important;
    left: 174px !important;
    width: 5px !important;
    height: 5px !important;
}

/* A small technical rail gives the composition a deliberate grid instead of
   making the cards look randomly scattered. */
.hero-visual .hero-panel-webpage::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: 10px;
    width: 48px;
    height: 1px;
    background: var(--primary);
    opacity: .42;
}

/* Light mode: same geometry, lighter surfaces and controlled contrast. */
[data-theme="light"] .hero-visual::before,
.light-mode .hero-visual::before,
body.light .hero-visual::before {
    background: rgba(248,249,250,.98) !important;
    border-color: rgba(234,92,26,.25);
    box-shadow:
        0 24px 52px rgba(20,25,30,.13),
        0 0 30px rgba(234,92,26,.05),
        inset 0 0 0 6px rgba(0,0,0,.018);
}

[data-theme="light"] .hero-panel-webpage,
.light-mode .hero-panel-webpage,
body.light .hero-panel-webpage {
    background: rgba(255,255,255,.98) !important;
    border-color: rgba(30,35,40,.10);
    box-shadow:
        0 16px 35px rgba(20,25,30,.12),
        0 0 18px rgba(234,92,26,.045);
}

[data-theme="light"] .hero-panel-flow,
[data-theme="light"] .hero-panel-code,
.light-mode .hero-panel-flow,
.light-mode .hero-panel-code,
body.light .hero-panel-flow,
body.light .hero-panel-code {
    background: rgba(255,255,255,.96);
    border-color: rgba(30,35,40,.11);
    box-shadow:
        0 16px 34px rgba(20,25,30,.12),
        0 0 16px rgba(234,92,26,.04);
}

@media (max-width: 850px) {
    .hero-visual::before {
        width: min(88vw, 360px);
        height: 235px;
    }

    .hero-panel-webpage {
        width: min(72vw, 300px) !important;
        height: 164px !important;
        left: 54% !important;
    }

    .hero-panel-flow {
        left: 0 !important;
        top: 105px !important;
        transform: scale(.82) rotateZ(-1deg) !important;
        transform-origin: top left;
    }

    .hero-panel-code {
        right: 0 !important;
        top: 52px !important;
        transform: scale(.82) rotateZ(1deg) !important;
        transform-origin: top right;
    }
}

/* Final hero composition: webpage becomes the monitor-sized visual anchor. */
.hero-panel-webpage {
    width: 390px !important;
    height: 250px !important;
    left: 50% !important;
    top: 51% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3;
}

/* Restore the tech-stack panel to its earlier lower-right position. */
.hero-panel-data {
    width: 100px !important;
    height: 104px !important;
    right: 4px !important;
    bottom: 78px !important;
    z-index: 7;
    transform: rotateY(-8deg) rotateZ(-2deg) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 18px 20px;
    box-sizing: border-box;
}

.hero-panel-data .stack-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.hero-panel-data .stack-item:last-child {
    border-bottom: 0;
}

/* Keep the existing floating cards outside the webpage anchor. */
.hero-panel-flow {
    z-index: 7;
}
.hero-panel-code {
    z-index: 7;
}

/* The webpage itself is the visual anchor; retain its polished browser surface. */
.hero-panel-webpage {
    border-radius: 12px;
    overflow: hidden;
}

/* Light mode for the larger webpage anchor and restored stack panel. */
[data-theme="light"] .hero-panel-webpage,
.light-mode .hero-panel-webpage,
body.light .hero-panel-webpage {
    background: rgba(255,255,255,.98) !important;
    border-color: rgba(30,35,40,.10);
    box-shadow:
        0 22px 46px rgba(20,25,30,.13),
        0 0 20px rgba(234,92,26,.045);
}

[data-theme="light"] .hero-panel-data,
.light-mode .hero-panel-data,
body.light .hero-panel-data {
    background: rgba(255,255,255,.96);
    border-color: rgba(30,35,40,.11);
    box-shadow:
        0 16px 34px rgba(20,25,30,.12),
        0 0 16px rgba(234,92,26,.04);
}

@media (max-width: 1100px) {
    .hero-panel-webpage {
        width: 360px !important;
        height: 230px !important;
    }
}

@media (max-width: 850px) {
    .hero-panel-webpage {
        width: min(88vw, 360px) !important;
        height: min(58vw, 230px) !important;
        left: 52% !important;
        top: 52% !important;
    }

    .hero-panel-data {
        right: 6px !important;
        bottom: 68px !important;
        transform: scale(.9) rotateY(-8deg) rotateZ(-2deg) !important;
        transform-origin: bottom right;
    }
}

/* Final illustration tuning — keep the little UI pieces exactly as designed. */
.hero-panel-webpage {
    width: 420px !important;
    height: 260px !important;
    left: 50% !important;
    top: 51% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
}

/* Tech stack sits on the webpage's lower-right edge, not inside it. */
.hero-panel-data {
    width: 100px !important;
    height: 104px !important;
    left: calc(50% + 155px) !important;
    right: auto !important;
    top: auto !important;
    bottom: 140px !important;
    z-index: 8 !important;
    transform: rotateY(-8deg) rotateZ(-2deg) !important;
}

/* Light mode: only the webpage shell changes to white. Its contents stay untouched. */
.light-mode .hero-panel-webpage,
body.light .hero-panel-webpage {
    background: #ffffff !important;
}

@media (max-width: 850px) {
    .hero-panel-webpage {
        width: min(88vw, 390px) !important;
        height: min(58vw, 240px) !important;
    }

    .hero-panel-data {
        left: auto !important;
        right: 4px !important;
        bottom: 68px !important;
    }
}

/* Final illustration fix: the webpage keeps its original internals; only its shell
   changes surface in light mode. The stack card hangs neatly from its lower-right edge. */
.hero-panel-webpage {
    width: 420px !important;
    height: 260px !important;
    left: 50% !important;
    top: 51% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3;
}

.hero-panel-data {
    width: 100px !important;
    height: 104px !important;
    left: calc(50% + 155px) !important;
    right: auto !important;
    top: auto !important;
    bottom: 140px !important;
    z-index: 8 !important;
    transform: rotateY(-8deg) rotateZ(-2deg) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 14px 18px !important;
    box-sizing: border-box;
}

.hero-panel-data .stack-item {
    width: 100% !important;
    flex: 1 1 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

/* Light mode deliberately changes only the webpage shell. All of the tiny
   browser UI, orange accents, and internal artwork keep their existing colors. */
body:not(.dark-mode) .hero-panel-webpage {
    background: #fff !important;
}

@media (max-width: 850px) {
    .hero-panel-webpage

    .hero-panel-data
}

/* Light mode: the webpage becomes a white canvas, but its little dark UI stays dark.
   Otherwise the poor thing turns into a blank sheet of paper. */
[data-theme="light"] .hero-panel-webpage .web-topbar,
.light-mode .hero-panel-webpage .web-topbar,
body:not(.dark-mode) .hero-panel-webpage .web-topbar {
    background: rgba(20,24,28,.035) !important;
    border-bottom-color: rgba(20,24,28,.12) !important;
}

[data-theme="light"] .hero-panel-webpage .web-nav,
.light-mode .hero-panel-webpage .web-nav,
body:not(.dark-mode) .hero-panel-webpage .web-nav {
    background: linear-gradient(
        90deg,
        rgba(234,92,26,.55) 0 34%,
        rgba(20,24,28,.18) 34% 58%,
        rgba(20,24,28,.11) 58%
    ) !important;
}

[data-theme="light"] .hero-panel-webpage .web-hero,
.light-mode .hero-panel-webpage .web-hero,
body:not(.dark-mode) .hero-panel-webpage .web-hero {
    background:
        linear-gradient(90deg, rgba(234,92,26,.16) 0 52%, transparent 52%),
        rgba(20,24,28,.075) !important;
}

[data-theme="light"] .hero-panel-webpage .web-hero::after,
.light-mode .hero-panel-webpage .web-hero::after,
body:not(.dark-mode) .hero-panel-webpage .web-hero::after {
    background: rgba(234,92,26,.68) !important;
    box-shadow:
        0 9px 0 rgba(20,24,28,.20),
        0 18px 0 rgba(20,24,28,.12) !important;
}

[data-theme="light"] .hero-panel-webpage .web-card,
.light-mode .hero-panel-webpage .web-card,
body:not(.dark-mode) .hero-panel-webpage .web-card {
    background: rgba(20,24,28,.075) !important;
    border-color: rgba(20,24,28,.13) !important;
}

[data-theme="light"] .hero-panel-webpage .web-card:first-child,
.light-mode .hero-panel-webpage .web-card:first-child,
body:not(.dark-mode) .hero-panel-webpage .web-card:first-child {
    border-color: rgba(234,92,26,.28) !important;
}

/* The shell changes; the artwork does not. */
[data-theme="light"] .hero-panel-webpage,
.light-mode .hero-panel-webpage,
body:not(.dark-mode) .hero-panel-webpage {
    background: #fff !important;
}

/* Tablet/mobile safety net — desktop stays exactly as it is. */
@media (max-width: 1024px) {
    .container {
        width: min(92%, 1100px);
    }

    .header-inner {
        gap: 18px;
    }

    .navigation {
        gap: 18px;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-visual {
        min-width: 0;
    }

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

    .contact-box {
        overflow: hidden;
    }
}

@media (max-width: 850px) {
    .header-inner {
        gap: 12px;
    }

    .logo-link {
        min-width: 0;
    }

    .logo-name {
        white-space: nowrap;
    }

    .hero {
        overflow: hidden;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        min-height: 390px;
    }

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

    .contact-box

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

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .floating-socials {
        transform: scale(.9);
        transform-origin: left center;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(92%, 100% - 28px);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .hero-trust {
        gap: 12px;
    }

    .trust-item {
        min-width: 0;
    }

    .hero-visual {
        min-height: 330px;
    }

    .hero-3d-scene {
        transform: scale(.72);
        transform-origin: center center;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* iPad landscape/portrait and small phones: don't let the illustration create a scrollbar. */
@media (max-width: 1024px) {
    .hero-3d-scene {
        max-width: 100%;
    }
}

@media (max-width: 390px) {
    .hero-3d-scene {
        transform: scale(.62);
    }

    .hero-visual {
        min-height: 290px;
    }
}
/* =====================================================
   MOBILE CONTACT FIX — aresgroup.ir
   Desktop untouched. Applies ONLY at ≤800px.
   Root cause: the 80px orange ::before strip + grid
   min-height overlap that only appear when stacked.
===================================================== */
@media (max-width: 800px) {

    /* 1. Remove the orange side-strip that becomes an L on mobile */
    .contact-box::before {
        display: none !important;
    }

    /* 2. Stack cleanly as blocks — no grid rows, no overlap, no notch */
    .contact-box {
        display: block !important;
        grid-template-columns: none !important;
        background: #000000 !important;
        border-radius: 22px !important;
        overflow: hidden !important;
    }

    .contact-content,
    .contact-action {
        width: 100% !important;
        max-width: none !important;
        order: none !important;
    }

    /* 3. Orange CTA panel: drop the forced 520px height, size to content */
    .contact-action {
        min-height: 0 !important;
        padding: 34px 22px !important;
    }

    .contact-action-inner {
        padding: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    /* 4. Keep the dark info list tidy on the black panel */
    .contact-methods {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .contact-content {
        padding: 28px 22px !important;
    }

    /* 5. Form-open state on mobile: natural height, no containment weirdness */
    .contact-box.form-open .contact-action {
        min-height: 0 !important;
    }
    .contact-box.form-open .contact-action-inner {
        padding: 28px 18px !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .contact-box.form-open .contact-form {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =====================================================
   MOBILE-ONLY FIXES — aresgroup.ir
   Appended last. Desktop (>901px) is byte-for-byte untouched.
===================================================== */

/* 1. HERO — floating illustration on top, then text, then buttons */
@media (max-width: 850px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-visual { order: 1; }
    .hero-content { order: 2; }
    .hero-content {
        padding-top: 8px !important;
        padding-bottom: 0 !important;
    }
}

/* 2. SERVICES — 2 cards per row on phones */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .service-card,
    .service-card.featured {
        min-height: 0 !important;
        padding: 16px 10px !important;
    }
    .services .service-card .service-icon,
    .services .service-card .icon,
    .services .service-card > .icon,
    .services .service-card .service-card-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        margin: 0 auto 10px !important;
    }
    .services .service-card svg {
        width: 20px !important;
        height: 20px !important;
    }
    .services .service-card h3 {
        font-size: 13px !important;
        margin: 0 0 6px !important;
        line-height: 1.5 !important;
        overflow-wrap: break-word;
    }
    .services .service-card p {
        font-size: 11px !important;
        max-width: 100% !important;
        line-height: 1.6 !important;
        overflow-wrap: break-word;
    }
}

/* 3. FOOTER — two columns side by side on phones */
@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 16px !important;
    }
    .footer-brand {
        grid-column: 1 / -1 !important;
    }
    .footer-column h4 {
        font-size: 14px !important;
    }
    .footer-column a {
        font-size: 12px !important;
    }
}
/* =====================================================
   FINAL MOBILE POLISH — Email overflow & Hero scale
===================================================== */

/* 1. Fix email address overflowing its card on mobile */
@media (max-width: 600px) {
    .contact-method {
        overflow: hidden; /* Keep content inside the rounded card */
    }
    
    /* The div holding the text needs permission to shrink */
    .contact-method > div:last-child {
        min-width: 0; 
        overflow: hidden;
    }

    /* Force the long email string to break instead of pushing out */
    .contact-method strong {
        word-break: break-all;
        font-size: 13px; /* Slightly smaller for better fit */
        line-height: 1.4;
    }
}

/* 2. Shrink the hero illustration so "PROJECT FLOW" fits on screen */
@media (max-width: 600px) {
    .hero-3d-scene {
        /* Reduce scale further than the previous 0.72 */
        transform: scale(0.62) !important;
        transform-origin: center center !important;
        margin: -20px 0 -30px; /* Adjust vertical spacing after scaling down */
    }
    
    /* Ensure the container doesn't clip the scaled content */
    .hero-visual {
        min-height: 320px;
        overflow: visible;
    }
}
/* =====================================================
   MOBILE FINAL POLISH — aresgroup.ir
   1) Theme toggle moves into burger menu
   2) Logo spacing tightened
   3) Footer cleaned up (competitor-style)
   Desktop (>901px) is completely untouched.
===================================================== */

/* ---------- 1. THEME TOGGLE: hide from header, show in mobile menu ---------- */
@media (max-width: 850px) {
    /* Hide the header theme toggle on mobile */
    .header-inner .theme-toggle {
        display: none !important;
    }

    /* Style the duplicate inside the mobile menu */
    .mobile-theme-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        background: rgba(255,255,255,0.04);
        color: #f4f4f5;
        cursor: pointer;
        padding: 0;
        margin: 12px 16px 8px auto; /* auto on left in RTL pushes it to the right side */
    }

    .mobile-theme-toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-theme-toggle .sun-icon { display: none; }
    body.dark-mode .mobile-theme-toggle .moon-icon { display: none; }
    body.dark-mode .mobile-theme-toggle .sun-icon { display: block; }
}

/* ---------- 2. LOGO SPACING: tighten the hero/header gap on phones ---------- */
@media (max-width: 600px) {
    /* Reduce the massive top padding on the hero content */
    .hero-content {
        padding-top: 24px !important;
        padding-bottom: 12px !important;
    }

    /* Tighten the logo link spacing in the header */
    .logo-link {
        gap: 4px !important;
    }

    .logo {
        width: 78px !important;
    }

    .logo-name {
        font-size: 10px !important;
        transform: translateY(-4px) !important;
    }

    /* Footer logo: less breathing room */
    .footer-logo {
        width: 80px !important;
        margin-bottom: 12px !important;
    }

    .footer-brand p {
        font-size: 12px !important;
        margin-bottom: 14px !important;
        line-height: 1.8 !important;
    }
}

/* ---------- 3. FOOTER: clean, competitor-style layout on mobile ---------- */
@media (max-width: 600px) {
    /* Overall footer: less padding, tighter feel */
    .footer {
        margin-top: 60px !important;
        padding: 40px 0 18px !important;
    }

    .footer-main {
        padding-bottom: 24px !important;
        gap: 22px 14px !important;
    }

    /* Brand block: compact, logo + text + socials in a tight stack */
    .footer-brand {
        max-width: 100% !important;
        margin-bottom: 4px !important;
    }

    .footer-brand p {
        max-width: 280px !important;
    }

    /* Social icons: smaller, tighter row */
    .footer-socials {
        gap: 6px !important;
        margin-top: 4px !important;
    }

    .footer-socials a {
        width: 36px !important;
        height: 36px !important;
        border-radius: 9px !important;
    }

    .footer-socials a svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Column headings: smaller, tighter */
    .footer-column h4 {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .footer-column a {
        font-size: 12px !important;
        padding: 3px 0 !important;
    }

    /* Bottom row: divider + compact copyright */
    .footer-bottom {
        padding-top: 16px !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        font-size: 10px !important;
        gap: 6px !important;
    }
}
/* =====================================================
   MOBILE PROCESS SECTION — Smaller icons for mobile
===================================================== */
@media (max-width: 600px) {
    /* Shrink the circle container */
    .process-icon {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 14px !important;
    }

    /* Shrink the image inside the circle */
    .process-icon img {
        width: 42px !important;
        height: 42px !important;
    }

    /* Optional: tighten the text spacing slightly */
    .process-item h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .process-item p {
        font-size: 12px !important;
    }
}