:root {
    --bg: #070b18;
    --bg-soft: #0d1326;
    --bg-card: rgba(255, 255, 255, 0.07);
    --text: #f7f9ff;
    --muted: #aeb8d4;
    --primary: #42e8ff;
    --primary-dark: #00a8c8;
    --secondary: #7c5cff;
    --accent: #19ffa5;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(66, 232, 255, 0.14), transparent 35%),
        radial-gradient(circle at top right, rgba(124, 92, 255, 0.18), transparent 35%),
        var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

.narrow {
    max-width: 900px;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 54px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(7, 11, 24, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1180px, calc(100% - 40px));
    height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.1rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
    transition: var(--transition);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding: 150px min(6vw, 80px) 90px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
    pointer-events: none;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.7rem, 6vw, 6.1rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    margin-bottom: 26px;
}

.hero-text {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.15rem;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 46px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #030712;
    box-shadow: 0 18px 40px rgba(66, 232, 255, 0.22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 55px rgba(66, 232, 255, 0.32);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-3px);
}

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

.hero-stats div {
    min-width: 145px;
    padding: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 18px;
}

.hero-stats strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text);
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Hero Visual */
.hero-visual {
    min-height: 520px;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    animation: float 6s ease-in-out infinite;
}

.orb-one {
    width: 260px;
    height: 260px;
    background: rgba(66, 232, 255, 0.22);
    top: 40px;
    right: 80px;
}

.orb-two {
    width: 210px;
    height: 210px;
    background: rgba(124, 92, 255, 0.25);
    bottom: 40px;
    left: 20px;
    animation-delay: 1.8s;
}

.tech-card,
.floating-card {
    position: absolute;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.card-main {
    width: min(430px, 100%);
    padding: 34px;
    top: 90px;
    right: 35px;
}

.card-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-weight: 900;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.card-main h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.card-main p {
    color: var(--muted);
    margin-bottom: 28px;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: inherit;
    animation: loadBar 1.5s ease forwards;
}

.floating-card {
    padding: 20px 24px;
    animation: float 5s ease-in-out infinite;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    color: var(--primary);
    font-size: 1.35rem;
}

.floating-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.floating-one {
    left: 10px;
    top: 70px;
}

.floating-two {
    right: 0;
    bottom: 70px;
    animation-delay: 1.2s;
}

/* Shared Cards */
.about-grid,
.service-grid,
.portfolio-grid {
    display: grid;
    gap: 24px;
}

.about-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-grid {
    grid-template-columns: repeat(3, 1fr);
}

.portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
}

.about-card,
.service-card,
.portfolio-card,
.contact-form,
.legal-content {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-card,
.service-card {
    padding: 30px;
    transition: var(--transition);
}

.about-card:hover,
.service-card:hover,
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(66, 232, 255, 0.35);
}

.about-card h3,
.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

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

/* Team Section - Fixed Aligned Bottom */
.team-section {
    margin-top: 90px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);

    height: 100%;
    min-height: 560px;

    display: flex;
    flex-direction: column;
}

.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(66, 232, 255, 0.18), transparent 35%),
        linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.08));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(66, 232, 255, 0.4);
}

.team-card:hover::before {
    opacity: 1;
}

.team-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(66, 232, 255, 0.14), rgba(124, 92, 255, 0.18));
    flex-shrink: 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.08);
    filter: saturate(1.15) contrast(1.05);
}

.team-content {
    position: relative;
    z-index: 2;
    padding: 24px;

    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-role {
    display: block;
    min-height: 38px;
    margin-bottom: 10px;

    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.team-content h3 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 12px;
    min-height: 34px;
}

.team-content p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
    min-height: 132px;
}

.team-tags {
    margin-top: auto;
    min-height: 76px;
    padding-top: 16px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    align-content: flex-end;
    align-items: flex-end;
}

.team-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 32px;
    padding: 0 10px;
    border-radius: 999px;

    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
}

/* Services */
.icon {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #030712;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* Portfolio */
.portfolio-card {
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-image {
    height: 220px;
}

.gradient-one {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 12%),
        linear-gradient(135deg, #00d4ff, #7c5cff);
}

.gradient-two {
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.45), transparent 12%),
        linear-gradient(135deg, #19ffa5, #0ea5e9);
}

.gradient-three {
    background:
        radial-gradient(circle at 45% 40%, rgba(255, 255, 255, 0.45), transparent 12%),
        linear-gradient(135deg, #7c5cff, #ff4ecd);
}

.portfolio-content {
    padding: 26px;
}

.portfolio-content span {
    color: var(--primary);
    font-weight: 900;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.portfolio-content h3 {
    margin: 10px 0;
    font-size: 1.35rem;
}

.portfolio-content p {
    color: var(--muted);
}

/* CTA */
.cta-section {
    padding: 40px 0 90px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 46px;
    border-radius: 32px;
    border: 1px solid rgba(66, 232, 255, 0.25);
    background:
        linear-gradient(135deg, rgba(66, 232, 255, 0.12), rgba(124, 92, 255, 0.12)),
        rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow);
}

.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.contact-info>p {
    color: var(--muted);
    margin-bottom: 30px;
}

.contact-list {
    display: grid;
    gap: 18px;
}

.contact-list div {
    padding: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.contact-list strong,
.contact-list span,
.contact-list a {
    display: block;
}

.contact-list strong {
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-list span,
.contact-list a {
    color: var(--muted);
}

.contact-form {
    padding: 32px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: var(--transition);
}

.form-row select option {
    color: #111827;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(66, 232, 255, 0.12);
}

.full-btn {
    width: 100%;
}

.form-message {
    margin-top: 14px;
    color: var(--accent);
    font-weight: 800;
    text-align: center;
}

/* Legal */
.legal {
    padding-top: 100px;
}

.legal-content {
    padding: 36px;
}

.legal-content h3 {
    margin: 28px 0 10px;
    font-size: 1.3rem;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--muted);
}

.legal-content a {
    color: var(--primary);
    font-weight: 800;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.22);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
    gap: 34px;
}

.footer p,
.footer a {
    color: var(--muted);
}

.footer a {
    display: block;
    margin-top: 8px;
    transition: var(--transition);
}

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

.footer h4 {
    margin-bottom: 14px;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-bottom {
    margin-top: 46px;
    padding: 22px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #030712;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes float {

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

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

@keyframes loadBar {
    from {
        width: 0;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card {
        min-height: 590px;
    }

    .team-image {
        height: 320px;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 130px;
    }

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

    .card-main {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .about-grid,
    .service-grid,
    .portfolio-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .navbar {
        height: 74px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 74px;
        left: 20px;
        right: 20px;
        display: grid;
        gap: 0;
        padding: 14px;
        border-radius: 20px;
        background: rgba(7, 11, 24, 0.96);
        border: 1px solid var(--border);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow);
        transform: translateY(-18px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li a {
        display: block;
        padding: 13px 12px;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        letter-spacing: -0.04em;
    }

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

    .card-main {
        width: 92%;
        padding: 26px;
    }

    .floating-one {
        left: 0;
        top: 20px;
    }

    .floating-two {
        right: 0;
        bottom: 22px;
    }

    .about-grid,
    .service-grid,
    .portfolio-grid,
    .contact-grid,
    .footer-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-section {
        margin-top: 70px;
    }

    .team-card {
        min-height: auto;
    }

    .team-image {
        height: 360px;
    }

    .team-role,
    .team-content h3,
    .team-content p,
    .team-tags {
        min-height: auto;
    }

    .cta-box,
    .legal-content,
    .contact-form {
        padding: 26px;
    }
}

@media (max-width: 460px) {

    .container,
    .navbar {
        width: min(100% - 28px, 1180px);
    }

    .brand span {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 420px) {
    .team-image {
        height: 300px;
    }
}