/*-_-_-_- FONTS -_-_-_-*/

/* -------------------------------------------------
   BRICOLAGE GROTESQUE — VARIABLE FONT
--------------------------------------------------- */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf") format("truetype");
    font-weight: 100 900;  /* range supported */
    font-display: swap;
}

/* -------------------------------------------------
   VCR_OSD_MONO — accent font
--------------------------------------------------- */
@font-face {
    font-family: "VCR OSD Mono";
    src: url("../fonts/VCR_OSD_MONO.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



/*-_-_-_- GLOBAL COLORS -_-_-_-*/

:root {
    --hot-fuchsia: #ff2344;
    --gold: #FFD500;
    --carbon-black: #242424;
    --snow: #FDF7FA;
    --pearl-aqua: #A8DCD9;

    /* Optional semantic aliases */
    --accent-primary: var(--hot-fuchsia);
    --accent-secondary: var(--gold);

    --text-color: white;
    --background-dark: rgb(27, 27, 27);
}

:root {
    --type-realestate: rgba(217, 178, 255, 0.38);
    --type-corporate: rgba(176, 199, 216, 0.38);
    --type-landing: rgba(255, 110, 131, 0.38);
    --type-ecommerce: rgba(255, 210, 138, 0.38);
    --type-catalog: rgba(200, 231, 245, 0.38);
    --type-portfolio: rgba(168, 220, 217, 0.38);
    --type-blog: rgba(245, 208, 230, 0.38);
    --type-magazine: rgba(243, 176, 255, 0.38);
    --type-booking: rgba(192, 242, 176, 0.38);
    --type-subscription: rgba(255, 191, 105, 0.38);
    --type-community: rgba(191, 227, 192, 0.38);
    --type-elearning: rgba(180, 212, 255, 0.38);
    --type-webapp: rgba(0, 190, 239, 0.38);
    --type-dashboard: rgba(125, 167, 255, 0.38);
    --type-showcase: rgba(204, 191, 178, 0.38);
}

/*-_-_-_- BODY / HTML -_-_-_-*/

body {
  background-color: rgb(27, 27, 27);
  color: white;
}

/*-_-_-_- MAIN HEADER -_-_-_-*/

/*-_- DESKTOP -_-*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;

    /* LIQUID GLASS */
    background: rgba(25, 25, 28, 0.45);
    backdrop-filter: blur(12px) saturate(140%) brightness(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(140%) brightness(1.15);

    /* Subtle glass border */
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: transform 0.3s ease, background 0.3s ease;
}


header.header--hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

/*-_- BURGER MENU -_-*/

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--snow);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ICON ANIMATION */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Overlay (background dim) */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


/*-_- LOGO & NAVIGATION -_-*/

.site-logo {
  width: 150px;
  height: auto;
  margin: 20px;
  transition: scale ease 0.3s, rotate ease 0.3s;
}

.site-logo:hover {
  scale: 1.1;
  rotate: 2deg;
}

.main-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 30px;
}

.main-menu li a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: var(--snow);
  font-size: 1.2rem;
  font-family: "VCR OSD Mono", monospace;
  text-decoration: none;
  transition: color 0.3s ease, scale 0.3s ease-in-out, rotate 0.3s ease-in-out;
}

/* Neon underline */
.main-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transition: left 0.4s ease;
}

.main-menu li a:hover::after {
  left: 0;
}

/* Small cyberpunk shift */
.main-menu li a:hover {
  scale: 1.1;
  rotate: -3deg;
}


/*-_-_-_- FOOTER -_-_-_-*/


/*-_-_-_- BUTTONS -_-_-_-*/

.btn-primary {
  --btn-bg: var(--accent-primary);
  --btn-hover-bg: var(--gold);
  --btn-text: var(--snow);
  --btn-hover-text: var(--carbon-black);

  position: relative;
  display: inline-block;
  padding: 1rem 2rem;

  font-family: "VCR OSD Mono", monospace;
  font-size: 1.1rem;
  color: var(--btn-text);

  background: var(--btn-bg);
  border: none;
  cursor: pointer;
  text-decoration: none;

  /* ✔ FIXED — PERFECT 45° BEVELS */
clip-path: polygon(
    0 0,                            /* top-left (normal) */
    calc(100% - 20px) 0,            /* top edge before bevel */
    100% 20px,                      /* top-right bevel */
    100% 100%,                      /* bottom-right (normal) */
    20px 100%,                      /* bottom-left bevel */
    0 calc(100% - 20px)             /* bottom-left bevel */
);



  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  overflow: hidden;
  z-index: 1;
}

/* HOVER SWEEP */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;

  background: var(--btn-hover-bg);

  /* ✔ FIX: keep it fully hidden on idle */
  transform: translateX(-120%);
  transition: transform 0.4s ease;

  /* stay under text */
  z-index: 0;
}

/* hover sweep animation */
.btn-primary:hover::before {
  transform: translateX(0);
}

/* hover lift */
.btn-primary:hover {
  transform: translateY(-6px);
  color: var(--btn-hover-text);
  box-shadow: 0 8px 20px rgba(255, 55, 98, 0.4);
}

/* the “+” icon */
.btn-primary::after {
  content: "+";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.9rem;
  opacity: 1;
  z-index: 2;
}

/* label */
.btn-primary span {
  position: relative;
  z-index: 2;
}

/* ================================================================
   LANGUAGE SWITCHER — WIN95 / RETRO / CYBERPUNK BLEND
================================================================ */

.lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 20px;
}

.lang-switch button {
    font-family: "VCR OSD Mono", monospace;
    font-size: 18px;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    background: rgba(255,255,255,0.05);
    color: var(--snow);
    cursor: pointer;
    transition: 0.15s ease;
    position: relative;
}

.lang-switch button:hover {
    background: var(--hot-fuchsia);
    color: var(--snow);
    transform: translateY(-1px);
}

.lang-switch button.active-lang {
    background: var(--hot-fuchsia);
    color: var(--snow);
}

/* MOBILE: push to right side neatly */
@media (max-width: 768px) {
    .lang-switch {
        margin-left: auto;
        margin-right: 8px;
    }

    .lang-switch button {
        padding: 4px 6px;
        font-size: 11px;
    }
}


/*-_-_-_- HERO -_-_-_-*/

.hero {
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-image: url("../images/PNG/robot.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;

    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.65),
        rgba(47, 28, 4, 0.5),
        rgba(36, 7, 7, 0.75)
    );

    background-size: 250% 250%;  /* ⭐ Makes animation visible */

    animation: heroGlow 12s ease-in-out infinite alternate;

    pointer-events: none;
    z-index: 0;
}

@keyframes heroGlow {
    0% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 5% 5%;
    }
    100% {
        background-position: 55% 45%;
    }
}


/* ===============================
   HERO — WIN95 WINDOW STYLE
================================*/
.hero-window {
    width: 100%;
    max-width: 750px;
    background: #1a1a1a;
    border: 2px solid #000;
    box-shadow: 
        0 0 0 2px #555,
        0 10px 40px rgba(0,0,0,0.45);
    position: relative;
    z-index: 2;
    padding: 0;
}

/* Title bar */
.hero-titlebar {
    background: #202020;
    color: var(--snow);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    font-family: "VCR OSD Mono";
}

.hero-title-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-window-icon {
    width: 16px;
    height: 16px;
}

.hero-title-buttons {
    display: flex;
    gap: 4px;
}

/* Buttons */
.hero-title-buttons span {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #000;
    position: relative;
}

.hero-title-buttons span::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    image-rendering: pixelated;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Minimize bottom-right */
.hero-min::before {
    background-image: url("../../assets/icons/pixel-min.svg");
    bottom: 2px;
    right: 2px;
}

/* Maximize centered */
.hero-max::before {
    background-image: url("../../assets/icons/pixel-max.svg");
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Close centered + red background */
.hero-close {
    background: var(--hot-fuchsia) !important;
}
.hero-close::before {
    background-image: url("../../assets/icons/pixel-close.svg");
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    padding: 40px 50px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-family: "VCR OSD Mono", monospace;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-family: "Bricolage Grotesque";
    font-weight: 700;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-content .description {
    font-family: "Bricolage Grotesque";
    text-align: center;
    margin-bottom: 35px;
}

/* HERO STATUS BAR */
.hero-statusbar {
    background: #202020;
    border-top: 2px solid #000;
    padding: 4px 10px;

    font-family: "VCR OSD Mono", monospace;
    font-size: 0.85rem;
    color: var(--snow);

    display: flex;
    justify-content: flex-start;
}

.hero-close:hover {
    background: #99051b !important;
}

.hero-title-buttons span:hover {
    cursor: default;
    background: #828282;
}

/* HERO WINDOW TYPOGRAPHY FIXES */

.hero-content h1 {
    font-family: "VCR OSD Mono", monospace !important;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.hero-content .subtitle {
    font-family: "Bricolage Grotesque", sans-serif !important;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.hero-content .description {
    font-family: "Bricolage Grotesque", sans-serif !important;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 35px;
    text-align: center;
}


/* CYBERPUNK SCROLL HINT */

.scroll-hint-desktop {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    display: none; 
    flex-direction: column;
    gap: 16px;
    opacity: 0.8;
    animation: hintFloat 4s ease-in-out infinite;
}

.scroll-hint,
.scroll-hint-desktop {
    z-index: 3;
    cursor: pointer;
}

/* Arrows look like the cyber version */

.scroll-hint-desktop .arrow {
    width: 26px;
    height: 26px;
    border-left: 2px solid var(--accent-secondary);
    border-bottom: 2px solid var(--accent-secondary);
    transform: rotate(-45deg);
    opacity: 0;
    filter: drop-shadow(0 0 8px var(--accent-secondary));
    animation: arrowCyber 2s infinite ease-out;
}

.scroll-hint-desktop.left {
    left: 10%;
}

.scroll-hint-desktop.right {
    right: 10%;
}

/* Staggered delays */
.scroll-hint-desktop .arrow:nth-child(2) { animation-delay: 0.2s; }
.scroll-hint-desktop .arrow:nth-child(3) { animation-delay: 0.4s; }

.scroll-hint.cyber {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) scale(clamp(0.7, 1vw, 1));
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0.9;
    pointer-events: none;
    animation: hintFloat 4s ease-in-out infinite;
}

/* Arrow shape */
.scroll-hint.cyber .arrow {
    width: 26px;
    height: 26px;
    border-left: 2px solid var(--accent-secondary);
    border-bottom: 2px solid var(--accent-secondary);
    transform: rotate(-45deg);
    opacity: 0;
    filter: drop-shadow(0 0 8px var(--accent-secondary));
    animation: arrowCyber 2s infinite ease-out;
}

/* Staggered delay */
.scroll-hint.cyber .arrow:nth-child(1) { animation-delay: 0s; }
.scroll-hint.cyber .arrow:nth-child(2) { animation-delay: 0.25s; }
.scroll-hint.cyber .arrow:nth-child(3) { animation-delay: 0.5s; }

/* Base fade + slide */
@keyframes arrowCyber {
    0% {
        opacity: 0;
        transform: translateY(-6px) rotate(-45deg);
        filter: drop-shadow(0 0 3px var(--accent-secondary));
    }
    30% {
        opacity: 1;
        transform: translateY(0) rotate(-45deg);
        filter: drop-shadow(0 0 10px var(--accent-secondary));
    }
    60% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: translateY(8px) rotate(-45deg);
        filter: drop-shadow(0 0 3px var(--accent-secondary));
    }
}

/* Whole group holographic oscillation */
@keyframes hintFloat {
    0% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 3px); }
    100% { transform: translate(-50%, 0); }
}

/* RARE GLITCHES — subtle but stylish */
.scroll-hint.cyber::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 213, 0, 0.4),
        transparent
    );
    mix-blend-mode: screen;
}

/* ===============================
   ABOUT WINDOW — FULL WIN95 STYLE
================================*/

.about-section {
    padding: 200px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../../assets/images/PNG/winXP-bg-pixelated.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    position: relative;

}

.about-window {
    width: 100%;
    max-width: 720px;
    background: #1a1a1a;
    border: 2px solid #000;
    position: relative;
    box-shadow:
        0 0 0 2px #555,
        0 10px 30px rgba(0,0,0,0.4);
}

.window-titlebar {
    background: #202020; /* solid, no gradient */
    color: var(--snow);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    font-family: "VCR OSD Mono", monospace;
}

.window-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-buttons {
    display: flex;
    gap: 4px;
}

.title-buttons span {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #000;
    position: relative;
}

.title-buttons span:hover {
    background: #828282;
}

/* BASE for all icons */
.title-buttons span::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    image-rendering: pixelated;
    background-repeat: no-repeat;
    background-size: contain;
}

/* MINIMIZE — bottom-right */
.btn-min::before {
    background-image: url("../../assets/icons/pixel-min.svg");
    bottom: 2px;
    right: 2px;
}

/* MAXIMIZE — perfect center */
.btn-max::before {
    background-image: url("../../assets/icons/pixel-max.svg");
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* CLOSE — perfect center */
.btn-close {
    background: var(--hot-fuchsia) !important;
}
.btn-close:hover {
    background: #99051b !important;
}
.btn-close::before {
    background-image: url("../../assets/icons/pixel-close.svg");
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.menu-bar {
    display: flex;
    gap: 25px;
    padding: 4px 10px;
    background: #2c2c2c;
    border-bottom: 2px solid #000;
    font-family: "VCR OSD Mono";
    color: var(--snow);
    font-size: 0.9rem;
}

.menu-bar span:hover {
    background: #333;
    cursor: default;
}

.window-body {
    padding: 20px 20px 40px 20px;
    font-family: "Bricolage Grotesque";
    font-size: 1.05rem;
    color: var(--snow);
    line-height: 1.6;
}

.window-body p {
    font-family: "Bricolage Grotesque", sans-serif !important;
    font-size: 1.05rem;
    line-height: 1.65;
}

.caret {
    display: inline-block;
    width: 6px;
    height: 1.2em;
    color: var(--snow);
    animation: blink 1s step-start infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.window-body .btn-secondary {
    font-family: "VCR OSD Mono", monospace;
    font-size: 1rem;
    color: var(--hot-fuchsia);
    text-decoration: underline;
    text-underline-offset: 3px;

    background: transparent;
    padding: 0;
    border: none;

    transition: color 0.25s ease, transform 0.2s ease;
}

.window-body .btn-secondary:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.scrollbar {
    position: absolute;
    top: 50px;
    right: 0;
    width: 22px;
    bottom: 22px;
    background: #2c2c2c;
    border-left: 2px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scroll-track {
    flex: 1;
    background: #1b1b1b;
    margin: 2px;
    border: 2px solid #000;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #000;
    display: flex;
    justify-content: center;
}

.scroll-thumb {
    width: 14px;
    height: 50px;
    background: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #000;
    margin-top: 20px;
}

.scroll-down {
    height: 22px;
    background: #c0c0c0;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #000;
}

.status-bar {
    background: #202020;
    border-top: 2px solid #000;
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    font-family: "VCR OSD Mono";
    font-size: 0.8rem;
    color: var(--snow);
}

/* Fake Activate Windows watermark */
.about-section .win-activate-watermark {
    position: absolute;
    bottom: 20px;
    right: 40px;

    text-align: left;
    opacity: 0.35;
    pointer-events: none;
    user-select: none;

    font-family: "Bricolage Grotesque", sans-serif;
    color: #ffffff; /* light like Windows watermark */

    z-index: 5; /* above background but below the window shadow */
}

.about-section .win-activate-watermark .line1 {
    font-size: 1.1rem;
}

.about-section .win-activate-watermark .line2 {
    font-size: 0.9rem;
    margin-top: 2px;
}



/*_-_-_-_- PROJECTS SECTION ON HOMEPAGE -_-_-_-*/


.projects-section {
    background: rgb(28, 28, 28);
    padding-bottom: 80px;
    overflow: hidden;
}

/* Marquee title */
.marquee-title {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    padding-top: 3rem;
    margin-bottom: 40px;
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 18s linear infinite;
}

.marquee-inner span {
    font-family: "VCR OSD Mono", monospace;
    font-size: 5rem !important;
    color: var(--snow);
    padding-right: 40px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.project-filters button {
    font-family: "VCR OSD Mono", monospace;
    font-size: 1.2rem;
    padding: 12px 32px;
    cursor: pointer;
    background: #bfbfbf;
    color: #111;
    border: 2px solid #ffffff;
    border-right-color: #5a5a5a;
    border-bottom-color: #5a5a5a;
    box-shadow: inset -2px -2px 0px 0px #ffffff,
                inset 2px 2px 0px 0px #5a5a5a;
    transition: 
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
    text-shadow: none;
}

.project-filters button:hover {
    background: #d6d6d6;
    border-color: #ffffff;
    border-right-color: #7a7a7a;
    border-bottom-color: #7a7a7a;
    box-shadow: inset -2px -2px 0px 0px #ffffff,
                inset 2px 2px 0px 0px #7a7a7a;
}

.project-filters button:active {
    background: #c2c2c2;
    border-color: #5a5a5a;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    box-shadow: inset -2px -2px 0px 0px #5a5a5a,
                inset 2px 2px 0px 0px #ffffff;
    transform: translateY(1px);
}

.project-filters button.active {
    background: var(--accent-primary);
    color: var(--snow);
    border-color: #5a5a5a;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    box-shadow: inset -2px -2px 0px 0px #5a5a5a,
                inset 2px 2px 0px 0px #ffffff;
}

/* Project grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0px 5rem 100px 5rem;
}

/* Project card basic structure */
/* OUTER FRAME */
/* ======================================================
   PROJECT CARD — ULTRA STABLE WIN95 LAYOUT
====================================================== */

.project-card {
    display: flex;
    flex-direction: column;
    background: #6b6b6b; /* medium-dark base */
    height: 100%;
    min-width: 420px;

    border: 1px solid #000;
    box-shadow:
        0 0 0 1px #3a3a3a,   /* deeper */
        0 0 0 4px #6b6b6b,   /* mid-dark outer ring */
        0 0 0 6px #505050,   /* dark */
        0 0 0 7px #202020,   /* deepest border */
        0 0 0 8px #000;
}

/* Top vent bar wrapper */
.win95-topbar {
    background: #6b6b6b;
    border-bottom: 2px solid #505050;
    padding: 6px 8px 4px 8px;
}

/* Vents */
.win95-vents {
    height: 22px;
    background:
        repeating-linear-gradient(
            to bottom,
            #898989 0px,     /* lighter dark */
            #898989 1px,
            #9b9b9b 1px,     /* highlight */
            #9b9b9b 2px,
            #747474 2px,     /* mid */
            #747474 3px,
            #505050 3px,     /* dark */
            #505050 4px
        );
    border: 1px solid #505050;
    border-top-color: #9b9b9b;
    border-left-color: #9b9b9b;
    box-shadow:
        inset 1px 1px 0 #9b9b9b,
        inset -1px -1px 0 #505050;
}

/* Thumbnail area */
.project-thumb-area {
    width: 100%;
    overflow: hidden;
}

/* Inner-frame */
.inner-frame {
    border: 2px solid #000;
    box-shadow:
        inset 1px 1px 0 #9b9b9b,
        inset -1px -1px 0 #3a3a3a;
}

/* Thumbnail */
.project-thumb {
    width: 100%;
    aspect-ratio: 16 / 12;
    background-size: cover !important;
    background-position: center !important;
}

/* Info box */
.project-info {
    background: #6b6b6b;
    padding: 16px 18px;

    border-top: 2px solid #505050;
    border-bottom: 2px solid #3a3a3a;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Title + button */
.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.info-header h3 {
    font-family: "VCR OSD Mono", monospace;
    font-size: 1.5rem;
    font-weight: 400;
    color: #f0f0f0;
    margin: 0;
}

/* Description */
.project-card .description {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 0.95rem;
    color: #e5e5e5;
    line-height: 1.4;
}

/* Status bar */
.project-status {
    padding: 10px 0;
    background: #6b6b6b;
    border-top: 2px solid #3a3a3a;

    text-align: center;
    font-family: "VCR OSD Mono", monospace;
    font-size: 1.1rem;
    color: #f2f2f2;
    text-transform: uppercase;
}

/* Win95 button */
.btn-win95 {
    font-family: "VCR OSD Mono", monospace;
    font-size: 0.95rem;
    padding: 6px 18px;
    color: #fff;

    background: #747474;
    border: 2px solid #000;
    box-shadow:
        inset 1px 1px 0 #9b9b9b,
        inset -1px -1px 0 #505050;

    cursor: pointer;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}

/* Hover */
.btn-win95:hover {
    background: #6a6a6a;
    box-shadow:
        inset 1px 1px 0 #505050,
        inset -1px -1px 0 #9b9b9b;
}

/* Active */
.btn-win95:active {
    background: #5d5d5d;
    box-shadow:
        inset 2px 2px 0 #505050,
        inset -2px -2px 0 #9b9b9b;
    transform: translate(1px, 1px);
}


.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px; /* prevents overlap on small screens */
}

.info-header h3 {
    margin: 0; /* remove extra spacing */
}


/* ---------------------------------------
   CARD APPEAR ANIMATION (CYBER STYLE)
---------------------------------------- */

.card-animate {
    opacity: 0;
    transform: translateY(20px);
    filter: none;
    animation: cardFadeIn 0.6s ease-out forwards,
               cardChromatic 0.25s steps(2) forwards;
}

/* Fade + lift */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Micro chromatic glitch (VERY small) */
@keyframes cardChromatic {
    0% {
        filter: drop-shadow(0 0 0px var(--hot-fuchsia));
    }
    20% {
        filter: drop-shadow(1px 0 0 var(--hot-fuchsia))
                drop-shadow(-1px 0 0 var(--pearl-aqua));
    }
    40% {
        filter: drop-shadow(-1px 0 0 var(--hot-fuchsia))
                drop-shadow(1px 0 0 var(--pearl-aqua));
    }
    60% {
        filter: drop-shadow(0 0 0 var(--hot-fuchsia));
    }
    100% {
        filter: none;
    }
}

/* -------------------------------
   SKILLS — VERTICAL TIMELINE
-------------------------------- */

.skills-section {
    padding: 80px 0;
    background: rgb(15, 15, 15);
    position: relative;
    overflow: hidden;
}

.skills-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #111;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: background 0.5s ease;
}

/* Dark overlay on top */
.skills-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
}

/* Push all content ABOVE the overlay */
.skills-section > *:not(.skills-bg) {
    position: relative;
    z-index: 2;
}

.skills-title {
    text-align: center;
    font-family: "VCR OSD Mono", monospace;
    font-size: 2.2rem;
    margin-bottom: 60px;
}

#skillsTree {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line */
#skillsTree::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: var(--snow);
    transform: translateX(-50%);
}

/* A skill item */
.skill-item {
    position: relative;
    width: fit-content;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-left: 50%;             
    transform: translateX(-50%);
}

/* Connector line above each node */
.connector {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    transform: translateX(-50%);
}

.skill-item:first-child .connector {
    display: none;
}

/* Node circle */
.node-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--snow);
    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow:
        0 0 4px rgba(255,255,255,0.4),
        0 0 12px rgba(255,55,98,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.node-circle img {
    width: 35px;
    opacity: 1;
    pointer-events: none;
}

/* Hover effect */
.skill-item:hover .node-circle {
    transform: scale(1.15);
    box-shadow:
        0 0 10px rgba(255,255,255,0.8),
        0 0 20px var(--hot-fuchsia);
}

/* Skill modal */

.skill-modal {
    position: absolute;
    width: 300px;
    z-index: 100;
    padding: 22px 26px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);

    font-family: "Bricolage Grotesque", sans-serif;
    color: var(--snow);

    z-index: 999;
    pointer-events: none;
    opacity: 0;

    transform: scale(0.95) translateY(8px);
    transition:
        opacity 0.22s ease-out,
        transform 0.22s ease-out,
        filter 0.15s ease-out;
}

.skill-modal.hidden {
    opacity: 0;
    transform: translateX(-12px);
}

/* When visible */
.skill-modal.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.modal-title {
    font-family: "VCR OSD Mono", monospace;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Micro glitch effect */
@keyframes modalGlitch {
    0% {
        filter:
            drop-shadow(1px 0 0 var(--hot-fuchsia))
            drop-shadow(-1px 0 0 var(--pearl-aqua));
    }
    20% {
        filter:
            drop-shadow(-1px 0 0 var(--hot-fuchsia))
            drop-shadow(1px 0 0 var(--pearl-aqua));
    }
    40% {
        filter:
            drop-shadow(0 0 0 var(--hot-fuchsia));
    }
    100% {
        filter: none;
    }
}

.skill-modal.glitch {
    animation: modalGlitch 0.20s steps(2);
}

/*_-_-_-_- Contacts Section -_-_-_-*/

/* CONTACT SECTION LAYOUT */
.contact-section {
    display: flex;
    justify-content: center;
    padding: 180px 0;
    background-image: url(../images/PNG/robot2.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    image-rendering: pixelated;
    background-attachment: fixed;
    position: relative;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.8;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.69),
        rgba(47, 4, 4, 0.245),
        rgba(98, 6, 6, 0.201)
    );

    background-size: 250% 250%;  /* ⭐ Makes animation visible */

    animation: heroGlow 12s ease-in-out infinite alternate;    z-index: 0;
}

/* reuse existing window system */
.contact-window {
    width: 85%;
    max-width: 900px;
}

/* Contact text */
.contact-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.contact-title {
    font-family: "VCR OSD Mono", monospace;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.contact-subtitle {
    font-family: "VCR OSD Mono", monospace;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Inputs */
.contact-fields {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.win95-btn {
    font-family: "VCR OSD Mono", monospace;
    font-size: 1rem;
    padding: 8px 14px;
    line-height: 1;

    background: #dcdcdc;
    border: 2px solid #000;

    box-shadow:
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #808080,
        2px 2px 0 #000;

    cursor: pointer;
    user-select: none;

    display: inline-block;     /* auto-size to text */
    white-space: nowrap;       /* prevent ugly wrapping */
    text-align: center;
    color: #000;
    text-decoration: none;     /* remove link underline */
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Hover */
.win95-btn:hover {
    background: #c8c8c8;
    box-shadow:
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #ffffff,
        2px 2px 0 #000;
}

/* Active press */
.win95-btn:active {
    background: #c0c0c0;
    box-shadow:
        inset 2px 2px 0 #808080,
        inset -2px -2px 0 #ffffff,
        2px 2px 0 #000;
    transform: translate(1px, 1px);
}

/*_-_- Footer -_-_-*/

/* =============================
      SYSTEM FOOTER
============================= */

.system-footer {
  padding-top: 40px;
  padding-bottom: 40px;
  background: #0b0b0b;
  position: relative;
  color: var(--snow);
  font-family: "VCR OSD Mono", monospace;
}

/* Subtle background texture */
.system-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("assets/images/JPG/noise.jpg"),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.system-footer > * {
  position: relative;
  z-index: 5;
}

/* STATUS BAR */
.footer-status-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  opacity: 0.75;
}

/* MAIN BLOCK */
.footer-core {
  max-width: 1100px;
  margin: 60px auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 0 30px;
}

/* LEFT — IDENTITY PANEL */
.identity-block {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 26px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
}

.identity-name {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
}

.identity-role {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 18px;
  font-family: "Bricolage Grotesque", sans-serif;
}

.identity-info p {
  margin: 5px 0;
  font-size: 13px;
  opacity: 0.9;
}

/* NAVIGATION */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0.5;
  margin-top: 10px;
}

.footer-nav a {
  color: var(--snow);
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: 0.15s ease;
}

.footer-nav a:hover {
  text-shadow: 0 0 4px var(--hot-fuchsia);
}

/* RIGHT — LOG */
.footer-log {
  flex: 1;
  max-width: 270px;
}

.log-title {
  opacity: 0.75;
  margin-bottom: 10px;
}

.log-line {
  font-size: 12px;
  opacity: 0.55;
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  opacity: 0.55;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-core {
    flex-direction: column;
    gap: 40px;
  }

  .footer-status-bar {
    flex-wrap: wrap;
    gap: 20px;
  }
}



/*-_-_-_- FORMS -_-_-_-*/




/* ============================================================
   RESPONSIVE — CLEAN VERSION
   Breakpoints:
   - Mobile:        ≤768px
   - Tablet:        769–1024px
   - Small Desktop: 1025–1399px
   - Large Desktop: ≥1400px
   - Ultra-Wide:    ≥1800px
============================================================ */


/* ---------------------------------------------
   SMALL HEIGHT FIXES
--------------------------------------------- */
@media (max-height: 850px) {
    .scroll-hint.cyber {
        bottom: 10px;
        transform: translateX(-50%) scale(0.75);
    }
}


/* ---------------------------------------------
   MOBILE — ≤768px
--------------------------------------------- */
@media (max-width: 768px) {

    header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        transform: none !important; /* ensures hide-on-scroll doesn't apply */
        justify-content: space-between;
    }

    .hero {
        padding: 20px;
        justify-content: center;
    }

    .scroll-hint.cyber {
        bottom: 50px;
        gap: 5px;
    }

    /* BURGER MENU */
    .burger {
        display: flex;
        margin-left: auto;
        margin-right: 10px;
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: -70%;
        width: 70%;
        height: 100vh;

        padding: 80px 30px;
        background: rgba(15, 15, 15, 0.92);
        border-left: 2px solid rgba(255,255,255,0.12);

        display: flex;
        flex-direction: column;
        gap: 25px;

        background-image: linear-gradient(
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        );
        background-size: 100% 3px;

        transition: right 0.4s ease;
        z-index: 998;
    }

    .main-menu.active {
        right: 0;
        box-shadow: -4px 0 20px rgba(255,55,98,0.25);
    }

    .main-menu li a {
        font-size: 1.6rem;
        color: var(--snow);
    }


    /* PROJECT CARDS */
    .info-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .info-header .btn-win95 {
        width: 100%;
        padding: 10px 0;
    }

    .projects-section {
        padding: 50px 0;
    }

    .marquee-inner span {
        font-size: 1.3rem;
        padding-right: 25px;
    }

    .project-filters {
        flex-wrap: wrap;
        gap: 12px;
        padding: 0 20px;
        margin-bottom: 35px;
    }

    .project-filters button {
        width: calc(50% - 10px);
        padding: 10px 0;
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
        gap: 24px;
        padding-bottom: 100px;
    }


    .project-thumb {
        height: 200px;
    }
    /* FIX: prevent cards from forcing horizontal overflow on small screens */
    .project-card {
        min-width: 0; /* allow grid/flex children to shrink */
        width: 100%;  /* take full available column width */
    }

    /* Allow Win95 buttons to wrap on narrow viewports so they don't force overflow */
    .btn-win95 {
        white-space: normal;
    }
}

/* ---------------------------------------------
   TABLET — 769px to 1024px
--------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {

    .projects-section {
        padding: 60px 0;
    }

    .marquee-inner span {
        font-size: 1.6rem;
        padding-right: 30px;
    }

    .project-filters {
        gap: 18px;
        padding: 0 30px;
    }

    .project-filters button {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 3rem;
        gap: 30px;
        padding-bottom: 120px;
    }

    .project-thumb {
        height: 220px;
    }
}



/* ---------------------------------------------
   SMALL DESKTOP — 1025px to 1399px
--------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1399px) {

    .scroll-hint.cyber {
        display: none;
    }
    .scroll-hint-desktop {
        display: flex;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 cards, same row */
        
        max-width: 1200px;   /* fits 3 nicely */
        padding: 0 2rem;     /* less padding = more usable space */
        gap: 24px;           /* tighter gap */
        margin: 0 auto;
    }

    /* Make each card narrower */
    .project-card {
        min-width: 300px;    /* was 420 — ~30% smaller */
        transform: scale(0.92);
        transform-origin: top center;
    }

    /* Slightly reduce the thumbnail height */
    .project-thumb {
        aspect-ratio: 16 / 13;
    }

    /* Lightly shrink text so it doesn't look oversized */
    .project-card h3 {
        font-size: 1.25rem;
    }
    .project-card .description {
        font-size: 0.9rem;
    }
    .project-card .btn-win95 {
        font-size: 0.85rem;
        padding: 5px 12px;
    }
}




/* ---------------------------------------------
   LARGE DESKTOP — ≥1400px
--------------------------------------------- */
@media (min-width: 1400px) {

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 4rem;
        gap: 40px;
        padding-bottom: 120px;
    }

    .marquee-inner span {
        font-size: 2.2rem;
        padding-right: 50px;
    }

    .scroll-hint.cyber {
        display: none;
    }
    .scroll-hint-desktop {
        display: flex;
    }
}



/* ---------------------------------------------
   ULTRA-WIDE — ≥1800px
--------------------------------------------- */
@media (min-width: 1800px) {

    .scroll-hint.cyber {
        display: none;
    }
    .scroll-hint-desktop {
        display: flex;
    }

    .projects-grid {
        max-width: 1600px;
        padding: 0 6rem;
        gap: 50px;
    }

    .project-thumb {
        height: 340px;
    }

    .marquee-inner span {
        font-size: 2.4rem;
        padding-right: 60px;
    }
}
