@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  scroll-behavior: smooth;
}

:root {
  --red:        #E31E25;
  --red-dark:   #B01219;
  --red-glow:   rgba(227, 30, 37, 0.25);
  --red-faint:  rgba(227, 30, 37, 0.08);
  --black:      #0A0A0B;
  --dark:       #111114;
  --dark2:      #18181C;
  --dark3:      #222228;
  --border:     rgba(255,255,255,0.07);
  --text:       #F0F0F2;
  --muted:      #888890;
  --surface:    rgba(255,255,255,0.04);
}

body {
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ───── NOISE OVERLAY ───── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

/* ═══════════════════════════════════════
   HEADER & NAVBAR
═══════════════════════════════════════ */

header {
  padding: 0 6%;
  height: 68px;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

header.show {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span { color: var(--red); }

.navbar {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  position: relative;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
  letter-spacing: 0.01em;
}

.navbar a i {
  font-size: 13px;
  flex-shrink: 0;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
}

.navbar a:hover { color: var(--text); }
.navbar a:hover::after { transform: scaleX(0.5); }
.navbar a.active { color: var(--text); }
.navbar a.active::after { transform: scaleX(1); }

/* LANGUAGE TOGGLE */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--dark3);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-left: 16px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.72rem;
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.05em;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 16px var(--red-glow);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 1002;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.hamburger:hover { border-color: var(--red); background: var(--red-faint); }

.hamburger .bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.68,-0.55,0.265,1.55);
  margin: 2.5px 0;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--red); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: translateX(-12px); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--red); }

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 999;
}
.overlay.active { opacity: 1; pointer-events: auto; }

@media (max-width: 1024px) and (min-width: 769px) {
  .navbar a span { display: none; }
  .navbar a { padding: 8px 10px; }
  .navbar a i { font-size: 16px; }
}

@media (max-width: 768px) {
  header { padding: 0 5%; }
  .hamburger { display: flex; }
  .navbar {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: rgba(10,10,11,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 88px 20px 40px;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 1001;
    border-left: 1px solid var(--border);
    overflow-y: auto;
  }
  .navbar.active { right: 0; }
  .navbar a {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    gap: 12px;
    color: var(--muted);
    border-radius: 10px;
  }
  .navbar a::after { display: none; }
  .navbar a:hover, .navbar a.active {
    background: var(--red-faint);
    color: var(--red);
    border: none;
  }
  .lang-toggle { margin-left: 0; margin-top: 16px; align-self: flex-start; }
}

/* ═══════════════════════════════════════
   HOME SECTION
═══════════════════════════════════════ */

.home {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 140px 6% 80px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Red diagonal accent */
.home::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(227,30,37,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.home::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.home-content { max-width: 600px; position: relative; z-index: 1; }

.home-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.home-content h3 {
  font-size: 1.15rem;
  color: var(--red);
  margin: 8px 0 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.home-content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  font-size: 0.975rem;
}

.btn-box a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-box a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-box a:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 30px var(--red-glow);
  transform: translateY(-2px);
}

.btn-box a:hover::before { opacity: 1; }

.social {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
  background: var(--surface);
}

.social a img {
  width: 52%;
  height: 52%;
  object-fit: contain;
  filter: brightness(0) invert(0.55);
  transition: filter 0.25s;
}

.social a:hover {
  border-color: var(--red);
  background: var(--red-faint);
  box-shadow: 0 4px 16px var(--red-glow);
}

.social a:hover img { filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(700%) hue-rotate(340deg) brightness(100%); }

.home-img {
  width: 360px;
  height: 360px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Red ring decoration */
.home-img::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(227,30,37,0.3);
  animation: spin 12s linear infinite;
}

.home-img::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(227,30,37,0.15);
  animation: spin 20s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

.home-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(80%);
  transition: filter 0.5s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--dark), 0 0 0 6px rgba(227,30,37,0.4);
}

.home-img img:hover { filter: grayscale(0%); }

@keyframes morph {
  0%, 100% { border-radius: 50%; }
  50%       { border-radius: 50%; }
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--red);
  animation: blink-caret 0.8s step-end infinite;
  padding-right: 4px;
}

@keyframes blink-caret {
  0%, 100% { border-color: var(--red); }
  50%       { border-color: transparent; }
}

.caret { animation: blink-caret 0.8s step-end infinite; }

@media (max-width: 900px) {
  .home {
    flex-direction: column-reverse;
    padding-top: 110px;
    text-align: center;
    gap: 32px;
  }
  .home-img { width: 230px; height: 230px; }
  .home-content h1 { font-size: 2.2rem; }
  .home-content h3 { font-size: 1rem; }
  .social { justify-content: center; }
}

/* ═══════════════════════════════════════
   ABOUT SECTION (index.html)
═══════════════════════════════════════ */

.about-page {
  background: var(--dark);
  color: var(--text);
  padding: 120px 8% 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.about-page::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(227,30,37,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.about-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 70px;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
}

.about-photo {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

.about-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 8px 8px 0 var(--red-dark), 0 20px 50px rgba(0,0,0,0.5);
  transition: all 0.35s ease;
}

.about-photo img:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--red-dark), 0 25px 60px rgba(0,0,0,0.6);
}

.about-info { flex: 1 1 380px; }

.about-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.about-info h3 {
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-intro {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 0.975rem;
}

.learn-more-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.learn-more-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-faint);
}

.learn-more-btn i { transition: transform 0.25s ease; }
.learn-more-btn:hover i { transform: translateX(4px); }

@media (max-width: 900px) {
  .about-wrapper { flex-direction: column; align-items: center; text-align: center; }
  .about-photo { flex: 0 0 auto; }
  .about-photo img { width: 200px; height: 200px; }
  .about-info { flex: 1 1 auto; }
  .about-info h1 { font-size: 1.8rem; }
  .learn-more-btn { margin-left: auto; margin-right: auto; }
  .social { justify-content: center; }
}

/* ═══════════════════════════════════════
   PORTFOLIO SECTION
═══════════════════════════════════════ */

.portfolio-page {
  min-height: 100vh;
  padding: 120px 6% 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  position: relative;
}

.portfolio-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.portfolio-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
}

/* Red accent bar under title */
.portfolio-page h2::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.project-desc {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.filter-buttons {
  text-align: center;
  margin: 32px 0 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px var(--red-glow);
}

.portfolio-box.hide { display: none; }

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  margin-top: 12px;
}

.portfolio-box {
  background: var(--dark2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: all 0.35s ease;
}

.portfolio-box:hover {
  transform: translateY(-8px);
  border-color: rgba(227,30,37,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(227,30,37,0.15);
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.portfolio-image:hover img { filter: brightness(45%) saturate(0.8); }
.portfolio-box:hover .portfolio-image img { transform: scale(1.06); }

.portfolio-layer {
  padding: 22px 20px 20px;
  text-align: left;
}

.portfolio-layer h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
}

.portfolio-layer p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.portfolio-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-desc.active {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 14px;
}

.result-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--red);
  color: white;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.portfolio-box:hover .result-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.detail-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
}

.detail-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-faint);
}

@media (max-width: 900px) { .portfolio-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .portfolio-container { grid-template-columns: 1fr; padding: 0 5px; }
  .portfolio-image { height: 200px; }
}

/* ═══════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════ */

.contact-page {
  min-height: 100vh;
  padding: 120px 6% 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.contact-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.contact-page::after {
  content: '';
  position: absolute;
  top: -300px; right: -300px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(227,30,37,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.contact-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.contact-page h2::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 40px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.contact-page .project-desc { position: relative; z-index: 1; }

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--dark2);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card.gmail::before     { background: rgba(234,67,53,0.06); }
.contact-card.instagram::before { background: rgba(225,48,108,0.06); }
.contact-card.tiktok::before    { background: rgba(105,201,208,0.05); }
.contact-card.linkedin::before  { background: rgba(10,102,194,0.06); }
.contact-card.github::before    { background: rgba(100,100,100,0.08); }

.contact-card:hover {
  transform: translateX(6px);
  border-color: rgba(227,30,37,0.35);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), -4px 0 0 var(--red);
}

.contact-card:hover::before { opacity: 1; }

.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--dark3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.contact-card:hover .contact-card-icon {
  border-color: var(--red);
  background: var(--red-faint);
}

.contact-card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(0.65);
  transition: filter 0.25s;
}

.contact-card:hover .contact-card-icon img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(700%) hue-rotate(340deg) brightness(100%);
}

.contact-card.gmail .contact-card-icon img { filter: none; }
.contact-card.gmail:hover .contact-card-icon img { filter: none; }

.contact-card-info {
  flex: 1;
  text-align: left;
}

.contact-card-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-card-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-card-arrow {
  font-size: 0.85rem;
  color: var(--red);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.contact-card:hover .contact-card-arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 600px) {
  .contact-card { padding: 13px 15px; gap: 13px; }
  .contact-card-icon { width: 40px; height: 40px; }
  .contact-card-info h4 { font-size: 0.85rem; }
  .contact-card-info span { font-size: 0.75rem; }
}

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */

.reveal, .reveal-left, .reveal-right, .reveal-zoom {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal       { transform: translateY(30px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom  { transform: scale(0.93); }

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-zoom.active {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   CURSOR AURORA
═══════════════════════════════════════ */

.cursor-aurora {
  position: fixed;
  top: 0; left: 0;
  width: 150px; height: 150px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,30,37,0.2) 0%, rgba(227,30,37,0.06) 50%, transparent 70%);
  filter: blur(30px);
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.footer {
  background: var(--dark2);
  color: var(--muted);
  padding: 60px 20px 28px;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.footer h4 {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-brand p, .footer-status p {
  line-height: 1.75;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--red); }

.social-icons a {
  display: inline-block;
  margin-right: 14px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
  font-size: 0.9rem;
}

.social-icons a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.25s;
}

.social-icons a:hover { color: var(--red); }
.social-icons a:hover::after { width: 100%; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--dark3);
  color: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .social-icons a { margin: 0 8px; }
}

/* ═══════════════════════════════════════
   ABOUT DETAIL PAGE (about.html)
═══════════════════════════════════════ */

.about-detail-page {
  min-height: 100vh;
  padding: 110px 6% 80px;
  background: var(--black);
}

.about-detail-page .container {
  max-width: 980px;
  margin: 0 auto;
}

.back-button-wrapper { margin-bottom: 28px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 9px 18px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.back-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-faint);
  transform: translateX(-4px);
}

.detail-section {
  background: var(--dark2);
  border-radius: 12px;
  padding: 38px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.detail-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
}

.detail-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.detail-section h2 i { font-size: 1rem; color: var(--red); }

.section-desc {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Skills */
.detail-section .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.skill-item {
  background: var(--dark3);
  padding: 22px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
}

.skill-item:hover {
  border-color: rgba(227,30,37,0.3);
  background: rgba(227,30,37,0.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.skill-item i { font-size: 2rem; color: var(--red); flex-shrink: 0; }
.skill-item h4 { color: var(--text); font-size: 1rem; margin-bottom: 6px; }
.skill-item p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Experience */
.experience-list { display: flex; flex-direction: column; gap: 20px; }

.experience-item {
  background: var(--dark3);
  padding: 26px 26px 26px 22px;
  border-radius: 10px;
  display: flex;
  gap: 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  transition: all 0.25s ease;
}

.experience-item:hover {
  background: rgba(227,30,37,0.04);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.exp-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exp-icon i { font-size: 1.4rem; color: white; }
.exp-content h4 { color: var(--text); font-size: 1.2rem; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.exp-content p { color: var(--muted); line-height: 1.7; margin-bottom: 18px; font-size: 0.9rem; }

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
}

.cert-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-faint);
}

/* Education Timeline */
.education-timeline {
  position: relative;
  padding-left: 36px;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--red), rgba(227,30,37,0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 14px; height: 14px;
  background: var(--dark2);
  border-radius: 50%;
  border: 2px solid var(--red);
}

.timeline-dot.active {
  background: var(--red);
  box-shadow: 0 0 16px var(--red-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 16px var(--red-glow); }
  50%       { box-shadow: 0 0 28px rgba(227,30,37,0.5); }
}

.timeline-content {
  background: var(--dark3);
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.timeline-content:hover {
  border-color: rgba(227,30,37,0.25);
  background: rgba(227,30,37,0.03);
  transform: translateX(6px);
}

.edu-year {
  display: inline-block;
  background: var(--dark);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

.edu-year.active {
  background: var(--red-faint);
  color: var(--red);
  border-color: rgba(227,30,37,0.3);
}

.timeline-content h4 { color: var(--text); font-size: 1.1rem; margin-bottom: 8px; font-family: 'Playfair Display', serif; }
.edu-major { color: var(--red); font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.timeline-content p { color: var(--muted); line-height: 1.7; margin: 0; font-size: 0.875rem; }

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--dark2);
  border: 1px solid rgba(227,30,37,0.2);
}

.cta-section::before { background: var(--red); }
.cta-section h2 { justify-content: center; font-size: 1.9rem; margin-bottom: 12px; }
.cta-section p { color: var(--muted); font-size: 1rem; margin-bottom: 28px; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.cta-btn.primary {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 20px var(--red-glow);
}

.cta-btn.primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--red-glow);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.cta-btn.secondary:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-faint);
  transform: translateY(-2px);
}

/* Toolbox */
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 16px;
}

.tool-item {
  background: var(--dark3);
  padding: 18px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  cursor: pointer;
}

.tool-item:hover {
  border-color: rgba(227,30,37,0.35);
  background: rgba(227,30,37,0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.tool-item img { width: 42px; height: 42px; object-fit: contain; transition: transform 0.25s; }
.tool-item:hover img { transform: scale(1.12); }
.tool-item span { font-size: 0.78rem; color: var(--muted); text-align: center; font-weight: 500; }

/* About detail responsive */
@media (max-width: 768px) {
  .about-detail-page { padding: 95px 5% 60px; }
  .detail-section { padding: 24px 18px; }
  .detail-section h2 { font-size: 1.4rem; }
  .detail-section .skills-grid { grid-template-columns: 1fr; }
  .experience-item { flex-direction: column; padding: 18px; }
  .education-timeline { padding-left: 28px; }
  .timeline-dot { left: -25px; }
  .toolbox-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-btn { justify-content: center; }
}

/* ═══════════════════════════════════════
   HIDE NAVBAR (about.html)
═══════════════════════════════════════ */
.hide-navbar .navbar a { display: none; }

/* ═══════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ═══════════════════════════════════════
   SELECTION
═══════════════════════════════════════ */
::selection { background: var(--red); color: #fff; }
