/* =========================================
   APEX DIGITAL
   GLOBAL VARIABLES
========================================= */

:root {

    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;

    --background: #080810;
    --background-soft: #10101a;
    --card: #12121d;
    --card-hover: #181824;

    --text: #f8fafc;
    --text-soft: #a1a1b5;
    --text-muted: #717184;

    --border: rgba(255, 255, 255, 0.09);

    --gradient:
        linear-gradient(
            135deg,
            #8b5cf6,
            #06b6d4
        );

    --container: 1180px;

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;

    --shadow:
        0 25px 70px rgba(0, 0, 0, 0.3);

    --transition:
        0.3s ease;

    --header-height: 76px;
}


/* =========================================
   LIGHT THEME
========================================= */

body.light-theme {

    --background: #f7f7fb;
    --background-soft: #ffffff;
    --card: #ffffff;
    --card-hover: #f3f3f8;

    --text: #15151d;
    --text-soft: #555566;
    --text-muted: #77778a;

    --border: rgba(0, 0, 0, 0.08);

    --shadow:
        0 25px 70px rgba(30, 30, 60, 0.1);
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;

    transition:
        background var(--transition),
        color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================
   CONTAINER
========================================= */

.container {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================
   HEADER
========================================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background:
        rgba(8, 8, 16, 0.7);

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid var(--border);

    transition:
        background var(--transition);
}

.light-theme .header {
    background: rgba(255, 255, 255, 0.8);
}


.navbar {

    height: var(--header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    font-size: 1.7rem;

    font-weight: 800;

    letter-spacing: -0.05em;
}

.logo span {
    color: var(--secondary);
}


.nav-links {

    display: flex;

    align-items: center;

    gap: 28px;
}

.nav-links > a {

    color: var(--text-soft);

    font-size: 0.92rem;

    transition:
        color var(--transition);
}

.nav-links > a:hover {
    color: var(--text);
}


.theme-toggle {

    width: 40px;
    height: 40px;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--card);

    color: var(--text);

    transition:
        transform var(--transition),
        background var(--transition);
}

.theme-toggle:hover {
    transform: rotate(20deg);
}


.menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--card);

    padding: 9px;
}

.menu-toggle span {

    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--text);
}


/* =========================================
   HERO
========================================= */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    padding:
        140px 0 90px;

    overflow: hidden;
}


.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;
}


.grid-background {

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        radial-gradient(
            circle at center,
            black,
            transparent 75%
        );
}


.orb {

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.2;

    animation:
        floatOrb 8s ease-in-out infinite;
}

.orb-one {

    top: 10%;
    left: -120px;

    background: var(--primary);
}

.orb-two {

    right: -120px;
    bottom: 5%;

    background: var(--secondary);

    animation-delay: -4s;
}


@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -35px);
    }
}


.hero-content {

    position: relative;

    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    gap: 70px;

    align-items: center;
}


.eyebrow {

    display: inline-block;

    margin-bottom: 18px;

    color: var(--secondary);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.16em;
}


.hero h1 {

    max-width: 750px;

    font-size:
        clamp(
            3rem,
            7vw,
            5.8rem
        );

    line-height: 0.98;

    letter-spacing: -0.065em;

    margin-bottom: 28px;
}


.gradient-text {

    background:
        var(--gradient);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.hero-text > p {

    max-width: 620px;

    color: var(--text-soft);

    font-size: 1.08rem;

    margin-bottom: 34px;
}


.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}


/* =========================================
   BUTTONS
========================================= */

.btn {

    min-height: 52px;

    padding:
        0 22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border-radius: 12px;

    font-weight: 700;

    border: 1px solid transparent;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}


.btn-primary {

    background:
        var(--gradient);

    color: white;

    box-shadow:
        0 12px 35px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    box-shadow:
        0 18px 45px rgba(124, 58, 237, 0.38);
}


.btn-secondary {

    border-color: var(--border);

    background: var(--card);

    color: var(--text);
}


/* =========================================
   HERO STATS
========================================= */

.hero-stats {

    display: flex;

    flex-wrap: wrap;

    gap: 40px;

    margin-top: 55px;
}

.hero-stats div {

    display: flex;

    flex-direction: column;
}

.hero-stats strong {

    font-size: 1.6rem;

    letter-spacing: -0.04em;
}

.hero-stats span {

    color: var(--text-muted);

    font-size: 0.8rem;
}


/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.floating-card {

    background:
        rgba(18, 18, 29, 0.85);

    border:
        1px solid var(--border);

    backdrop-filter:
        blur(20px);

    box-shadow:
        var(--shadow);
}


.card-main {

    width: 440px;

    min-height: 320px;

    border-radius: 20px;

    transform:
        perspective(1000px)
        rotateY(-8deg)
        rotateX(4deg);

    animation:
        mainFloat 6s ease-in-out infinite;
}


@keyframes mainFloat {

    0%,
    100% {
        transform:
            perspective(1000px)
            rotateY(-8deg)
            rotateX(4deg)
            translateY(0);
    }

    50% {
        transform:
            perspective(1000px)
            rotateY(-8deg)
            rotateX(4deg)
            translateY(-12px);
    }
}


.browser-top {

    height: 42px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 15px;

    border-bottom:
        1px solid var(--border);
}

.browser-top span {

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--text-muted);
}


.browser-content {
    padding: 30px;
}


.mock-line {

    height: 12px;

    width: 55%;

    margin-bottom: 14px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    opacity: 0.7;
}

.mock-line.large {
    width: 80%;
    height: 25px;
}


.mock-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 45px;
}

.mock-grid div {

    height: 110px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(124,58,237,.5),
            rgba(6,182,212,.15)
        );

    border:
        1px solid var(--border);
}


.mini-card {

    position: absolute;

    padding: 15px 18px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    gap: 12px;

    animation:
        miniFloat 5s ease-in-out infinite;
}


.card-speed {

    top: 50px;
    left: 0;
}

.card-growth {

    right: 0;
    bottom: 65px;

    animation-delay: -2s;
}


@keyframes miniFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


.mini-icon {

    width: 38px;
    height: 38px;

    border-radius: 10px;

    display: grid;
    place-items: center;

    background:
        rgba(124,58,237,.2);

    color: var(--primary-light);

    font-weight: 800;
}

.mini-card strong {
    display: block;
}

.mini-card small {
    color: var(--text-muted);
}


/* =========================================
   SECTIONS
========================================= */

.section {
    padding: 120px 0;
}


.section-heading {

    max-width: 700px;

    margin-bottom: 60px;
}

.section-heading h2 {

    font-size:
        clamp(
            2.3rem,
            5vw,
            4rem
        );

    line-height: 1.05;

    letter-spacing: -0.055em;

    margin-bottom: 20px;
}

.section-heading p {

    color: var(--text-soft);

    font-size: 1.05rem;
}


/* =========================================
   SERVICES
========================================= */

.services-section {
    background: var(--background-soft);
}


.services-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 22px;
}


.service-card {

    position: relative;

    padding: 34px;

    min-height: 390px;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius-medium);

    overflow: hidden;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.service-card:hover {

    transform: translateY(-8px);

    background: var(--card-hover);

    border-color:
        rgba(124, 58, 237, .4);
}


.service-number {

    position: absolute;

    top: 25px;
    right: 28px;

    color: var(--text-muted);

    font-size: 0.75rem;

    font-weight: 700;
}


.service-icon {

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 30px;

    border-radius: 15px;

    background:
        rgba(124, 58, 237, .12);

    color: var(--primary-light);

    font-size: 1.3rem;

    font-weight: 800;
}


.service-card h3 {

    font-size: 1.35rem;

    margin-bottom: 14px;
}

.service-card p {

    color: var(--text-soft);

    margin-bottom: 25px;
}

.service-card ul {

    list-style: none;

    display: grid;

    gap: 9px;

    color: var(--text-muted);

    font-size: 0.9rem;
}

.service-card li::before {

    content: "•";

    color: var(--secondary);

    margin-right: 8px;
}


/* =========================================
   PORTFOLIO
========================================= */

.filter-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 35px;
}


.filter-btn {

    padding:
        10px 18px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background: var(--card);

    color: var(--text-soft);

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn.active {

    background: var(--gradient);

    color: white;

    border-color: transparent;
}


.portfolio-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 1fr)
        );

    gap: 22px;
}


.portfolio-item {

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius-medium);

    overflow: hidden;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-7px);
}


.portfolio-image {

    height: 260px;

    position: relative;

    display: grid;

    place-items: center;

    overflow: hidden;
}


.portfolio-one {
    background:
        linear-gradient(
            135deg,
            #191235,
            #102b39
        );
}

.portfolio-two {
    background:
        linear-gradient(
            135deg,
            #302015,
            #151c37
        );
}

.portfolio-three {
    background:
        linear-gradient(
            135deg,
            #102c27,
            #11172d
        );
}

.portfolio-four {
    background:
        linear-gradient(
            135deg,
            #29152e,
            #121a31
        );
}

.portfolio-five {
    background:
        linear-gradient(
            135deg,
            #222,
            #18313a
        );
}

.portfolio-six {
    background:
        linear-gradient(
            135deg,
            #26152b,
            #142735
        );
}


/* Browser mockup */

.portfolio-browser {

    width: 75%;

    height: 170px;

    border-radius: 12px;

    background: #101018;

    border:
        1px solid rgba(255,255,255,.15);

    box-shadow:
        0 20px 50px rgba(0,0,0,.4);
}

.browser-dots {

    height: 28px;

    display: flex;

    gap: 5px;

    align-items: center;

    padding-left: 10px;

    border-bottom:
        1px solid var(--border);
}

.browser-dots span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #777;
}


.portfolio-preview {

    padding: 18px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;
}

.portfolio-preview div {

    height: 90px;

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            rgba(139,92,246,.7),
            rgba(6,182,212,.25)
        );
}


/* Phone */

.phone-mockup {

    width: 125px;

    padding: 7px;

    border-radius: 20px;

    background: #080810;

    box-shadow:
        0 20px 45px rgba(0,0,0,.5);
}

.phone-screen {

    min-height: 210px;

    padding: 14px;

    border-radius: 15px;

    background:
        linear-gradient(
            180deg,
            #302151,
            #10182c
        );
}

.phone-header {

    height: 10px;

    width: 50%;

    border-radius: 10px;

    background: white;

    opacity: .7;

    margin-bottom: 25px;
}

.phone-box {

    height: 70px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );
}

.phone-lines {

    margin-top: 15px;

    display: grid;

    gap: 8px;
}

.phone-lines span {

    height: 6px;

    border-radius: 5px;

    background:
        rgba(255,255,255,.25);
}


/* Analytics */

.analytics-card {

    width: 75%;

    padding: 25px;

    border-radius: 15px;

    background:
        rgba(10,10,20,.8);

    border:
        1px solid var(--border);
}

.analytics-header {

    display: flex;

    justify-content: space-between;

    margin-bottom: 25px;
}

.analytics-header span {
    color: var(--text-muted);
}

.analytics-header strong {
    color: #34d399;
}


.chart {

    height: 100px;

    display: flex;

    align-items: end;

    gap: 8px;
}

.chart i {

    flex: 1;

    border-radius: 5px 5px 0 0;

    background:
        linear-gradient(
            to top,
            var(--primary),
            var(--secondary)
        );

    animation:
        chartGrow 1.5s ease forwards;
}

.chart i:nth-child(1) { height: 25%; }
.chart i:nth-child(2) { height: 40%; }
.chart i:nth-child(3) { height: 35%; }
.chart i:nth-child(4) { height: 60%; }
.chart i:nth-child(5) { height: 55%; }
.chart i:nth-child(6) { height: 80%; }
.chart i:nth-child(7) { height: 100%; }


/* Dashboard */

.dashboard-preview {

    width: 80%;
    height: 170px;

    display: flex;

    border-radius: 12px;

    overflow: hidden;

    background: #0e0e18;

    border:
        1px solid var(--border);
}

.dash-sidebar {

    width: 25%;

    background:
        rgba(139,92,246,.2);
}

.dash-content {

    flex: 1;

    padding: 25px;

    display: grid;

    gap: 12px;
}

.dash-content span {

    height: 30px;

    border-radius: 7px;

    background:
        rgba(255,255,255,.1);
}


/* Brand */

.design-card {

    width: 190px;

    height: 150px;

    padding: 20px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:
        #e7d9c7;

    color: #181512;

    transform:
        rotate(-5deg);

    box-shadow:
        0 20px 40px rgba(0,0,0,.3);
}

.design-card span {
    font-size: .7rem;
    letter-spacing: .15em;
}

.design-card strong {
    font-size: 1.5rem;
}


/* SEO */

.seo-result {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;
}

.seo-result span {

    color: var(--text-muted);

    font-size: .75rem;

    letter-spacing: .15em;
}

.seo-result strong {

    font-size: 4rem;

    line-height: 1;

    background:
        var(--gradient);

    color: transparent;

    background-clip: text;

    -webkit-background-clip: text;
}

.seo-result small {
    color: var(--text-soft);
}


.portfolio-info {

    padding: 22px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.portfolio-info span {

    color: var(--secondary);

    font-size: .72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.portfolio-info h3 {

    margin-top: 5px;

    font-size: 1.1rem;
}

.portfolio-arrow {

    width: 38px;
    height: 38px;

    border:
        1px solid var(--border);

    border-radius: 50%;

    display: grid;
    place-items: center;

    color: var(--text);

    transition:
        transform var(--transition);
}

.portfolio-item:hover .portfolio-arrow {
    transform: rotate(45deg);
}


/* =========================================
   PRICING
========================================= */

.pricing-section {
    background: var(--background-soft);
}


.pricing-wrapper {

    max-width: 950px;

    margin: auto;

    padding: 10px;

    border:
        1px solid var(--border);

    border-radius: 25px;

    background: var(--card);
}


.pricing-tabs {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;

    padding: 8px;

    border-bottom:
        1px solid var(--border);
}


.pricing-tab {

    padding: 15px;

    border: none;

    border-radius: 12px;

    background: transparent;

    color: var(--text-soft);

    font-weight: 700;

    transition:
        background var(--transition),
        color var(--transition);
}

.pricing-tab.active {

    background:
        rgba(124,58,237,.15);

    color: var(--primary-light);
}


.pricing-content {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 50px;

    padding: 50px;
}


.pricing-info h3 {

    font-size: 2rem;

    margin-bottom: 15px;
}

.pricing-info p {

    color: var(--text-soft);

    margin-bottom: 25px;
}


.price {

    display: flex;

    flex-direction: column;

    margin-bottom: 30px;
}

.price span {

    color: var(--text-muted);

    font-size: .8rem;
}

.price strong {

    font-size: 3rem;

    letter-spacing: -.06em;
}


.pricing-features h4 {
    margin-bottom: 20px;
}

.pricing-features ul {

    list-style: none;

    display: grid;

    gap: 14px;
}

.pricing-features li {
    color: var(--text-soft);
}


/* =========================================
   TESTIMONIALS
========================================= */

.testimonial-slider {

    position: relative;

    max-width: 850px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 20px;
}


.testimonial-track {

    flex: 1;

    overflow: hidden;
}


.testimonial {

    display: none;

    padding: 45px;

    text-align: center;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);
}

.testimonial.active {

    display: block;

    animation:
        testimonialFade .4s ease;
}


@keyframes testimonialFade {

    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.stars {

    color: #fbbf24;

    letter-spacing: 5px;

    margin-bottom: 20px;
}


.testimonial blockquote {

    font-size:
        clamp(
            1.1rem,
            2.5vw,
            1.5rem
        );

    color: var(--text-soft);

    margin-bottom: 30px;
}


.testimonial-author {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;
}


.avatar {

    width: 45px;
    height: 45px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--gradient);

    color: white;

    font-size: .75rem;

    font-weight: 800;
}


.testimonial-author div:last-child {

    display: flex;

    flex-direction: column;

    text-align: left;
}

.testimonial-author span {

    color: var(--text-muted);

    font-size: .75rem;
}


.slider-btn {

    flex-shrink: 0;

    width: 45px;
    height: 45px;

    border:
        1px solid var(--border);

    border-radius: 50%;

    background: var(--card);

    color: var(--text);

    transition:
        background var(--transition),
        transform var(--transition);
}

.slider-btn:hover {

    background: var(--primary);

    color: white;

    transform: scale(1.05);
}


.testimonial-dots {

    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 25px;
}


.testimonial-dot {

    width: 8px;
    height: 8px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: var(--text-muted);
}

.testimonial-dot.active {
    background: var(--secondary);
}


/* =========================================
   CONTACT
========================================= */

.contact-section {
    background: var(--background-soft);
}


.contact-container {

    display: grid;

    grid-template-columns:
        .9fr
        1.1fr;

    gap: 80px;

    align-items: start;
}


.contact-info h2 {

    font-size:
        clamp(
            2.4rem,
            5vw,
            4rem
        );

    line-height: 1.05;

    letter-spacing: -.055em;

    margin-bottom: 20px;
}

.contact-info > p {

    max-width: 520px;

    color: var(--text-soft);

    margin-bottom: 35px;
}


.contact-details {

    display: grid;

    gap: 18px;
}


.contact-detail {

    display: flex;

    align-items: center;

    gap: 14px;

    width: fit-content;
}

.contact-detail:hover strong {
    color: var(--secondary);
}


.contact-icon {

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        rgba(124,58,237,.12);

    color: var(--primary-light);

    border:
        1px solid var(--border);
}


.contact-detail div:last-child {

    display: flex;

    flex-direction: column;
}

.contact-detail span {

    color: var(--text-muted);

    font-size: .75rem;
}

.contact-detail strong {

    transition:
        color var(--transition);
}


/* WhatsApp */

.whatsapp-detail .contact-icon {

    background:
        rgba(37, 211, 102, .12);

    color: #25d366;
}

.whatsapp-detail strong {
    color: var(--text);
}


.whatsapp-button {

    margin-top: 30px;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding:
        14px 20px;

    border-radius: 12px;

    background:
        #25d366;

    color: white;

    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.whatsapp-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(37,211,102,.25);
}

.whatsapp-button strong {
    margin-left: 5px;
}


/* Contact form */

.contact-form-wrapper {

    padding: 35px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-large);

    background: var(--card);

    box-shadow: var(--shadow);
}


.contact-form {

    display: grid;

    gap: 20px;
}


.form-group {

    display: grid;

    gap: 8px;
}


.form-group label {

    font-size: .85rem;

    font-weight: 700;
}


.form-group input,
.form-group textarea,
.form-group select {

    width: 100%;

    padding:
        14px 15px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    outline: none;

    background:
        var(--background-soft);

    color: var(--text);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


.form-group textarea {

    resize: vertical;

    min-height: 130px;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {

    border-color:
        rgba(124,58,237,.7);

    box-shadow:
        0 0 0 4px rgba(124,58,237,.1);
}


.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {

    border-color:
        #22c55e;
}


.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {

    border-color:
        #ef4444;
}


.error-message {

    min-height: 17px;

    color: #ef4444;

    font-size: .75rem;
}


.form-submit {
    width: 100%;
}


.form-note {

    color: var(--text-muted);

    font-size: .72rem;

    text-align: center;
}


/* =========================================
   MODAL
========================================= */

.modal {

    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;

    place-items: center;

    padding: 20px;
}

.modal.active {
    display: grid;
}


.modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.75);

    backdrop-filter:
        blur(8px);
}


.modal-content {

    position: relative;

    z-index: 1;

    width: min(
        100%,
        450px
    );

    padding: 45px 35px;

    text-align: center;

    border:
        1px solid var(--border);

    border-radius: 25px;

    background: var(--card);

    box-shadow:
        0 30px 100px rgba(0,0,0,.5);

    animation:
        modalIn .3s ease;
}


@keyframes modalIn {

    from {
        opacity: 0;
        transform: scale(.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.modal-close {

    position: absolute;

    top: 15px;
    right: 18px;

    border: none;

    background: none;

    color: var(--text-muted);

    font-size: 1.8rem;
}


.success-icon {

    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(34,197,94,.12);

    color: #22c55e;

    font-size: 1.7rem;

    font-weight: 800;
}


.modal-content h3 {

    font-size: 1.7rem;

    margin-bottom: 10px;
}

.modal-content p {

    color: var(--text-soft);

    margin-bottom: 25px;
}


/* =========================================
   FOOTER
========================================= */

.footer {

    padding-top: 70px;

    background: var(--background);
}


.footer-content {

    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 80px;

    padding-bottom: 60px;
}


.footer-brand {
    max-width: 350px;
}

.footer-brand p {

    color: var(--text-muted);

    margin-top: 15px;
}


.footer-links {

    display: flex;

    gap: 90px;
}


.footer-links div {

    display: flex;

    flex-direction: column;

    gap: 10px;
}


.footer-links h4 {
    margin-bottom: 10px;
}


.footer-links a {

    color: var(--text-muted);

    font-size: .9rem;

    transition:
        color var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}


.footer-bottom {

    padding:
        22px 0;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid var(--border);

    color: var(--text-muted);

    font-size: .75rem;
}


/* =========================================
   SCROLL ANIMATIONS
========================================= */

.animate-on-scroll {

    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.animate-on-scroll.visible {

    opacity: 1;

    transform:
        translateY(0);
}


.fade-in {

    animation:
        filterFade .35s ease;
}


@keyframes filterFade {

    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .hero-content {

        grid-template-columns: 1fr;

    }

    .hero-visual {

        min-height: 400px;
    }

    .contact-container {

        grid-template-columns: 1fr;

        gap: 50px;
    }

    .pricing-content {

        grid-template-columns: 1fr;

        gap: 25px;

        padding: 35px;
    }

}


@media (max-width: 760px) {

    .menu-toggle {
        display: block;
    }


    .nav-links {

        position: absolute;

        top: calc(
            var(--header-height) + 8px
        );

        left: 20px;
        right: 20px;

        padding: 20px;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        background: var(--card);

        border:
            1px solid var(--border);

        border-radius: 16px;

        box-shadow: var(--shadow);

        opacity: 0;

        pointer-events: none;

        transform:
            translateY(-10px);

        transition:
            opacity var(--transition),
            transform var(--transition);
    }


    .nav-links.open {

        opacity: 1;

        pointer-events: auto;

        transform:
            translateY(0);
    }


    .nav-links > a {

        padding: 12px;

        border-radius: 8px;
    }

    .nav-links > a:hover {
        background: var(--background-soft);
    }


    .theme-toggle {
        align-self: center;
    }


    .hero {
        padding-top: 120px;
    }


    .hero h1 {
        font-size: clamp(
            2.8rem,
            14vw,
            4.5rem
        );
    }


    .hero-stats {
        gap: 25px;
    }


    .card-main {
        width: 85%;
    }


    .card-speed {
        left: -5px;
    }

    .card-growth {
        right: -5px;
    }


    .footer-content {

        grid-template-columns: 1fr;

        gap: 40px;
    }


    .footer-links {
        gap: 50px;
    }


    .footer-bottom {

        flex-direction: column;
    }

}


@media (max-width: 520px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }


    .section {
        padding: 85px 0;
    }


    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }


    .hero-buttons .btn {
        width: 100%;
    }


    .hero-visual {
        min-height: 330px;
    }


    .card-main {
        width: 95%;

        min-height: 250px;
    }


    .browser-content {
        padding: 20px;
    }


    .mock-grid div {
        height: 70px;
    }


    .mini-card {
        padding: 10px;
    }


    .card-speed {
        top: 20px;
    }


    .card-growth {
        bottom: 20px;
    }


    .pricing-tabs {
        grid-template-columns: 1fr;
    }


    .pricing-content {
        padding: 25px;
    }


    .testimonial {
        padding: 30px 20px;
    }


    .slider-btn {
        width: 38px;
        height: 38px;
    }


    .testimonial-slider {
        gap: 8px;
    }


    .contact-form-wrapper {
        padding: 22px;
    }


    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

}
.hero-image {
    position: absolute;

    /* Move photo upward */
    top: 10%;

    /* Position on the right */
    right: 40px;

    width: 260px;
    height: 260px;

    border-radius: 50%;
    overflow: hidden;

    z-index: 5;

    border: 2px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 0 35px rgba(0, 200, 255, 0.20),
        0 20px 60px rgba(0, 0, 0, 0.5);

    animation: profileFloat 5s ease-in-out infinite;
}
.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: 50%;
}
@keyframes profileFloat {

    0% {
        transform: translateY(-20px);
    }

    50% {
        transform: translateY(-40px);
    }

    100% {
        transform: translateY(-20px);
    }

}
@media (max-width: 900px) {

    .hero-image {
        width: 190px;
        height: 190px;

        right: 20px;
        top: 15%;
    }

}
/* Portfolio project link */

.portfolio-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.portfolio-link .portfolio-item {
    cursor: pointer;
}

/* .portfolio-arrow {
    width: 40px;
    height: 40px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
} */

.portfolio-link:hover .portfolio-arrow {
    transform: translate(4px, -4px);
}
/* DESIGN - keep the single card on the LEFT
.portfolio-item[data-category="design"] {
    justify-self: start;
    margin-left: 0;
    margin-right: auto;
} */
/* .portfolio-grid .portfolio-item[data-category="design"] {
    grid-column: 1;
    justify-self: start;
} */
/* =================================
   RESPONSIVE PORTFOLIO
================================= */

/* .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    justify-content: start;
    align-items: start;
} */

.portfolio-grid .portfolio-item {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}


/* TABLET */

@media (max-width: 900px) {

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .portfolio-grid .portfolio-item {
        width: 100%;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .portfolio-grid .portfolio-item {
        width: 100%;
    }

    .portfolio-image {
        width: 100%;
        height: 220px;
    }

    .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}
/* =================================
   DESIGN PROJECT - LEFT SIDE
================================= */

.portfolio-grid > .portfolio-link:has(.portfolio-item[data-category="design"]) {
    grid-column: 1;
    justify-self: start;
    width: 100%;
}
/* =================================
   SEO PROJECT - LEFT SIDE
================================= */

.portfolio-grid > .portfolio-link:has(.portfolio-item[data-category="seo"]) {
    grid-column: 1;
    justify-self: start;
    width: 100%;
}
/* DESIGN */
.portfolio-grid > .portfolio-link:has(.portfolio-item[data-category="design"]) {
    grid-column: 1;
    justify-self: start;
    width: 100%;
}


/* SEO */
.portfolio-grid > .portfolio-link:has(.portfolio-item[data-category="seo"]) {
    grid-column: 1;
    justify-self: start;
    width: 100%;
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}