
/* =========================================
   AD SOLUTIONS V3
   BLUE & CYAN — CREATIVE TECHNOLOGY
========================================= */

:root {
    --navy: #102b46;
    --blue: #0077b6;
    --cyan: #22b8cf;
    --gold: #0077b6;
    --cream: #f5fbff;
    --white: #ffffff;
    --muted: #52677d;
    --border: #dce8f1;
    --gradient: linear-gradient(
        110deg,
        #0077b6,
        #22b8cf
    );
}

/* GLOBAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--navy);
}

.container {
    width: min(1280px, calc(100% - 64px));
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 0;
}

h1, h2, h3 {
    color: var(--navy);
}

p {
    color: var(--muted);
}

.eyebrow {
    color: var(--blue);
    font-weight: 700;
}

a {
    transition: color .25s,
                background .25s,
                transform .25s;
}

img, svg, canvas {
    max-width: 100%;
}

/* NAVIGATION */

.header {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #e2edf5;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.logo {
    flex-shrink: 0;
    color: var(--navy);
}

.logo-mark {
    color: var(--blue);
}

.nav-links {
    gap: 24px;
    min-width: 0;
}

.nav-links a {
    color: var(--navy);
    white-space: nowrap;
}

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

.nav-links .nav-cta {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
}

.language-switcher select {
    background: #f2f9ff;
    border: 1px solid #dce8f1;
    color: var(--navy);
    border-radius: 10px;
}

.language-switcher select:hover {
    border-color: var(--cyan);
}

/* HERO SECTION */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            ellipse at 85% 45%,
            #c9f1fa 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 55% 100%,
            #e1efff 0%,
            transparent 55%
        ),
        #ffffff;
    color: var(--navy);
    padding: 80px 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(
            #0077b608 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            #0077b608 1px,
            transparent 1px
        );
    background-size: 45px 45px;
    mask-image: linear-gradient(
        90deg,
        transparent,
        black
    );
}

.hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}

.hero-content {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    color: var(--blue);
    letter-spacing: 2px;
    font-size: 12px;
}

.hero h1 {
    font-size: clamp(36px, 4.2vw, 66px);
    line-height: 1.12;
    letter-spacing: -2.5px;
    color: var(--navy);
    margin: 25px 0;
    overflow-wrap: normal;
}

.hero h1 em {
    font-style: normal;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #52677d;
    font-size: 17px;
    line-height: 1.8;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* BUTTONS */

.btn.primary,
.hero .btn.primary {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px #0077b62b;
    transition: transform .25s,
                box-shadow .25s;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px #0077b644;
}

.btn.secondary,
.hero .btn.secondary {
    background: #ffffffb0;
    color: var(--blue);
    border: 1px solid #b9dce9;
    border-radius: 10px;
}

.btn.secondary:hover {
    background: #e5f7fc;
    border-color: var(--cyan);
}

/* INTERACTIVE GLOBE */

.hero-visual.globe-ready {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 440px;
    height: 440px;
    isolation: isolate;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.tech-globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.globe-ready .orbit,
.globe-ready .visual-center {
    display: none;
}

.globe-ready .float-card {
    position: absolute;
    z-index: 1;
    background: rgba(255, 255, 255, .92);
    color: var(--navy);
    border: 1px solid #d2eaf4;
    box-shadow: 0 12px 30px #0077b619;
    border-radius: 12px;
    padding: 13px 17px;
    font-size: 12px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    animation: ad-float 5s ease-in-out infinite;
}

.globe-ready .float-card::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-inline-end: 7px;
    background: var(--cyan);
    box-shadow: 0 0 10px #22b8cf88;
}

.globe-ready .card-one {
    top: 13%;
    left: 0;
    right: auto;
    bottom: auto;
}

.globe-ready .card-two {
    top: 46%;
    right: 0;
    left: auto;
    bottom: auto;
    animation-delay: -1.5s;
}

.globe-ready .card-three {
    bottom: 10%;
    left: 6%;
    right: auto;
    top: auto;
    animation-delay: -3s;
}

/* SERVICE STRIP */

.service-strip {
    background: linear-gradient(
        100deg,
        #075985,
        #0077b6,
        #0891b2
    );
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    padding: 22px 24px;
    overflow: hidden;
}

.service-strip span {
    color: white;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* ABOUT SECTION */

#about {
    padding-top: 95px;
    padding-bottom: 95px;
}

.about-grid {
    gap: 35px;
}

.about-diagram {
    grid-column: 1 / -1;
    background:
        radial-gradient(
            ellipse at center,
            #d5f5fc,
            transparent 65%
        ),
        #f4faff;
    border: 1px solid #dcecf5;
    border-radius: 24px;
    padding: 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.about-diagram svg {
    width: 100%;
    max-width: 760px;
    height: auto;
}

.network-lines {
    animation: ad-flow 2s linear infinite;
}

/* SERVICES */

.services-section {
    background: linear-gradient(
        180deg,
        #f0f8ff,
        #f8fcff
    );
    color: var(--navy);
}

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

.service-card:not(.custom-card) {
    position: relative;
    background: white;
    color: var(--navy);
    border: 1px solid #dce8f1;
    border-radius: 22px;
    padding: 24px;
    overflow: hidden;
    transition: transform .35s,
                box-shadow .35s,
                border-color .35s;
}

.service-card:not(.custom-card)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
}

.service-card:not(.custom-card):hover {
    transform: translateY(-8px);
    border-color: #8ed5e7;
    box-shadow: 0 20px 45px #0077b615;
}

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

.service-card h3 {
    color: var(--navy);
}

.service-card a {
    color: var(--blue);
}

.service-number {
    color: var(--blue);
}

/* SERVICE ILLUSTRATIONS */

.service-art {
    background: linear-gradient(
        135deg,
        #eaf4ff,
        #e4fafd
    );
    border-radius: 16px;
    margin: 12px 0 22px;
    overflow: hidden;
    position: relative;
}

.service-art svg {
    display: block;
    width: 100%;
    height: 190px;
    transition: transform .4s;
}

.service-card:hover .service-art svg {
    transform: scale(1.07);
}

.art-float {
    animation: ad-float 4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.art-pulse {
    animation: ad-pulse 3s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.art-flow {
    animation: ad-flow 2s linear infinite;
}

.custom-card {
    background: linear-gradient(
        145deg,
        #102b46,
        #075985
    );
    color: white;
    border-radius: 22px;
}

.custom-card h3,
.custom-card p,
.custom-card .eyebrow {
    color: white;
}

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

/* PORTFOLIO */

#portfolio {
    background: white;
}

.project-card {
    border: 1px solid #dce8f1;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s,
                box-shadow .3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px #0077b615;
}

.project-preview {
    background: linear-gradient(
        135deg,
        #dbeafe,
        #c8f5fc
    );
}

.mini-browser {
    background: white;
    box-shadow: 0 15px 35px #07598520;
    transition: transform .4s;
}

.project-card:hover .mini-browser {
    transform: translateY(-5px) rotate(-2deg);
}

.mini-content {
    background: #f0f9ff;
    color: var(--navy);
}

.mini-content strong {
    color: var(--blue);
}

.upcoming {
    background: #f0f9ff;
}

.text-link {
    color: var(--blue);
}

/* PROCESS */

.process-section {
    background: #f0f8ff;
}

.process-grid article {
    position: relative;
    transition: transform .3s;
}

.process-grid article:hover {
    transform: translateY(-5px);
}

.process-grid article > span {
    color: var(--blue);
    font-weight: 700;
}

/* FAQ */

.faq details {
    background: white;
    border: 1px solid #dce8f1;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 18px 22px;
}

.faq details[open] {
    background: #f5fbff;
    border-color: #9edce9;
}

.faq summary {
    color: var(--navy);
    cursor: pointer;
}

/* CONTACT */

.contact-section {
    background:
        radial-gradient(
            ellipse at 10% 80%,
            #d5f5fc,
            transparent 60%
        ),
        #edf6ff;
    color: var(--navy);
}

.contact-section h2,
.contact-section p {
    color: var(--navy);
}

.contact-section .eyebrow,
.contact-section .email-link {
    color: var(--blue);
}

#contact-form {
    background: white;
    padding: 30px;
    border: 1px solid #dce8f1;
    border-radius: 20px;
    box-shadow: 0 15px 40px #0077b60d;
}

#contact-form label {
    color: var(--navy);
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    background: #f7fbff;
    color: var(--navy);
    border: 1px solid #dce8f1;
    border-radius: 8px;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: 2px solid #22b8cf55;
    border-color: var(--cyan);
}

#contact-form small {
    color: var(--muted);
}

/* FOOTER */

footer {
    background: #102b46;
    color: #dceeff;
}

footer p,
footer a,
footer small,
footer .logo {
    color: #dceeff;
}

footer .logo-mark {
    color: #67e8f9;
}

/* ANIMATIONS */

@keyframes ad-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes ad-flow {
    to {
        stroke-dashoffset: -30;
    }
}

@keyframes ad-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .55;
    }
}

/* ARABIC */

html[dir="rtl"] .hero h1 {
    font-family: Tahoma, Arial, sans-serif;
    letter-spacing: normal;
    line-height: 1.4;
}

html[dir="rtl"] .hero .eyebrow {
    letter-spacing: normal;
}

html[dir="rtl"] .hero-visual {
    direction: ltr;
}

html[dir="rtl"] .email-link,
html[dir="rtl"] input[type="email"] {
    direction: ltr;
}

/* TABLETS */

@media (max-width: 1100px) {

    .navbar {
        position: relative;
        gap: 14px;
    }

    .menu-toggle {
        display: block;
        color: var(--navy);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: white;
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 20px 40px #102b4615;
        z-index: 50;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-visual.globe-ready {
        min-height: 380px;
        height: 380px;
    }

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

/* MOBILE */

@media (max-width: 760px) {

    .container {
        width: calc(100% - 36px);
    }

    .hero {
        padding: 55px 0 30px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .hero h1 {
        font-size: clamp(34px, 7vw, 52px);
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-visual.globe-ready {
        min-height: 340px;
        height: 340px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-strip {
        gap: 12px;
        font-size: 10px;
    }

    .about-diagram {
        padding: 12px;
    }

    #about {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {

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

    .hero-visual.globe-ready {
        height: 290px;
        min-height: 290px;
    }

    .globe-ready .float-card {
        padding: 8px 10px;
        font-size: 10px;
    }

    .service-art svg {
        height: 175px;
    }

    #contact-form {
        padding: 20px;
    }

    .navbar {
        gap: 10px;
    }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .float-card,
    .art-float,
    .art-pulse,
    .art-flow,
    .network-lines {
        animation: none !important;
    }

    .service-card,
    .project-card,
    .service-art svg,
    .btn {
        transition: none;
    }
}
/* FIX WHY US SECTION */

#why-us {
    background: #ffffff;
    padding: 80px 0;
}

#why-us .why-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

#why-us .why-heading h2 {
    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 1.2;
}

#why-us .why-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

#why-us .why-card {
    background: #f5fbff;
    border: 1px solid #dce8f1;
    border-radius: 20px;
    padding: 25px;
    min-width: 0;
    transition: transform .3s, box-shadow .3s;
}

#why-us .why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px #0077b615;
}

#why-us .why-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    border-radius: 16px;
    color: #0077b6;
    margin-bottom: 20px;
    overflow: hidden;
}

#why-us .why-icon svg {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    flex-shrink: 0;
}

#why-us .why-card h3 {
    font-size: 19px;
    margin: 12px 0;
}

#why-us .why-card p {
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    #why-us .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    #why-us .why-grid {
        grid-template-columns: 1fr;
    }
}

/* CONTACT FORM STATUS */

#form-status[hidden] {
    display: none !important;
}

#form-status {
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
}

#form-status.form-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

#form-status.form-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

#submit-btn {
    width: 100%;
    min-height: 50px;
}

#submit-btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

#contact-form select,
#contact-form input,
#contact-form textarea {
    width: 100%;
    min-width: 0;
}

#contact-form small {
    display: block;
    font-size: 12px;
    line-height: 1.6;
}
