/* =========================================================
   INFORMATION SYSTEMS PORTFOLIO
   CSS
========================================================= */

/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #070b12;
    --bg-soft: #0d121b;
    --bg-card: #101722;
    --white: #f7f8fa;
    --text: #e8ebef;
    --text-soft: #a6afbd;
    --text-dark: #161a20;
    --blue: #4b8dff;
    --blue-light: #6ba4ff;
    --blue-dark: #1f5fd1;
    --border: rgba(255,255,255,0.09);
    --border-blue: rgba(75,141,255,0.35);
    --cream: #f2f0eb;
    --radius: 18px;
    --transition: 0.35s ease;
}

/* =========================================================
   LIGHT MODE
========================================================= */

body.light-mode {
    --bg: #f3f4f6;
    --bg-soft: #ffffff;
    --bg-card: #ffffff;
    --white: #111827;
    --text: #171b23;
    --text-soft: #626b78;
    --text-dark: #ffffff;
    --border: rgba(0,0,0,0.09);
    --border-blue: rgba(45,104,215,0.3);
    --cream: #111827;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition:
        background 0.35s ease,
        color 0.35s ease;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(1180px, calc(100% - 48px));
    margin: auto;
}

/* =========================================================
   LOADER
========================================================= */

.loader {
    position: fixed;
    inset: 0;
    background: #05080d;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-inner span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 35px;
    font-weight: 700;
    color: white;
}

.loader-line {
    width: 100px;
    height: 2px;
    background: #202938;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: var(--blue);
    animation: loader 1.2s infinite ease-in-out;
}

@keyframes loader {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s ease;
}

.header.scrolled {
    background: rgba(7,11,18,0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

body.light-mode .header.scrolled {
    background: rgba(255,255,255,0.82);
}

.nav-container {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--blue);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-soft);
    font-size: 13px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: var(--transition);
}

.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: rotate(20deg);
}

.mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    width: 23px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* =========================================================
   SECTION
========================================================= */

.section {
    padding: 130px 0;
}

.dark-section {
    background: var(--bg-soft);
}

.section-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 22px;
}

.section-heading {
    margin-bottom: 65px;
}

.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(45px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -4px;
}

.section-heading h2 span {
    color: var(--text-soft);
}

.section-heading > p {
    max-width: 500px;
    color: var(--text-soft);
    margin-top: 25px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.04) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
    mask-image: linear-gradient(
        to bottom,
        black,
        transparent
    );
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--blue);
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(75px, 10vw, 145px);
    line-height: 0.82;
    letter-spacing: -8px;
    font-weight: 700;
    margin-bottom: 30px;
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
}

.hero h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 18px;
}

.hero-description {
    max-width: 550px;
    color: var(--text-soft);
    font-size: 15px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-tags span {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    color: var(--text-soft);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: var(--blue-light);
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(75,141,255,0.22);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.glow-one {
    width: 300px;
    height: 300px;
    background: rgba(36,100,220,0.25);
    top: 30px;
    right: 30px;
}

.glow-two {
    width: 180px;
    height: 180px;
    background: rgba(79,150,255,0.16);
    bottom: 40px;
    left: 20px;
}

.dashboard-card {
    width: min(500px, 90%);
    background:
        linear-gradient(
            145deg,
            #111b2b,
            #0a101a
        );
    border: 1px solid var(--border-blue);
    border-radius: 22px;
    padding: 28px;
    position: relative;
    z-index: 2;
    box-shadow:
        0 40px 100px rgba(0,0,0,0.45);
    transform:
        perspective(1000px)
        rotateY(-8deg)
        rotateX(4deg);
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform:
            perspective(1000px)
            rotateY(-8deg)
            rotateX(4deg)
            translateY(0);
    }

    50% {
        transform:
            perspective(1000px)
            rotateY(-8deg)
            rotateX(4deg)
            translateY(-12px);
    }
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.small-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--blue);
}

.dashboard-top h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    line-height: 1.05;
    margin-top: 10px;
}

.dashboard-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.chart {
    height: 180px;
    margin-top: 30px;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 35px,
            rgba(255,255,255,0.04) 36px
        );
}

.chart-line {
    position: absolute;
    width: 80%;
    height: 80%;
    left: 10%;
    top: 10%;
    border-bottom:
        3px solid var(--blue);
    border-radius: 50%;
    transform:
        rotate(-9deg)
        skewY(-12deg);
    box-shadow:
        0 0 18px rgba(75,141,255,0.5);
}

.chart-point {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow:
        0 0 15px rgba(75,141,255,0.7);
}

.point-1 {
    left: 14%;
    top: 65%;
}

.point-2 {
    left: 32%;
    top: 52%;
}

.point-3 {
    left: 50%;
    top: 58%;
}

.point-4 {
    left: 68%;
    top: 33%;
}

.point-5 {
    left: 84%;
    top: 18%;
}

.dashboard-bottom {
    display: grid;
    grid-template-columns:
        repeat(3,1fr);
    gap: 15px;
    margin-top: 25px;
}

.dashboard-bottom div {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.dashboard-bottom span {
    display: block;
    font-size: 10px;
    color: var(--text-soft);
}

.dashboard-bottom strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
}

.floating-code {
    position: absolute;
    right: -10px;
    bottom: 35px;
    background: #090e16;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    z-index: 3;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.35);
}

.code-header {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.code-header span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #394455;
}

.floating-code code {
    color: #93baff;
    font-size: 10px;
    line-height: 1.7;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 10px;
    letter-spacing: 1px;
}

/* =========================================================
   ABOUT
========================================================= */

.about {
    background: var(--cream);
    color: var(--text-dark);
}

.about .section-label {
    color: var(--blue);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 100px;
    align-items: end;
}

.about-title h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -4px;
}

.about-title span {
    color: #607087;
}

.about-content {
    color: #5e6570;
}

.about-content p + p {
    margin-top: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
}

.text-link:hover {
    color: var(--blue);
}

.stats {
    display: grid;
    grid-template-columns:
        repeat(4,1fr);
    margin-top: 90px;
    border-top: 1px solid rgba(0,0,0,0.12);
}

.stat {
    padding: 25px;
    border-right: 1px solid rgba(0,0,0,0.12);
}

.stat:first-child {
    padding-left: 0;
}

.stat strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 42px;
}

.stat span {
    color: #727984;
    font-size: 12px;
}

/* =========================================================
   SKILLS
========================================================= */

.skills-grid {
    display: grid;
    grid-template-columns:
        repeat(4,1fr);
    gap: 12px;
}

.skill-card {
    min-height: 180px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-blue);
    background:
        linear-gradient(
            145deg,
            var(--bg-card),
            #111d30
        );
}

.skill-icon {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 20px;
    margin-bottom: 35px;
}

.skill-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
}

.skill-card p {
    color: var(--text-soft);
    font-size: 11px;
    margin-top: 4px;
}

/* =========================================================
   PROJECTS
========================================================= */

.project-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.project-heading > p {
    margin: 0;
}

.project-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-soft);
    font-size: 11px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
}

.projects-grid {
    display: grid;
    grid-template-columns:
        repeat(2,1fr);
    gap: 25px;
}

.project-card {
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    border-color: var(--border-blue);
}

/* =========================================================
   PERSONAL PROJECTS
   HANYA MERAPIKAN AREA DESKRIPSI
========================================================= */

.personal-project {
    display: flex;
    flex-direction: column;
}

.personal-project .project-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.personal-project .project-info > p {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 620px;
}

.personal-project .project-tech {
    margin-top: 20px;
}

.personal-project .project-link {
    margin-top: auto;
}

.project-image {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 40%,
            #14294b,
            #080d15 70%
        );
}

.project-image-two {
    background:
        radial-gradient(
            circle at 50% 40%,
            #173b35,
            #080d15 70%
        );
}

.project-image-three {
    background:
        radial-gradient(
            circle at 50% 40%,
            #3a294d,
            #080d15 70%
        );
}

.project-image-four {
    background:
        radial-gradient(
            circle at 50% 40%,
            #49341e,
            #080d15 70%
        );
}

/* =========================================================
   BROWSER MOCKUP
========================================================= */

.mockup-browser {
    width: 80%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: #0d1522;
    box-shadow:
        0 30px 50px rgba(0,0,0,0.45);
    transform:
        perspective(800px)
        rotateX(5deg)
        rotateY(-8deg);
}

.browser-top {
    height: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding-left: 10px;
    gap: 5px;
}

.browser-top span {
    width: 5px;
    height: 5px;
    background: #4b5667;
    border-radius: 50%;
}

.browser-content {
    display: grid;
    grid-template-columns: 25% 1fr;
    min-height: 180px;
}

.mock-sidebar {
    border-right: 1px solid var(--border);
}

.mock-main {
    padding: 18px;
}

.mock-title {
    width: 55%;
    height: 8px;
    background: #6d8fc4;
    border-radius: 5px;
    margin-bottom: 20px;
}

.mock-cards {
    display: grid;
    grid-template-columns:
        repeat(3,1fr);
    gap: 8px;
}

.mock-cards span {
    height: 35px;
    background: #16253a;
    border-radius: 5px;
}

.mock-chart {
    height: 75px;
    margin-top: 15px;
    border-radius: 5px;
    background:
        linear-gradient(
            160deg,
            transparent 45%,
            #4b8dff 46%,
            transparent 48%
        ),
        linear-gradient(
            170deg,
            transparent 60%,
            #4b8dff 61%,
            transparent 63%
        ),
        #111d2c;
}

/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-preview {
    width: 75%;
    padding: 20px;
    background: #101b1b;
    border: 1px solid rgba(100,200,170,0.15);
    border-radius: 12px;
}

.preview-heading {
    width: 40%;
    height: 8px;
    background: #70b8a4;
    border-radius: 5px;
}

.preview-stat-row {
    display: grid;
    grid-template-columns:
        repeat(3,1fr);
    gap: 8px;
    margin: 18px 0;
}

.preview-stat-row span {
    height: 40px;
    background: #152b29;
    border-radius: 5px;
}

.preview-chart {
    height: 130px;
    display: flex;
    align-items: end;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.preview-chart div {
    flex: 1;
    background: #4e9f8c;
    opacity: 0.8;
    border-radius:
        4px 4px 0 0;
}

.preview-chart div:nth-child(1) {
    height: 35%;
}

.preview-chart div:nth-child(2) {
    height: 52%;
}

.preview-chart div:nth-child(3) {
    height: 42%;
}

.preview-chart div:nth-child(4) {
    height: 70%;
}

.preview-chart div:nth-child(5) {
    height: 60%;
}

.preview-chart div:nth-child(6) {
    height: 88%;
}

/* =========================================================
   PHONE
========================================================= */

.phone-preview {
    width: 145px;
    height: 270px;
    background: #101016;
    border: 4px solid #30303b;
    border-radius: 25px;
    padding: 8px;
    position: relative;
    box-shadow:
        0 30px 50px rgba(0,0,0,0.5);
}

.phone-notch {
    position: absolute;
    width: 55px;
    height: 10px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background: #30303b;
    border-radius:
        0 0 8px 8px;
}

.phone-content {
    padding-top: 22px;
}

.phone-header {
    width: 55%;
    height: 7px;
    background: #b48bdd;
    border-radius: 5px;
}

.phone-banner {
    height: 70px;
    background:
        linear-gradient(
            135deg,
            #3a294d,
            #765b92
        );
    border-radius: 10px;
    margin-top: 14px;
}

.phone-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.phone-list span {
    height: 35px;
    background: #1a1720;
    border-radius: 7px;
}

/* =========================================================
   PROCESS
========================================================= */

.process-flow {
    display: flex;
    align-items: center;
    width: 85%;
}

.flow-node {
    padding: 15px 12px;
    border: 1px solid rgba(220,170,100,0.3);
    background: rgba(220,170,100,0.06);
    border-radius: 8px;
    font-size: 10px;
    white-space: nowrap;
}

.flow-line {
    flex: 1;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            rgba(220,170,100,0.5),
            transparent
        );
}

.project-info {
    padding: 25px;
}

.project-info > div:first-child {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}

.project-number {
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
}

.project-type {
    color: var(--text-soft);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 25px;
    line-height: 1.1;
    max-width: 500px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.project-tech span {
    font-size: 9px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-soft);
}

.project-link {
    background: transparent;
    color: var(--white);
    font-size: 11px;
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link:hover {
    color: var(--blue);
}

/* =========================================================
   EXPERIENCE
========================================================= */

.timeline-grid {
    display: grid;
    grid-template-columns:
        repeat(2,1fr);
    gap: 100px;
}

.timeline-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    margin-bottom: 35px;
}

.timeline-title i {
    color: var(--blue);
}

.timeline {
    border-left: 1px solid var(--border);
    padding-left: 25px;
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue);
    left: -30px;
    top: 5px;
    box-shadow:
        0 0 0 5px var(--bg-soft);
}

.timeline-date {
    color: var(--blue);
    font-size: 10px;
    letter-spacing: 1px;
}

.timeline-item h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    margin-top: 8px;
}

.timeline-item p {
    color: var(--text-soft);
    font-size: 13px;
}

.timeline-item small {
    display: block;
    color: var(--text-soft);
    max-width: 500px;
    margin-top: 10px;
    font-size: 12px;
}

/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: var(--cream);
    color: var(--text-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns:
        0.9fr 1fr;
    gap: 100px;
}

.contact-content h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(55px, 7vw, 90px);
    line-height: 0.9;
    letter-spacing: -5px;
}

.contact-content h2 span {
    color: #667284;
}

.contact-content > p {
    max-width: 480px;
    color: #646b75;
    margin-top: 25px;
}

.contact-links {
    display: grid;
    gap: 12px;
    margin-top: 35px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-dark);
}

.contact-links i {
    color: var(--blue);
    width: 18px;
}

.contact-form {
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 15px;
    background: rgba(255,255,255,0.3);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom:
        1px solid rgba(0,0,0,0.18);
    background: transparent;
    outline: none;
    padding: 10px 0;
    color: var(--text-dark);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
}

.submit-btn {
    width: 100%;
    margin-top: 5px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-container {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer p {
    color: var(--text-soft);
    font-size: 10px;
}

.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    transition: var(--transition);
}

.socials a:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* =========================================================
   MODAL
========================================================= */

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
}

.project-modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.modal-container {
    width: min(900px,100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #0d131d;
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: white;
    z-index: 3;
}

.modal-close:hover {
    background: var(--blue);
}

.modal-content {
    padding: 60px;
}

.modal-number {
    color: var(--blue);
    font-size: 10px;
    letter-spacing: 2px;
}

.modal-content h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(35px,5vw,60px);
    line-height: 1;
    letter-spacing: -3px;
    margin-top: 15px;
}

.modal-content > p {
    color: var(--text-soft);
    max-width: 650px;
    margin-top: 20px;
}

.modal-process {
    display: grid;
    grid-template-columns:
        repeat(4,1fr);
    gap: 15px;
    margin-top: 50px;
}

.modal-process > div {
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.modal-process span {
    color: var(--blue);
    font-size: 10px;
}

.modal-process strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    margin-top: 8px;
}

.modal-process p {
    color: var(--text-soft);
    font-size: 11px;
    margin-top: 8px;
}

/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: #111923;
    border: 1px solid var(--border-blue);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    transform:
        translateY(100px);
    opacity: 0;
    transition: 0.4s ease;
    z-index: 5000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: #5ac68a;
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 950px) {

    .navbar {
        gap: 18px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

    .hero {
        padding-top: 150px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 720px) {

    .container {
        width: min(
            100% - 30px,
            1180px
        );
    }

    .section {
        padding: 90px 0;
    }

    .navbar {
        position: fixed;
        top: 82px;
        right: 15px;
        width: calc(100% - 30px);
        padding: 25px;
        background: var(--bg-card);
        border:
            1px solid var(--border);
        border-radius: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        transform:
            translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .navbar.active {
        transform:
            translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar .theme-toggle {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: clamp(
            65px,
            20vw,
            100px
        );
        letter-spacing: -6px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .dashboard-card {
        width: 100%;
    }

    .floating-code {
        right: -5px;
        bottom: 5px;
        transform: scale(0.85);
    }

    .scroll-indicator {
        display: none;
    }

    .section-heading h2 {
        letter-spacing: -3px;
    }

    .stats {
        grid-template-columns:
            repeat(2,1fr);
    }

    .stat {
        border-bottom:
            1px solid rgba(0,0,0,0.12);
    }

    .stat:nth-child(3) {
        padding-left: 0;
    }

    .skills-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .skill-card {
        min-height: 155px;
        padding: 18px;
    }

    .skill-icon {
        margin-bottom: 20px;
    }

    .project-heading {
        display: block;
    }

    .project-heading > p {
        margin-top: 25px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 260px;
    }

    /* Personal Projects */
    .personal-project .project-info > p {
        font-size: 11px;
        line-height: 1.65;
    }

    .process-flow {
        transform: scale(0.8);
    }

    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .modal-content {
        padding: 40px 25px;
    }

    .modal-process {
        grid-template-columns:
            repeat(2,1fr);
    }

    .footer-container {
        flex-direction: column;
        justify-content: center;
        padding: 30px 0;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .hero-tags span {
        font-size: 9px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat strong {
        font-size: 32px;
    }

    .project-info h3 {
        font-size: 21px;
    }

    .personal-project .project-info > p {
        font-size: 10.5px;
    }

    .modal-process {
        grid-template-columns: 1fr;
    }
}