
/* =========================
   GENERAL SETTINGS
========================= */

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

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080811;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(124, 58, 237, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 60%,
            rgba(37, 99, 235, 0.10),
            transparent 35%
        );
}

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

button {
    font: inherit;
}

section {
    scroll-margin-top: 90px;
}

.section {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 110px 8%;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 90%;
    max-width: 1150px;
    padding: 15px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(15, 15, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 1000;

    animation: navbarEnter 0.8s ease both;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #a855f7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #aaaab8;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active {
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.7);
}

/* Mobile Menu Button */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;

    background: white;
    transition: 0.3s ease;
}

/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 100vh;
    padding-top: 150px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-label,
.section-label {
    color: #a855f7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 85px);
    line-height: 1.05;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(
        90deg,
        #a855f7,
        #6366f1,
        #06b6d4,
        #a855f7
    );

    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    animation: gradientMove 5s ease infinite;
}

.hero-description {
    max-width: 480px;
    color: #a1a1b5;
    font-size: 16px;
    margin-bottom: 35px;
}

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

/* Buttons */

.btn {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(
        135deg,
        #9333ea,
        #6366f1
    );

    box-shadow: 0 5px 25px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 10px 35px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* =========================
   HERO ARTWORK
========================= */

.hero-art {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: float 4s ease-in-out infinite;
}

.art-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #9333ea,
        #4f46e5,
        #06b6d4
    );

    box-shadow:
        0 0 60px rgba(124, 58, 237, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.art-inner {
    width: 210px;
    height: 210px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #101020;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.art-inner span {
    font-size: 110px;
    font-weight: 900;

    background: linear-gradient(
        135deg,
        #c084fc,
        #60a5fa
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
}

.orbit-one {
    width: 350px;
    height: 350px;
    animation: orbitRotate 15s linear infinite;
}

.orbit-two {
    width: 410px;
    height: 410px;
    border-color: rgba(96, 165, 250, 0.2);
    animation: orbitRotate 22s linear infinite reverse;
}

.floating-card {
    position: absolute;
    padding: 14px 18px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(20, 20, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    font-size: 12px;
    font-weight: 700;
}

.card-icon {
    color: #c084fc;
    font-size: 20px;
}

.card-one {
    top: 60px;
    left: -10px;
    animation: cardFloat 4s ease-in-out infinite;
}

.card-two {
    bottom: 65px;
    right: -10px;
    animation: cardFloat 4s ease-in-out infinite 1s;
}

/* =========================
   STATS
========================= */

.stats {
    max-width: 1000px;
    width: 84%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    padding: 35px 20px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.stat {
    text-align: center;
}

.stat h2 {
    font-size: 35px;
    line-height: 1.3;
}

.stat h2 span {
    color: #a855f7;
}

.stat p {
    color: #9292a8;
    font-size: 13px;
}

/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
    max-width: 650px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(35px, 5vw, 55px);
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.section-heading > p:last-child {
    color: #a1a1b5;
    font-size: 15px;
}

/* =========================
   ABOUT
========================= */

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.about-box {
    padding: 35px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.about-box:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
}

.about-symbol {
    font-size: 35px;
    color: #a855f7;
    margin-bottom: 20px;
}

.about-box h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.about-box p {
    color: #a1a1b5;
    font-size: 14px;
}

/* =========================
   SERVICES
========================= */

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

.service-card {
    padding: 30px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #8b5cf6;

    box-shadow:
        0 15px 35px rgba(139, 92, 246, 0.15);
}

.service-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    font-size: 28px;

    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: #a1a1b5;
    font-size: 14px;
    margin-bottom: 25px;
}

.service-link {
    color: #c084fc;
    font-size: 13px;
    font-weight: 700;
}

/* =========================
   FEATURED PROJECT
========================= */

.project-card {
    overflow: hidden;
    border-radius: 20px;

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

.project-art {
    position: relative;
    min-height: 350px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #1e1b4b,
        #312e81,
        #164e63
    );
}

.project-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.project-title span {
    font-size: 12px;
    letter-spacing: 5px;
    color: #c4b5fd;
}

.project-title h2 {
    font-size: clamp(50px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: -5px;
}

.project-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.shape-one {
    width: 250px;
    height: 250px;
    top: -70px;
    left: 10%;

    background: linear-gradient(
        135deg,
        #a855f7,
        #6366f1
    );

    animation: float 5s ease-in-out infinite;
}

.shape-two {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: 15%;

    background: linear-gradient(
        135deg,
        #06b6d4,
        #3b82f6
    );

    animation: float 6s ease-in-out infinite reverse;
}

.shape-three {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;

    background: linear-gradient(
        135deg,
        #c084fc,
        #818cf8
    );

    animation: float 4s ease-in-out infinite 1s;
}

.project-info {
    padding: 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.project-info h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

.project-info p:last-child {
    max-width: 500px;
    color: #a1a1b5;
    font-size: 14px;
}

.project-arrow {
    width: 50px;
    height: 50px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #9333ea;

    font-size: 22px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.project-arrow:hover {
    transform: rotate(45deg);
    background: #6366f1;
}

/* =========================
   CONTACT
========================= */

.contact {
    text-align: center;
}

.contact-content {
    max-width: 750px;
    margin: auto;
    padding: 70px 30px;

    border-radius: 25px;

    background:
        radial-gradient(
            circle at top,
            rgba(124, 58, 237, 0.2),
            transparent 70%
        );

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

.contact h2 {
    font-size: clamp(35px, 6vw, 65px);
    line-height: 1.15;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.contact-content > p:not(.section-label) {
    max-width: 500px;
    margin: 0 auto 30px;

    color: #a1a1b5;
    font-size: 15px;
}

/* =========================
   FOOTER
========================= */

.footer {
    max-width: 1200px;
    margin: auto;
    padding: 30px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

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

.footer p {
    color: #77778d;
    font-size: 12px;
    text-align: center;
}

.back-top {
    color: #c084fc;
    font-size: 13px;
}

/* =========================
   SCROLL REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

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

/* =========================
   ANIMATION KEYFRAMES
========================= */

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

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

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }

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

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes navbarEnter {
    from {
        opacity: 0;
        transform: translate(-50%, -25px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-art {
        margin-top: 20px;
        transform: scale(0.9);
    }

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

@media (max-width: 650px) {

    .navbar {
        width: 92%;
        padding: 14px 20px;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        gap: 0;

        padding: 0 20px;

        background: rgba(15, 15, 30, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 15px;

        overflow: hidden;

        max-height: 0;
        opacity: 0;

        transition:
            max-height 0.4s ease,
            opacity 0.3s ease,
            padding 0.3s ease;
    }

    .nav-links.open {
        max-height: 400px;
        opacity: 1;
        padding: 15px 20px;
    }

    .nav-link {
        width: 100%;
        padding: 12px 0;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section {
        padding: 80px 6%;
    }

    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-art {
        width: 320px;
        height: 320px;
        transform: scale(0.85);
        margin: -10px 0;
    }

    .art-circle {
        width: 210px;
        height: 210px;
    }

    .art-inner {
        width: 170px;
        height: 170px;
    }

    .art-inner span {
        font-size: 85px;
    }

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

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

    .floating-card {
        padding: 10px 12px;
        font-size: 10px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .project-art {
        min-height: 250px;
    }

    .project-info {
        align-items: flex-start;
    }

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

/* Reduce animations for users who prefer less motion */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
