/* ════════════════════════════════════════════════
   Portfolio — Putu Kartika Widya Arjentinia
   style.css
   ════════════════════════════════════════════════ */

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

/* ── CSS VARIABLES ── */
:root {
  --bg: #0F1117;
  --bg-card: #161B27;
  --bg-card-hover: #1C2234;
  --accent: #6C63FF;
  --accent-dim: rgba(108, 99, 255, 0.12);
  --accent-glow: rgba(108, 99, 255, 0.25);
  --text-primary: #F5F5F0;
  --text-secondary: #9499A6;
  --text-muted: #5A5F70;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(108, 99, 255, 0.4);
}

/* ── SELECTION COLOR ── */
::selection { background: rgba(108,99,255,0.3); color: var(--text-primary); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── PAGE LOADER ── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; flex-direction: column; gap: 1.25rem;
}

.loader-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.04em;
}

.loader-logo span { color: var(--accent); }

.loader-bar-wrap {
  width: 120px; height: 2px;
  background: var(--border); border-radius: 2px; overflow: hidden;
}

.loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #A78BFA);
  border-radius: 2px;
}

/* ── CUSTOM CURSOR (desktop only) ── */
@media (hover: hover) {
  body { cursor: none; }

  .cursor-dot {
    position: fixed; width: 8px; height: 8px;
    background: var(--accent); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
  }

  .cursor-ring {
    position: fixed; width: 32px; height: 32px;
    border: 1.5px solid rgba(108,99,255,0.5); border-radius: 50%;
    pointer-events: none; z-index: 9997;
    transform: translate(-50%, -50%);
  }
}

/* ── NAV ACTIVE STATE ── */
.nav-links a.active { color: var(--text-primary) !important; }

.nav-links a.active::after {
  content: ''; display: block; height: 2px;
  background: var(--accent); border-radius: 2px; margin-top: 2px;
  animation: navUnderline 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent) !important;
  border: 1px solid var(--border-accent);
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-dim) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.nav-mobile.open { max-height: 400px; }

.nav-mobile a {
  display: block;
  padding: 1rem 5%;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.nav-mobile a:hover {
  color: var(--text-primary);
  background: var(--accent-dim);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

/* dot grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* glow blob */
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(108,99,255,0.13) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-60%, -50%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 760px;
}

.hero-photo {
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 0.5rem;
  border: 2px solid var(--border-accent);
  box-shadow: 0 0 0 8px var(--accent-dim), 0 20px 50px rgba(0,0,0,0.4);
  opacity: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
  opacity: 0;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  opacity: 0;
}

.underline-accent {
  position: relative;
  display: inline-block;
}

.underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #A78BFA);
  border-radius: 2px;
}

.hero-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
  opacity: 0;
}

.cursor {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.95s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 2.5rem;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  opacity: 0;
}

.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn-primary:hover::after { background: rgba(255,255,255,0.1); }

.btn-secondary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

/* ── STAT CARDS ── */
.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 160px;
  transition: border-color 0.3s, background 0.3s;
  cursor: default;
}

.stat-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-value sup { color: var(--accent); font-size: 1.1rem; }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  z-index: 1;
  opacity: 0;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}

/* ── RESPONSIVE NAV & HERO ── */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 1.75rem; }
  .hero-content { max-width: 100%; }
  .hero-photo { width: 130px; height: 130px; margin: 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  #hero { padding: 6rem 5% 3rem; }
  .stat-card { flex: 1 1 140px; padding: 0.85rem 1.1rem; }
  .btn-primary, .btn-secondary { padding: 0.7rem 1.25rem; font-size: 0.875rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.4rem; }
  .hero-photo { width: 100px; height: 100px; }
}

/* ── SECTION SHARED ── */
.section {
  padding: 6rem 5%;
  position: relative;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 3rem;
  line-height: 1.15;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 6rem;
}

/* ── ABOUT ── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.25s, background 0.25s;
}

.info-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.info-icon svg { width: 16px; height: 16px; }

.info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.info-value a {
  color: var(--accent);
  text-decoration: none;
}

.info-value a:hover { text-decoration: underline; }

/* ── SKILLS ── */
#skills { background: var(--bg-card); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.skill-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
  opacity: 0;
  transform: translateY(12px);
}

.skill-tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px) !important;
}

.skill-tag.featured {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.skill-group-soft { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skill-group-soft { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 5%; }
}

/* ── EXPERIENCE ── */
#experience { background: var(--bg); }

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 2px;
  background: var(--border);
  bottom: 0;
}

.timeline-line-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), #A78BFA);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-24px);
}

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

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  transition: border-color 0.3s, background 0.3s;
}

.timeline-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.timeline-item:hover .timeline-dot { border-color: var(--accent); }
.timeline-item:hover .timeline-dot::after { opacity: 1; }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-period {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-company {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.timeline-bullets li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ── PROJECTS ── */
#projects { background: var(--bg-card); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(32px);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #A78BFA);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.project-card:hover { border-color: var(--border-accent); }
.project-card:hover::before { transform: scaleX(1); }

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.project-icon svg { width: 20px; height: 20px; }

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.project-org {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.project-link:hover { background: var(--accent-glow); transform: translateY(-2px); }
.project-link svg { width: 13px; height: 13px; flex-shrink: 0; }

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .timeline { padding-left: 2rem; }
  .timeline-dot { left: -2rem; }
  .timeline-header { flex-direction: column; gap: 0.5rem; }
}

/* ── CERTIFICATIONS ── */
#certifications { background: var(--bg); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.25s, background 0.25s;
  opacity: 0;
  transform: translateY(20px);
}

.cert-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.cert-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0;
}

.cert-badge.aws  { background: rgba(255,153,0,0.12); border: 1px solid rgba(255,153,0,0.3);   color: #FF9900; }
.cert-badge.dicoding { background: rgba(0,163,255,0.12); border: 1px solid rgba(0,163,255,0.3); color: #00A3FF; }
.cert-badge.other { background: var(--accent-dim); border: 1px solid var(--border-accent); color: var(--accent); }

.cert-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

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

/* ── CONTACT ── */
#contact { background: var(--bg-card); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.social-link:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.social-link svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea { min-height: 130px; }

.btn-submit {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  opacity: 0.3;
  transform: scale(0.96);
  pointer-events: none;
}

.btn-submit.is-ready {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.btn-submit.is-ready:hover { opacity: 0.88; }

.btn-submit:disabled { cursor: not-allowed; }

.btn-submit.is-sending {
  opacity: 0.6 !important;
  pointer-events: none;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 8px;
  color: #4ade80;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

/* ── BACK TO TOP ── */
#backTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 50;
}

#backTop.visible { opacity: 1; pointer-events: all; }
#backTop svg { width: 18px; height: 18px; color: #fff; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}