/* ================================
   DINEXA STUDIO — MAIN STYLES
================================ */

:root {
    --bg: #101010;
    --surface: #171717;
    --surface-light: #202020;
    --text: #f5f5f0;
    --muted: #92928d;
    --accent: #c5ff55;
    --border: rgba(255, 255, 255, 0.09);
    --font-main: "DM Sans", sans-serif;
    --font-heading: "Manrope", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background: var(--accent);
    color: #101010;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 100px));
    margin: 0 auto;
}

section {
    position: relative;
}

/* ================================
   LOADER
================================ */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    animation: loaderHide 0.7s ease 1.1s forwards;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -2px;
    animation: loaderPulse 1s ease infinite alternate;
}

.loader-logo span,
.logo span {
    color: var(--accent);
}

@keyframes loaderPulse {
    from {
        opacity: 0.4;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loaderHide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ================================
   HEADER
================================ */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.header.scrolled {
    position: fixed;
    background: rgba(16, 16, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav .header-contact {
    color: var(--accent);
    border: 1px solid rgba(197, 255, 85, 0.35);
    border-radius: 50px;
    padding: 12px 19px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav .header-contact:hover {
    background: var(--accent);
    color: #101010;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--text);
    transition: transform 0.3s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ================================
   HERO
================================ */

.hero {
    min-height: 790px;
    height: 100vh;
    max-height: 1050px;
    padding: 180px 0 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    right: -180px;
    top: 5%;
    background: radial-gradient(
        circle,
        rgba(197, 255, 85, 0.07),
        transparent 70%
    );
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 3;
    animation: heroEntrance 1s ease both;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 35px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(197, 255, 85, 0.7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    50% {
        box-shadow: 0 0 4px rgba(197, 255, 85, 0.2);
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(54px, 6.2vw, 88px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -5px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 490px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 38px;
}

.button-primary,
.button-secondary {
    min-height: 54px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.button-primary {
    background: var(--accent);
    color: #101010;
}

.button-primary:hover {
    transform: translateY(-4px);
    background: #d5ff83;
}

.button-primary span {
    font-size: 17px;
}

.button-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px);
}

/* HERO DECORATION */

.hero-decoration {
    width: 420px;
    height: 420px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    pointer-events: none;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(197, 255, 85, 0.16);
    border-radius: 50%;
}

.orbit-one {
    width: 180px;
    height: 180px;
    animation: orbitRotate 18s linear infinite;
}

.orbit-two {
    width: 290px;
    height: 290px;
    border-style: dashed;
    animation: orbitRotate 35s linear infinite reverse;
}

.orbit-three {
    width: 400px;
    height: 400px;
    border-color: rgba(255, 255, 255, 0.07);
    animation: orbitRotate 55s linear infinite;
}

@keyframes orbitRotate {
    to {
        transform: rotate(360deg);
    }
}

.orbit-core {
    width: 115px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #303b20, #141414 70%);
    border: 1px solid rgba(197, 255, 85, 0.35);
    box-shadow:
        0 0 60px rgba(197, 255, 85, 0.12),
        inset 0 0 30px rgba(197, 255, 85, 0.08);
}

.orbit-core span {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -5px;
}

.orbit-point {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent);
}

.point-one {
    top: 45px;
    left: 90px;
}

.point-two {
    right: 35px;
    top: 180px;
    width: 6px;
    height: 6px;
}

.point-three {
    bottom: 40px;
    left: 155px;
    width: 5px;
    height: 5px;
}

.hero-bottom {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    color: #62625d;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ================================
   GENERAL SECTIONS
================================ */

.section {
    padding: 135px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 65px;
}

.section-label {
    display: block;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.section-heading h2,
.about-content h2,
.contact h2 {
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 65px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -3px;
}

.section-heading h2 span,
.about-content h2 span,
.contact h2 span {
    color: var(--accent);
}

.section-heading > p {
    max-width: 340px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    padding-bottom: 7px;
}

/* ================================
   SERVICES
================================ */

.services {
    background: #131313;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.service-card {
    position: relative;
    min-height: 330px;
    padding: 35px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -100px;
    bottom: -100px;
    background: var(--accent);
    opacity: 0;
    filter: blur(90px);
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 255, 85, 0.35);
}

.service-card:hover::before {
    opacity: 0.12;
}

.service-number {
    color: #666660;
    font-size: 11px;
    letter-spacing: 1px;
}

.service-icon {
    margin-top: 35px;
    color: var(--accent);
    font-size: 35px;
}

.service-card h3 {
    margin-top: 20px;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
}

.service-card p {
    max-width: 300px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.service-arrow {
    position: absolute;
    right: 30px;
    top: 30px;
    color: #666660;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}

/* ================================
   PROJECTS
================================ */

.projects {
    background: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 25px;
}

.project-card {
    display: block;
    min-width: 0;
}

.project-image {
    position: relative;
    height: 360px;
    background-size: cover;
    background-position: center;
    border-radius: 7px;
    overflow: hidden;
    isolation: isolate;
}

.project-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25),
        transparent 40%,
        rgba(0, 0, 0, 0.55)
    );
    transition: background 0.4s ease;
}

.project-card:hover .project-image::before {
    background: rgba(0, 0, 0, 0.35);
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    pointer-events: none;
}

.project-tag {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 9px 13px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-arrow {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #101010;
    border-radius: 50%;
    font-size: 20px;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateY(0);
}

.project-preview {
    position: absolute;
    left: 30px;
    bottom: 35px;
    color: white;
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 55px);
    font-weight: 800;
    letter-spacing: -3px;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.project-preview span {
    color: var(--accent);
}

.project-card:hover .project-preview {
    transform: translateY(-7px);
}

.project-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.project-info span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.project-card > p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

/* ================================
   PROCESS
================================ */

.process {
    background: #131313;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-card {
    min-height: 220px;
    padding: 30px 25px 30px 0;
    border-right: 1px solid var(--border);
}

.process-card:not(:first-child) {
    padding-left: 25px;
}

.process-card:last-child {
    border-right: none;
}

.process-card > span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.process-card h3 {
    margin-top: 45px;
    font-family: var(--font-heading);
    font-size: 19px;
}

.process-card p {
    max-width: 230px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ================================
   ABOUT
================================ */

.about {
    background: var(--bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(40px, 4.8vw, 62px);
}

.about-text {
    padding-top: 35px;
}

.about-text p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-signature {
    margin-top: 35px;
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -2px;
}

.about-signature span {
    color: var(--accent);
}

/* ================================
   CONTACT
================================ */

.contact {
    padding: 140px 0;
    text-align: center;
    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(197, 255, 85, 0.09),
            transparent 55%
        ),
        #151515;
    overflow: hidden;
}

.contact .section-label {
    margin-bottom: 30px;
}

.contact h2 {
    font-size: clamp(45px, 6vw, 78px);
}

.contact > .container > p {
    max-width: 480px;
    margin: 25px auto 35px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.contact .button-primary {
    margin: 0 auto;
}

/* ================================
   FOOTER
================================ */

.footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
    background: #101010;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p,
.footer-inner > span {
    color: var(--muted);
    font-size: 11px;
}

.footer-inner .logo {
    font-size: 22px;
}

/* ================================
   CURSOR GLOW
================================ */

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(197, 255, 85, 0.055),
        transparent 70%
    );
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ================================
   SCROLL REVEAL
================================ */

.service-card,
.project-card,
.about-content,
.contact h2,
.process-card {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-card.visible,
.project-card.visible,
.about-content.visible,
.contact h2.visible,
.process-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .service-card:nth-child(2),
.projects-grid .project-card:nth-child(2),
.process-grid .process-card:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(3),
.projects-grid .project-card:nth-child(3),
.process-grid .process-card:nth-child(3) {
    transition-delay: 0.2s;
}

.projects-grid .project-card:nth-child(4),
.process-grid .process-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* ================================
   RESPONSIVE — TABLET
================================ */

@media (max-width: 1000px) {

    .container {
        width: min(100% - 60px, 900px);
    }

    .nav {
        gap: 20px;
    }

    .hero-decoration {
        right: -130px;
        opacity: 0.55;
    }

    .hero-content {
        max-width: 650px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:last-child {
        grid-column: 1 / -1;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-card:nth-child(2) {
        border-right: none;
    }

    .process-card:nth-child(3),
    .process-card:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .process-card:nth-child(3) {
        padding-left: 0;
    }

    .about-content {
        gap: 50px;
    }
}

/* ================================
   RESPONSIVE — MOBILE
================================ */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 75px;
    }

    .container {
        width: calc(100% - 40px);
    }

    .header-inner {
        min-height: 75px;
    }

    .logo {
        font-size: 23px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .nav {
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        padding: 25px 20px 30px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(16, 16, 16, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav a {
        padding: 15px 5px;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
    }

    .nav .header-contact {
        margin-top: 15px;
        text-align: center;
        border: 1px solid rgba(197, 255, 85, 0.35);
        border-radius: 50px;
    }

    .hero {
        min-height: 760px;
        height: auto;
        max-height: none;
        padding: 155px 0 100px;
    }

    .hero-inner {
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
    }

    .hero-label {
        font-size: 8px;
        letter-spacing: 1.4px;
        margin-bottom: 28px;
    }

    .hero h1 {
        font-size: clamp(43px, 11vw, 65px);
        letter-spacing: -3px;
    }

    .hero-description {
        max-width: 430px;
        font-size: 14px;
        line-height: 1.8;
        margin-top: 23px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 30px;
    }

    .button-primary,
    .button-secondary {
        min-height: 50px;
        padding: 0 19px;
        font-size: 12px;
    }

    .hero-decoration {
        width: 280px;
        height: 280px;
        top: auto;
        bottom: 30px;
        right: -110px;
        transform: none;
        opacity: 0.3;
    }

    .orbit-one {
        width: 130px;
        height: 130px;
    }

    .orbit-two {
        width: 210px;
        height: 210px;
    }

    .orbit-three {
        width: 280px;
        height: 280px;
    }

    .orbit-core {
        width: 80px;
        height: 80px;
    }

    .orbit-core span {
        font-size: 34px;
    }

    .hero-bottom {
        bottom: 25px;
        font-size: 7px;
        letter-spacing: 1px;
    }

    .section {
        padding: 90px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 40px;
    }

    .section-label {
        font-size: 9px;
        margin-bottom: 18px;
    }

    .section-heading h2,
    .about-content h2 {
        font-size: clamp(38px, 9vw, 52px);
        letter-spacing: -2px;
    }

    .section-heading > p {
        margin-top: 20px;
        font-size: 13px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        min-height: 290px;
        padding: 28px;
    }

    .service-card:last-child {
        grid-column: auto;
    }

    .service-icon {
        margin-top: 25px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .project-image {
        height: 280px;
    }

    .project-arrow {
        opacity: 1;
        transform: none;
    }

    .project-preview {
        font-size: 39px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-card,
    .process-card:not(:first-child),
    .process-card:nth-child(3) {
        min-height: 180px;
        padding: 25px 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        border-top: none;
    }

    .process-card:last-child {
        border-bottom: none;
    }

    .process-card h3 {
        margin-top: 25px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-text {
        padding-top: 0;
    }

    .about-text p {
        font-size: 14px;
    }

    .contact {
        padding: 100px 0;
    }

    .contact h2 {
        font-size: clamp(40px, 10vw, 58px);
        letter-spacing: -2px;
    }

    .contact > .container > p {
        font-size: 13px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 13px;
    }

    .cursor-glow {
        display: none;
    }
}

/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 32px);
    }

    .hero h1 {
        font-size: 41px;
    }

    .hero-label {
        font-size: 7px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
    }

    .project-image {
        height: 240px;
    }
}

/* ================================
   ACCESSIBILITY
================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .service-card,
    .project-card,
    .about-content,
    .contact h2,
    .process-card {
        opacity: 1;
        transform: none;
    }
}