/* ============================================
   ALDRIC SHAUN RAJESH — PORTFOLIO STYLES
   ============================================ */

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

:root {
  --bg: #0a0a0b;
  --surface: #111114;
  --surface2: #18181d;
  --border: #2a2a35;
  --accent: #c8f230;
  --accent2: #7f6ef5;
  --text: #f0f0ee;
  --muted: #7a7a8a;
  --syne: 'Syne', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Instrument Serif', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--syne);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  backdrop-filter: blur(0px);
}

nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

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

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 242, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 242, 48, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--muted);
  letter-spacing: normal;
  margin-top: 0.3rem;
}

.hero-roles {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.role-pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  transition: all 0.2s;
  cursor: default;
}

.role-pill:hover,
.role-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 242, 48, 0.06);
}

.hero-desc {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #d8ff50;
  border-color: #d8ff50;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

.hero-stats {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  display: flex;
  gap: 2.5rem;
}

.stat {
  text-align: right;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */

section {
  padding: 5rem 3rem;
}

.section-label {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  text-transform: none;
  font-style: bold;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(to right, var(--accent), var(--accent2), #5da9ff, var(--accent));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShine 5s linear infinite;
  text-shadow: 0 4px 30px rgba(200, 242, 48, 0.25);
  margin-bottom: 3rem;
  white-space: nowrap;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}

/* Projects Title Overrides & Effects */
#projects .section-label {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  text-transform: none;
  font-style: bold;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(to right, var(--accent), var(--accent2), #5da9ff, var(--accent));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShine 5s linear infinite;
  text-shadow: 0 4px 30px rgba(200, 242, 48, 0.25);
  margin-bottom: 3rem;
  white-space: nowrap;
}

#projects .section-label::after {
  display: none;
  /* Hide the line for this specific big title */
}

@keyframes textShine {
  to {
    background-position: 300% center;
  }
}

/* ============================================
   ABOUT
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 240px 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.about-profile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, rgba(200, 242, 48, 0.05) 0%, rgba(127, 110, 245, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.profile-img-placeholder:hover {
  border-color: rgba(200, 242, 48, 0.3);
  color: var(--accent);
  box-shadow: inset 0 0 20px rgba(200, 242, 48, 0.05);
}

.profile-socials {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-icon {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.25s, transform 0.25s;
  display: flex;
}

.social-icon:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.about-text h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent2);
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.25s;
  cursor: default;
  background: var(--surface);
}

.skill-row:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

.skill-row:hover .skill-bar-fill {
  background: var(--accent);
}

.skill-icon {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
}

.skill-bar {
  height: 2px;
  flex: 1;
  max-width: 80px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent2);
  border-radius: 1px;
  transition: background 0.25s;
}

/* ============================================
   EXPERIENCE
   ============================================ */

.exp-section {
  background: var(--surface);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: 160px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.exp-meta {
  padding-top: 0.2rem;
  font-family: var(--mono);
}

.exp-date {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.6;
}

.exp-dot {
  position: absolute;
  left: 160px;
  top: 2.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  transform: translateX(-50%);
  transition: border-color 0.2s;
}

.exp-item:hover .exp-dot {
  border-color: var(--accent);
}

.exp-content {
  padding-left: 2rem;
}

.exp-company {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.exp-role {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  background: rgba(127, 110, 245, 0.12);
  border: 1px solid rgba(127, 110, 245, 0.3);
  color: var(--accent2);
  border-radius: 2px;
}

.tag.green {
  background: rgba(200, 242, 48, 0.08);
  border-color: rgba(200, 242, 48, 0.25);
  color: var(--accent);
}

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

.exp-bullets li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ============================================
   PROJECTS — CAROUSEL
   ============================================ */

.projects-section {
  padding-bottom: 0;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  margin: 0 -3rem;
  /* bleed past section padding */
  padding: 2rem 3rem 4rem;
  overflow: hidden;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.proj-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1rem 1.5rem;
  scrollbar-width: none;
  cursor: grab;
}

.proj-carousel:active {
  cursor: grabbing;
}

.proj-carousel::-webkit-scrollbar {
  display: none;
}

/* ---- Individual Card ---- */

.proj-card {
  flex: 0 0 280px;
  height: 340px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.25s;
}

.proj-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--surface2);
}

.proj-card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.proj-card-bg img.active {
  opacity: 1;
}

.proj-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(5, 5, 7, 1) 0%, rgba(5, 5, 7, 0.6) 50%, rgba(5, 5, 7, 0.1) 100%);
  transition: background 0.35s;
}

.proj-card:hover {
  transform: translateY(-16px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 242, 48, 0.2);
  border-color: rgba(200, 242, 48, 0.3);
}

.proj-card:hover .proj-card-overlay {
  background: linear-gradient(to top, rgba(5, 5, 7, 0.95) 0%, rgba(5, 5, 7, 0.4) 60%, transparent 100%);
}

.proj-card-inner {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.proj-card-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}

.proj-card:hover .proj-card-num {
  color: var(--accent);
}

.proj-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}

.proj-card-brief {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease 0.05s;
}

.proj-card:hover .proj-card-brief {
  opacity: 1;
  max-height: 60px;
  transform: none;
  margin-bottom: 0.5rem;
}

.proj-card-hint {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
  margin-top: 0.5rem;
}

.proj-card:hover .proj-card-hint {
  opacity: 1;
  transform: none;
}

/* Accent bar on top */
.proj-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-card:hover::after {
  transform: scaleX(1);
}

/* ============================================
   PROJECT MODAL
   ============================================ */

.proj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.proj-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.proj-modal-overlay.open .proj-modal {
  transform: none;
}

.proj-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.proj-modal-close:hover {
  border-color: var(--text);
  color: var(--text);
}

.proj-modal-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
  flex: 1;
}

.proj-modal-image {
  position: relative;
  min-height: 300px;
  background: var(--surface2);
  overflow: hidden;
}

.proj-modal-img-placeholder {
  position: absolute;
  inset: 0;
}

.proj-modal-img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
}

#projModalImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.proj-modal-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 0;
}

.proj-modal-content::-webkit-scrollbar {
  width: 6px;
}

.proj-modal-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.proj-modal-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--border);
  margin-bottom: 0.75rem;
}

.proj-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.proj-modal-context {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.proj-modal-scrollable {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.proj-modal-scrollable::-webkit-scrollbar {
  width: 6px;
}

.proj-modal-scrollable::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.modal-section h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.modal-section p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

.proj-modal-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.proj-modal-highlights span {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.proj-modal-highlights span::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--border);
  font-size: 0.75rem;
}

.proj-modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proj-modal-tech span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(127, 110, 245, 0.3);
  color: var(--accent2);
  border-radius: 2px;
  background: rgba(127, 110, 245, 0.07);
}

.proj-modal-links {
  padding-top: 1.5rem;
  flex-shrink: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.proj-modal-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  border: 1px solid;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.proj-modal-links a.primary-link {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.proj-modal-links a.primary-link:hover {
  background: #d8ff50;
}

.proj-modal-links a.ghost-link {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.proj-modal-links a.ghost-link:hover {
  border-color: var(--text);
}

/* Gallery Controls */
.gallery-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(5, 5, 7, 0.7);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.gallery-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gallery-btn:hover {
  opacity: 1;
}

.gallery-dots {
  display: flex;
  gap: 0.4rem;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-dot.active {
  background: var(--accent);
}

/* Modal Nav (Prev/Next Project) */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5, 5, 7, 0.6);
  border: 1px solid var(--border);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 210;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.modal-nav-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.prev {
  left: 2rem;
}

.modal-nav-btn.next {
  right: 2rem;
}

/* ============================================
   CONTACT
   ============================================ */




.contact-section {
  background: var(--surface);
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.contact-section h2 span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent2);
}

.contact-section p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */

@media (max-width: 700px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-stats {
    position: static;
    margin-top: 3rem;
    justify-content: flex-start;
  }

  .stat {
    text-align: left;
  }

  section {
    padding: 4rem 1.5rem;
  }

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

  .exp-item {
    grid-template-columns: 1fr;
    gap: 1rem 0;
    padding-left: 2rem;
  }

  .exp-item::before {
    left: 0;
  }

  .exp-dot {
    left: 0;
    top: 2.2rem;
  }

  .exp-meta {
    padding-top: 0;
  }

  .exp-content {
    padding-left: 0;
  }

  .exp-date {
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .exp-date br {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Carousel mobile */
  .carousel-wrapper {
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem 3rem;
  }

  .proj-card {
    flex: 0 0 240px;
    height: 300px;
  }

  /* Modal mobile */
  .proj-modal-overlay {
    padding: 1rem;
    padding-bottom: 5rem;
  }

  .proj-modal {
    max-height: calc(100vh - 6rem);
  }

  .proj-modal-body {
    grid-template-columns: 1fr;
  }

  .proj-modal-image {
    min-height: 200px;
  }

  .proj-modal-content {
    padding: 1.5rem;
  }

  .proj-modal-title {
    font-size: 1.3rem;
  }

  .modal-nav-btn {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 40px;
    height: 40px;
  }

  .modal-nav-btn:hover {
    transform: scale(1.1);
  }

  .modal-nav-btn.prev {
    left: 1rem;
  }

  .modal-nav-btn.next {
    right: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.65rem;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .hero-tag {
    font-size: 0.6rem;
  }
}