/* =========================================================
   PROJECT PAGE
   TruApps Studio
   ========================================================= */

:root {
    --navy: #193778;
    --navy-dark: #10285A;
    --navy-deep: #0B1D43;
    --navy-light: #24478F;

    --turquoise: #3FE0C0;
    --teal: #0DB69F;

    --white: #FFFFFF;
    --white-soft: rgba(255, 255, 255, 0.88);
    --white-muted: rgba(255, 255, 255, 0.66);

    --background: #10285A;
    --background-dark: #0B1D43;
    --background-soft: #142F68;

    --card: rgba(255, 255, 255, 0.055);
    --card-hover: rgba(255, 255, 255, 0.085);

    --border: rgba(63, 224, 192, 0.18);
    --border-light: rgba(255, 255, 255, 0.10);

    --shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    --shadow-hover: 0 24px 55px rgba(0, 0, 0, 0.32);

    --glow: 0 0 35px rgba(63, 224, 192, 0.14);
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--white);

    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
}


/* =========================================================
   CONTAINER
   EXACTLY SAME AS LANDING.CSS
   ========================================================= */

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


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    background: rgba(11, 29, 67, 0.90);

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

    border-bottom: 1px solid var(--border-light);

    z-index: 1000;
}

.nav {
    min-height: 72px;

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

    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;

    font-size: 1.2rem;
    font-weight: 700;

    white-space: nowrap;
}

.logo span {
    color: var(--turquoise);
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 28px;

    list-style: none;
}

.nav-links a {
    color: var(--white-muted);

    font-size: 0.95rem;
    font-weight: 500;

    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--turquoise);
}


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

.hero {
    position: relative;

    padding: 155px 0 90px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(63, 224, 192, 0.10),
            transparent 45%
        );
}

.hero-content {
    max-width: 900px;

    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 22px;

    font-size: clamp(2.4rem, 5vw, 4.5rem);

    line-height: 1.08;

    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--turquoise);
}

.hero p {
    max-width: 760px;

    margin: 0 auto 32px;

    color: var(--white-soft);

    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 24px;

    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 600;

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

.btn-primary {
    background: var(--turquoise);

    color: var(--navy-deep);

    border: 1px solid var(--turquoise);

    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);

    background: #56e6ca;

    box-shadow:
        0 12px 30px rgba(63, 224, 192, 0.20);
}

.btn-secondary {
    background: transparent;

    color: var(--white);

    border: 1px solid var(--border);
}

.btn-secondary:hover {
    transform: translateY(-2px);

    background: var(--card);

    border-color: var(--turquoise);
}


/* =========================================================
   HERO IMAGE / SLIDER
   ========================================================= */

.hero-image {
    width: 100%;

    margin: 70px auto 0;
}

.hero-slider {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 24px;

    border: 1px solid var(--border);

    background: var(--card);

    box-shadow: var(--shadow);
}

.hero-slides {
    display: flex;

    width: 100%;

    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   HERO SLIDER BUTTONS
   ========================================================= */

.hero-slider-btn {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

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

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 50%;

    background: rgba(11, 29, 67, 0.75);

    color: var(--white);

    font-size: 1.4rem;

    cursor: pointer;

    z-index: 5;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.hero-slider-btn:hover {
    background: rgba(63, 224, 192, 0.90);

    color: var(--navy-deep);

    border-color: var(--turquoise);

    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}


/* =========================================================
   HERO SLIDER DOTS
   ========================================================= */

.hero-slider-dots {
    position: absolute;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 8px;

    z-index: 5;
}

.hero-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.45);

    cursor: pointer;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.hero-dot.active {
    width: 24px;

    border-radius: 10px;

    background: var(--turquoise);
}


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

.stats {
    padding: 55px 0;

    background: var(--background-dark);

    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 0;
}

.stat {
    padding: 20px 30px;

    text-align: center;

    border-right: 1px solid var(--border-light);
}

.stat:last-child {
    border-right: 0;
}

.stat h2 {
    margin-bottom: 5px;

    color: var(--turquoise);

    font-size: 1.35rem;
    font-weight: 700;
}

.stat p {
    color: var(--white-muted);

    font-size: 0.9rem;
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.section {
    position: relative;

    padding: 100px 0;
}

.section-title {
    max-width: 800px;

    margin: 0 auto 55px;

    text-align: center;
}

.section-title h2 {
    margin-bottom: 14px;

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.15;

    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--white-muted);

    font-size: 1rem;

    line-height: 1.7;
}


/* =========================================================
   FEATURES
   ========================================================= */

.features {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.feature-card {
    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border-light);

    border-radius: 18px;

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

.feature-card:hover {
    transform: translateY(-5px);

    background: var(--card-hover);

    border-color: var(--border);

    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;

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

    margin-bottom: 20px;

    border-radius: 12px;

    background: rgba(63, 224, 192, 0.10);

    color: var(--turquoise);

    font-size: 1.3rem;
}

.feature-card h3 {
    margin-bottom: 10px;

    font-size: 1.15rem;
}

.feature-card p {
    color: var(--white-muted);

    font-size: 0.92rem;

    line-height: 1.7;
}


/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.portfolio-item {
    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border-light);

    border-radius: 16px;

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

.portfolio-item:hover {
    transform: translateY(-5px);

    border-color: var(--border);

    box-shadow: var(--shadow-hover);
}

.portfolio-item img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
}

.portfolio-info {
    padding: 18px;
}

.portfolio-info h3 {
    margin-bottom: 7px;

    font-size: 1rem;
}

.portfolio-info p {
    color: var(--white-muted);

    font-size: 0.85rem;

    line-height: 1.6;
}


/* =========================================================
   TECHNOLOGY
   ========================================================= */

.tech-stack {
    display: flex;

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

    flex-wrap: wrap;

    gap: 12px;
}

.tech {
    padding: 10px 17px;

    background: var(--card);

    border: 1px solid var(--border-light);

    border-radius: 50px;

    color: var(--white-soft);

    font-size: 0.9rem;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.tech:hover {
    background: rgba(63, 224, 192, 0.10);

    border-color: var(--border);

    color: var(--turquoise);
}


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

.about-box {
    max-width: 1000px;

    margin: 0 auto;

    padding: 40px;

    background: var(--card);

    border: 1px solid var(--border-light);

    border-radius: 20px;
}

.about-box p {
    color: var(--white-soft);

    font-size: 1rem;

    line-height: 1.85;
}

.about-box p + p {
    margin-top: 18px;
}


/* =========================================================
   TESTING BOX
   ========================================================= */

.testing-box {
    max-width: 950px;

    margin: 0 auto;

    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow: var(--shadow);
}


/* =========================================================
   TESTING STEP
   ========================================================= */

.testing-step {
    display: flex;

    align-items: flex-start;

    gap: 20px;

    padding: 25px 0;

    text-align: left;
}


/* Remove top spacing from first step */

.testing-step:first-child {
    padding-top: 0;
}


/* Remove bottom spacing from last step */

.testing-step:last-of-type {
    padding-bottom: 0;
}


/* Divider between steps */

.testing-step + .testing-step {
    border-top: 1px solid var(--border-light);
}


/* =========================================================
   STEP NUMBER
   ========================================================= */

.step-number {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;

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

    border-radius: 50%;

    background: var(--turquoise);

    color: var(--navy-dark);

    font-size: 1rem;

    font-weight: 700;
}


/* =========================================================
   STEP CONTENT
   ========================================================= */

.testing-step h3 {
    margin: 0 0 8px;

    font-size: 1.25rem;

    color: var(--white);
}


.testing-step p {
    margin: 0 0 16px;

    color: var(--white-muted);

    line-height: 1.7;
}


/* =========================================================
   TESTING BUTTON
   ========================================================= */

.testing-step .btn-primary,
.testing-step .btn-secondary {
    display: inline-flex;
}


/* =========================================================
   TESTING NOTE
   ========================================================= */

.testing-note {
    margin-top: 30px;

    padding: 18px 20px;

    text-align: left;

    color: var(--white-muted);

    background: rgba(63, 224, 192, 0.06);

    border: 1px solid var(--border);

    border-radius: 12px;

    font-size: 0.9rem;

    line-height: 1.6;
}


.testing-note strong {
    color: var(--turquoise);
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    max-width: 1100px;

    margin: 0 auto;

    padding: 65px 40px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(63, 224, 192, 0.12),
            transparent 65%
        );

    border: 1px solid var(--border);

    border-radius: 24px;
}

.cta h2 {
    margin-bottom: 14px;

    font-size: clamp(2rem, 4vw, 3rem);
}

.cta p {
    max-width: 700px;

    margin: 0 auto 28px;

    color: var(--white-muted);

    line-height: 1.7;
}


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

footer {
    padding: 40px 0;

    background: var(--background-dark);

    border-top: 1px solid var(--border-light);
}

.footer {
    display: flex;

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

    gap: 20px;
}

.footer p {
    color: var(--white-muted);

    font-size: 0.85rem;
}

.footer p span {
    color: var(--turquoise);
}

.footer-links {
    display: flex;

    align-items: center;

    gap: 20px;
}

.footer-links a {
    color: var(--white-muted);

    font-size: 0.85rem;

    transition: color 0.25s ease;
}

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


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

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

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


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .nav {
        min-height: 68px;
    }

    .nav-links {
        gap: 18px;
    }

    .hero {
        padding-top: 135px;
    }

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

    .stat {
        padding: 22px 20px;

        border-right: 0;

        border-bottom: 1px solid var(--border-light);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 80px 0;
    }

    .footer {
        flex-direction: column;

        text-align: center;
    }
}


/* =========================================================
   MOBILE
   EXACTLY SAME CONTAINER WIDTH AS LANDING.CSS
   ========================================================= */

@media (max-width: 650px) {

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

    .nav {
        min-height: 64px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .hero {
        padding: 115px 0 65px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-image {
        margin-top: 45px;
    }

    .hero-slider {
        border-radius: 16px;
    }

    .hero-slider-btn {
        width: 38px;
        height: 38px;

        font-size: 1.1rem;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-slider-dots {
        bottom: 10px;
    }

    .section {
        padding: 65px 0;
    }

    .section-title {
        margin-bottom: 38px;
    }

    .features {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .feature-card {
        padding: 25px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

     .testing-box {
        padding: 24px 20px;
    }


    .testing-step {
        gap: 14px;

        padding: 22px 0;
    }


    .step-number {
        width: 36px;
        height: 36px;

        font-size: 0.9rem;
    }


    .about-box {
        padding: 28px 22px;
    }

    .cta {
        padding: 45px 22px;

        border-radius: 18px;
    }

    footer {
        padding: 35px 0;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 470px) {

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.76rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons a {
        width: 100%;
    }

    .hero-slider-btn {
        width: 34px;
        height: 34px;

        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .tech-stack {
        gap: 8px;
    }

    .tech {
        padding: 8px 13px;

        font-size: 0.8rem;
    }
}
