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

:root {
    --bg: #080810;
    --surface: #11111d;
    --text: #f5f5ff;
    --muted: #9999ae;
    --purple: #a855f7;
    --blue: #5478ff;
    --gradient: linear-gradient(120deg, #a855f7, #5478ff);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

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

button {
    font: inherit;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 82px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 8, 16, .78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 1000;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -2px;
}

.logo span {
    color: var(--purple);
}

.logo i {
    color: var(--blue);
    font-style: normal;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--muted);
    font-size: 14px;
    transition: .3s;
}

.nav a:hover {
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-btn, .menu-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: white;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
}

.menu-btn {
    display: none;
}

.hero {
    min-height: 100vh;
    padding: 150px 10% 90px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.eyebrow, .section-tag {
    color: #c69aff;
    font-size: 13px;
    letter-spacing: 1px;
}

.eyebrow {
    display: inline-block;
    padding: 9px 17px;
    background: rgba(168,85,247,.1);
    border: 1px solid rgba(168,85,247,.25);
    border-radius: 30px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(43px, 7vw, 82px);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 20px;
}

.hero h1 span, .section h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content > p, .about > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn {
    padding: 13px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 35px rgba(123,75,255,.25);
}

.secondary {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.04);
}

.hero-glow {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: rgba(110,50,255,.16);
    filter: blur(110px);
    left: -180px;
    top: 15%;
}

.hero-decoration {
    position: absolute;
    left: 12%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    display: grid;
    place-items: center;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(168,85,247,.3);
    border-radius: 50%;
    animation: rotate 14s linear infinite;
}

.orbit-one {
    width: 280px;
    height: 280px;
    border-top-color: var(--purple);
}

.orbit-two {
    width: 220px;
    height: 220px;
    border-bottom-color: var(--blue);
    animation-direction: reverse;
    animation-duration: 9s;
}

.core {
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: var(--gradient);
    box-shadow: 0 0 70px rgba(130,80,255,.5);
    font: 800 60px 'Outfit', sans-serif;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    right: 10%;
    color: var(--muted);
    font-size: 12px;
}

.section {
    padding: 110px 10%;
}

.section h2 {
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1.5;
    margin: 18px 0 25px;
    font-weight: 800;
}

.about {
    background: linear-gradient(180deg, transparent, rgba(95,55,180,.07), transparent);
}

.about > p {
    max-width: 700px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 45px;
}

.service-card {
    padding: 30px;
    background: linear-gradient(145deg, #151522, #0d0d17);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    transition: .35s;
}

.service-card:hover {
    transform: translateY(-9px);
    border-color: rgba(168,85,247,.5);
    box-shadow: 0 15px 45px rgba(100,60,200,.12);
}

.service-icon {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(168,85,247,.14);
    color: #c69aff;
    font-size: 25px;
    margin-bottom: 23px;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.project-placeholder {
    min-height: 260px;
    border: 1px dashed rgba(168,85,247,.4);
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(110,65,200,.13), transparent 65%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--muted);
}

.project-symbol {
    font: 800 65px 'Outfit', sans-serif;
    background: var(--gradient);
    background-clip: text;
    color: transparent;
}

.contact {
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(95,55,180,.13), transparent 65%);
}

.contact .btn {
    margin-top: 15px;
}

.footer {
    padding: 35px 8%;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer p, .footer > span {
    color: var(--muted);
    font-size: 12px;
}

html[dir="ltr"] body {
    font-family: 'Outfit', sans-serif;
}

html[dir="ltr"] .hero,
html[dir="ltr"] .section {
    text-align: left;
}

html[dir="ltr"] .hero-glow {
    left: auto;
    right: -180px;
}

html[dir="ltr"] .hero-decoration {
    left: auto;
    right: 12%;
}

html[dir="ltr"] .scroll-hint {
    right: auto;
    left: 10%;
}

@media (max-width: 900px) {
    .header {
        padding: 0 5%;
    }

    .nav {
        gap: 15px;
    }

    .hero-decoration {
        opacity: .35;
        left: -70px;
    }

    html[dir="ltr"] .hero-decoration {
        right: -70px;
    }
}

@media (max-width: 700px) {
    .header {
        height: 72px;
    }

    .menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 72px;
        right: 0;
        width: 100%;
        padding: 25px;
        background: #10101c;
        display: none;
        flex-direction: column;
        gap: 20px;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    html[dir="ltr"] .nav {
        right: auto;
        left: 0;
    }

    .nav.active {
        display: flex;
    }

    .hero {
        min-height: 90vh;
        padding: 140px 7% 100px;
    }

    .hero-decoration {
        width: 180px;
        height: 180px;
        top: 65%;
        left: -50px;
        opacity: .22;
    }

    .orbit-one {
        width: 180px;
        height: 180px;
    }

    .orbit-two {
        width: 140px;
        height: 140px;
    }

    .core {
        width: 65px;
        height: 65px;
        font-size: 38px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .section {
        padding: 80px 7%;
    }

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

    .footer {
        flex-direction: column;
        text-align: center;
    }
}
