/*ATHARVA V2.1 — Hybrid A+B: corporate structure, technical motion.*/

:root {
    --bg: #080c10;
    --surface: #111920;
    --raised: #172029;
    --line: #30404b;
    --line-soft: #223038;
    --gold: #edbc43;
    --gold2: #cfa13a;
    --cyan: #54b5c7;
    --cream: #fcf7ec;
    --text: #f3f3f0;
    --muted: #b4bdc0;
    --max: 1320px;
}

body {
    background: radial-gradient(ellipse at 8% 8%,#0f2229 0,transparent 32%),#070b0f;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg,transparent 0%,#09111566 50%,transparent 100%),url('../images/visuals/technical-circuit.svg') center/960px 545px repeat;
    opacity: .31;
    pointer-events: none;
    z-index: 0;
}

.ambient-code {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .66;
}

#main,.site-footer,.bottom-cta {
    position: relative;
    z-index: 1;
}

.site-header {
    background: rgba(6,10,13,.94);
    border-bottom-color: rgba(231,180,57,.31);
    box-shadow: 0 12px 36px #0004;
}

.nav-shell {
    height: 86px;
}

.desktop-nav a {
    font-size: .84rem;
}

.brand img {
    width: 197px;
    height: 78px;
    object-fit: contain;
}

.hero--hybrid {
    background: radial-gradient(ellipse at 80% 38%,#173340aa,transparent 40%),radial-gradient(ellipse at 40% 95%,#33251055,transparent 50%),linear-gradient(110deg,#060a0e,#10191e 68%,#090e11);
    border-bottom: 1px solid rgba(233,177,56,.35);
}

.hero--hybrid::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .54;
    pointer-events: none;
    background: linear-gradient(90deg,#070b0df2 0%,#071014bb 48%,transparent 100%),url('../images/visuals/technical-circuit.svg') center/900px 510px repeat;
}

.hero--hybrid .hero-glow {
    opacity: .5;
    background: radial-gradient(ellipse at 77% 40%,rgba(37,115,129,.18),transparent 38%);
}

.hero-grid--hybrid {
    grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr);
    min-height: 565px;
    gap: 8px;
}

.hero--hybrid .hero-copy {
    padding: 80px 0 58px;
}

.hero--hybrid h1 {
    font-size: clamp(2.8rem,4.45vw,4.85rem);
    max-width: 645px;
    line-height: 1.12;
    letter-spacing: -.055em;
    margin: 0 0 21px;
}

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

.hero--hybrid .hero-copy>p {
    font-size: 1.03rem;
    line-height: 1.75;
    max-width: 560px;
    color: #c3ccd0;
    margin: 0 0 31px;
}

.hero--hybrid .hero-promises {
    margin-top: 40px;
    font-size: .7rem;
    gap: 12px 20px;
}

.hero--hybrid .hero-promises svg {
    color: #dfb44f;
}

.hero-visual--hybrid {
    height: 548px;
    isolation: isolate;
    margin: 0;
    overflow: visible;
    align-self: center;
    transform: translateZ(0);
}

.hero-visual--hybrid::before {
    content: "";
    position: absolute;
    inset: 7% -3% 0 3%;
    border-radius: 50%;
    background: radial-gradient(ellipse,#18516b33,transparent 64%);
    filter: blur(8px);
}

.hero-visual-orbit {
    position: absolute;
    border: 1px solid rgba(207,157,53,.18);
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(-19deg);
}

.orbit-one {
    inset: 52px 0 69px 56px;
}

.orbit-two {
    inset: 103px 85px 125px 107px;
    border-color: #4f98a525;
    transform: rotate(34deg);
}

.network-traces {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 1;
    pointer-events: none;
}

.network-traces .trace {
    fill: none;
    stroke: #ca992f;
    stroke-width: 2;
    stroke-dasharray: 6 10;
    opacity: .65;
    animation: trace-move 18s linear infinite;
}

.network-traces .trace-alt {
    stroke: #58b8c8;
    opacity: .48;
}

.network-traces .trace-low {
    stroke: #d7ac47;
    opacity: .4;
}

.network-traces .trace-packet {
    fill: #f6c04a;
    filter: drop-shadow(0 0 5px #e1b456);
}

.device-card {
    position: absolute;
    z-index: 2;
    will-change: transform;
    filter: drop-shadow(0 24px 28px rgba(0,0,0,.58));
}

.device-card img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    pointer-events: none;
}

.device-camera {
    width: 70%;
    right: -1%;
    top: 0;
    animation: float-camera 6.5s ease-in-out infinite;
}

.device-camera img {
    filter: drop-shadow(0 1px 5px #eeb95324);
}

.device-hardware {
    width: 60%;
    left: -5%;
    top: 43%;
    animation: float-laptop 7.4s ease-in-out infinite;
}

.device-software {
    width: 48%;
    right: -5%;
    bottom: 4%;
    animation: float-code 8.3s ease-in-out infinite;
}

.device-type {
    position: absolute;
    top: 13%;
    right: 15%;
    font: 700 .64rem 'DM Sans',sans-serif;
    letter-spacing: .18em;
    color: #d8dfe0;
    background: #0a151bde;
    border: 1px solid #65717455;
    padding: 7px 10px;
    border-radius: 4px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #db5750;
    box-shadow: 0 0 0 4px #db575020;
    animation: live-pulse 2.5s infinite;
}

.device-label {
    position: absolute;
    z-index: 3;
    right: 11%;
    bottom: 8%;
    padding: 8px 10px;
    background: #0c161ce8;
    border: 1px solid #61717a7a;
    border-radius: 5px;
    box-shadow: 0 9px 17px #0008;
    line-height: 1.5;
}

.device-label strong {
    display: block;
    font-size: .64rem;
    letter-spacing: .08em;
    color: #f0c04a;
}

.device-label small {
    font-size: .54rem;
    letter-spacing: .045em;
    color: #cbd1d4;
}

.device-software .device-label {
    left: 0;
    right: auto;
    bottom: -7%;
    border-color: #3e8d9970;
}

.hero-core-mark {
    position: absolute;
    z-index: 0;
    top: 36%;
    left: 47%;
    width: 82px;
    height: 82px;
    border: 1px solid #efc56344;
    background: radial-gradient(circle,#152830 20%,#0b1c22a8 68%);
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    box-shadow: 0 0 34px #f2c36320;
}

.hero-core-mark span {
    font-family: Manrope,sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: #e1ad39;
    line-height: 1;
}

.hero-core-mark small {
    font-size: .38rem;
    letter-spacing: .1em;
    color: #8db2bb;
    white-space: nowrap;
    transform: translateX(-5%);
}

.hero--hybrid .hero-bottom {
    padding: 12px 0 26px;
    color: #a8a7a1;
}

/*Option A: editorial services and projects, tempered imagery and polished rhythm*/

.section {
    position: relative;
    padding: 91px 0;
}

.section:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/visuals/technical-circuit.svg');
    background-size: 950px 540px;
    opacity: .12;
    pointer-events: none;
    z-index: -1;
}

.services-section {
    background: linear-gradient(180deg,rgba(14,22,28,.94),rgba(10,17,22,.92));
    border-bottom: 1px solid #293944;
}

.services-section::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg,transparent,#d9ac4166,transparent);
    position: absolute;
    bottom: 0;
    inset-inline: 10%;
}

.section-heading {
    align-items: end;
    margin-bottom: 33px;
}

.section-heading h2,.split-intro h2 {
    letter-spacing: -.042em;
}

.section-heading p {
    max-width: 335px;
    color: #bac1c5;
}

.service-grid {
    gap: 16px;
}

.service-tile {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg,#15222b,#0e151b);
    border: 1px solid #354750;
    border-radius: 10px;
    box-shadow: 0 15px 33px #0004;
    transition: transform .35s ease,border-color .3s ease,box-shadow .3s ease;
}

.service-tile:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg,transparent 35%,#dcb4520c 90%);
    pointer-events: none;
}

.service-tile:hover {
    transform: translateY(-7px);
    border-color: #bb923f;
    box-shadow: 0 26px 52px #0008;
}

.tile-head {
    min-height: 66px;
    padding: 15px 19px;
    border-bottom: 1px solid #ffffff12;
}

.tile-number {
    font-size: .78rem;
    letter-spacing: .15em;
    color: #f0bc4d;
}

.tile-photo {
    height: 215px;
    background-color: #0b1921;
    isolation: isolate;
    background-size: cover;
    background-position: center;
}

.tile-photo:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,#111b22ab,transparent 75%),repeating-linear-gradient(0deg,transparent 0 26px,#d0a75109 27px);
    z-index: 0;
    pointer-events: none;
}

.tile-photo .security-device-mini {
    position: absolute;
    width: 83%;
    inset: 0 auto 0 -2%;
    z-index: 1;
    display: grid;
    place-items: center;
    transform: translate(-5%,0) scale(1);
    transition: transform .4s;
}

.tile-photo .security-device-mini img {
    width: 100%;
    filter: drop-shadow(0 11px 9px #0008);
}

.tile-photo .hardware-device-mini {
    position: absolute;
    width: 88%;
    left: 7%;
    top: -3%;
    z-index: 1;
    transition: transform .45s;
}

.hardware-device-mini img {
    width: 100%;
    filter: drop-shadow(0 7px 7px #0008);
}

.service-tile:hover .security-device-mini {
    transform: translate(2%,-4%) scale(1.035);
}

.service-tile:hover .hardware-device-mini {
    transform: translateY(-8px) scale(1.035);
}

.service-tile:hover .tile-photo {
    background-position: 60% center;
}

.service-tile .scan-line {
    z-index: 2;
    opacity: .65;
    box-shadow: 0 0 22px #7fcbd877;
}

.service-tile .corner-mark,.service-tile .live-rec {
    z-index: 3;
}

.service-tile .component-chip {
    z-index: 2;
}

.service-code .code-window {
    transform: perspective(570px) rotateY(-11deg) rotateX(3deg);
    transition: transform .4s ease,box-shadow .4s ease;
    border-color: #68848a77;
    box-shadow: 0 20px 30px #0009;
}

.service-code:hover .code-window {
    transform: perspective(570px) rotateY(-3deg) translateY(-6px);
    box-shadow: 0 26px 40px #000b;
}

.service-code .code-art {
    background: radial-gradient(ellipse at 65% 25%,#1942519c,transparent 70%),#0a1218;
}

.tile-content {
    padding: 19px 22px 28px;
}

.tile-content h3 {
    font-size: 1.18rem;
    margin-bottom: 9px;
}

.tile-content p {
    font-size: .84rem;
    min-height: 70px;
    margin-bottom: 14px;
    color: #bac4c8;
    line-height: 1.7;
}

.text-link {
    color: #e9bc4c;
}

.text-link:hover {
    color: #ffda81;
}

.solutions-section {
    background: linear-gradient(115deg,rgba(12,21,27,.98),rgba(9,18,23,.92));
    border-color: #2b3a42;
}

.capability-row {
    transition: background .2s ease,transform .2s ease;
    padding-inline: 16px;
    border-bottom-color: #43505955;
}

.capability-row:hover {
    background: #2433404d;
    transform: translateX(4px);
}

.work-section {
    background: linear-gradient(180deg,#0b1116f2,#101a1ef0);
}

.work-section .project-grid {
    gap: 15px;
}

.project-card {
    background: #121b22;
    border: 1px solid #39434a;
    border-radius: 8px;
    box-shadow: 0 12px 25px #0005;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.project-image {
    aspect-ratio: 1.62;
    background: #111e27;
}

.project-card img {
    transition: transform .5s ease;
}

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

.project-caption {
    background: linear-gradient(180deg,#152028,#0e151b);
}

.why-section {
    background: linear-gradient(115deg,#111c23f0,#0a1116f0);
}

.bottom-cta {
    background: linear-gradient(110deg,#221d14f2,#101c22f2);
    border-color: #d6a84377;
}

.site-footer {
    background: #080e12f5;
    border-top: 1px solid #a47a3177;
}

.whatsapp-icon-only,.whatsapp-icon-only:hover {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    padding: 0;
    right: 23px;
    bottom: 22px;
    background: #21c063;
    border: 2px solid #d8ffdf;
    color: #fff;
    box-shadow: 0 8px 29px #0009;
    transform: none;
    border-radius: 50%;
    transition: transform .22s,box-shadow .22s;
}

.whatsapp-icon-only:hover {
    transform: translateY(-3px) scale(1.035);
    box-shadow: 0 12px 31px #000b;
}

.whatsapp-icon-only svg {
    width: 27px;
    height: 27px;
    display: block;
}

/*Section-specific animation with accessibility and low resource use*/

@keyframes float-camera {
    0%,100% {
        transform: translate3d(0,0,0) rotate(-1deg);
    }
    50% {
        transform: translate3d(0,-11px,0) rotate(0deg);
    }
}

@keyframes float-laptop {
    0%,100% {
        transform: translate3d(0,0,0);
    }
    50% {
        transform: translate3d(0,-9px,0);
    }
}

@keyframes float-code {
    0%,100% {
        transform: translate3d(0,0,0);
    }
    50% {
        transform: translate3d(0,-12px,0);
    }
}

@keyframes trace-move {
    to {
        stroke-dashoffset: -150;
    }
}

@keyframes live-pulse {
    50% {
        box-shadow: 0 0 0 7px #df625013;
    }
}

@media (max-width:1180px) {
    .hero-grid--hybrid {
        grid-template-columns: 1fr 1fr;
        min-height: 560px;
    }
    .hero--hybrid h1 {
        font-size: clamp(2.7rem,4.5vw,4.2rem);
    }
    .device-camera {
        right: -8%;
        width: 78%;
    }
    .device-software {
        right: -5%;
    }
    .hero-visual--hybrid {
        height: 500px;
    }
    .desktop-nav {
        gap: 15px;
    }
}

@media (max-width:980px) {
    .hero-grid--hybrid {
        grid-template-columns: 1fr 1fr;
    }
    .hero--hybrid h1 {
        font-size: clamp(2.55rem,4.6vw,4rem);
    }
    .hero--hybrid .hero-copy>p {
        font-size: .92rem;
    }
    .hero-visual--hybrid {
        height: 425px;
    }
    .device-camera {
        width: 85%;
        right: -13%;
        top: 2%;
    }
    .device-hardware {
        width: 65%;
        top: 46%;
        left: -6%;
    }
    .device-software {
        width: 53%;
        right: -12%;
        bottom: 5%;
    }
    .hero-core-mark {
        width: 65px;
        height: 65px;
    }
    .hero--hybrid .hero-promises {
        gap: 12px;
    }
}

@media (max-width:700px) {
    .nav-shell {
        height: 73px;
    }
    .brand img {
        width: 174px;
        height: 65px;
    }
    .hero--hybrid .hero-copy {
        padding: 58px 0 6px;
    }
    .hero--hybrid h1 {
        max-width: 570px;
        font-size: clamp(2.7rem,9.5vw,4rem);
    }
    .hero--hybrid .hero-copy>p {
        max-width: 520px;
        margin-bottom: 24px;
    }
    .hero-grid--hybrid {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: 0;
    }
    .hero--hybrid .hero-promises {
        margin-top: 25px;
    }
    .hero-visual--hybrid {
        width: 100%;
        height: 380px;
        margin: 0 auto;
        align-self: stretch;
        overflow: hidden;
    }
    .device-camera {
        width: 70%;
        right: 0;
        top: 0;
    }
    .device-hardware {
        width: 57%;
        left: 1%;
        top: 39%;
    }
    .device-software {
        width: 46%;
        right: 1%;
        bottom: 0;
    }
    .device-type {
        top: 17%;
        right: 13%;
        font-size: .51rem;
    }
    .hero-core-mark {
        top: 38%;
        left: 49%;
    }
    .hero--hybrid .hero-bottom {
        padding: 7px 0 19px;
        gap: 10px;
    }
    .section {
        padding: 69px 0;
    }
    .tile-photo {
        height: 235px;
    }
    .service-grid {
        gap: 18px;
    }
    .service-tile .tile-content p {
        min-height: unset;
    }
}

@media (max-width:450px) {
    .hero--hybrid .hero-copy {
        padding-top: 49px;
    }
    .hero--hybrid h1 {
        font-size: clamp(2.4rem,10vw,3rem);
    }
    .hero-visual--hybrid {
        height: 310px;
    }
    .device-camera {
        width: 79%;
        right: -10%;
    }
    .device-hardware {
        width: 61%;
        top: 38%;
        left: -4%;
    }
    .device-software {
        width: 50%;
        right: -6%;
        bottom: 0;
    }
    .hero-core-mark {
        width: 54px;
        height: 54px;
    }
    .hero-core-mark span {
        font-size: 1.6rem;
    }
    .hero-core-mark small {
        font-size: .29rem;
    }
    .device-label {
        padding: 5px;
    }
    .device-label strong {
        font-size: .44rem;
    }
    .device-label small {
        font-size: .4rem;
    }
    .device-type {
        font-size: .45rem;
        padding: 5px;
    }
    .hero--hybrid .hero-promises span {
        font-size: .62rem;
    }
    .tile-photo {
        height: 210px;
    }
    .whatsapp-icon-only {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 15px;
    }
    .whatsapp-icon-only svg {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .device-card,.network-traces .trace,.live-indicator {
        animation: none !important;
    }
    .trace-packet {
        display: none !important;
    }
    .service-tile:hover,.project-card:hover,.capability-row:hover {
        transform: none;
    }
}

/*Technical details stay visible without reducing text contrast.*/

.ambient-code {
    z-index: 2;
    opacity: .37;
}

.services-section:before,.solutions-section:before,.work-section:before {
    opacity: .18;
}
