@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  /* Matrix Edition Palette */
  --bg-base: #0a0a0a;
  --bg-surface: #121212;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #00ff41; /* Matrix Green */
  --accent-secondary: #06b6d4; /* Cyberpunk Cyan */

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --glass-highlight: rgba(0, 255, 65, 0.1); /* Subtle matrix glow */

  /* Typography */
  --font-display: "Space Grotesk", sans-serif;
  --font-ui: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

section h1:hover,
section h2:hover,
section h3:hover,
section h4:hover,
section h5:hover,
section h6:hover {
  text-shadow: 0 0 15px var(--accent-primary);
  color: #fff;
}

/* MAIN */

#intro {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main {
  width: 92%;
  max-width: 1200px;
}

.card {
  background: var(--glass-bg);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* TOP TAGS */
.top-tags {
  display: flex;
  gap: 14px;
  margin-bottom: 34px;
}

.top-tags span {
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: var(--glass-border);
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.dot {
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--glass-highlight);
}

/* CONTENT */
.content {
  display: flex;
  gap: 60px;
}

/* LEFT */
.left h1 {
  font-size: 50px;
  font-weight: 600;
  line-height: 1.15;
  color: #f3f3f3;
}

.desc {
  margin: 18px 0 28px;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 460px;
}

.live-line {
  margin-bottom: 22px;
}

.live-line span {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent-primary);
}

/* BUTTONS */
.buttons {
  display: flex;
  gap: 14px;
}

.btn {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: var(--glass-border);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.3s;
  color: var(--text-primary);
}

.btn i {
  color: var(--accent-secondary);
}

.btn:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

/* SITE LINK (LEFT) */
.site-link {
  margin-top: 22px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--accent-secondary);
}

/* RIGHT CARD */
.right {
  flex: 1;
  background: var(--bg-surface);
  border-radius: 22px;
  padding: 28px;
  border: var(--glass-border);
  position: relative;
}

/* RIGHT HEADER */
.right-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 2px;
  color: #bdbdbd;
  margin-bottom: 20px;
}

.online {
  color: #7cffb2;
}

/* ORBIT */
.orbit-box {
  width: 240px;
  height: 240px;
  margin: auto;
  position: relative;
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 65, 0.35);
  animation: spin 16s linear infinite;
}

.orbit i {
  position: absolute;
  background: var(--bg-surface);
  color: var(--accent-primary);
  padding: 7px;
  border-radius: 50%;
  box-shadow: 0 0 14px var(--glass-highlight);
  font-size: 13px;
}

.i1 {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}
.i2 {
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
}
.i3 {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}
.i4 {
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
}

/* CENTER */
.core {
  position: absolute;
  inset: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), var(--bg-base));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.core span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent-secondary);
}

/* STATS */
.stats {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}

.stats div {
  flex: 1;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  text-align: left;
}

.stats h4 {
  font-size: 22px;
  font-weight: 500;
  color: #f2f2f2;
}

.stats p {
  font-size: 12px;
  color: #bdbdbd;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.smooth-out {
  animation: smoothOut 1.2s ease forwards;
}

@keyframes smoothOut {
  from {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(25px);
  }
}

/* ===== ANIMATION TYPES ===== */

/* من فوق */
.from-top {
  opacity: 0;
  transform: translateY(-40px);
  animation: fromTop 0.8s ease forwards;
}
@keyframes fromTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* من اليسار */
.from-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fromLeft 0.8s ease forwards;
}
@keyframes fromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* من اليمين */
.from-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fromRight 0.8s ease forwards;
}
@keyframes fromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* من تحت */
.from-bottom {
  opacity: 0;
  transform: translateY(40px);
  animation: fromBottom 0.8s ease forwards;
}
@keyframes fromBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* زووم */
.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.8s ease forwards;
}
@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== TYPEWRITER ===== */
.typewriter {
  border-right: 2px solid #ff4d6d;
  white-space: nowrap;
  overflow: hidden;
}
.from-top {
  opacity: 0;
  transform: translateY(-40px);
  animation: fromTop 0.8s ease forwards;
}
.from-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fromLeft 0.8s ease forwards;
}
.from-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fromRight 0.8s ease forwards;
}
.from-bottom {
  opacity: 0;
  transform: translateY(40px);
  animation: fromBottom 0.8s ease forwards;
}
.zoom-in {
  opacity: 0;
  transform: scale(0.85);
  animation: zoomIn 0.8s ease forwards;
}

@keyframes fromTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fromBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== END TYPEWRITER ===== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Container */
.header-list {
  margin: 15px 20px;
}

/* Menu Box */
.div-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

/* UL */
.ul-list {
  list-style: none;
  display: flex;
  gap: 3rem;
  padding: 12px 28px;
  border-radius: 30px;

  /* GLASSMORPHISM */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* LI */
.ul-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 25px;
  padding: 8px 14px;
  transition: 0.3s ease;
  cursor: pointer;
}

/* LINKS */
.ul-list li a {
  font-family: var(--font-ui);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: 0.3s;
}

/* ICONS */
.ul-list li i {
  color: var(--accent-secondary);
}

/* HOVER */
.ul-list li:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.ul-list li:hover a {
  color: var(--text-primary);
}

/* ACTIVE */
.ul-list li.active {
  background: var(--glass-bg);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 15px var(--glass-highlight);
}

.ul-list li.active a,
.ul-list li.active i {
  color: var(--accent-primary);
}

.home {
  margin: 160px 200px;
  color: #f2f2f2;
}

.home-container {
  display: flex;
  gap: 6rem;
}

/* Status Badge */
.home-p {
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--text-secondary);
  display: inline-block;
  border-radius: 25px;
  padding: 6px 14px;
  margin-bottom: 30px;
  font-size: 14px;
}

.home-s {
  font-weight: bold;
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--glass-highlight);
}

/* TITLES */
.info-home h1 {
  font-size: 70px;
  margin-bottom: 20px;
}

.info-home h3 {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--accent-secondary);
  font-weight: normal;
}

/* TEXT */
.info-p {
  color: var(--text-secondary);
  padding-bottom: 20px;
}

.info-p p {
  padding-bottom: 5px;
}

.info-p2 {
  display: flex;
  gap: 1rem;
  color: var(--text-primary);
  font-size: 14px;
  padding-bottom: 20px;
}

/* BUTTONS */
.btnn {
  display: flex;
  gap: 1rem;
  padding-bottom: 30px;
}

.btn-home1 {
  background: var(--glass-bg);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px var(--glass-highlight);
}

.btn-home1:hover {
  transform: translateY(-2px);
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 25px var(--glass-highlight);
}

.btn-home2 {
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-home2:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

/* HR */
.hhr {
  padding-bottom: 30px;
}

hr {
  width: 90%;
  border: 1px solid var(--glass-border);
}

/* SOCIAL */
.follow {
  display: flex;
  gap: 1rem;
}

.follow ul {
  display: flex;
  gap: 2rem;
  font-size: 20px;
}

.follow ul li {
  list-style: none;
}

.follow ul a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: 0.3s;
}

.follow ul a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--glass-highlight);
}

/* IMAGE */
.home img {
  width: 400px;
  border-radius: 15px;
  border: var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ===== PROJECT SECTION ===== */
.project {
  position: relative;
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #f2f2f2;
}

.info-pro {
  margin-bottom: 20px;
}

/* TITLE */
.project h1 {
  font-family: var(--font-display);
  padding-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: 1px;
}

/* SUB TEXT */
.project p {
  padding-bottom: 20px;
  font-size: 14px;
  color: #c9c9c9;
}

/* LINE */
.project hr {
  width: 80px;
  height: 3px;
  border: none;
  background: var(--accent-primary);
  margin-bottom: 20px;
  border-radius: 10px;
}

/* INFO TEXT */
.info-pro {
  padding-top: 20px;
  text-align: center;
}

.info-pro p {
  padding-bottom: 10px;
  color: #bdbdbd;
}

/* PROJECT GRID */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

/* PROJECT CARD */
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: var(--glass-border);
  padding: 22px;
  border-radius: 18px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: 0.35s ease;
}

/* HOVER EFFECT UNIVERSAL */
.project-card:hover,
.service-card:hover,
.bento-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 35px var(--glass-highlight) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
}

/* IMAGE */
.project-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 15px;
  border: var(--glass-border);
}

/* TITLE */
.project-card h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* TEXT */
.project-card p {
  color: #d1d1d1;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* TAGS */
.project-card .skills a {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 20px;
  color: var(--accent-secondary);
  border: var(--glass-border);
  background: var(--glass-bg);
}

/* BUTTONS */
.project-card .btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.project-card .btn {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #000;
  background: var(--accent-primary);
  text-decoration: none;
  transition: 0.3s ease;
  border: 1px solid transparent;
}

.project-card .btn:hover {
  box-shadow: 0 0 18px var(--glass-highlight);
  transform: translateY(-2px);
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.about {
  position: relative;
  margin: 160px 200px;
  color: #f2f2f2;
}

/* TITLE */
.about h3 {
  margin-bottom: 1rem;
  font-size: 28px;
  color: var(--accent-secondary);
  font-family: var(--font-display);
}

/* BENTO GRID SYSTEM */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* BASE BENTO CARD */
.bento-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.bento-card h4 {
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.bento-card h5 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* SPANNING CARDS */
.bento-hero {
  grid-column: span 2;
  grid-row: span 2;
  align-items: flex-start;
  text-align: left;
}

.bento-hero h4 {
  font-size: 28px;
  color: var(--accent-primary);
}

.bento-wide {
  grid-column: span 3;
  flex-direction: row;
  justify-content: flex-start;
  gap: 24px;
  text-align: left;
}

.bento-wide p {
  max-width: 600px;
}

/* IMAGE SIDE */
.about-info2 {
  display: flex;
  gap: 3rem;
  align-items: center;
}

/* PHOTO CARD */
.photo-container {
  position: relative;
  display: inline-block;
  padding: 12px;
  background: var(--glass-bg);
  border-radius: 16px;
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* PHOTO */
.photo-container img {
  width: 260px;
  border-radius: 12px;
  display: block;
}

/* TAPE EFFECT */
.tape {
  display: none; /* Removed for cleaner minimalist look */
}

/* GLOW BACKGROUND */
.services::before,
.project::before,
.about::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    var(--glass-highlight) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(120px);
  animation: float 8s ease-in-out infinite;
  z-index: -1;
}

/* CONTAINER */
.services-content {
  max-width: 1300px;
  margin: 0 auto;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* CARD */
.service-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 22px;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* SHINE EFFECT */
.service-card::before,
.project-card::before,
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.6s;
  z-index: 10;
  pointer-events: none;
}

.service-card:hover::before,
.project-card:hover::before,
.bento-card:hover::before {
  left: 120%;
}

/* HOVER MOVED TO UNIVERSAL BLOCK */

/* ICON */
.service-icon {
  width: 85px;
  height: 85px;
  background: var(--glass-bg);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.2rem;
  color: var(--accent-primary);
  box-shadow: 0 0 15px var(--glass-highlight);
}

.section-title {
  margin-bottom: 20px;
  font-family: var(--font-display);
}

/* TITLE */
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}

/* DESCRIPTION */
.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* TAGS */
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.service-features span {
  background: var(--glass-bg);
  color: var(--accent-secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: var(--glass-border);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.services {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.info-pro {
  margin-bottom: 20px;
}

/* ================= SKILLS SECTION ================= */

#skills {
  padding: 100px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.skill-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: var(--glass-blur);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px var(--glass-highlight);
  background: rgba(255, 255, 255, 0.05);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.category-header i {
  font-size: 20px;
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--glass-highlight);
}

.category-header h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
  cursor: default;
}

.skill-card:hover .skill-tag {
  border-color: rgba(0, 255, 65, 0.3);
  color: var(--text-primary);
}

.skill-tag:hover {
  border-color: var(--accent-primary);
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--glass-highlight);
  color: var(--text-primary);
}

/* ================= PROJECTS SECTION ================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.project-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 35px;
  backdrop-filter: var(--glass-blur);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(6, 182, 212, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.6s;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.project-card:hover::before {
  transform: translateX(100%);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.project-header i {
  font-size: 24px;
  color: var(--accent-secondary);
}

.project-header h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin: 0;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 25px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.proj-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
}

.project-actions {
  display: flex;
  gap: 15px;
}

.btn-git, .btn-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
  text-decoration: none;
}

.btn-git {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-git:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-primary);
}

.btn-live {
  background: var(--accent-primary);
  color: #000;
  border: 1px solid var(--accent-primary);
}

.btn-live:hover {
  background: transparent;
  color: var(--accent-primary);
  box-shadow: 0 0 15px var(--glass-highlight);
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= TERMINAL ARCHIVE OVERLAY ================= */

.terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.terminal-window {
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  background: #0a0a0a;
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.1);
  overflow: hidden;
  position: relative;
}

/* Scanline effect */
.terminal-window::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.terminal-header {
  background: #1a1a1a;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}

.terminal-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--text-secondary);
}

.close-terminal {
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  transition: 0.3s;
}

.close-terminal:hover {
  color: var(--accent-primary);
}

.terminal-body {
  padding: 30px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  color: var(--accent-primary);
  font-size: 16px;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.terminal-line {
  margin-bottom: 10px;
  line-height: 1.5;
}

.terminal-line .prompt {
  margin-right: 10px;
  opacity: 0.8;
}

.terminal-project {
  margin: 25px 0;
  border-left: 2px solid rgba(0, 255, 65, 0.2);
  padding-left: 20px;
  opacity: 0; /* Animated in JS */
}

.terminal-project h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

.terminal-project p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.terminal-project .links {
  display: flex;
  gap: 20px;
}

.terminal-project a {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid transparent;
}

.terminal-project a:hover {
  border-bottom-color: var(--accent-primary);
}

@media (max-width: 600px) {
  .terminal-window {
    max-height: 90vh;
  }
  .terminal-body {
    padding: 15px;
    font-size: 14px;
  }
}

/* ================= CONTACT SECTION ================= */

#contact {
  width: 100%;
  padding: 120px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CONTAINER */
.contact-content {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin: auto;
}

/* LEFT SIDE */
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

/* DETAILS */
.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.contact-item svg {
  color: var(--accent-primary);
  filter: drop-shadow(0 0 6px var(--glass-highlight));
}

/* SOCIAL */
.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: 0.3s ease;
}

.social-link:hover {
  transform: scale(1.15);
  color: var(--text-primary);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
}

/* FORM */
.contact-form {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 18px;
  padding: 35px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* INPUTS */
.form-group {
  margin-bottom: 22px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

/* ANIMATION PRESETS */
.slide-in-left {
  transform: translateX(-40px);
  opacity: 0;
  transition: all 1.2s ease;
}

.slide-in-right {
  transform: translateX(40px);
  opacity: 0;
  transition: all 1.2s ease;
}

.slide-in-up {
  transform: translateY(40px);
  opacity: 0;
  transition: all 1.2s ease;
}

.glow-genz-button {
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  /* Global Mobile Resets */
  .main, .card, .home, .project, .about, .services, #blog, .section-container {
    width: 100% !important;
    margin: 40px 0 !important; /* Force reset large 200px margins */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Header & Navigation Fixes */
  .div-list {
    width: 100%;
    margin: 0;
  }
  .ul-list {
    gap: 12px;
    padding: 10px 15px;
    border-radius: 20px;
    margin: 10px auto;
    width: fit-content;
  }
  .ul-list li a {
    font-size: 11px;
    padding: 4px 6px;
  }
  .ul-list li svg {
    display: none;
  }

  /* Intro Responsiveness */
  #intro {
    height: auto;
    padding: 80px 0 40px;
  }
  .card {
    padding: 30px 15px !important;
    border-radius: 16px;
  }
  .content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .left h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  .desc {
    margin: 12px auto 20px;
    font-size: 14px;
    max-width: 100%;
  }
  .buttons, .site-link, .live-line {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .btn {
    width: 100%; 
    justify-content: center;
  }
  .orbit-box {
    width: 160px;
    height: 160px;
  }
  .core {
    inset: 30px;
  }
  .stats {
    flex-direction: column;
    gap: 8px;
  }

  /* Bento Grid Mobile Layout */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 100%;
    padding: 0;
  }
  .bento-hero, .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
    text-align: center;
    align-items: center;
    padding: 24px;
  }
  .bento-wide {
    flex-direction: column;
  }
  .bento-hero h4 {
    font-size: 24px;
  }

  /* Project Grid & Sections */
  .projects-container, .skills-grid, .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  .project-card, .skill-card {
    width: 100% !important;
    padding: 20px;
  }
  .project-card h3 {
    font-size: 20px;
  }
  .project-card .btns {
    flex-direction: column;
  }
  .project-card .btn {
    width: 100%;
    text-align: center;
  }

  /* Contact responsiveness */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }
}

/* FOOTER */
.site-footer {
  padding: 30px 0;
  margin-top: 80px;
  border-top: 1px solid var(--glass-border);
  background: transparent;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}
.footer-links a:hover {
  color: var(--accent-primary);
}
.footer-copy {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}
