/* =========================
   AI HERO
========================= */

.ai-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background:
        radial-gradient(circle at 75% 45%,
            rgba(37, 99, 235, 0.16),
            transparent 28%),
        radial-gradient(circle at 20% 80%,
            rgba(124, 58, 237, 0.12),
            transparent 30%),
        #050816;

    color: #ffffff;
}


/* =========================
   BACKGROUND GRID
========================= */

.hero-grid {
    position: absolute;
    inset: 0;

    background-image:
        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: 70px 70px;

    mask-image: linear-gradient(to bottom,
            black,
            transparent 90%);
}


/* =========================
   GLOW
========================= */

.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.glow-1 {
    top: 20%;
    right: 5%;
    background: #2563eb;
}

.glow-2 {
    bottom: 0;
    left: 10%;
    background: #7c3aed;
}


/* =========================
   NAVBAR
========================= */

.hero-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(5, 8, 22, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-navbar .navbar-brand img {
    width: 70px;
}

.hero-navbar .nav-link {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.hero-navbar .nav-link:hover {
    color: #ffffff;
}

.hero-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(241, 200, 75, 0.25);
}

.navbar-nav a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-main);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.navbar-nav a:hover::after {
    width: 100%;
}

.start-project-btn {
    text-decoration: none;
}


/* =========================
   HERO CONTENT
========================= */
.hero-container {
    position: relative;
    z-index: 5;
    padding-top: 110px;
    padding-bottom: 80px;
}

.hero-content {
    position: relative;
    z-index: 10;
}


/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    color: #7c3aed;
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
    letter-spacing: 2px;
}

.hero-badge span {
    width: 7px;
    height: 7px;
    background: #7c3aed;
    border-radius: 50%;
    box-shadow: 0 0 12px #7c3aed;
}


/* Heading */
.hero-content h1 {
    font-size: clamp(48px, 4vw, 82px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 30px;
}

.gradient-text {
    background:
        linear-gradient(90deg,
            #06b6d4,
            #2563eb,
            #7c3aed);
            background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Description */
.hero-content p {
    max-width: 650px;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
}


/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-custom,
.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 27px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary-custom {
    color: #ffffff;
    background:
        linear-gradient(90deg,
            #2563eb,
            #7c3aed);
    box-shadow:
        0 10px 35px rgba(37, 99, 235, 0.25);
}

.btn-primary-custom:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow:
        0 15px 45px rgba(37, 99, 235, 0.4);
}

.btn-primary-custom span {
    font-size: 20px;
}

.btn-outline-custom {
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline-custom:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.05);

    border-color: rgba(255, 255, 255, 0.3);
}


/* =========================
   TECHNOLOGIES
========================= */

.hero-tech {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-tech span {
    color: #6b7280;
    font-size: 13px;
    position: relative;
}

.hero-tech span:not(:last-child)::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: #2563eb;
    border-radius: 50%;
    right: -15px;
    top: 50%;
}


/* =========================
   AI VISUAL
========================= */

.ai-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Sphere */

.ai-sphere {
    position: relative;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%,
            #2563eb,
            #111b54 40%,
            #050816 70%);
    box-shadow:
        0 0 40px rgba(37, 99, 235, 0.6),
        0 0 100px rgba(37, 99, 235, 0.25),
        inset -30px -30px 80px rgba(0, 0, 0, 0.8);
    animation: sphereFloat 5s ease-in-out infinite;
}


/* Sphere lines */

.sphere-lines {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border:
        1px solid rgba(96, 165, 250, 0.5);
    box-shadow:
        inset 15px 0 25px rgba(59, 130, 246, 0.3),
        inset -15px 0 25px rgba(124, 58, 237, 0.2);
    transform: rotate(25deg);
    animation: sphereRotate 10s linear infinite;
}

.sphere-lines::before,
.sphere-lines::after {
    content: "";
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    border:
        1px solid rgba(96, 165, 250, 0.3);
}

.sphere-lines::after {
    transform: rotate(70deg) scaleX(0.6);
}


/* Core */

.sphere-core {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform:
        translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle,
            #60a5fa,
            #2563eb,
            transparent 70%);

    filter: blur(4px);
}


/* Glow */

.sphere-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background:
        radial-gradient(circle,
            rgba(37, 99, 235, 0.25),
            transparent 65%);

    z-index: -1;
}


/* =========================
   ORBITS
========================= */

.orbit {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50%;
    animation: orbitRotate 12s linear infinite;
}

.orbit-1 {
    width: 430px;
    height: 180px;
    transform: rotate(-25deg);
}

.orbit-2 {
    width: 480px;
    height: 220px;
    transform: rotate(55deg);
    animation-duration: 16s;
}

.orbit-3 {
    width: 380px;
    height: 150px;
    transform: rotate(90deg);
    animation-duration: 9s;
}


/* =========================
   FLOATING CARD
========================= */

.ai-floating-card {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background:
        rgba(10, 18, 45, 0.8);
    backdrop-filter: blur(15px);
    border:
        1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4);

    animation: cardFloat 4s ease-in-out infinite;
}

.ai-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background:
        linear-gradient(135deg,
            #2563eb,
            #7c3aed);
}

.ai-floating-card strong {
    display: block;
    font-size: 13px;
}

.ai-floating-card small {
    color: #6b7280;
    font-size: 11px;
}


/* =========================
   PARTICLES
========================= */

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #2563eb;
    border-radius: 50%;
    box-shadow:
        0 0 15px #2563eb;

    animation: particleFloat 4s infinite;
}

.p1 {
    top: 25%;
    left: 12%;
}

.p2 {
    top: 35%;
    left: 42%;

    animation-delay: 1s;
}

.p3 {
    top: 20%;
    right: 20%;

    animation-delay: 2s;
}

.p4 {
    bottom: 25%;
    right: 35%;

    animation-delay: 1.5s;
}

.p5 {
    bottom: 15%;
    left: 30%;

    animation-delay: 3s;
}

.p6 {
    top: 50%;
    right: 10%;

    animation-delay: 2.5s;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes sphereFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes sphereRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0);

        opacity: 0.3;
    }

    50% {
        transform: translateY(-25px);

        opacity: 1;
    }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

    .hero-container {
        padding-top: 70px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-tech {
        justify-content: center;
    }

    .ai-visual {
        height: 430px;

        margin-top: 30px;
    }

}


@media (max-width: 576px) {

    .hero-navbar {
        padding: 18px 0;
    }

    .hero-content h1 {
        font-size: 43px;

        letter-spacing: -2px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .ai-sphere {
        width: 240px;
        height: 240px;
    }

    .orbit-1 {
        width: 300px;
        height: 130px;
    }

    .orbit-2 {
        width: 330px;
        height: 160px;
    }

    .orbit-3 {
        width: 280px;
        height: 120px;
    }

    .ai-floating-card {
        right: 5px;
        bottom: 30px;
    }

}