/* ==========================================================================
   Abdilah — Personal CV / Portfolio
   Dark Gradient Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */

:root {
  --color-bg: #020710;
  --color-bg-lighter: #1A2C37;
  --color-bg-card: rgba(44, 69, 80, 0.3);
  --color-bg-card-hover: rgba(44, 69, 80, 0.5);
  --color-border: rgba(153, 186, 187, 0.12);
  --color-border-hover: rgba(153, 186, 187, 0.25);

  --color-primary: #E8333A;
  --color-secondary: #99BABB;
  --color-accent: #D0060D;
  --color-highlight: #E8333A;

  --color-text: #c8d8d9;
  --color-text-muted: #7a9a9c;
  --color-text-heading: #e4eeef;

  --color-whatsapp: #25D366;

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-display: 'Sora', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;

  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(26, 44, 55, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(62, 94, 104, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(208, 6, 13, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, #020710 0%, #0d1a22 50%, #020710 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background-color: var(--color-primary);
  color: #fff;
}

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

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-heading);
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
  margin-bottom: 16px;
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--color-text-muted); }

a:not(.btn) {
  transition: color var(--transition);
}

a:not(.btn):hover {
  color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   4. Floating Geometric Objects
   -------------------------------------------------------------------------- */

.geo-objects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo {
  position: absolute;
  will-change: transform;
}

.geo-1 {
  width: 150px;
  height: 150px;
  top: 8%;
  left: 5%;
  background: rgba(62, 94, 104, 0.06);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: geo-float 20s ease-in-out infinite;
}

.geo-2 {
  width: 100px;
  height: 100px;
  top: 12%;
  right: 10%;
  background: rgba(153, 186, 187, 0.04);
  border-radius: var(--radius-full);
  animation: geo-float 25s ease-in-out infinite reverse;
}

.geo-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 8%;
  background: rgba(208, 6, 13, 0.04);
  transform: rotate(45deg);
  animation: geo-float 18s ease-in-out infinite;
}

.geo-4 {
  width: 200px;
  height: 200px;
  top: 45%;
  right: 5%;
  background: rgba(44, 69, 80, 0.05);
  border-radius: var(--radius-full);
  animation: geo-float 30s ease-in-out infinite reverse;
}

.geo-5 {
  width: 60px;
  height: 60px;
  bottom: 10%;
  right: 15%;
  background: rgba(153, 186, 187, 0.03);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: geo-float 22s ease-in-out infinite;
}

@keyframes geo-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(12px, -18px, 0); }
  50% { transform: translate3d(-8px, 14px, 0); }
  75% { transform: translate3d(15px, 8px, 0); }
}

/* --------------------------------------------------------------------------
   5. Container
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 7, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(2, 7, 16, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 24px rgba(62, 94, 104, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Language Toggle */
/* Floating Language Switch */
.lang-float {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(2, 7, 16, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.lang-float:hover {
  background: rgba(2, 7, 16, 0.85);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.lang-toggle {
  display: none;
}

/* Hamburger */
/* Hamburger & mobile nav - hidden (always show inline nav) */
.hamburger {
  display: none;
}

.nav-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */

.hero {
  padding-top: 80px;
  padding-bottom: 48px;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-greeting {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-name {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--color-text-heading) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #c42a30 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(232, 51, 58, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(232, 51, 58, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

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

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   9. Section Utilities
   -------------------------------------------------------------------------- */

.section {
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
  color: var(--color-text-heading);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), rgba(153, 186, 187, 0.3));
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   10. About Grid (3-col)
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.about-col {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), background var(--transition);
}

.about-col:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
}

.about-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.about-col-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-secondary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11. Education Cards
   -------------------------------------------------------------------------- */

.edu-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.edu-period {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 500;
}

.edu-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin: 4px 0;
}

.edu-major {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   12. Experience Timeline
   -------------------------------------------------------------------------- */

.timeline,
.timeline-compact {
  position: relative;
  padding-left: 32px;
}

.timeline::before,
.timeline-compact::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 5px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary) 0%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-compact .timeline-item {
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 2px solid var(--color-bg-lighter);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-header {
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-heading);
}

.timeline-compact .timeline-company {
  font-size: 0.875rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.timeline-role {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(62, 94, 104, 0.2);
  color: var(--color-secondary);
  border-radius: 999px;
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.timeline-summary {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 0;
}

.timeline-desc {
  list-style: none;
  margin-top: 8px;
}

.timeline-desc li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.timeline-desc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--color-border-hover);
}

/* --------------------------------------------------------------------------
   13. Skills Groups
   -------------------------------------------------------------------------- */

.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-group {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.skill-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-highlight);
  margin-bottom: 4px;
}

.skill-group-items {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Legacy skill cards (if still in HTML) */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.skill-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  transition: transform var(--transition), border-color var(--transition);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
}

.skill-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.skill-card-icon svg {
  width: 100%;
  height: 100%;
}

.skill-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-heading);
}

.skill-card-items {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. Portfolio Section
   -------------------------------------------------------------------------- */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--color-text-muted);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.portfolio-card[data-hidden="true"] {
  display: none;
}

.portfolio-card-image {
  width: 100%;
  height: 180px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-card-body {
  padding: 20px;
}

.portfolio-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.portfolio-card:hover .portfolio-card-title {
  color: var(--color-secondary);
}

.portfolio-card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(153, 186, 187, 0.12);
  color: #b8d4d5;
  border: 1px solid rgba(153, 186, 187, 0.2);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   15. Portfolio Modal
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-bg-lighter);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
  z-index: 1;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
  background: var(--color-bg-card-hover);
}

.modal-image {
  width: 100%;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Gallery Slider */
.gallery-slider {
  position: relative;
  width: 100%;
}

.gallery-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: var(--color-bg);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 7, 16, 0.6);
  backdrop-filter: blur(4px);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
  line-height: 1;
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(2, 7, 16, 0.85);
  border-color: var(--color-border-hover);
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-dot.active {
  background: var(--color-secondary);
  width: 20px;
  border-radius: 4px;
}

.modal-body {
  padding: 24px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-link {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   16. Contact Section
   -------------------------------------------------------------------------- */

.contact-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.contact-content p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.contact-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-row a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.contact-row a:hover {
  color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.footer-social-link:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   18. Scroll Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transition-delay: var(--delay, 0ms);
}

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

/* --------------------------------------------------------------------------
   19. Utility Classes
   -------------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Legacy classes (backward compat) */
.about-content {
  border-left: 3px solid var(--color-primary);
  padding-left: 24px;
  max-width: 720px;
}

.about-content p {
  color: var(--color-text);
  line-height: 1.65;
}

.about-content p + p {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   20. Responsive — Tablet (≥ 768px)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  h1,
  .hero-name {
    font-size: 2.75rem;
  }

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

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

  .nav-mobile {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   21. Responsive — Desktop (≥ 1024px)
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-name {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 32px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   22. Responsive — Mobile (< 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 0.875rem;
  }


  .section-title {
    font-size: 1.5rem;
  }

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

  .timeline,
  .timeline-compact {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -23px;
  }

  .timeline-company {
    font-size: 0.875rem;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .gallery-img {
    max-height: 280px;
  }

  .contact-info {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   23. Print Styles
   -------------------------------------------------------------------------- */

@media print {
  .header,
  .hamburger,
  .nav-mobile,
  .portfolio-filters,
  .modal-overlay,
  .btn-whatsapp,
  .footer-socials,
  .footer,
  .geo-objects {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.5;
  }

  .section {
    padding: 24pt 0;
    page-break-inside: avoid;
  }

  .hero {
    padding-top: 0;
  }

  .hero-name {
    -webkit-text-fill-color: #000;
    background: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .portfolio-card,
  .skill-card,
  .about-col {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    background: #fff;
  }

  .section-title,
  h1, h2, h3, h4,
  .edu-name,
  .timeline-company,
  .portfolio-card-title,
  .modal-title {
    color: #000;
  }

  .about-col-title,
  .skill-group-title {
    color: #333;
  }

  p, .text-muted,
  .edu-major,
  .timeline-period,
  .portfolio-card-desc,
  .skill-group-items {
    color: #444;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 10pt;
    color: #666;
  }
}
