/* ==========================================================================
   ARI HANGGARA - PORTFOLIO STYLESHEET
   Futuristic Cyber Tech Blue Aesthetic
   ========================================================================== */

:root {
  --bg-main: #060b14;
  --bg-gradient: radial-gradient(circle at 80% 20%, #0d2142 0%, #060b14 60%);
  --card-bg: linear-gradient(145deg, rgba(12, 25, 46, 0.82) 0%, rgba(7, 16, 30, 0.92) 100%);
  --card-border: rgba(43, 108, 196, 0.28);
  --card-border-hover: rgba(56, 189, 248, 0.6);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 112, 243, 0.08);
  
  --primary-blue: #0070f3;
  --primary-blue-hover: #1a82ff;
  --cyan-accent: #38bdf8;
  --cyan-glow: #00d2ff;
  
  --text-white: #ffffff;
  --text-muted: #8ca3c7;
  --text-dim: #5c7499;
  
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-card: 14px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 112, 243, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(0, 210, 255, 0.15) 0%, transparent 45%),
    linear-gradient(to bottom, #060b14 0%, #08101e 50%, #060b14 100%);
  color: var(--text-white);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Grid Accent */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 32s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(ellipse at 18% 72%, rgba(0, 112, 243, 0.1), transparent 36%),
    radial-gradient(ellipse at 78% 34%, rgba(0, 210, 255, 0.08), transparent 34%);
  pointer-events: none;
  z-index: 0;
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

/* Main Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 32px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 20px;
  position: relative;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.2px;
  transition: var(--transition);
}

.nav-brand:hover .brand-name {
  color: var(--cyan-accent);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* Nav Menu Pills */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #a5b7d0;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link.active {
  background: var(--primary-blue);
  color: var(--text-white);
  box-shadow: 0 0 18px rgba(0, 112, 243, 0.65);
  font-weight: 600;
}

/* Download CV Button */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-white);
  background: rgba(14, 28, 52, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-cv svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.btn-cv:hover {
  border-color: var(--cyan-accent);
  background: rgba(0, 112, 243, 0.25);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.btn-cv:hover svg {
  transform: translateY(2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  min-height: 430px;
  margin-bottom: 30px;
  position: relative;
}

/* Hero Left Cyber Hex Accent */
.hero-left-accent-img {
  position: absolute;
  left: -24px;
  top: 10%;
  height: 80%;
  width: auto;
  pointer-events: none;
  opacity: 0.28;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.35));
}

.hero-left {
  padding-right: 28px;
  z-index: 2;
}

.language-switcher {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 7px;
  background: rgba(14, 28, 52, 0.55);
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flag-icon {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  object-fit: cover;
  background-color: #fff;
}
.language-option:hover,
.language-option.active {
  border-color: var(--cyan-accent);
  background: rgba(0, 112, 243, 0.22);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.26);
  opacity: 1;
  transform: translateY(-1px);
}

.language-option:focus-visible {
  outline: 2px solid var(--cyan-accent);
  outline-offset: 2px;
}

.hero-greeting {
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.hero-name {
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #70b4ff 0%, #38bdf8 45%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.35));
  margin-bottom: 10px;
  letter-spacing: -0.8px;
}

.hero-role {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-white);
  background: var(--primary-blue);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 112, 243, 0.45);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  box-shadow: 0 6px 24px rgba(0, 112, 243, 0.7);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-white);
  background: rgba(11, 21, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--cyan-accent);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

/* Hero Right: HUD Frame & City Backdrop */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.hero-composite-wrap {
  position: relative;
  width: 100%;
  max-width: 590px;
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(205px, 1fr);
  align-items: center;
  gap: 0;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 0.88;
  max-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.52);
  border-radius: 26px;
  background: linear-gradient(145deg, #12355f, #07101e);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 32px rgba(0, 112, 243, 0.2);
  animation: portrait-float 6s ease-in-out infinite;
}

.hero-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(4, 12, 24, 0.72));
  pointer-events: none;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  display: block;
}

.hero-photo-badge {
  position: absolute;
  left: 16px;
  bottom: 15px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(4, 14, 28, 0.72);
  color: #d9f4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.hero-capabilities {
  position: relative;
  z-index: 2;
  margin-left: -20px;
  padding: 20px 14px 20px 24px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10, 28, 52, 0.93), rgba(7, 16, 30, 0.95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.hero-capabilities-label {
  margin: 0 0 12px 8px;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hotspot-cap {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d7e5f5;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.hotspot-cap::before {
  content: '';
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
}

.hotspot-cap:hover,
.hotspot-cap:focus-visible {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.1);
  color: #fff;
  transform: translateX(3px);
  outline: none;
}

/* ==========================================================================
   CARDS COMMON STYLES
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.cyber-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 22px 22px 20px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cyber-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 20px;
  height: 20px;
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.card-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.2px;
}

.card-action-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.card-action-link:hover {
  color: var(--text-white);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  transform: translateX(3px);
}

/* ==========================================================================
   MIDDLE ROW SECTIONS: ABOUT, SKILLS, TOOLS
   ========================================================================== */

/* About Me Card */
.card-about .card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan-accent);
  background: rgba(14, 28, 52, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  align-self: flex-start;
  transition: var(--transition);
}

.btn-learn-more:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan-accent);
  color: var(--text-white);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  transform: translateX(2px);
}

/* Skills Card */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
  justify-content: center;
}

.skill-item {
  cursor: pointer;
  transition: var(--transition);
}

.skill-item:hover .skill-name {
  color: var(--cyan-accent);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #cbd5e1;
  transition: var(--transition);
}

.skill-percent {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cyan-accent);
}

.skill-bar-track {
  width: 100%;
  height: 7px;
  background: #0d1a2d;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(41, 105, 189, 0.2);
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0070f3 0%, #38bdf8 100%);
  border-radius: 9999px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 8px;
  background: #ffffff;
  border-radius: 50%;
  filter: blur(1px);
}

/* Tools & Technologies Card */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex-grow: 1;
  align-content: center;
}

.tool-tile {
  background: rgba(14, 27, 48, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  padding: 8px;
}

.tech-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.25s ease;
}

.tech-php { color: #7a86ff; }
.tech-mysql { color: #e48e00; }
.tech-java { color: #f0b500; }
.tech-html { color: #ff6b35; }
.tech-css { color: #3d9ae2; }
.tech-python { color: #4ec9ff; }
.tech-microsoft { color: #59a8ff; }
.tech-linux { color: #f7c948; }

.tool-tile img,
.tool-tile svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}

.tool-tile img[src*="microsoft.svg"] {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}

.tool-tile:hover {
  background: rgba(22, 44, 76, 0.85);
  border-color: var(--cyan-accent);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.tool-tile:hover img,
.tool-tile:hover svg {
  transform: scale(1.08);
}

/* Tooltip */
.tool-tile::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #091527;
  color: var(--text-white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  max-width: min(220px, calc(100vw - 32px));
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.tool-tile:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tool-tile:nth-child(5n + 1)::before {
  left: 0;
  transform: translateY(4px);
}

.tool-tile:nth-child(5n)::before {
  right: 0;
  left: auto;
  transform: translateY(4px);
}

.tool-tile:nth-child(5n + 1):hover::before,
.tool-tile:nth-child(5n):hover::before {
  transform: translateY(0);
}

/* ==========================================================================
   BOTTOM ROW SECTIONS: EXPERIENCE, PROJECTS, LET'S CONNECT
   ========================================================================== */

/* Experience Card */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
  flex-grow: 1;
  justify-content: center;
}

/* Vertical Timeline Line */
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 25px;
  width: 2px;
  background: linear-gradient(to bottom, #0070f3, #38bdf8, transparent);
  box-shadow: 0 0 8px rgba(0, 112, 243, 0.5);
}

.timeline-item {
  position: relative;
  cursor: pointer;
  padding: 2px 4px 2px 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.timeline-item:hover {
  background: rgba(56, 189, 248, 0.08);
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #060b14;
  border: 3px solid #0070f3;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 112, 243, 0.8);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 1);
  transform: scale(1.15);
}

.timeline-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 3px;
}

.timeline-company {
  font-size: 11.5px;
  color: #7f99be;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Projects Card */
.projects-mini-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex-grow: 0;
}

.project-mini-card {
  background: rgba(10, 21, 38, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-mini-card:hover {
  border-color: var(--cyan-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
}

.project-thumb-wrap {
  width: 100%;
  height: 82px;
  overflow: hidden;
  position: relative;
  background: #091527;
}

.project-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-mini-card:hover .project-thumb-wrap img {
  transform: scale(1.1);
}

.project-featured-image {
  margin: 0 0 8px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  background: #030b18;
}

.project-featured-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-featured-trigger img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.25s ease, transform 0.35s ease;
}

.project-featured-trigger:hover img,
.project-featured-trigger:focus-visible img {
  filter: brightness(0.7);
  transform: scale(1.025);
}

.project-featured-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 999px;
  background: rgba(3, 11, 24, 0.82);
  color: #e4f7ff;
  font-size: 11px;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-featured-trigger:hover .project-featured-hint,
.project-featured-trigger:focus-visible .project-featured-hint {
  opacity: 1;
  transform: translateY(0);
}

.project-mini-info {
  padding: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-mini-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
  line-height: 1.3;
}

.project-mini-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Let's Connect Card */
.card-connect {
  position: relative;
}

.card-connect .card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.connect-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-white);
  background: rgba(14, 27, 48, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-social svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.btn-social:hover {
  border-color: var(--cyan-accent);
  background: rgba(56, 189, 248, 0.16);
  color: var(--text-white);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* Handwritten Signature */
.signature-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  cursor: pointer;
  transition: var(--transition);
}

.signature-img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
  transition: var(--transition);
}

.signature-wrap:hover .signature-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.9));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: 16px 0 8px;
  color: #556c8e;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.reveal-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes grid-drift {
  to { background-position: 50px 50px; }
}

@keyframes ambient-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@keyframes portrait-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   INTERACTIVE MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #0b172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 112, 243, 0.3);
  position: relative;
  transform: scale(0.94) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.image-lightbox {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 4, 12, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox-content {
  display: block;
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  box-shadow: 0 0 35px rgba(0, 112, 243, 0.28);
}

.image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(10, 21, 38, 0.9);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  position: sticky;
  top: 0;
  background: #0b172a;
  z-index: 10;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a5b7d0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.modal-content {
  padding: 24px;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.65;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #091322;
  border-radius: 0 0 16px 16px;
}

/* Modal Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: #060e1a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 13px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Category Filter Tabs for Projects Modal */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(14, 28, 52, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #94a3b8;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: 0 0 12px rgba(0, 112, 243, 0.5);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #09172c;
  border: 1px solid var(--cyan-accent);
  color: var(--text-white);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Tablet & Smaller Laptops */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .hero-left {
    padding-right: 0;
  }

  .hero-right {
    justify-content: center;
  }

  .hero-composite-wrap {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-portrait-frame {
    max-height: 360px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid > .cyber-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 12px 16px 24px;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: #0a1526;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-name {
    font-size: clamp(38px, 9vw, 52px);
  }

  .hero-greeting {
    font-size: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .card-grid > .cyber-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .tools-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-composite-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(170px, 1fr);
  }

  .hero-capabilities {
    margin-left: -12px;
    padding: 16px 8px 16px 15px;
  }

  .hotspot-cap {
    min-height: 40px;
    padding: 7px 5px;
    font-size: 10px;
  }

  .hero-capabilities-label {
    margin-left: 5px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-element {
    opacity: 1;
    transform: none;
  }
}

@page {
  size: A4;
  margin: 0;
}

#printable-cv {
  display: none;
}

@media print {
  html,
  body {
    width: 210mm;
    min-width: 210mm;
    min-height: 297mm;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    color: #172033 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .page-wrapper,
  .modal-overlay,
  .image-lightbox {
    display: none !important;
  }

  #printable-cv {
    display: block !important;
    width: 210mm;
    color: #172033 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    line-height: 1.4;
  }

  .pdf-page {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 210mm;
    min-height: 297mm;
    padding: 14mm 15mm 16mm;
    overflow: hidden;
    background: #fff;
    break-after: page;
    page-break-after: always;
  }

  .pdf-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .pdf-cover {
    margin: -14mm -15mm 6mm;
    padding: 13mm 15mm 8mm;
    color: #fff;
    background: #071a33;
    border-bottom: 4px solid #16a7d7;
  }

  .pdf-identity {
    display: flex;
    align-items: center;
    gap: 7mm;
  }

  .pdf-monogram {
    display: grid;
    width: 29mm;
    height: 29mm;
    flex: 0 0 29mm;
    place-items: center;
    color: #fff;
    background: #0e5480;
    border: 1.2mm solid #16a7d7;
    border-radius: 50%;
    font-size: 15pt;
    font-weight: 700;
    letter-spacing: .5mm;
  }

  .pdf-portrait {
    width: 29mm;
    height: 29mm;
    flex: 0 0 29mm;
    object-fit: cover;
    border: 1.2mm solid #16a7d7;
    border-radius: 50%;
    background: #fff;
  }

  .pdf-name {
    margin: 0 0 1mm;
    color: #fff;
    font-size: 25pt;
    line-height: 1.1;
    letter-spacing: .2mm;
  }

  .pdf-role {
    margin: 0 0 3mm;
    color: #8de4ff;
    font-size: 11pt;
    font-weight: 600;
  }

  .pdf-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1mm 5mm;
    color: #e2edf8;
    font-size: 8.5pt;
  }

  .pdf-contact a {
    color: inherit;
    text-decoration: none;
  }

  .pdf-section {
    margin: 0 0 5mm;
  }

  .pdf-section-title {
    margin: 0 0 2.5mm;
    padding-bottom: 1.2mm;
    color: #0c4273;
    font-size: 12pt;
    line-height: 1.2;
    border-bottom: .45mm solid #19a5d2;
    break-after: avoid;
    page-break-after: avoid;
  }

  .pdf-summary {
    margin: 0;
    color: #35445a;
    font-size: 10pt;
    line-height: 1.55;
  }

  .pdf-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4mm;
  }

  .pdf-entry,
  .pdf-tool,
  .pdf-capability,
  .pdf-project {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pdf-entry {
    margin: 0 0 2.5mm;
    padding-left: 3mm;
    border-left: .8mm solid #19a5d2;
  }

  .pdf-entry-heading {
    display: flex;
    justify-content: space-between;
    gap: 4mm;
    color: #15263e;
    font-weight: 700;
  }

  .pdf-entry-meta {
    color: #52657e;
    font-size: 8.5pt;
  }

  .pdf-entry p,
  .pdf-tool p,
  .pdf-capability p,
  .pdf-project p {
    margin: 1mm 0 0;
    color: #43536a;
  }

  .pdf-bullets {
    margin: 1mm 0 0;
    padding-left: 4mm;
    color: #43536a;
  }

  .pdf-bullets li {
    margin: 0 0 .6mm;
  }

  .pdf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1mm;
    margin-top: 1.5mm;
  }

  .pdf-tag {
    padding: .5mm 1.7mm;
    color: #17456b;
    background: #eaf5fa;
    border: .2mm solid #c6e5f0;
    border-radius: 1mm;
    font-size: 7.5pt;
  }

  .pdf-skill-group {
    margin-bottom: 2mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pdf-skill-group h3,
  .pdf-tool h3,
  .pdf-capability h3,
  .pdf-project h3 {
    margin: 0;
    color: #15263e;
    font-size: 9.5pt;
  }

  .pdf-skill-group p,
  .pdf-capability .pdf-case {
    color: #52657e;
    font-size: 8pt;
  }

  .pdf-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5mm 3mm;
  }

  .pdf-tool {
    padding: 2mm 2.5mm;
    border: .25mm solid #d5e0ea;
    border-radius: 1.5mm;
  }

  .pdf-tool p,
  .pdf-tool .pdf-tags {
    font-size: 7.5pt;
  }

  .pdf-capability {
    margin-bottom: 3mm;
  }

  .pdf-capability .pdf-bullets,
  .pdf-project .pdf-bullets {
    font-size: 8pt;
  }

  .pdf-capability .pdf-case {
    margin-top: 1.2mm;
    padding: 1.5mm 2mm;
    background: #f0f7fb;
    border-left: .8mm solid #19a5d2;
  }

  .pdf-project {
    margin-bottom: 4mm;
    padding-bottom: 2mm;
    border-bottom: .25mm solid #d5e0ea;
  }

  .pdf-project-heading {
    display: flex;
    justify-content: space-between;
    gap: 4mm;
    align-items: baseline;
  }

  .pdf-project-status {
    color: #0c6b8f;
    font-size: 7.5pt;
    text-align: right;
  }

  .pdf-project .pdf-tagline {
    color: #0c6b8f;
    font-weight: 600;
  }

  .pdf-footer {
    margin-top: auto;
    padding-top: 3mm;
    color: #718198;
    border-top: .25mm solid #d5e0ea;
    font-size: 7pt;
    letter-spacing: .3mm;
    text-align: right;
  }
}

/* Compact portfolio layout matching the reference */
body {
  background-color: #030b18;
  background-image:
    radial-gradient(ellipse at 82% 28%, rgba(0, 94, 178, 0.18), transparent 38%),
    linear-gradient(115deg, #041022 0%, #020916 52%, #031126 100%);
}

.page-wrapper {
  width: 100%;
  max-width: none;
  padding: 0;
}

.navbar {
  min-height: 44px;
  padding: 5px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.13);
  background: rgba(2, 8, 18, 0.72);
}

.nav-brand {
  gap: 8px;
}

.brand-name {
  font-size: 13px;
}

.navbar nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-menu {
  gap: 8px;
}

.nav-link {
  padding: 5px 13px;
  font-size: 11px;
}

.navbar > div {
  gap: 8px;
}

.btn-cv {
  padding: 6px 13px;
  font-size: 11px;
}

.hero-section {
  min-height: clamp(258px, 42vh, 380px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0 0 0 clamp(36px, 9.5vw, 140px);
  overflow: hidden;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  background:
    radial-gradient(ellipse at 76% 54%, rgba(0, 112, 243, 0.22), transparent 38%),
    linear-gradient(115deg, #030b18 0%, #020916 52%, #06172e 100%);
}

.hero-left {
  padding-right: 0;
}

.hero-left-accent-img {
  left: 0;
  top: 5%;
  height: 90%;
  opacity: 0.62;
}

.hero-greeting {
  font-size: clamp(21px, 2.5vw, 29px);
  margin-bottom: 0;
}

.hero-greeting span {
  color: #43d5f7;
}

.hero-name {
  margin-bottom: 3px;
  font-size: clamp(42px, 5.2vw, 64px);
  letter-spacing: -1.7px;
  background-image: linear-gradient(105deg, #00c8ff 0%, #61d9ff 47%, #f5fbff 76%, #29aaff 100%);
  filter: none;
}

.hero-role {
  margin-bottom: 9px;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-desc {
  margin-bottom: 15px;
  font-size: 11px;
  line-height: 1.55;
}

.hero-actions {
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  padding: 8px 17px;
  font-size: 10px;
}

.hero-composite-wrap {
  height: 100%;
  max-width: 570px;
  grid-template-columns: minmax(0, 1.05fr) minmax(155px, 0.78fr);
}

.hero-portrait-frame {
  align-self: center;
  height: min(100%, 330px);
  max-height: 330px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(12, 72, 131, 0.7), transparent 72%),
    transparent;
  box-shadow: none;
  animation: none;
}

.hero-portrait-frame::after {
  display: none;
}

.hero-main-img {
  object-position: center center;
  mix-blend-mode: normal;
  filter: url(#ari-white-background);
}

.image-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-photo-badge {
  display: none;
}

.hero-capabilities {
  margin-left: -10px;
  padding: 12px 0 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-capabilities-label {
  margin: 0 0 8px 8px;
  font-size: 9px;
  display: none;
}

.hotspot-cap {
  min-height: 28px;
  padding: 4px 0;
  font-size: 9px;
}

.hotspot-cap::before {
  display: none;
}

.hotspot-cap svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  color: #e4f7ff;
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.45));
}

.card-grid {
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.card-grid:first-of-type {
  height: max(153px, 17vh);
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: 1.2fr 0.97fr 1.08fr;
}

.card-grid:nth-of-type(2) {
  height: max(159px, 18vh);
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: 0.84fr 1.22fr 0.94fr;
}

.cyber-card {
  min-width: 0;
  min-height: 0;
  padding: 16px 21px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

.cyber-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.card-grid > .cyber-card + .cyber-card {
  border-left: 1px solid rgba(56, 189, 248, 0.12);
}

.card-grid > .cyber-card:first-child {
  padding-left: clamp(24px, 5.2vw, 76px);
}

.card-header {
  margin-bottom: 8px;
}

.card-title-wrap {
  gap: 9px;
}

.card-icon {
  width: 22px;
  height: 22px;
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card-title {
  font-size: 14px;
}

.card-about .card-body,
.card-connect .card-body {
  margin-bottom: 9px;
  font-size: 10px;
  line-height: 1.5;
}

.card-about .card-body {
  font-size: 9px;
  line-height: 1.35;
}

.btn-learn-more {
  padding: 5px 12px;
  font-size: 9px;
}

.skills-list {
  gap: 6px;
}

.skill-header {
  margin-bottom: 3px;
}

.skill-name,
.skill-percent {
  font-size: 8px;
}

.skill-bar-track {
  height: 4px;
}

.tools-grid {
  flex-grow: 0;
  grid-template-columns: repeat(5, minmax(0, 42px));
  justify-content: space-between;
  align-content: start;
  gap: 7px;
}

.tool-tile {
  padding: 6px;
  border-radius: 8px;
}

.tool-tile img,
.tool-tile svg {
  width: 25px;
  height: 25px;
}

.timeline {
  gap: 9px;
  padding-left: 17px;
}

.timeline::before {
  left: 4px;
  top: 8px;
  bottom: 12px;
}

.timeline-dot {
  left: -17px;
  width: 11px;
  height: 11px;
  border-width: 2px;
}

.timeline-title {
  font-size: 9px;
  line-height: 1.2;
}

.timeline-company,
.timeline-desc {
  margin-bottom: 2px;
  font-size: 7px;
  line-height: 1.25;
}

.projects-mini-row {
  gap: 8px;
}

.project-mini-card {
  border-radius: 6px;
}

.project-thumb-wrap {
  height: 50px;
}

.project-mini-info {
  padding: 5px 6px;
}

.project-mini-title {
  font-size: 8px;
}

.project-mini-desc {
  font-size: 7px;
}

.card-action-link {
  font-size: 8px;
}

.card-connect .card-body {
  max-width: 190px;
}

.connect-buttons {
  gap: 5px;
  margin-bottom: 5px;
}

.btn-social {
  gap: 4px;
  padding: 4px 8px;
  font-size: 8px;
}

.btn-social svg {
  width: 12px;
  height: 12px;
}

.signature-wrap {
  position: absolute;
  right: 12px;
  bottom: 7px;
  width: 105px;
}

.footer {
  padding: 7px 12px;
  font-size: 8px;
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 12px;
    margin: 0;
  }

  .hero-right {
    justify-content: flex-end;
  }

  .hero-composite-wrap {
    max-width: 570px;
    margin: 0;
  }

  .hero-portrait-frame {
    max-height: 330px;
  }

  .card-grid > .cyber-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid:first-of-type {
    grid-template-columns: 1.2fr 0.97fr 1.08fr;
  }

  .card-grid:nth-of-type(2) {
    grid-template-columns: 0.84fr 1.22fr 0.94fr;
  }
}

@media (max-width: 760px) {
  .hero-left .language-switcher {
    display: flex !important;
    gap: 4px;
    margin-bottom: 8px;
  }

  .hero-left .language-option {
    width: 30px;
    height: 24px;
    flex: 0 0 30px;
    opacity: 1;
  }

  .hero-left .flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
  }

  .navbar {
    min-height: 54px;
    padding: 7px 16px;
  }

  .navbar nav {
    position: static;
    order: 3;
    width: 100%;
    transform: none;
  }

  .nav-menu {
    gap: 4px;
  }

  .nav-menu.mobile-open {
    display: flex;
    align-items: stretch;
  }

  .nav-link {
    padding: 8px 10px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 34px 24px 20px;
  }

  .hero-left {
    padding-right: 0;
  }

  .hero-right {
    justify-content: center;
  }

  .hero-composite-wrap {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .hero-portrait-frame {
    max-height: 300px;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
    padding: 0 18px;
  }

  .card-grid:first-of-type,
  .card-grid:nth-of-type(2) {
    height: auto;
    grid-template-rows: auto;
    grid-template-columns: 1fr !important;
  }

  .cyber-card {
    min-height: 0;
    padding: 17px 12px;
  }

  .card-grid > .cyber-card:first-child {
    padding-left: 12px;
  }

  .card-grid > .cyber-card + .cyber-card {
    border-left: 0;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
  }

  .card-grid > .cyber-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .card-about .card-body,
  .card-connect .card-body {
    font-size: 12px;
  }

  .card-about .card-body {
    font-size: 12px;
    line-height: 1.5;
  }

  .skill-name,
  .skill-percent {
    font-size: 11px;
  }

  .project-thumb-wrap {
    height: 90px;
  }

  .project-mini-title {
    font-size: 11px;
  }

  .project-mini-desc {
    font-size: 9px;
  }

  .timeline-title {
    font-size: 12px;
  }

  .timeline-company,
  .timeline-desc {
    font-size: 10px;
  }
}

@media (min-width: 761px) {
  .card-grid:nth-of-type(2) {
    height: auto;
    grid-template-rows: auto;
  }
}
