/* =========================================================
   PANCHAM SINGH PORTFOLIO
   Main Stylesheet
========================================================= */


/* ================= VARIABLES ================= */

:root {

    --bg: #080b16;
    --bg-secondary: #0d1224;
    --card: rgba(17, 24, 45, 0.72);

    --text: #f8fafc;
    --text-secondary: #a9b3c7;

    --primary: #7c3aed;
    --primary-light: #a855f7;

    --cyan: #06b6d4;
    --blue: #3b82f6;
    --pink: #ec4899;
    --green: #22c55e;
    --orange: #f97316;
    --yellow: #eab308;

    --border: rgba(255, 255, 255, 0.09);

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --transition: 0.3s ease;

    --container: 1180px;
}


/* LIGHT MODE */

body.light-mode {

    --bg: #f5f7fb;
    --bg-secondary: #ffffff;
    --card: rgba(255, 255, 255, 0.8);

    --text: #101828;
    --text-secondary: #475467;

    --border: rgba(16, 24, 40, 0.1);

    --shadow:
        0 20px 60px rgba(16, 24, 40, 0.1);
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: "Inter", sans-serif;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(124, 58, 237, 0.12),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
}


/* ================= NAVBAR ================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background:
        rgba(8, 11, 22, 0.72);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border);
}

.nav-container {

    width: min(100% - 40px, var(--container));

    margin: auto;

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    font-family: "JetBrains Mono", monospace;

    font-size: 22px;

    font-weight: 700;

    color: white;
}

.logo span {
    color: var(--primary-light);
}


.nav-menu {

    display: flex;

    gap: 35px;
}

.nav-link {

    position: relative;

    color: var(--text-secondary);

    font-size: 14px;

    font-weight: 600;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {

    color: white;
}

.nav-link::after {

    content: "";

    position: absolute;

    bottom: -8px;
    left: 0;

    width: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--cyan)
        );

    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


.nav-actions {

    display: flex;

    align-items: center;

    gap: 12px;
}

.theme-btn,
.menu-btn {

    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: grid;

    place-items: center;

    color: var(--text);

    background: var(--card);

    border: 1px solid var(--border);

    transition: var(--transition);
}

.theme-btn:hover,
.menu-btn:hover {

    transform: translateY(-2px);

    border-color: var(--primary-light);

    color: var(--primary-light);
}

.menu-btn {
    display: none;
}


/* ================= HERO ================= */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    padding:
        120px 20px
        70px;

    overflow: hidden;
}


.hero-container {

    width: min(100%, var(--container));

    margin: auto;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 70px;

    align-items: center;

    position: relative;

    z-index: 2;
}


/* Gradient Orbs */

.gradient-orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.35;

    pointer-events: none;
}

.orb-one {

    width: 400px;
    height: 400px;

    background: var(--primary);

    top: 10%;
    left: -150px;

    animation: floatOrb 8s ease-in-out infinite;
}

.orb-two {

    width: 350px;
    height: 350px;

    background: var(--cyan);

    bottom: -100px;
    right: 5%;

    animation: floatOrb 10s ease-in-out infinite reverse;
}

.orb-three {

    width: 250px;
    height: 250px;

    background: var(--pink);

    top: 20%;
    right: 25%;

    opacity: 0.15;
}


@keyframes floatOrb {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-30px) translateX(20px);
    }
}


/* Particles */

.particles span {

    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--primary-light);

    animation: particleMove 8s linear infinite;

    opacity: 0.6;
}

.particles span:nth-child(1) {
    top: 20%;
    left: 15%;
}

.particles span:nth-child(2) {
    top: 70%;
    left: 30%;
    animation-delay: 2s;
}

.particles span:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.particles span:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
}

.particles span:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.particles span:nth-child(6) {
    bottom: 15%;
    left: 10%;
    animation-delay: 5s;
}


@keyframes particleMove {

    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}


/* Hero Content */

.availability {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 14px;

    border: 1px solid rgba(34, 197, 94, 0.25);

    border-radius: 30px;

    background: rgba(34, 197, 94, 0.08);

    color: #86efac;

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 25px;
}

.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px var(--green);

    animation: pulse 1.5s infinite;
}


@keyframes pulse {

    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}


.hero-small-text {

    color: var(--text-secondary);

    font-size: 18px;

    margin-bottom: 4px;
}


.hero h1 {

    font-size: clamp(60px, 8vw, 100px);

    line-height: 0.95;

    letter-spacing: -5px;

    font-weight: 800;

    margin-bottom: 25px;

    background:
        linear-gradient(
            100deg,
            #ffffff 10%,
            #a855f7 45%,
            #06b6d4 90%
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}

.hero h1 span {
    display: block;
}


.typing-container {

    font-family: "JetBrains Mono", monospace;

    font-size: 23px;

    color: var(--text-secondary);

    margin-bottom: 25px;
}

#typingText {

    color: var(--cyan);

    font-weight: 600;
}

.cursor {

    color: var(--primary-light);

    animation: blink 0.8s infinite;
}


@keyframes blink {

    50% {
        opacity: 0;
    }
}


.hero-description {

    max-width: 600px;

    color: var(--text-secondary);

    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 35px;
}


/* Buttons */

.hero-buttons {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    margin-bottom: 30px;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 14px 22px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 700;

    transition: var(--transition);

    position: relative;

    overflow: hidden;
}


.primary-btn {

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5b21b6
        );

    box-shadow:
        0 12px 35px rgba(124, 58, 237, 0.3);
}

.primary-btn:hover {

    transform: translateY(-4px);

    box-shadow:
        0 18px 45px rgba(124, 58, 237, 0.45);
}


.secondary-btn {

    border: 1px solid var(--border);

    background: var(--card);

    color: var(--text);
}

.secondary-btn:hover {

    transform: translateY(-4px);

    border-color: var(--cyan);

    color: var(--cyan);
}


/* Social */

.social-links {

    display: flex;

    gap: 12px;
}

.social-links a {

    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: grid;

    place-items: center;

    border: 1px solid var(--border);

    background: var(--card);

    color: var(--text-secondary);

    transition: var(--transition);
}

.social-links a:hover {

    color: white;

    background: var(--primary);

    transform: translateY(-4px);
}


/* ================= TERMINAL ================= */

.hero-terminal {

    perspective: 1000px;
}

.terminal-window {

    background:
        rgba(7, 10, 20, 0.9);

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5);

    transform:
        rotateY(-5deg)
        rotateX(3deg);

    transition: 0.5s ease;
}

.terminal-window:hover {

    transform:
        rotateY(0)
        rotateX(0)
        translateY(-8px);
}


.terminal-header {

    height: 48px;

    padding: 0 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    position: relative;
}

.terminal-buttons {

    position: absolute;

    left: 16px;

    display: flex;

    gap: 7px;
}

.terminal-buttons span {

    width: 11px;
    height: 11px;

    border-radius: 50%;
}

.red {
    background: #ff5f57;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #28c840;
}

.terminal-title {

    color: #7f8aa5;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 12px;
}


.terminal-body {

    padding: 25px;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 13px;

    line-height: 2;
}

.terminal-green {
    color: #4ade80;
}

.terminal-blue {
    color: #60a5fa;
}

.terminal-output {
    color: #c4b5fd;

    padding-left: 20px;
}

.terminal-success {
    color: #4ade80;

    padding-left: 20px;
}

.terminal-cursor {

    color: white;

    animation: blink 1s infinite;
}


/* Scroll */

.scroll-down {

    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    color: var(--text-secondary);

    font-size: 11px;

    letter-spacing: 1px;
}

.scroll-down i {

    animation: bounce 1.5s infinite;
}


@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


/* ================= GENERAL SECTION ================= */

.section {

    padding: 120px 20px;

    position: relative;
}

.section-container {

    width: min(100%, var(--container));

    margin: auto;
}

.section-heading {

    max-width: 750px;

    margin-bottom: 65px;
}

.section-label {

    font-family: "JetBrains Mono", monospace;

    font-size: 12px;

    color: var(--primary-light);

    letter-spacing: 2px;

    margin-bottom: 15px;

    font-weight: 600;
}

.section-heading h2 {

    font-size: clamp(35px, 5vw, 55px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 18px;
}

.section-heading h2 span {

    background:
        linear-gradient(
            90deg,
            var(--primary-light),
            var(--cyan)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}

.section-heading > p:last-child {

    color: var(--text-secondary);

    font-size: 16px;
}


/* ================= ABOUT ================= */

.about-section {

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(124, 58, 237, 0.04)
        );
}

.about-grid {

    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr;

    gap: 20px;
}

.about-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 30px;

    backdrop-filter: blur(20px);

    transition: var(--transition);
}

.about-card:hover {

    transform: translateY(-6px);

    border-color:
        rgba(168, 85, 247, 0.35);

    box-shadow: var(--shadow);
}

.about-main-card {

    grid-row: span 2;
}

.about-icon {

    width: 55px;
    height: 55px;

    border-radius: 15px;

    display: grid;

    place-items: center;

    color: white;

    font-size: 21px;

    margin-bottom: 22px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--pink)
        );
}

.about-icon.purple {
    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #a855f7
        );
}

.about-icon.blue {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #06b6d4
        );
}

.about-card h3 {

    font-size: 22px;

    margin-bottom: 15px;
}

.about-card p {

    color: var(--text-secondary);

    margin-bottom: 15px;
}

.about-card strong {
    color: var(--text);
}


.timeline-item {

    display: flex;

    gap: 15px;

    margin-top: 20px;
}

.timeline-dot {

    width: 10px;
    height: 10px;

    margin-top: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--primary-light);

    box-shadow:
        0 0 15px var(--primary);
}

.timeline-item h4 {

    font-size: 15px;

    margin-bottom: 5px;
}

.timeline-item p {

    font-size: 13px;

    margin-bottom: 4px;
}

.timeline-item span {

    font-size: 12px;

    color: var(--cyan);
}


.approach-flow {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 25px;
}

.approach-flow span {

    padding: 7px 12px;

    border-radius: 8px;

    background:
        rgba(124, 58, 237, 0.12);

    color: var(--primary-light);

    font-size: 12px;

    font-weight: 600;
}

.approach-flow i {

    color: var(--text-secondary);

    font-size: 11px;
}


/* ================= SKILLS ================= */

.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.skill-card {

    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    transition: var(--transition);
}

.skill-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(6, 182, 212, 0.4);

    box-shadow: var(--shadow);
}

.skill-icon {

    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    border-radius: 15px;

    font-size: 25px;

    margin-bottom: 22px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #ff9900,
            #ffb84d
        );
}

.skill-icon.docker {
    background:
        linear-gradient(
            135deg,
            #0ea5e9,
            #2563eb
        );
}

.skill-icon.kubernetes {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #38bdf8
        );
}

.skill-icon.jenkins {
    background:
        linear-gradient(
            135deg,
            #ef4444,
            #f97316
        );
}

.skill-icon.linux {
    background:
        linear-gradient(
            135deg,
            #111827,
            #374151
        );
}

.skill-icon.server {
    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #ec4899
        );
}

.skill-card h3 {

    font-size: 20px;

    margin-bottom: 10px;
}

.skill-card p {

    color: var(--text-secondary);

    font-size: 14px;

    margin-bottom: 20px;
}

.skill-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.skill-tags span {

    padding: 5px 9px;

    border-radius: 6px;

    background:
        rgba(255, 255, 255, 0.05);

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 11px;
}


/* Technology Cloud */

.technology-cloud {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;

    margin-top: 50px;
}

.technology-cloud span {

    padding: 10px 16px;

    border-radius: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 13px;

    transition: var(--transition);
}

.technology-cloud span:hover {

    color: white;

    border-color: var(--primary-light);

    transform: translateY(-3px);
}

.technology-cloud i {
    margin-right: 6px;

    color: var(--primary-light);
}


/* ================= PROJECTS ================= */

.projects-section {

    background:
        linear-gradient(
            180deg,
            rgba(6, 182, 212, 0.03),
            transparent
        );
}

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.project-card {

    position: relative;

    padding: 35px;

    border-radius: 22px;

    background: var(--card);

    border: 1px solid var(--border);

    overflow: hidden;

    transition: var(--transition);
}

.project-card::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        var(--primary);

    filter: blur(80px);

    opacity: 0;

    top: -80px;
    right: -80px;

    transition: var(--transition);
}

.project-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(168, 85, 247, 0.4);

    box-shadow: var(--shadow);
}

.project-card:hover::before {
    opacity: 0.2;
}

.project-number {

    position: absolute;

    top: 25px;
    right: 25px;

    font-family:
        "JetBrains Mono",
        monospace;

    color:
        rgba(255, 255, 255, 0.12);

    font-size: 30px;

    font-weight: 700;
}

.project-icon {

    width: 58px;
    height: 58px;

    border-radius: 16px;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            135deg,
            #ff9900,
            #f97316
        );

    color: white;

    font-size: 27px;

    margin-bottom: 25px;
}

.docker-project {

    background:
        linear-gradient(
            135deg,
            #0284c7,
            #38bdf8
        );
}

.jenkins-project {

    background:
        linear-gradient(
            135deg,
            #dc2626,
            #fb923c
        );
}

.project-card h3 {

    font-size: 21px;

    margin-bottom: 13px;
}

.project-card p {

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 22px;
}

.project-tech {

    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin-bottom: 25px;
}

.project-tech span {

    font-size: 11px;

    padding: 5px 9px;

    border-radius: 6px;

    background:
        rgba(124, 58, 237, 0.1);

    color: var(--primary-light);
}

.project-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    color: var(--cyan);

    font-weight: 600;
}

.project-link i {

    transition: var(--transition);
}

.project-link:hover i {
    transform: translateX(5px);
}


/* ================= JOURNEY ================= */

.journey-section {

    padding: 120px 20px;

    background:
        rgba(124, 58, 237, 0.03);
}

.journey {

    position: relative;

    max-width: 850px;

    margin: auto;
}

.journey-line {

    position: absolute;

    left: 27px;

    top: 0;
    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            var(--primary),
            var(--cyan),
            transparent
        );
}

.journey-item {

    position: relative;

    display: flex;

    gap: 25px;

    margin-bottom: 55px;
}

.journey-icon {

    width: 55px;
    height: 55px;

    flex-shrink: 0;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: var(--bg-secondary);

    border:
        2px solid var(--primary);

    color: var(--primary-light);

    z-index: 2;

    box-shadow:
        0 0 25px rgba(124, 58, 237, 0.25);
}

.journey-content {

    padding: 5px 0;
}

.journey-content > span {

    color: var(--cyan);

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.journey-content h3 {

    font-size: 20px;

    margin: 5px 0 8px;
}

.journey-content p {

    color: var(--text-secondary);

    font-size: 14px;

    max-width: 650px;
}


/* ================= CONTACT ================= */

.contact-section {

    padding-bottom: 140px;
}

.contact-grid {

    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 60px;

    align-items: start;
}

.contact-info {

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact-card {

    display: flex;

    align-items: center;

    gap: 17px;

    padding: 20px;

    border-radius: 16px;

    background: var(--card);

    border: 1px solid var(--border);

    transition: var(--transition);
}

.contact-card:hover {

    transform: translateX(5px);

    border-color:
        rgba(6, 182, 212, 0.35);
}

.contact-icon {

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 12px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--cyan)
        );
}

.contact-card span {

    display: block;

    color: var(--text-secondary);

    font-size: 11px;

    margin-bottom: 2px;
}

.contact-card a,
.contact-card p {

    font-size: 14px;

    font-weight: 600;
}

.contact-card a:hover {
    color: var(--cyan);
}


.contact-socials {

    display: flex;

    gap: 10px;

    margin-top: 10px;
}

.contact-socials a {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background: var(--card);

    border: 1px solid var(--border);

    transition: var(--transition);
}

.contact-socials a:hover {

    color: white;

    background: var(--primary);

    transform: translateY(-3px);
}


/* Contact Form */

.contact-form {

    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 22px;

    backdrop-filter: blur(20px);
}

.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.form-group {

    margin-bottom: 20px;
}

.form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 12px;

    font-weight: 600;

    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {

    width: 100%;

    border: 1px solid var(--border);

    outline: none;

    border-radius: 10px;

    padding: 13px 14px;

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text);

    font-size: 13px;

    transition: var(--transition);
}

.form-group textarea {

    resize: vertical;

    min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {

    color:
        rgba(169, 179, 199, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {

    border-color: var(--primary-light);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.1);
}

.send-btn {
    width: 100%;
}

.form-message {

    text-align: center;

    margin-top: 15px;

    font-size: 13px;
}


/* ================= FOOTER ================= */

footer {

    border-top:
        1px solid var(--border);

    padding: 35px 20px;

    background:
        rgba(0, 0, 0, 0.15);
}

.footer-container {

    width: min(100%, var(--container));

    margin: auto;

    text-align: center;
}

.footer-logo {

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-container p {

    color: var(--text-secondary);

    font-size: 12px;
}

.copyright {

    margin-top: 6px;
}


/* ================= SCROLL TOP ================= */

.scroll-top {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border-radius: 12px;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--cyan)
        );

    color: white;

    z-index: 900;

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: var(--transition);
}

.scroll-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* ================= REVEAL ANIMATION ================= */

.reveal {

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {

    opacity: 1;

    transform: translateY(0);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .hero-container {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .social-links {

        justify-content: center;
    }

    .hero-terminal {

        max-width: 650px;

        width: 100%;

        margin: auto;
    }

    .terminal-window {
        transform: none;
    }

    .about-grid {

        grid-template-columns: 1fr;
    }

    .about-main-card {
        grid-row: auto;
    }

    .skills-grid,
    .projects-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-grid {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .nav-menu {

        position: fixed;

        top: 76px;
        left: 20px;
        right: 20px;

        display: flex;

        flex-direction: column;

        gap: 5px;

        padding: 15px;

        border-radius: 15px;

        background:
            rgba(10, 14, 28, 0.96);

        border: 1px solid var(--border);

        backdrop-filter: blur(20px);

        transform:
            translateY(-20px);

        opacity: 0;

        visibility: hidden;

        transition: var(--transition);
    }

    .nav-menu.open {

        transform: translateY(0);

        opacity: 1;

        visibility: visible;
    }

    .nav-link {

        padding: 12px 15px;

        border-radius: 8px;
    }

    .nav-link:hover {

        background:
            rgba(124, 58, 237, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .menu-btn {
        display: grid;
    }

    .hero {

        padding-top: 120px;

        padding-bottom: 90px;
    }

    .hero h1 {

        font-size: 65px;

        letter-spacing: -4px;
    }

    .typing-container {

        font-size: 17px;
    }

    .hero-description {

        font-size: 14px;
    }

    .skills-grid,
    .projects-grid {

        grid-template-columns: 1fr;
    }

    .form-row {

        grid-template-columns: 1fr;
    }

    .contact-form {

        padding: 25px;
    }

    .section {

        padding: 90px 20px;
    }

    .journey-section {

        padding: 90px 20px;
    }

    .scroll-down {
        display: none;
    }

}


@media (max-width: 450px) {

    .nav-container {

        width:
            calc(100% - 25px);
    }

    .hero h1 {

        font-size: 52px;
    }

    .hero-buttons {

        flex-direction: column;
    }

    .hero-buttons .btn {

        width: 100%;
    }

    .terminal-body {

        font-size: 10px;

        padding: 18px;
    }

    .journey-item {

        gap: 15px;
    }

    .journey-icon {

        width: 45px;
        height: 45px;
    }

}