@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #030308;
    --bg2: #080912;
    --card: #0d0f1c;

    --purple: #8b5cf6;
    --violet: #a855f7;
    --blue: #00bfff;
    --cyan: #00f5ff;

    --white: #ffffff;
    --text: #b8bdca;

    --border: rgba(139, 92, 246, .25);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}


/* =====================================
   ANIMATED BACKGROUND
===================================== */

.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -5;

    background-image:
        linear-gradient(
            rgba(139, 92, 246, .08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 245, 255, .06) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }

}


/* =====================================
   PARTICLE GLOW
===================================== */

body::before {

    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    left: -200px;
    top: 20%;

    background: rgba(139, 92, 246, .12);

    border-radius: 50%;

    filter: blur(100px);

    z-index: -3;

    animation: glowMove 8s ease-in-out infinite alternate;

}

body::after {

    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    right: -200px;
    bottom: 10%;

    background: rgba(0, 245, 255, .08);

    border-radius: 50%;

    filter: blur(100px);

    z-index: -3;

    animation: glowMove2 10s ease-in-out infinite alternate;

}

@keyframes glowMove {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(150px, -100px);
    }

}

@keyframes glowMove2 {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-150px, 100px);
    }

}


/* =====================================
   NAVBAR
===================================== */

.navbar {

    height: 80px;

    padding: 0 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(3, 3, 8, .75);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border);

    animation: navDown .8s ease;

}

@keyframes navDown {

    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}


.logo {

    color: white;

    text-decoration: none;

    font-family: "Orbitron", sans-serif;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: 2px;

}

.logo span {

    background:

        linear-gradient(
            90deg,
            var(--purple),
            var(--cyan),
            var(--purple)
        );

    background-size: 200%;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    animation: logoGradient 4s linear infinite;

}

@keyframes logoGradient {

    0% {
        background-position: 0%;
    }

    100% {
        background-position: 200%;
    }

}


.nav-links {

    display: flex;

    list-style: none;

    gap: 30px;

}

.nav-links a {

    color: #c4c7d3;

    text-decoration: none;

    font-size: 13px;

    position: relative;

    transition: .3s;

}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background: linear-gradient(
        90deg,
        var(--purple),
        var(--cyan)
    );

    transition: .3s;

}

.nav-links a:hover::after,
.nav-links a.active::after {

    width: 100%;

}

.nav-links a:hover,
.nav-links a.active {

    color: var(--cyan);

    text-shadow:
        0 0 15px var(--cyan);

}


.menu-btn {

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 28px;

    cursor: pointer;

}


/* =====================================
   HERO
===================================== */

.hero {

    min-height: 90vh;

    padding: 80px 7%;

    display: grid;

    grid-template-columns:
        1.2fr .8fr;

    align-items: center;

    gap: 50px;

}


.hero-content {

    animation: heroIn 1.2s ease;

}

@keyframes heroIn {

    from {

        opacity: 0;

        transform:
            translateX(-60px);

    }

    to {

        opacity: 1;

        transform:
            translateX(0);

    }

}


.hero-badge {

    display: inline-block;

    padding: 8px 16px;

    border: 1px solid
        rgba(0,245,255,.4);

    border-radius: 50px;

    color: var(--cyan);

    font-size: 10px;

    letter-spacing: 3px;

    margin-bottom: 25px;

    animation:
        badgePulse 2s infinite;

}

@keyframes badgePulse {

    0%,100% {

        box-shadow:
            0 0 0 rgba(0,245,255,0);

    }

    50% {

        box-shadow:
            0 0 20px
            rgba(0,245,255,.3);

    }

}


.hero h1 {

    font-family: "Orbitron";

    font-size: clamp(
        42px,
        6vw,
        80px
    );

    line-height: 1.08;

    margin-bottom: 25px;

}


.hero h1 span {
    display: inline-block;

    color: #ffffff;

    /* Normal color before hover */
    background: none;

    -webkit-background-clip: initial;
    -webkit-text-fill-color: #ffffff;

    transition: all 0.3s ease;

    cursor: pointer;
}

/* RGB animation ONLY when hovering */
.hero h1 span:hover {

    background: linear-gradient(
        90deg,
        #ff004c,
        #ff00ff,
        #7a00ff,
        #00c8ff,
        #00ff88,
        #ffff00,
        #ff004c
    );

    background-size: 400% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation: rgbText 10s linear infinite;

    text-shadow:
        0 0 10px rgba(255, 0, 255, 0.5);
}

@keyframes rgbText {

    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }

}

@keyframes textGradient {

    0% {
        background-position: 0%;
    }

    100% {
        background-position: 300%;
    }

}


.hero p {

    max-width: 650px;

    color: var(--text);

    font-size: 17px;

    line-height: 1.8;

}


.hero-buttons {

    display: flex;

    gap: 15px;

    margin-top: 35px;

}


/* =====================================
   BUTTON
===================================== */

.btn {

    display: inline-block;

    padding: 14px 25px;

    border-radius: 6px;

    color: white;

    text-decoration: none;

    border: none;

    cursor: pointer;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    background:

        linear-gradient(
            90deg,
            var(--purple),
            var(--blue)
        );

    background-size: 200%;

    transition: .4s;

    animation:
        buttonGradient 4s linear infinite;

}

@keyframes buttonGradient {

    0% {
        background-position: 0%;
    }

    100% {
        background-position: 200%;
    }

}


.btn:hover {

    transform:
        translateY(-5px)
        scale(1.03);

    box-shadow:

        0 0 20px
        rgba(139,92,246,.6),

        0 0 50px
        rgba(0,191,255,.2);

}


.btn-outline {

    background: transparent;

    border: 1px solid
        rgba(139,92,246,.5);

}


/* =====================================
   HERO 3D VISUAL
===================================== */

.hero-visual {

    height: 450px;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

}


.code-card {

    width: 350px;

    padding: 25px;

    background:
        rgba(13,15,28,.75);

    border: 1px solid
        rgba(139,92,246,.4);

    border-radius: 15px;

    backdrop-filter: blur(15px);

    box-shadow:

        0 0 30px
        rgba(139,92,246,.2);

    animation:
        cardFloat 5s ease-in-out infinite;

    transform:
        perspective(800px)
        rotateY(-12deg)
        rotateX(6deg);

}

@keyframes cardFloat {

    0%,100% {

        transform:
            perspective(800px)
            rotateY(-12deg)
            rotateX(6deg)
            translateY(0);

    }

    50% {

        transform:
            perspective(800px)
            rotateY(-8deg)
            rotateX(3deg)
            translateY(-20px);

    }

}


.code-header {

    display: flex;

    gap: 7px;

    margin-bottom: 20px;

}

.code-header span {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: var(--purple);

    box-shadow:
        0 0 10px
        var(--purple);

}


.code-card pre {

    font-family: monospace;

    color: var(--cyan);

    line-height: 2;

}


/* =====================================
   FLOATING ORBS
===================================== */

.orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(2px);

}

.orb-one {

    width: 200px;

    height: 200px;

    background:
        radial-gradient(
            circle,
            rgba(139,92,246,.35),
            transparent 70%
        );

    animation:
        orbOne 6s ease-in-out infinite;

}

.orb-two {

    width: 120px;

    height: 120px;

    right: 20px;

    bottom: 30px;

    background:
        radial-gradient(
            circle,
            rgba(0,245,255,.25),
            transparent 70%
        );

    animation:
        orbTwo 5s ease-in-out infinite;

}

@keyframes orbOne {

    0%,100% {
        transform:
            translate(0,0);
    }

    50% {
        transform:
            translate(-30px,-40px);
    }

}

@keyframes orbTwo {

    0%,100% {
        transform:
            translate(0,0);
    }

    50% {
        transform:
            translate(30px,30px);
    }

}


/* =====================================
   STATS
===================================== */

.stats {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

}


.stats div {

    padding: 35px;

    text-align: center;

    border-right:
        1px solid var(--border);

    transition: .4s;

}


.stats div:hover {

    background:
        rgba(139,92,246,.05);

}


.stats strong {

    display: block;

    font-family: "Orbitron";

    font-size: 30px;

    color: var(--cyan);

    text-shadow:
        0 0 15px
        rgba(0,245,255,.6);

}


/* =====================================
   SECTION
===================================== */

.section {

    padding: 110px 7%;

}


.section-heading {

    margin-bottom: 55px;

}


.section-heading p,
.section-label {

    color: var(--cyan);

    font-size: 11px;

    letter-spacing: 3px;

    margin-bottom: 15px;

}


.section-heading h2 {

    font-family: "Orbitron";

    font-size:
        clamp(30px,4vw,50px);

}


.section-heading h2 span {

    color: var(--purple);

}


/* =====================================
   SERVICE CARDS
===================================== */

.service-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 20px;

}


.service-page-grid {

    grid-template-columns:
        repeat(3,1fr);

}


.service-card {

    position: relative;

    padding: 30px;

    min-height: 290px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(17,19,32,.9),
            rgba(7,8,15,.9)
        );

    border:
        1px solid var(--border);

    border-radius: 12px;

    transition:
        transform .5s,
        border .5s,
        box-shadow .5s;

}


.service-card::before {

    content: "";

    position: absolute;

    width: 100px;

    height: 100px;

    top: -50px;

    right: -50px;

    border-radius: 50%;

    background:
        var(--purple);

    filter: blur(50px);

    opacity: 0;

    transition: .5s;

}


.service-card:hover {

    transform:
        translateY(-12px);

    border-color:
        var(--purple);

    box-shadow:

        0 0 25px
        rgba(139,92,246,.25),

        inset 0 0 25px
        rgba(139,92,246,.05);

}


.service-card:hover::before {

    opacity: .5;

}


.service-icon {

    color: var(--cyan);

    font-size: 35px;

    margin-bottom: 20px;

    transition: .4s;

}

.service-icon {
    transition: 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.11);
    color: var(--cyan);
    text-shadow: 0 0 15px var(--cyan);
}


.service-card h3 {

    font-family: "Orbitron";

    font-size: 18px;

    margin-bottom: 15px;

}


.service-card p {

    color: var(--text);

    font-size: 13px;

    line-height: 1.8;

}


.service-card a {

    display: inline-block;

    margin-top: 20px;

    color: var(--cyan);

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 2px;

    transition: .3s;

}


.service-card a:hover {

    letter-spacing: 4px;

}


/* =====================================
   PAGE HERO
===================================== */

.page-hero {

    text-align: center;

    padding: 120px 7% 90px;

    background:
        radial-gradient(
            circle at center,
            rgba(139,92,246,.15),
            transparent 55%
        );

    animation:
        pageHero 1s ease;

}

@keyframes pageHero {

    from {

        opacity: 0;

        transform:
            translateY(30px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


.page-hero h1 {

    font-family: "Orbitron";

    font-size:
        clamp(40px,6vw,70px);

    margin: 15px 0;

}


.page-hero h1 span {

    color: var(--purple);

    text-shadow:
        0 0 25px
        rgba(139,92,246,.5);

}


.page-hero p {

    color: var(--text);

}


/* =====================================
   ABOUT
===================================== */

.about-section {

    padding: 100px 7%;

    display: grid;

    grid-template-columns:
        1.2fr .8fr;

    gap: 70px;

}


.about-section h2 {

    font-family: "Orbitron";

    font-size: 45px;

    margin-bottom: 25px;

}


.about-section h2 span {

    color: var(--purple);

}


.about-section > div:first-child > p {

    color: var(--text);

    line-height: 1.9;

    margin-bottom: 20px;

}


.about-panel {

    padding: 30px;

    background:
        rgba(13,15,28,.7);

    border:
        1px solid var(--border);

    border-radius: 12px;

    backdrop-filter:
        blur(10px);

}


.about-item {

    display: flex;

    gap: 20px;

    padding: 25px 0;

    border-bottom:
        1px solid var(--border);

}


.about-item:last-child {

    border-bottom: 0;

}


.about-item > span {

    color: var(--purple);

    font-family: "Orbitron";

}


/* =====================================
   PORTFOLIO
===================================== */

.portfolio-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;

}


.portfolio-card {

    background: #0c0e18;

    border:
        1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    transition: .5s;

}


.portfolio-card:hover {

    transform:
        translateY(-10px);

    border-color:
        var(--cyan);

    box-shadow:
        0 0 30px
        rgba(0,245,255,.15);

}


.portfolio-image {

    height: 250px;

    position: relative;

    overflow: hidden;

}


.portfolio-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .8s;

}


.portfolio-card:hover
.portfolio-image img {

    transform:
        scale(1.15);

}


.portfolio-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(3,3,8,.75);

    color: var(--cyan);

    letter-spacing: 2px;

    opacity: 0;

    transition: .4s;

}


.portfolio-card:hover
.portfolio-overlay {

    opacity: 1;

}


.portfolio-info {

    padding: 25px;

}


.portfolio-info p {

    color: var(--cyan);

    font-size: 10px;

    letter-spacing: 2px;

}


.portfolio-info h3 {

    margin: 10px 0;

}


/* =====================================
   CONTACT
===================================== */

.contact-section {

    padding: 90px 7%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

}


.contact-info h2 {

    font-family: "Orbitron";

    font-size: 45px;

    margin-bottom: 25px;

}


.contact-info > p {

    color: var(--text);

    line-height: 1.8;

}


.contact-detail {

    margin-top: 30px;

}


.contact-detail span {

    color: var(--cyan);

    font-size: 10px;

    letter-spacing: 2px;

}


.contact-detail p {

    color: #ddd;

    margin-top: 5px;

}


.form-box {

    padding: 35px;

    background:
        rgba(13,15,28,.75);

    border:
        1px solid var(--border);

    border-radius: 12px;

    backdrop-filter:
        blur(12px);

    animation:
        formFloat 5s ease-in-out infinite;

}


@keyframes formFloat {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

}


input,
select,
textarea {

    width: 100%;

    padding: 14px;

    margin-bottom: 18px;

    background: #05060b;

    color: white;

    border:
        1px solid #292b40;

    border-radius: 6px;

    outline: none;

    transition: .3s;

}


input:focus,
select:focus,
textarea:focus {

    border-color:
        var(--cyan);

    box-shadow:
        0 0 15px
        rgba(0,245,255,.15);

}


textarea {

    min-height: 150px;

    resize: vertical;

}


/* =====================================
   FEEDBACK
===================================== */

.feedback-section {

    padding: 90px 7%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 60px;

}


.review-card {

    padding: 25px;

    background:
        #0b0d17;

    border:
        1px solid var(--border);

    border-radius: 10px;

    margin-bottom: 15px;

    transition: .4s;

}


.review-card:hover {

    transform:
        translateX(8px);

    border-color:
        var(--cyan);

    box-shadow:
        0 0 20px
        rgba(0,245,255,.1);

}


.stars {

    color: var(--cyan);

    margin: 8px 0;

    text-shadow:
        0 0 10px
        var(--cyan);

}


/* =====================================
   CTA
===================================== */

.cta {

    padding: 130px 7%;

    text-align: center;

    background:
        radial-gradient(
            circle,
            rgba(139,92,246,.2),
            transparent 55%
        );

}


.cta p {

    color: var(--cyan);

    letter-spacing: 3px;

    font-size: 11px;

}


.cta h2 {

    font-family: "Orbitron";

    font-size:
        clamp(40px,6vw,70px);

    margin: 20px 0 35px;

}


.cta span {

    color: var(--purple);

}


/* =====================================
   FOOTER
===================================== */

footer {

    padding: 40px 7%;

    border-top:
        1px solid var(--border);

    background:
        #020207;

}


.footer-main {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

}


.footer-links {

    display: flex;

    gap: 25px;

}


.footer-links a {

    color: #858998;

    text-decoration: none;

    font-size: 12px;

    transition: .3s;

}


.footer-links a:hover {

    color: var(--cyan);

}


.footer-bottom {

    text-align: center;

    padding-top: 25px;

    margin-top: 30px;

    border-top:
        1px solid var(--border);

    color: #666a7a;

    font-size: 11px;

}


/* =====================================
   MOBILE
===================================== */

@media(max-width:1000px) {

    .service-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

    .portfolio-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

}


@media(max-width:800px) {

    .nav-links {

        display: none;

        position: absolute;

        top: 80px;

        left: 0;

        right: 0;

        padding: 25px;

        background:
            rgba(5,5,10,.97);

        flex-direction: column;

        text-align: center;

        border-bottom:
            1px solid var(--border);

        animation:
            mobileMenu .3s ease;

    }


    .nav-links.show {

        display: flex;

    }


    @keyframes mobileMenu {

        from {

            opacity: 0;

            transform:
                translateY(-15px);

        }

        to {

            opacity: 1;

            transform:
                translateY(0);

        }

    }


    .menu-btn {

        display: block;

    }


    .hero {

        grid-template-columns: 1fr;

        text-align: center;

    }


    .hero p {

        margin: auto;

    }


    .hero-buttons {

        justify-content: center;

        flex-wrap: wrap;

    }


    .hero-visual {

        display: none;

    }


    .stats {

        grid-template-columns:
            repeat(2,1fr);

    }


    .about-section,
    .contact-section,
    .feedback-section {

        grid-template-columns: 1fr;

    }


    .footer-main {

        flex-direction: column;

        gap: 25px;

        text-align: center;

    }

}


@media(max-width:550px) {

    .navbar {

        padding: 0 5%;

    }


    .hero,
    .section,
    .about-section,
    .contact-section,
    .feedback-section {

        padding-left: 5%;

        padding-right: 5%;

    }


    .service-grid,
    .service-page-grid,
    .portfolio-grid {

        grid-template-columns: 1fr;

    }


    .hero h1 {

        font-size: 38px;

    }


    .hero-buttons {

        flex-direction: column;

    }


    .btn {

        text-align: center;

    }

}
/* =====================================
   SCROLL REVEAL
===================================== */

.reveal {

    opacity: 0;

    transform:
        translateY(50px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}


.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* STAGGER EFFECT */

.service-card:nth-child(2),
.portfolio-card:nth-child(2) {

    transition-delay: .1s;

}


.service-card:nth-child(3),
.portfolio-card:nth-child(3) {

    transition-delay: .2s;

}


.service-card:nth-child(4) {

    transition-delay: .3s;

}


/* REDUCED MOTION */

@media(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

    }

}