/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg-primary: #313338;
  --bg-secondary: #2B2D31;
  --bg-card: #1E1F22;
  --text-primary: #F2F3F5;
  --text-secondary: #DBDEE1;
  --text-muted: #949BA4;
  --accent: #5865F2;
  --accent-hover: #4752C4;
  --accent-glow: rgba(88, 101, 242, 0.35);
  --border-color: #5865F2;
  --border-muted: #3F4248;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --container-width: 1060px;
  --section-gap: 112px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--text-primary);
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== DECORATIVE DOTS ===== */
.dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  opacity: 0.6;
}

.dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.dots-pattern {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  opacity: 0.4;
  pointer-events: none;
}

.dots-pattern .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shapes {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
}

.geo-square {
  width: 52px;
  height: 52px;
  border: 1px solid var(--accent);
}

.geo-square-sm {
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
}

/* ===== SECTION TITLE ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.section-title h2 span {
  color: var(--accent);
}

.section-title .line {
  flex: 1;
  height: 1px;
  background: var(--accent);
  max-width: 240px;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(40, 44, 51, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--border-muted);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 16px;
  height: 16px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-size: 16px;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}

.nav-list a span {
  color: var(--accent);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-list a:hover::after {
  width: 100%;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
}

.lang-switcher span.active-lang {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-content {
  max-width: 540px;
  min-width: 0;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.4;
}

.hero-content h1 .accent {
  color: var(--accent);
}

.hero-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-content .btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
}

.hero-content .btn:hover {
  background: rgba(199, 120, 221, 0.15);
  box-shadow: 0 0 15px rgba(199, 120, 221, 0.2);
}

.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
}

.hero-illustration {
  position: relative;
  width: 400px;
  height: 400px;
}

/* Abstract geometric hero graphic instead of photo */
.hero-geo {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-geo .ring {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.hero-geo .ring-1 {
  width: 300px;
  height: 300px;
  top: 20px;
  left: 20px;
  opacity: 0.7;
}

.hero-geo .ring-2 {
  width: 220px;
  height: 220px;
  top: 60px;
  left: 60px;
  opacity: 0.5;
  animation-delay: 0.5s;
}

.hero-geo .ring-3 {
  width: 140px;
  height: 140px;
  top: 100px;
  left: 100px;
  opacity: 0.3;
  animation-delay: 1s;
}

/* 3D Rotating Cube */
.cube-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  perspective: 800px;
  z-index: 5;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3dCube 12s linear infinite;
  transition: transform 0.4s ease;
}

.cube:hover {
  animation-duration: 4s;
}

.cube-face {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 2px solid var(--accent);
  background: rgba(88, 101, 242, 0.22);
  backdrop-filter: blur(4px);
  box-shadow: 
    inset 0 0 20px rgba(88, 101, 242, 0.4),
    0 0 15px rgba(88, 101, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.cube-face span {
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.cube-front  { transform: rotateY(0deg) translateZ(45px); }
.cube-back   { transform: rotateY(180deg) translateZ(45px); }
.cube-right  { transform: rotateY(90deg) translateZ(45px); }
.cube-left   { transform: rotateY(-90deg) translateZ(45px); }
.cube-top    { transform: rotateX(90deg) translateZ(45px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(45px); }

@keyframes rotate3dCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  50% {
    transform: rotateX(180deg) rotateY(270deg) rotateZ(90deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

.hero-geo .cross {
  position: absolute;
  width: 20px;
  height: 20px;
}

.hero-geo .cross::before,
.hero-geo .cross::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.hero-geo .cross::before {
  width: 2px;
  height: 20px;
  left: 9px;
  top: 0;
}

.hero-geo .cross::after {
  width: 20px;
  height: 2px;
  top: 9px;
  left: 0;
}

.hero-geo .cross-1 { top: 40px; right: 20px; opacity: 0.6; }
.hero-geo .cross-2 { bottom: 60px; left: 10px; opacity: 0.4; }
.hero-geo .cross-3 { top: 10px; left: 80px; opacity: 0.5; }

.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--text-secondary);
  padding: 8px 12px;
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
}

.hero-status .status-dot {
  width: 16px;
  height: 16px;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

.hero-dots-1 {
  position: absolute;
  right: -30px;
  top: 20%;
}

.hero-dots-2 {
  position: absolute;
  left: 45%;
  bottom: 10%;
}

/* Quote Box */
.quote-box {
  margin-top: 60px;
  margin-bottom: 60px;
  position: relative;
  max-width: 712px;
  margin-left: auto;
  margin-right: auto;
}

.quote-box blockquote {
  border: 1px solid var(--text-secondary);
  padding: 32px;
  font-size: 24px;
  color: var(--text-primary);
  position: relative;
}

.quote-box blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 60px;
  color: var(--text-secondary);
  line-height: 1;
}

.quote-box .quote-author {
  border: 1px solid var(--text-secondary);
  border-top: none;
  padding: 16px;
  text-align: right;
  font-size: 24px;
  color: var(--text-primary);
  display: inline-block;
  float: right;
}

.quote-box .quote-author span {
  color: var(--accent);
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: var(--section-gap) 0;
  position: relative;
}

.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.projects-header .section-title {
  margin-bottom: 0;
}

.view-all-link {
  font-size: 16px;
  color: var(--text-primary);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.view-all-link:hover {
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.project-card {
  border: 1px solid var(--text-secondary);
  transition: all 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(199, 120, 221, 0.1);
}

.project-card .card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.05);
}

/* Placeholder pattern for project cards without images */
.card-pattern {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a1d23 100%);
  position: relative;
  overflow: hidden;
}

.card-pattern::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid var(--accent);
  opacity: 0.2;
  transform: rotate(45deg);
}

.card-pattern::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.15;
  top: 20%;
  right: 20%;
}

.project-card .card-tech {
  padding: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--text-secondary);
}

.project-card .card-body {
  padding: 16px;
}

.project-card .card-body h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-card .card-body p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.project-card .card-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-sm:hover {
  background: rgba(199, 120, 221, 0.15);
  box-shadow: 0 0 12px rgba(199, 120, 221, 0.2);
}

.btn-sm-outline {
  border-color: var(--text-secondary);
}

.btn-sm-outline:hover {
  border-color: var(--accent);
}

/* ===== SKILLS SECTION ===== */
.skills {
  padding: var(--section-gap) 0;
  position: relative;
}

.skills-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.skills-deco {
  flex-shrink: 0;
  width: 300px;
  position: relative;
  min-height: 280px;
}

.skills-deco .dots-pattern {
  position: absolute;
}

.skills-deco .dp-1 { top: 0; left: 0; }
.skills-deco .dp-2 { top: 80px; left: 100px; }
.skills-deco .dp-3 { bottom: 0; left: 30px; }
.skills-deco .dp-4 { top: 50px; right: 0; }

.skills-deco .geo-shapes {
  position: absolute;
}

.skills-deco .gs-1 { top: 120px; left: 60px; }
.skills-deco .gs-2 { top: 140px; left: 80px; }
.skills-deco .gs-3 { bottom: 40px; right: 40px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  flex: 1;
}

.skill-category {
  border: 1px solid var(--text-secondary);
  padding: 0;
}

.skill-category h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px;
  border-bottom: 1px solid var(--text-secondary);
}

.skill-category ul {
  padding: 8px;
}

.skill-category ul li {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 2px 0;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--section-gap) 0;
  position: relative;
}

.about-content {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text .btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  background: transparent;
  margin-top: 16px;
  transition: all 0.3s ease;
}

.about-text .btn:hover {
  background: rgba(199, 120, 221, 0.15);
  box-shadow: 0 0 15px rgba(199, 120, 221, 0.2);
}

.about-visual {
  flex-shrink: 0;
  position: relative;
  width: 340px;
  max-width: 100%;
  min-height: 300px;
}

/* Abstract visual replacing photo */
.about-abstract {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.about-abstract .ab-box {
  position: absolute;
  border: 1px solid var(--accent);
  opacity: 0.3;
}

.about-abstract .ab-1 {
  width: 200px;
  height: 200px;
  top: 40px;
  left: 60px;
  transform: rotate(15deg);
  animation: float 8s ease-in-out infinite;
}

.about-abstract .ab-2 {
  width: 140px;
  height: 140px;
  top: 100px;
  left: 100px;
  transform: rotate(-10deg);
  opacity: 0.2;
  animation: float 6s ease-in-out infinite reverse;
}

.about-abstract .ab-3 {
  width: 100px;
  height: 100px;
  top: 150px;
  right: 40px;
  border-radius: 50%;
  animation: pulse 5s ease-in-out infinite;
}

.about-abstract .ab-fill {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--accent);
  opacity: 0.08;
  top: 140px;
  left: 130px;
  transform: rotate(25deg);
}

.about-abstract .dots-pattern {
  position: absolute;
  right: 0;
  top: 20px;
}

.about-abstract .dots-pattern-2 {
  position: absolute;
  left: 10px;
  bottom: 60px;
}

/* ===== CONTACTS SECTION ===== */
.contacts {
  padding: var(--section-gap) 0;
  position: relative;
}

.contacts-content {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.contacts-text {
  flex: 1;
}

.contacts-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contacts-card {
  border: 1px solid var(--text-secondary);
  padding: 24px;
  flex-shrink: 0;
}

.contacts-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contacts-card .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contacts-card .contact-item svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  margin-top: 40px;
  border: 1px solid var(--accent);
  padding: 32px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(199, 120, 221, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--accent);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.form-submit-btn:hover {
  background: rgba(199, 120, 221, 0.15);
  box-shadow: 0 0 15px rgba(199, 120, 221, 0.2);
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--text-secondary);
  margin-top: var(--section-gap);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-left .footer-name {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-left .footer-name .logo-icon {
  width: 14px;
  height: 14px;
}

.footer-left .footer-email {
  font-size: 16px;
  color: var(--text-secondary);
}

.footer-left .footer-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.footer-right h4 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-copyright {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  padding-top: 16px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: inherit; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(40, 44, 51, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 32px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.mobile-nav a span {
  color: var(--accent);
}

.mobile-nav a:hover {
  color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-list {
    display: none;
  }

  .lang-switcher {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero .container {
    flex-direction: column;
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-right {
    width: 100%;
    margin-left: 0;
  }

  .hero-matrix-card {
    max-width: 100%;
  }

  .hero-geo {
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }

  .hero-status {
    justify-content: center;
  }

  .hero-dots-1,
  .hero-dots-2 {
    display: none;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .skills-content {
    flex-direction: column;
  }

  .skills-deco {
    display: none;
  }

  .about-content {
    flex-direction: column;
  }

  .about-visual {
    width: 100%;
    min-height: auto;
  }

  .contacts-content {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .quote-box blockquote {
    font-size: 20px;
  }

  .contact-big-title {
    font-size: 34px;
  }

  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 64px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .form-row {
    flex-direction: column;
  }

  .quote-box blockquote {
    font-size: 16px;
    padding: 24px;
  }

  .quote-box .quote-author {
    font-size: 16px;
  }
}

/* ===== BACKGROUND TECHNICAL GRID OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* ===== LOADING SCREEN (Image 1 style matching main site theme) ===== */
.loader-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
}

.loader-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-bg-initials {
  position: absolute;
  font-size: 220px;
  font-weight: 900;
  color: rgba(88, 101, 242, 0.08);
  letter-spacing: -10px;
  user-select: none;
  pointer-events: none;
  font-family: var(--font-mono);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

.loader-fg-initials {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 6px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  z-index: 2;
}

.loader-fg-initials .let-s {
  color: var(--text-primary);
}

.loader-fg-initials .let-k {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

.loader-line-container {
  width: 130px;
  height: 3px;
  background: var(--border-muted);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 2px;
  z-index: 2;
}

.loader-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.8);
  animation: fillLoader 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillLoader {
  0% { width: 0%; }
  50% { width: 65%; }
  100% { width: 100%; }
}

.loader-subtext {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: lowercase;
  z-index: 2;
}

/* ===== CUSTOM CURSOR (Image 2 style) ===== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.cursor-ring.cursor-hover {
  width: 48px;
  height: 48px;
  background-color: rgba(88, 101, 242, 0.15);
  border-color: var(--accent);
}

/* ===== HERO BADGE & BUTTONS ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(67, 181, 129, 0.12);
  border: 1px solid rgba(67, 181, 129, 0.3);
  color: #43B581;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #43B581;
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(67, 181, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(67, 181, 129, 0); }
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn-outline {
  border-color: var(--border-muted) !important;
  color: var(--text-secondary) !important;
}

.btn-outline:hover {
  border-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ===== TECH MATRIX CARD (Image 3 style) ===== */
.tech-matrix-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-muted);
  padding: 36px;
  margin: 30px 0 60px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.matrix-header {
  margin-bottom: 24px;
}

.matrix-status {
  font-size: 12px;
  color: #43B581;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.matrix-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.matrix-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-muted);
  border: 1px solid var(--border-muted);
  margin-bottom: 28px;
}

.matrix-row {
  display: flex;
  background: var(--bg-card);
  padding: 14px 20px;
  align-items: center;
}

.matrix-label {
  width: 140px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

.matrix-val {
  color: var(--text-primary);
  flex: 1;
  font-size: 14px;
  font-family: var(--font-mono);
}

.matrix-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.matrix-location {
  color: #E54D32;
  font-size: 13px;
  font-family: var(--font-mono);
  overflow-wrap: break-word;
  word-break: break-word;
}

.matrix-btns {
  display: flex;
  gap: 12px;
}

.matrix-btn {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.matrix-btn:hover {
  border-color: var(--text-primary);
  background: var(--bg-primary);
}

.matrix-btn.btn-highlight {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.matrix-btn.btn-highlight:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* ===== TECH TICKER MARQUEE (Image 4 style) ===== */
.ticker-banner {
  background: #090a0d;
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 30px 0 60px;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: marqueeScroll 30s linear infinite;
}

.ticker-track span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.ticker-star {
  color: #E54D32 !important;
  font-size: 11px;
  margin: 0 4px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== TERMINAL YAML CARD (Image 5 style) — REMOVED DUPLICATE, see unified below ===== */

/* ===== GLITCH FREE HARDWARE-ACCELERATED CURSOR ===== */
html, body, a, button, input, select, textarea, .project-card, .matrix-btn, .skill-card, .terminal-card {
  cursor: none !important;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 999999;
  will-change: transform;
  margin-left: -3px;
  margin-top: -3px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 999998;
  will-change: transform;
  margin-left: -12px;
  margin-top: -12px;
  transition: width 0.22s cubic-bezier(0.2, 0, 0.2, 1), 
              height 0.22s cubic-bezier(0.2, 0, 0.2, 1),
              margin 0.22s cubic-bezier(0.2, 0, 0.2, 1),
              background-color 0.25s ease, 
              border-color 0.25s ease;
}

.cursor-ring.cursor-hover {
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  background-color: rgba(88, 101, 242, 0.18);
  border-color: var(--accent);
}

/* ===== UNIFIED TERMINAL WINDOW THEME ===== */
.terminal-card {
  background: #121419;
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  width: 100%;
  max-width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 45px rgba(88, 101, 242, 0.18);
}

.terminal-header {
  background: #1A1C23;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-muted);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tdot.red { background: #FF5F56; }
.tdot.yellow { background: #FFBD2E; }
.tdot.green { background: #27C93F; }

.terminal-filename {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-body {
  padding: 24px 28px;
  line-height: 1.8;
  font-size: 13px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.yaml-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.yaml-line.indent {
  padding-left: 24px;
}

.yaml-line.blank {
  height: 12px;
}

.yaml-key {
  color: #43B581;
  font-weight: 600;
  flex-shrink: 0;
}

.yaml-str {
  color: #F2F3F5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.yaml-val {
  color: #DBDEE1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.terminal-card-inner {
  padding: 24px;
}

/* ===== HERO FLUSH-RIGHT TECH MATRIX CARD ===== */
.hero-matrix-card {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: 0;
}

.hero-matrix-card .matrix-header h2 {
  font-size: 19px;
  margin-bottom: 14px;
}

.hero-matrix-card .matrix-row {
  padding: 8px 12px;
  font-size: 12.5px;
}

.hero-matrix-card .matrix-label {
  width: 90px;
  font-size: 11px;
}

.hero-matrix-card .matrix-val {
  font-size: 12px;
}

.hero-matrix-card .matrix-footer {
  margin-top: 14px;
}

.hero-matrix-card .matrix-btn {
  padding: 7px 12px;
  font-size: 11px;
}

/* ===== REVERSE MARQUEE TICKER (Moving Left to Right) ===== */
.ticker-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
}

.ticker-track.ticker-reverse {
  animation: marqueeScrollReverse 32s linear infinite;
}

@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.ticker-banner:hover .ticker-track {
  animation-play-state: paused;
}

/* ===== MODERN SKILLS TERMINAL GRID ===== */
.modern-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.skill-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
  transform: translateY(-4px);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.skill-badge-icon {
  font-size: 20px;
}

.skill-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  border: 1px solid var(--border-muted);
  color: var(--text-secondary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(88, 101, 242, 0.1);
  transform: scale(1.04);
}

.skill-tag.highlight {
  border-color: rgba(88, 101, 242, 0.5);
  color: var(--text-primary);
  background: rgba(88, 101, 242, 0.18);
  font-weight: 600;
}

/* modern-skills-grid mobile override moved to main 768px breakpoint */


.yaml-bullet {
  color: var(--text-muted);
}

/* ===== CONTACT SECTION (Attached Image Style) ===== */
.contact-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.contact-terminals-parallel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* contact-terminals-parallel mobile override moved to main 768px breakpoint */



.contact-subtag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}

.contact-big-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-big-title .accent-italic {
  font-style: italic;
  color: var(--accent);
  text-transform: lowercase;
  font-weight: 400;
}

.contact-main-email {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
  display: inline-block;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.contact-main-email:hover {
  color: var(--accent);
  text-underline-offset: 8px;
}

.contact-links-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-muted);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-muted);
  transition: all 0.3s ease;
}

.contact-row:hover {
  padding-left: 8px;
  border-bottom-color: var(--accent);
}

.contact-row .row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.contact-row .row-val {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.contact-row:hover .row-label,
.contact-row:hover .row-val {
  color: var(--accent);
}

.status-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43B581;
  box-shadow: 0 0 10px rgba(67, 181, 129, 0.8);
  margin-right: 6px;
}

.contact-italic-note {
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  margin-top: 14px;
  font-family: var(--font-mono);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 4px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.2);
}

/* ===== COMPREHENSIVE MOBILE & TOUCH RESPONSIVE STYLES ===== */

/* Touch & Mobile Cursor Reset */
@media (max-width: 768px), (pointer: coarse) {
  html, body, a, button, input, select, textarea, .project-card, .matrix-btn, .skill-card, .terminal-card {
    cursor: auto !important;
  }
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* Mobile Header & Fullscreen Navigation Overlay */
.mobile-nav-header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 40px);
}

.close-btn {
  font-size: 22px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--border-muted);
  border-radius: 4px;
  background: var(--bg-card);
  line-height: 1;
  transition: all 0.3s ease;
}

.close-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0;
}

.mobile-nav-list a {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  :root {
    --section-gap: 64px;
  }

  .container {
    padding: 0 18px;
  }

  .header {
    padding: 16px 0;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .terminal-card {
    border-radius: 4px;
  }

  .terminal-header {
    padding: 10px 14px;
  }

  .terminal-body {
    padding: 16px;
    font-size: 12px;
  }

  .terminal-card-inner {
    padding: 16px;
  }

  .yaml-line {
    font-size: 12px;
  }

  .yaml-line.indent {
    padding-left: 12px;
  }

  .yaml-str,
  .yaml-val {
    font-size: 12px;
  }

  .matrix-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .matrix-btns {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .matrix-btns .matrix-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .matrix-location {
    font-size: 11px;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modern-skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    margin-bottom: 32px;
    gap: 12px;
  }

  .section-title h2 {
    font-size: 24px;
    white-space: normal;
  }

  .section-title .line {
    max-width: 120px;
  }

  .quote-box {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .quote-box blockquote {
    font-size: 15px;
    padding: 20px;
  }

  .quote-box .quote-author {
    font-size: 15px;
    padding: 10px 14px;
  }

  .about-content {
    gap: 40px;
  }

  .about-visual {
    width: 100%;
    min-height: auto;
  }

  .about-visual .terminal-card {
    width: 100%;
  }

  .contact-big-title {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .contact-main-email {
    font-size: 14px;
    word-break: break-all;
    margin-bottom: 24px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }

  .contact-row .row-val {
    font-size: 12px;
    word-break: break-all;
  }

  .contact-terminals-parallel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-left {
    max-width: 100% !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
  }

  .footer-left .footer-name {
    font-size: 20px;
  }

  .footer-left .footer-email {
    font-size: 14px;
    word-break: break-all;
  }

  .footer-left .footer-tagline {
    font-size: 13px;
  }

  .footer-right h4 {
    font-size: 20px;
  }

  /* Ticker spacing */
  .ticker-banner {
    margin: 20px 0 40px;
    padding: 12px 0;
  }

  .ticker-track span {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  /* Skill tags */
  .skill-card-header h3 {
    font-size: 14px;
  }

  .skill-tags {
    gap: 6px;
  }

  .skill-tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Project card text */
  .project-card .card-body h3 {
    font-size: 18px;
  }

  .project-card .card-body p {
    font-size: 13px;
  }

  .card-tech {
    font-size: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .hero-content p {
    font-size: 13px;
  }

  .section-title h2 {
    font-size: 18px;
  }

  .contact-big-title {
    font-size: 20px;
  }

  .contact-main-email {
    font-size: 13px;
  }

  .skill-tags {
    gap: 5px;
  }

  .skill-tag {
    font-size: 10px;
    padding: 4px 8px;
  }

  .matrix-btn {
    padding: 8px 14px;
    font-size: 11px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }

  .loader-bg-initials {
    font-size: 120px;
  }

  .loader-fg-initials {
    font-size: 38px;
  }
}

/* ===== LANDSCAPE MODE & SHORT VIEWPORT OPTIMIZATIONS ===== */
@media (max-height: 550px) {
  /* Reduce fixed header height in landscape */
  .header {
    padding: 10px 0 !important;
  }

  /* Compact Hero section for short viewports */
  .hero {
    min-height: auto !important;
    padding-top: 70px !important;
    padding-bottom: 30px !important;
  }

  .hero-content h1 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }

  .hero-content p {
    font-size: 13px !important;
    margin-bottom: 14px !important;
  }

  .hero-actions {
    margin-top: 14px !important;
    gap: 10px !important;
  }

  .hero-actions .btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
  }

  /* Hero Terminal Card compact padding */
  .hero-matrix-card .matrix-header h2 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }

  .hero-matrix-card .matrix-row {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .hero-matrix-card .matrix-label {
    width: 80px !important;
    font-size: 10px !important;
  }

  .hero-matrix-card .matrix-val {
    font-size: 11px !important;
  }

  .hero-matrix-card .matrix-btn {
    padding: 5px 10px !important;
    font-size: 10px !important;
  }

  /* Fullscreen Mobile Navigation in Landscape - Enable Scroll & Fix Cutoff */
  .mobile-nav {
    justify-content: flex-start !important;
    padding: 64px 20px 24px !important;
    gap: 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-header {
    position: fixed !important;
    top: 10px !important;
    left: 20px !important;
    right: 20px !important;
    width: calc(100% - 40px) !important;
    z-index: 1001;
  }

  .mobile-nav-list {
    gap: 14px !important;
  }

  .mobile-nav-list a {
    font-size: 20px !important;
  }

  /* Loading Screen initials in landscape */
  .loader-bg-initials {
    font-size: 110px !important;
  }

  .loader-fg-initials {
    font-size: 36px !important;
    margin-bottom: 12px !important;
  }

  /* Compact section titles and margins */
  :root {
    --section-gap: 40px !important;
  }

  .section-title {
    margin-bottom: 24px !important;
  }

  .section-title h2 {
    font-size: 22px !important;
  }

  /* Quote Box compact spacing */
  .quote-box {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }

  .quote-box blockquote {
    padding: 16px !important;
    font-size: 15px !important;
  }

  .quote-box .quote-author {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }

  /* Compact Terminal Bodies & Cards */
  .terminal-body {
    padding: 12px 16px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  .yaml-line.blank {
    height: 6px !important;
  }

  .project-card .card-body {
    padding: 12px !important;
  }

  .project-card .card-body h3 {
    font-size: 18px !important;
    margin-bottom: 4px !important;
  }

  .project-card .card-body p {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }

  /* Contact section in landscape */
  .contact-big-title {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }

  .contact-main-email {
    font-size: 15px !important;
    margin-bottom: 18px !important;
  }

  .contact-hero-grid {
    gap: 20px !important;
    margin-top: 12px !important;
  }

  .contact-row {
    padding: 10px 0 !important;
  }

  /* Footer compact padding */
  .footer {
    padding: 20px 0 !important;
    margin-top: 40px !important;
  }

  .footer-content {
    margin-bottom: 16px !important;
    gap: 16px !important;
  }
}

@media (min-width: 568px) and (max-height: 550px) {
  /* In wide landscape mobile, keep 2 columns for projects and skills */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .modern-skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .hero .container {
    flex-direction: row !important;
    align-items: center !important;
    gap: 24px !important;
  }

  .hero-content {
    flex: 1;
  }

  .hero-right {
    flex: 1;
  }
}



