/* ============================================================
   SAABIQ RAZEEN — Portfolio Stylesheet
   style.css
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --red: #910c22;
  --red-dark: #8B0000;
  --red-light: #ac1313;
  --red-glow: rgba(196, 30, 58, 0.25);
  --red-faint: rgba(196, 30, 58, 0.08);
  --black: #080808;
  --surface: #0f0f0f;
  --surface2: #161616;
  --surface3: #1e1e1e;
  --white: #F5F0EE;
  --muted: rgba(245, 240, 238, 0.45);
  --border: rgba(196, 30, 58, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 2px; }

/* ── Custom Cursor ── */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .3s, height .3s, background .3s;
  box-shadow: 0 0 10px var(--red-glow);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--red-light);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, width .3s, height .3s, opacity .3s, border-color .3s;
  opacity: 0.7;
}

body:hover .cursor { opacity: 1; }

/* ── Watermark ── */
.watermark {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9990;
  background: rgba(8, 8, 8, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 0.5rem 0.9rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  pointer-events: none;
  transition: all 0.3s ease;
}

.watermark-text {
  font-family: 'Syne', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.watermark-text span {
  color: var(--red-light);
  font-weight: 600;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 4rem;
  z-index: 100;
  transition: background .4s, backdrop-filter .4s;
}

nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-logo span { color: var(--red-light); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red-light);
  transition: width .3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(196,30,58,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(139,0,0,0.1) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,30,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,30,58,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}

.hero-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red-light);
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}

.hero-name em {
  font-style: italic;
  color: var(--red-light);
}

.hero-desc {
  margin-top: 2.5rem;
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .9s .7s forwards;
}

.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s .9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .9s 1.1s forwards;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--red);
  animation: scaleX 1.5s 1.5s ease-in-out infinite alternate;
  transform-origin: left;
}

.hero-number {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16rem;
  font-weight: 700;
  color: rgba(196,30,58,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.2rem;
  background: var(--red);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background .3s, transform .3s, box-shadow .3s;
}

.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--red-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: border-color .3s, color .3s, transform .3s;
}

.btn-outline:hover {
  border-color: var(--red-light);
  color: var(--red-light);
  transform: translateY(-2px);
}

/* ── Shared Section Styles ── */
section {
  padding: 7rem 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--red-light);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--red-light);
}

.red-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  margin: 1.5rem 0;
}

/* ── About ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual { position: relative; }

.about-photo-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.about-photo-frame {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  background: var(--surface2);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  position: relative;
  overflow: hidden;
}

.about-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 30%, rgba(196,30,58,0.15) 0%, transparent 70%);
}

.photo-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-light);
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.photo-hint {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 180px;
  line-height: 1.6;
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-deco {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--red);
  padding: 1.2rem 1.5rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.about-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.about-badge-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 238, 0.7);
  margin-top: 0.2rem;
}

.about-bio {
  margin-top: 2.5rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.about-bio strong {
  color: var(--white);
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: border-color .3s, background .3s;
}

.skill-chip:hover {
  border-color: var(--red-light);
  background: var(--red-faint);
}

.skill-chip::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Stats Bar ── */
#stats {
  padding: 5rem 4rem;
  background: var(--red);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0,
    rgba(255,255,255,0.03) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 20px 20px;
}

.stat-item { position: relative; z-index: 1; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 238, 0.7);
  margin-top: 0.5rem;
}

/* ── Projects ── */
#projects { background: var(--surface); }

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.project-card {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(196,30,58,0.2);
  border-color: rgba(196,30,58,0.5);
}

.project-card.featured { grid-column: span 2; }

.project-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card.featured .project-image { aspect-ratio: 21/9; }

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

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

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--surface3) 0%, #1a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.project-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--red-faint) 0%, transparent 70%);
}

.proj-icon {
  font-size: 2.5rem;
  color: var(--red-light);
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

.proj-ph-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--red);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s;
}

.project-link:hover { background: var(--red-light); }

.project-info { padding: 1.5rem; }

.project-category {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 0.5rem;
}

.project-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Contact ── */
#contact {
  background: var(--black);
  text-align: center;
}

.contact-intro {
  max-width: 560px;
  margin: 1.5rem auto 4rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.contact-card {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color .3s, transform .3s, box-shadow .3s;
  text-decoration: none;
  display: block;
}

.contact-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--red-glow);
}

.contact-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--red-light);
  display: block;
}

.contact-type {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--white);
  word-break: break-all;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--black);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.footer-logo span { color: var(--red-light); }

.footer-copy {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
}

.footer-right span { color: var(--red); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleX {
  from { transform: scaleX(1); }
  to   { transform: scaleX(1.6); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  nav { padding: 1.4rem 2rem; }
  .nav-logo-img { height: 24px; }
  .nav-links { display: none; }
  #hero, section, footer { padding-left: 2rem; padding-right: 2rem; }
  #about { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 0; }
  .project-card.featured { grid-column: span 1; }
  #stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-number { display: none; }
  .hero-scroll { left: 2rem; }
  .hero-content { padding: 0; }
  .hero-name { font-size: 2.5rem; line-height: 1.1; }
  .hero-desc { font-size: 0.95rem; line-height: 1.6; }
  .watermark { bottom: 1rem; right: 1rem; padding: 0.4rem 0.7rem; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  nav { padding: 1rem 1.5rem; justify-content: space-between; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo-img { height: 20px; }
  .mobile-menu-btn { display: flex; }
  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li { margin: 0.5rem 0; }
  .nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
  }
  #hero, section, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  #hero { padding-top: 4rem; min-height: 90vh; }
  .hero-name { font-size: 1.8rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-tag { font-size: 0.75rem; margin-bottom: 1rem; }
  .hero-desc { margin-top: 1.5rem; }
  .hero-cta { flex-direction: column; gap: 1rem; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  #about { padding: 3rem 1.5rem; }
  .about-visual { display: none; }
  .section-title { font-size: 1.8rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .skill-chip { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
  #stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-num { font-size: 1.8rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 0; }
  .project-placeholder { min-height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.2rem; }
  .contact-icon { width: 24px; height: 24px; }
  .contact-intro { margin-bottom: 2rem; }
  .contact-grid { margin-bottom: 2rem; }
  footer { padding: 1.5rem 1.5rem 0.5rem 1.5rem; flex-direction: column; text-align: center; }
  .footer-logo { font-size: 1rem; }
  .footer-copy { font-size: 0.65rem; }
  .watermark { bottom: 0.8rem; right: 0.8rem; padding: 0.3rem 0.6rem; font-size: 0.5rem; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1.5rem; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo-img { height: 20px; }
  #hero, section, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  #hero { padding-top: 3rem; min-height: 85vh; }
  .hero-name { font-size: 1.8rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-tag { font-size: 0.75rem; margin-bottom: 1rem; }
  .hero-desc { margin-top: 1.5rem; }
  .hero-cta { flex-direction: column; gap: 1rem; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  #about { padding: 3rem 1.5rem; }
  .about-visual { display: none; }
  .section-title { font-size: 1.8rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .skill-chip { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
  #stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-num { font-size: 1.8rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 0; }
  .project-placeholder { min-height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.2rem; }
  .contact-icon { width: 24px; height: 24px; }
  .contact-intro { margin-bottom: 2rem; }
  .contact-grid { margin-bottom: 2rem; }
  footer { padding: 1.5rem 1.5rem 0.5rem 1.5rem; flex-direction: column; text-align: center; }
  .footer-logo { font-size: 1rem; }
  .footer-copy { font-size: 0.65rem; }
  .watermark { bottom: 1rem; right: 1rem; padding: 0.4rem 0.7rem; }
}

@media (max-width: 480px) {
  nav { padding: 0.8rem 1rem; }
  .nav-logo { font-size: 1rem; }
  .nav-logo-img { height: 18px; }
  #hero, section, footer { padding-left: 1rem; padding-right: 1rem; }
  #hero { padding-top: 2rem; min-height: 80vh; }
  .hero-name { font-size: 1.5rem; }
  .hero-desc { font-size: 0.85rem; }
  .hero-tag { font-size: 0.7rem; margin-bottom: 0.8rem; }
  .hero-desc { margin-top: 1.2rem; }
  .hero-cta { gap: 0.8rem; }
  .btn-primary, .btn-outline { font-size: 0.9rem; padding: 0.8rem 1.5rem; }
  #about { padding: 2rem 1rem; }
  .section-title { font-size: 1.5rem; }
  .about-bio { font-size: 0.9rem; }
  .skills-grid { grid-template-columns: 1fr; gap: 0.4rem; }
  .skill-chip { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
  #stats { gap: 1rem; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.8rem; }
  .projects-grid { gap: 0; }
  .project-info { padding: 1rem; }
  .project-category { font-size: 0.75rem; }
  .project-name { font-size: 1.1rem; }
  .project-desc { font-size: 0.85rem; }
  .contact-grid { gap: 1rem; }
  .contact-card { padding: 1rem; }
  .contact-type { font-size: 0.7rem; }
  .contact-value { font-size: 0.8rem; }
  .contact-intro { margin-bottom: 1.5rem; }
  .contact-grid { margin-bottom: 1.5rem; }
  footer { padding: 0.5rem 1rem 0.25rem 1rem; }
  .footer-logo { font-size: 0.9rem; }
  .footer-copy { font-size: 0.6rem; }
  .watermark { display: none; }
}

@media (max-width: 360px) {
  nav { padding: 0.6rem 0.8rem; }
  .nav-logo { font-size: 0.9rem; }
  .nav-logo-img { height: 16px; }
  #hero, section, footer { padding-left: 0.8rem; padding-right: 0.8rem; }
  #hero { padding-top: 1.5rem; min-height: 75vh; }
  .hero-name { font-size: 1.3rem; }
  .hero-desc { font-size: 0.8rem; }
  .hero-tag { font-size: 0.65rem; margin-bottom: 0.6rem; }
  .hero-desc { margin-top: 1rem; }
  .hero-cta { gap: 0.6rem; }
  .btn-primary, .btn-outline { font-size: 0.85rem; padding: 0.7rem 1.2rem; min-height: 44px; }
  #about { padding: 1.5rem 0.8rem; }
  .section-title { font-size: 1.3rem; }
  .about-bio { font-size: 0.85rem; }
  .skills-grid { gap: 0.3rem; }
  .skill-chip { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
  #stats { gap: 0.8rem; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.75rem; }
  .projects-grid { gap: 0; }
  .project-info { padding: 0.8rem; }
  .project-category { font-size: 0.7rem; }
  .project-name { font-size: 1rem; }
  .project-desc { font-size: 0.8rem; }
  .contact-grid { gap: 0.8rem; }
  .contact-card { padding: 0.8rem; min-height: 80px; }
  .contact-type { font-size: 0.65rem; }
  .contact-value { font-size: 0.75rem; }
  .contact-intro { margin-bottom: 1rem; }
  .contact-grid { margin-bottom: 1rem; }
  footer { padding: 0.4rem 0.8rem 0.2rem 0.8rem; }
  .footer-logo { font-size: 0.8rem; }
  .footer-copy { font-size: 0.55rem; }
}
