/* CSS Root */
:root {
  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc04;
  --g-green: #34a853;

  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --border: #dadce0;
  --text: #202124;
  --text-muted: #5f6368;
  --text-link: #1a0dab;
  --text-url: #006621;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover:
    0 2px 8px 1px rgba(66, 133, 244, 0.18), 0 1px 4px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --font-brand: "Nunito", "Lexend", sans-serif;
  --font-body: "Roboto", sans-serif;
  --font-ui: "Space Grotesk", "Lexend", sans-serif;

  --nav-h: 64px;
  --section-pad: 72px;
}

/* Dark Mode Root */
[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-alt: #242424;
  --bg-card: #222222;
  --border: #333333;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --text-link: #8ab4f8;
  --text-url: #5cb85c;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-hover:
    0 2px 8px 1px rgba(66, 133, 244, 0.3), 0 1px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .hero-section {
  background:
    radial-gradient(
      ellipse 60% 40% at 20% 10%,
      rgba(66, 133, 244, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 35% at 80% 90%,
      rgba(234, 67, 53, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 30% at 50% 50%,
      rgba(251, 188, 4, 0.04) 0%,
      transparent 50%
    ),
    var(--bg);
}

[data-theme="dark"] .hero-search-box,
[data-theme="dark"] .search-dropdown,
[data-theme="dark"] .quick-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .gs-result-card,
[data-theme="dark"] .timeline-card,
[data-theme="dark"] .edu-card,
[data-theme="dark"] .tools-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-card {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .hero-search-input,
[data-theme="dark"] .cf-input,
[data-theme="dark"] .cf-textarea {
  background: transparent;
  color: var(--text);
}

[data-theme="dark"] .cf-input,
[data-theme="dark"] .cf-textarea {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] #main-nav {
  background: var(--bg);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .navbar-collapse {
  background: var(--bg);
  border-top-color: var(--border);
}

[data-theme="dark"] .gs-section-alt {
  background: var(--bg-alt);
}

[data-theme="dark"] .dd-item:hover {
  background: var(--bg-alt);
}

[data-theme="dark"] .hero-btn-primary {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .hero-btn-primary:hover {
  background: #333;
}

[data-theme="dark"] .maps-placeholder {
  background: #1e1e1e;
  border-color: var(--border);
}

[data-theme="dark"] .maps-inner {
  background: #2a2a2a;
}

[data-theme="dark"] .site-footer {
  background: var(--bg-alt);
  border-color: var(--border);
}

[data-theme="dark"] .profile-status-dot {
  border-color: var(--bg-card);
}

[data-theme="dark"] .skill-track {
  background: var(--border);
}

[data-theme="dark"] .tool-badge-img {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-muted);
}

[data-theme="dark"] .skill-chip {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-muted);
}

/* Dark mode toggle button */
.dark-mode-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dark-mode-btn:hover {
  background: var(--g-blue);
  color: #fff;
  border-color: var(--g-blue);
}

/* Index */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
}

/* Google Text Color */
.g-blue {
  color: var(--g-blue) !important;
}
.g-red {
  color: var(--g-red) !important;
}
.g-yellow {
  color: var(--g-yellow) !important;
}
.g-green {
  color: var(--g-green) !important;
}

/* Navbar */
#main-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}

#main-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}

.logo-text img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

/* Nav Search */
.nav-searchbar {
  max-width: 540px;
}

.search-input-wrap {
  position: relative;
}

.search-icon-nav {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  z-index: 1;
  pointer-events: none;
}

.nav-search-input {
  padding: 0.45rem 1rem 0.45rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--bg-alt);
  transition: all 0.2s ease;
  width: 100%;
}

.nav-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
  border-color: var(--g-blue);
  background: #fff;
}

/* Nav Pills */
.nav-pill {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-pill:hover {
  background: rgba(66, 133, 244, 0.08);
  color: var(--g-blue);
}

.nav-pill.active-pill {
  background: var(--g-blue);
  color: #fff !important;
}

/* Hamburger */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Section Hero */
.hero-section {
  min-height: calc(100vh - var(--nav-h));
  padding: 60px 20px 80px;
  background:
    radial-gradient(
      ellipse 60% 40% at 20% 10%,
      rgba(66, 133, 244, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 35% at 80% 90%,
      rgba(234, 67, 53, 0.04) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 30% at 50% 50%,
      rgba(251, 188, 4, 0.03) 0%,
      transparent 50%
    ),
    var(--bg);
}

.hero-tagline {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeUp 0.6s ease 0.3s both;
}

.hero-logo-big {
  font-family: var(--font-brand);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  animation: fadeUp 0.7s ease 0.4s both;
}

.hero-dot {
  color: var(--text-muted);
}

/* Hero Search Box */
.hero-search-wrap {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeUp 0.7s ease 0.5s both;
}

.hero-search-box {
  max-width: 680px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.2rem;
  background: #fff;
  box-shadow: var(--shadow-md);
  gap: 12px;
  transition: box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
  box-shadow: var(--shadow-hover);
  border-color: rgba(66, 133, 244, 0.4);
}

.hero-search-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-search-input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  width: 100%;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-mic-btn {
  border: none;
  background: none;
  color: var(--g-blue);
  font-size: 1.15rem;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s;
}

.hero-mic-btn:hover {
  color: var(--g-red);
}

/* Dropdown */
.search-dropdown {
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: none;
  overflow: hidden;
  position: relative;
  z-index: 10;
  margin-top: 4px;
}

.search-dropdown.visible {
  display: block;
}

.search-dropdown-inner {
  padding: 8px 0;
}

.dd-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.dd-item:hover {
  background: var(--bg-alt);
}

.dd-item i {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hero Buttons */
.hero-btns {
  animation: fadeUp 0.7s ease 0.6s both;
}

.hero-btn-primary {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s ease;
}

.hero-btn-primary:hover {
  background: #e8eaed;
  box-shadow: var(--shadow-sm);
  border-color: #bdc1c6;
}

.hero-btn-secondary {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--g-blue);
  border: 1px solid var(--g-blue);
  color: #fff;
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  background: #3367d6;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.35);
  color: #fff;
}

/* Quick Info Cards */
.quick-info-row {
  animation: fadeUp 0.7s ease 0.7s both;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: all 0.2s ease;
}

.quick-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.qc-icon {
  font-size: 1rem;
}
.qc-label {
  color: var(--text);
  font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUp 0.7s ease 0.9s both;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrowBounce 1.8s ease infinite;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ============================================================
   GOOGLE SEARCH RESULT SECTIONS
   ============================================================ */
.gs-section {
  padding: var(--section-pad) 20px;
}

.gs-section-alt {
  background: var(--bg-alt);
}

.gs-tab-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.gs-tab {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.gs-tab:hover {
  background: rgba(66, 133, 244, 0.08);
  color: var(--g-blue);
}

.gs-tab.active {
  background: rgba(66, 133, 244, 0.12);
  color: var(--g-blue);
  border-color: var(--g-blue);
}

.gs-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0 6px;
}

.gs-result-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Google Result Card */
.gs-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.gs-result-card:hover {
  box-shadow: var(--shadow-md);
}

.gs-result-url {
  font-size: 0.78rem;
  color: var(--text-url);
  font-family: var(--font-body);
  margin-bottom: 4px;
}

.gs-result-title {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  color: var(--text-link);
  margin-bottom: 8px;
  font-weight: 500;
}

.gs-result-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
  text-align: justify;
}

/* ============================================================
   ABOUT — PROFILE CARD
   ============================================================ */
.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  top: 80px;
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
}

.profile-img-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.profile-img-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
}

.profile-img-placeholder img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: var(--g-green);
  border: 3px solid #fff;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(52, 168, 83, 0);
  }
}

.profile-name {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.profile-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.profile-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.profile-social-btn:hover {
  color: var(--sc);
  border-color: var(--sc);
  background: rgba(var(--sc), 0.05);
  transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 576px) {
  .profile-widgets {
    gap: 12px;
  }

  .profile-widgets .widget-card {
    padding: 17px;
    border-radius: 14px;
  }

  .profile-widgets .widget-header {
    margin-bottom: 17px;
  }

  .profile-widgets .clock-time {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    letter-spacing: 0;
  }

  .profile-widgets .clock-date {
    font-size: 0.82rem;
  }

  .profile-widgets .weather-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .profile-widgets .weather-icon i {
    font-size: 2rem;
  }

  .profile-widgets .weather-temperature {
    font-size: 3rem;
  }

  .profile-widgets .weather-detail {
    padding: 11px 8px;
    gap: 7px;
  }

  .profile-widgets .weather-detail > i {
    font-size: 1.05rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .profile-widgets .live-dot {
    animation: none;
  }

  .profile-widgets .widget-card {
    transition: none;
  }
}

/* Skill Bars */
.skill-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-percent {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.skill-track {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--c);
  border-radius: var(--radius-pill);
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-fill.animated {
  width: var(--w);
}

/* ============================================================
   JOURNEY — TIMELINE (Flex-based, Mobile-first)
   ============================================================ */
.timeline-wrap {
  padding: 10px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--g-blue) 0%,
    var(--g-red) 33%,
    var(--g-yellow) 66%,
    var(--g-green) 100%
  );
  transform: translateX(-50%);
  opacity: 0.25;
}

.timeline-item {
  margin-bottom: 32px;
}

/* Desktop: alternating left/right layout */
.tl-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.tl-card-col {
  flex: 1;
}
.tl-empty-col {
  flex: 1;
}

.tl-dot-col {
  flex: 0 0 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tl-left .tl-card-col {
  padding-right: 24px;
  text-align: right;
}
.tl-right .tl-card-col {
  padding-left: 24px;
}

.timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-dot-active-1 {
  animation: pulse-ring-1 2.5s infinite;
}

@keyframes pulse-ring-1 {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 123, 255, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(52, 168, 83, 0),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

.timeline-dot-active-2 {
  animation: pulse-ring-2 2.5s infinite;
}

@keyframes pulse-ring-2 {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(248, 12, 0, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(52, 168, 83, 0),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

.timeline-dot-active-3 {
  animation: pulse-ring-3 2.5s infinite;
}

@keyframes pulse-ring-3 {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(247, 169, 1, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(52, 168, 83, 0),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

.timeline-dot-active-4 {
  animation: pulse-ring-4 2.5s infinite;
}

@keyframes pulse-ring-4 {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(52, 168, 83, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(52, 168, 83, 0),
      0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

.timeline-dot img {
  width: 60%;
  height: 60%;
  object-fit: cover;
  border-radius: 50%;
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  text-align: left;
  margin-bottom: 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.timeline-card-active {
  border-color: var(--g-green);
  background: rgba(52, 168, 83, 0.02);
  transform: scale(0.98);
}

.tc-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--bc);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.tc-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.tc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tc-tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--tc);
  border: 1px solid var(--tc);
  background: transparent;
}

/* Mobile Timeline — single column left-aligned */
@media (max-width: 767.98px) {
  .timeline-wrap {
    padding: 0;
  }

  .timeline-wrap::before {
    display: none;
  }

  .timeline-line {
    display: none;
  }

  .timeline-item {
    margin-bottom: 20px;
  }

  .tl-row {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 14px;
  }

  .tl-left,
  .tl-right {
    flex-direction: row !important;
  }

  .tl-empty-col {
    display: none !important;
  }

  .tl-dot-col {
    flex: 0 0 42px;
    justify-content: center;
    padding-top: 6px;
  }

  .timeline-dot {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .timeline-dot img {
    width: 70%;
    height: 70%;
  }

  .tl-card-col {
    flex: 1;
    padding: 0 !important;
  }

  .timeline-card {
    padding: 14px;
    border-radius: 12px;
  }

  .tc-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .tc-title {
    font-size: 0.95rem;
  }

  .tc-desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .tc-tags {
    gap: 4px;
  }

  .tc-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  .skill-chip {
    transform: scale(0.9);
    transform-origin: left;
  }
}

/* ============================================================
   STUDY — EDU CARDS
   ============================================================ */
.edu-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.edu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.edu-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--eic);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.edu-badge {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ebc);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.edu-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.edu-inst {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.edu-highlight-pill {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(66, 133, 244, 0.1);
  color: var(--php, var(--g-blue));
  border: 1px solid rgba(66, 133, 244, 0.2);
}

/* Tools Card */
.tools-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.tools-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-badge {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: default;
}

.tool-badge:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  border-color: var(--g-blue);
  transform: translateY(-2px);
}

/* Tool Badge with Image */
.tool-badge-img {
  flex: 0 1 auto;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
  min-width: 72px;
  text-align: center;
}

.tool-badge-img img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tool-badge-img:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  border-color: var(--g-blue);
  color: var(--text-muted);
  transform: translateY(-3px);
}

@media (max-width: 576px) {
  .tool-badge-img {
    width: 60px;
    padding: 10px 12px;
    font-size: 0.7rem;
  }

  .tool-badge-img img {
    width: 28px;
    height: 28px;
  }
}

/* Skills Marquee */
.skills-marquee-wrap {
  overflow: hidden;
}

.skills-marquee-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marquee-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-inner {
  display: flex;
  gap: 10px;
  width: max-content;
}

.marquee-fwd {
  animation: marquee-forward 20s linear infinite;
}

.marquee-rev {
  animation: marquee-reverse 20s linear infinite;
}

@keyframes marquee-forward {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 1;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skill-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (hover: none) {
  .skill-chip {
    pointer-events: none;
  }
}

/* Pause marquee on hover */
.marquee-track:hover .marquee-fwd,
.marquee-track:hover .marquee-rev {
  animation-play-state: paused;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.project-thumb {
  height: 160px;
  background: var(--pc);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
}

.project-thumb-inner {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link-btn {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-link-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.project-body {
  padding: 18px 20px;
}

.project-url {
  font-size: 0.75rem;
  color: var(--text-url);
  margin-bottom: 4px;
}

.project-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-link);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ptag {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--ptc);
  border: 1px solid var(--ptc);
  background: transparent;
}

.pstat {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Filter hidden */
.project-item.hidden {
  display: none !important;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ci-icon {
  width: 44px;
  height: 44px;
  background: var(--cic);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ci-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin-bottom: 2px;
}

.ci-value {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.available-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--g-green);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

/* Maps Placeholder */
.maps-placeholder {
  background: #e8edf3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 240px;
  position: relative;
}

.maps-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.maps-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.maps-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 133, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

/* Contact Form */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.cf-title {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.cf-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.cf-input-wrap {
  position: relative;
}

.cf-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.cf-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: all 0.2s ease;
  outline: none;
}

.cf-input:focus {
  border-color: var(--g-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.12);
}

.cf-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-alt);
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: all 0.2s ease;
}

.cf-textarea:focus {
  border-color: var(--g-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.12);
}

.cf-submit-btn {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--g-blue);
  border: none;
  color: #fff;
  transition: all 0.25s ease;
}

.cf-submit-btn:hover {
  background: #3367d6;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
  transform: translateY(-1px);
}

.cf-submit-btn:active {
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 28px 20px;
}

.footer-logo {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--g-blue);
}

.footer-divider {
  height: 1px;
  background: var(--border);
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--g-blue);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #3367d6;
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   TOAST
   ============================================================ */
.gs-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 9000;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  color: #000;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================
   INTERSECTION OBSERVER ANIMATIONS
   ============================================================ */
.gs-animate {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — COMPREHENSIVE
   ============================================================ */

/* ── XL Desktop (1400px+) ── */
@media (min-width: 1400px) {
  :root {
    --section-pad: 100px;
  }
  .hero-logo-big {
    font-size: 8rem;
  }
  .container-lg {
    max-width: 1200px;
  }
}

/* ── Desktop (1200px) ── */
@media (min-width: 1200px) {
  :root {
    --section-pad: 90px;
  }
  .hero-logo-big {
    font-size: 7rem;
  }
}

/* ── Tablet Landscape (992px–1199px) ── */
@media (max-width: 1199.98px) {
  :root {
    --section-pad: 70px;
  }
  .profile-card {
    position: static;
  }
  .nav-searchbar {
    max-width: 380px;
  }
}

/* ── Tablet Portrait (768px–991px) ── */
@media (max-width: 991.98px) {
  :root {
    --section-pad: 60px;
    --nav-h: 60px;
  }

  /* Navbar */
  .logo-text {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .logo-text img {
    width: 35px;
    height: 35px;
  }

  .profile-card {
    position: static;
  }

  /* Hero */
  .hero-section {
    padding: 48px 24px 64px;
  }
  .hero-logo-big {
    font-size: clamp(3rem, 10vw, 5.5rem);
    letter-spacing: -1.5px;
  }
  .hero-tagline {
    font-size: 0.85rem;
  }

  /* Timeline — sisi kiri semua di tablet */
  .timeline-line {
    left: 28px;
    width: 2px;
  }
  .timeline-item > .row {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .timeline-item .col-md-5.text-md-end,
  .timeline-item .col-md-5.d-none {
    display: none !important;
  }
  .timeline-item .col-md-2 {
    width: auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    padding: 0 0 10px 4px;
  }
  .timeline-card {
    margin-left: 0;
  }

  /* Projects */
  .project-thumb {
    height: 140px;
  }
}

/* ── Mobile (max 767px) ── */
@media (max-width: 767.98px) {
  :root {
    --section-pad: 48px;
    --nav-h: 58px;
  }

  /* === NAVBAR MOBILE === */
  #main-nav {
    height: auto;
    min-height: var(--nav-h);
  }

  #main-nav .container-fluid {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  /* Mobile nav menu */
  .navbar-collapse {
    background: var(--bg);
    border-top: 1px solid var(--border);
    margin: 10px -16px -10px;
    padding: 12px 16px 16px;
  }

  .navbar-nav {
    gap: 4px !important;
  }

  .nav-pill {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
  }

  .nav-pill:hover,
  .nav-pill.active-pill {
    border-radius: var(--radius-sm);
  }

  /* === HERO MOBILE === */
  .hero-section {
    min-height: auto;
    padding: 40px 16px 56px;
    gap: 0;
  }

  .hero-tagline {
    font-size: 0.78rem;
    margin-bottom: 8px !important;
  }

  .hero-logo-big {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 20px !important;
  }

  .hero-search-wrap {
    width: 100%;
    padding: 0 !important;
    margin-bottom: 20px !important;
  }

  .hero-search-box {
    padding: 0.7rem 1rem;
    gap: 8px;
    border-radius: var(--radius-pill);
  }

  .hero-search-input {
    font-size: 0.92rem;
  }

  .search-dropdown {
    border-radius: var(--radius-sm);
  }
  .dd-item {
    padding: 9px 16px;
    font-size: 0.88rem;
  }

  .hero-btns {
    gap: 10px !important;
    margin-bottom: 28px !important;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    flex: 1;
    text-align: center;
    min-width: 130px;
  }

  /* Quick cards — 2 per baris di mobile */
  .quick-info-row {
    gap: 8px !important;
    padding: 0 !important;
  }

  .quick-card {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    gap: 6px;
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-width: 130px;
  }

  .scroll-indicator {
    display: none;
  } /* Sembunyikan di mobile, hemat ruang */

  /* === SECTION HEADERS MOBILE === */
  .gs-section {
    padding: var(--section-pad) 16px;
  }

  .gs-header-tabs {
    gap: 10px !important;
    flex-wrap: wrap;
  }

  .gs-section-title {
    font-size: 1.3rem;
  }
  .gs-result-count {
    font-size: 0.78rem;
  }

  .gs-tab-bar {
    gap: 4px;
  }
  .gs-tab {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
  }

  /* === ABOUT MOBILE === */
  .gs-result-card {
    padding: 18px 16px;
  }
  .gs-result-title {
    font-size: 1rem;
  }
  .gs-result-desc {
    font-size: 0.88rem;
  }

  .profile-card {
    position: static;
    padding: 22px 18px;
    margin-bottom: 4px;
  }

  .profile-img-placeholder {
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
  }

  .profile-img-wrap {
    width: 80px;
    height: 80px;
  }
  .profile-name {
    font-size: 1rem;
  }
  .profile-title {
    font-size: 0.82rem;
  }

  .skill-label {
    font-size: 0.82rem;
  }
  .skill-percent {
    font-size: 0.78rem;
  }

  /* === TIMELINE MOBILE — handled in timeline section above === */
  .timeline-item {
    margin-bottom: 20px;
  }
  .tc-title {
    font-size: 0.95rem;
  }
  .tc-desc {
    font-size: 0.83rem;
  }

  /* === STUDY MOBILE === */
  .edu-card {
    padding: 20px 18px;
  }
  .edu-icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .edu-title {
    font-size: 0.95rem;
  }
  .edu-desc {
    font-size: 0.83rem;
  }

  .tools-card {
    padding: 20px 16px;
  }
  .tool-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
  }

  /* === PROJECTS MOBILE === */
  .project-thumb {
    height: 130px;
  }
  .project-thumb-inner {
    font-size: 2.8rem;
  }
  .project-body {
    padding: 14px 16px;
  }
  .project-title {
    font-size: 0.95rem;
  }
  .project-desc {
    font-size: 0.82rem;
  }
  .pstat {
    font-size: 0.77rem;
  }

  /* === CONTACT MOBILE === */
  .contact-info-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .ci-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .ci-label {
    font-size: 0.72rem;
  }
  .ci-value {
    font-size: 0.86rem;
  }

  .maps-placeholder {
    height: 130px;
  }

  .contact-form-card {
    padding: 20px 16px;
  }
  .cf-title {
    font-size: 1rem;
  }
  .cf-input,
  .cf-textarea {
    font-size: 0.9rem;
  }
  .cf-submit-btn {
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  /* === FOOTER MOBILE === */
  .site-footer {
    padding: 22px 16px;
  }
  .footer-logo {
    font-size: 1.2rem;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px !important;
  }
  .footer-links a {
    font-size: 0.8rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  /* === BACK TO TOP === */
  .back-to-top {
    bottom: 18px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* === TOAST === */
  .gs-toast {
    width: calc(100% - 32px);
    left: 16px;
    transform: translateX(0) translateY(20px);
    bottom: 20px;
    font-size: 0.84rem;
  }
  .gs-toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* ── Small Mobile (max 480px) ── */
@media (max-width: 480px) {
  .hero-logo-big {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
    letter-spacing: -0.5px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    flex: 1 1 100%;
    width: 100%;
  }

  .quick-card {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
  }

  .gs-section-title {
    font-size: 1.2rem;
  }

  /* Project cards full width */
  .project-thumb {
    height: 120px;
  }

  /* Profile card compact */
  .profile-social-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* Timeline compact */
  .timeline-dot {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .tc-tags {
    gap: 4px;
  }
  .tc-tag {
    font-size: 0.7rem;
  }
}

/* ── Landscape Phone ── */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 28px 16px 40px;
  }

  .hero-logo-big {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    margin-bottom: 12px !important;
  }
  .hero-search-wrap {
    margin-bottom: 14px !important;
  }
  .hero-btns {
    margin-bottom: 16px !important;
  }
  .quick-info-row {
    display: none !important;
  }
}

/* ── Touch Device: disable hover transforms ── */
@media (hover: none) {
  .quick-card:hover,
  .edu-card:hover,
  .project-card:hover,
  .contact-info-card:hover,
  .timeline-card:hover,
  .tool-badge:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .cf-submit-btn:hover {
    transform: none;
  }
  .hero-btn-secondary:hover {
    box-shadow: none;
  }
}
