/* =============================================
   RENZO SURETA — PORTFOLIO CSS
   Light theme · #3182BD primary
   ============================================= */

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

:root {
  --bg: #f7f8fc;
  --bg-2: #ffffff;
  --bg-3: #eef2f8;
  --surface: #ffffff;
  --border: #dde3ed;
  --border-light: #c8d4e6;

  --text: #0f1923;
  --text-muted: #4a5a6e;
  --text-dim: #8a9ab0;

  --accent: #3182BD;
  --accent-dark: #1f5f96;
  --accent-light: #e8f2fb;
  --accent-mid: #bdd9f5;

  --white: #ffffff;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Mono', monospace;
  --font-serif: 'Instrument Serif', serif;

  --radius: 4px;
  --radius-lg: 10px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 4px rgba(49, 130, 189, 0.07);
  --shadow: 0 4px 20px rgba(49, 130, 189, 0.10);
  --shadow-lg: 0 8px 40px rgba(49, 130, 189, 0.14);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-mid);
  border-radius: 4px;
}

/* ==================== NAV ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(247, 248, 252, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
      margin-right: 45px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  color: var(--accent) !important;
  border: 1.5px solid var(--accent) !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius) !important;
  transition: background var(--transition), color var(--transition) !important;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 7rem 2.5rem 4rem;
  overflow: hidden;
  background: var(--bg-2);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(49, 130, 189, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(49, 130, 189, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(49, 130, 189, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(49, 130, 189, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  max-width: 880px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid var(--accent-mid);
  background: var(--accent-light);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease both;
}

.tag-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.65);
  }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.hero-first {
  color: var(--text);
}

.hero-last {
  color: var(--accent);
}

.cursor-blink {
  display: inline-block;
  color: var(--text);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.hero-title em {
  font-style: normal;
  color: var(--text);
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1.5px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-plus {
  color: var(--accent);
  font-size: 1.3rem;
}

.stat-label {
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-mid), transparent);
  animation: scrollDown 1.5s ease infinite;
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(49, 130, 189, 0.25);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(49, 130, 189, 0.25);
}



.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(49, 130, 189, 0.35);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 6rem 0;
}

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

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-heading em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-serif);
}

.section-header {
  margin-bottom: 4rem;
}

p.about-text.reveal-up.delay-1.visible {
    margin-top: 10px;
}

.section-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 500px;
}

/* ==================== ABOUT ==================== */
.about {
  background: var(--bg);
}

.about-grid {
  /* display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6rem; */
  align-items: start;
}

.about-label {
  padding-top: 0.5rem;
}

.about-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tech-tag {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  transition: var(--transition);
}

.tech-tag:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ==================== EXPERIENCE ==================== */
.experience {
  background: var(--bg-2);
}

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 157px;
  top: 2.6rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px solid var(--bg-2);
  z-index: 1;
  transition: background var(--transition);
}

.timeline-item[data-current]::before {
  background: var(--accent);
}

.timeline-item:hover::before {
  background: var(--accent);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.2rem;
  text-align: right;
  padding-right: 2rem;
}

.timeline-date {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1.4;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  align-self: flex-end;
}

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

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.timeline-company {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.timeline-location {
  color: var(--text-dim);
}

.timeline-link {
  color: var(--text-dim);
  font-size: 1.6rem;
  transition: color var(--transition);
  flex-shrink: 0;
}

.timeline-link:hover {
  color: var(--accent);
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.timeline-tags span {
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* ==================== SKILLS ==================== */
.skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.skill-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.skill-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.skill-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ==================== WORKS ==================== */
.works {
  background: var(--bg-2);
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.work-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.work-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.work-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-3);
}

.work-image img {
  width: 100%;
  height: 100%;
  filter: brightness(0.95);
  transition: filter var(--transition-slow), transform var(--transition-slow);
}

.work-card:hover .work-image img {
  filter: brightness(1.03);
  transform: scale(1.03);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(49, 130, 189, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-visit,
.work-visit-na {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
}

.work-visit {
  background: var(--white);
  color: var(--accent);
  font-weight: 500;
}

.work-visit:hover {
  background: var(--bg-3);
}

.work-visit-na {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.work-info {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  align-items: flex-start;
}

.work-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.work-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.work-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.work-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.work-stack span {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

/* ==================== CONTACT ==================== */
.contact {
  background: var(--bg);
}

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

.contact-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 1.2rem 0 2rem;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-link:hover {
  color: var(--accent);
  background: var(--accent-light);
  padding-left: 1rem;
}

.contact-link-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.contact-link:hover .contact-link-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  -webkit-appearance: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 189, 0.1);
}

.form-status {
  font-size: 0.8rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status.success {
  color: #1a7f3c;
}

.form-status.error {
  color: #c0392b;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.footer-logo .dot {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

.delay-5 {
  transition-delay: 0.40s;
}

.delay-6 {
  transition-delay: 0.48s;
}

.nav-right {
    position: absolute;
    right: 25px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {

  #navToggle {
      margin-right: 45px;
  }

  .nav-theme-toggle-container .nav-toggle {
    display: none;
  }

  
  .about-photo-row {
      top: -80px !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(247, 248, 252, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 2rem;
    border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    box-shadow: -8px 0 40px rgba(49, 130, 189, 0.08);
     margin: 0;
  }

  .nav-links.open {
    right: 0;
  }

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

  .nav-toggle {
    display: flex;
    z-index: 100;
  }

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

  /* .about-label {
    display: none;
  } */

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-meta {
    text-align: left;
  }

  .timeline-badge {
    align-self: flex-start;
  }

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

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-header{
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {

  .nav-theme-toggle-container .nav-toggle {
    display: none;
  }

  span.cursor-blink {
      display: none;
  }

  .about-photo-row {
      top: -30px !important;
      right: 0 !important;
      position: relative !important;
      margin: 0 !important;
      width: 100%;
      text-align: center;
  }

  .about-photo {
      margin: auto;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

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

  .hero-stats {
    gap: 1.2rem;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .hero-scroll-hint {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .section-header{
    margin-bottom: 1rem;
  }
}




.intro-pic {
    background-repeat: no-repeat;
    background-position: top center;
    background-image: url(../images/me/me2.png);
    background-size: cover;
    position: absolute;
    top: 20%;
    right: 0;
    bottom: 0;
    left: 50%;
}

.intro-pic::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .2;
}



.about-photo-row {
  position: absolute;
  display: inline-block;
  margin-bottom: 2.5rem;
  right: 45px;
  top: -25px;
}

.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--accent-mid);
  box-shadow: 0 4px 24px rgba(49,130,189,0.18);
  display: block;
}

.about-photo-badge {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-2);
  border: 1.5px solid var(--accent-mid);
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.about-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}


.about-body {
    position: relative;
}


/**toggle **/

/* ── DARK MODE VARIABLES ── */
[data-theme="dark"] {
  --bg:           #0d1117;
  --bg-2:         #161b22;
  --bg-3:         #1c2330;
  --surface:      #161b22;
  --border:       #2a3441;
  --border-light: #3a4a5e;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --text-dim:     #4a5568;
  --accent:       #58a6ff;
  --accent-dark:  #1f6feb;
  --accent-light: rgba(88,166,255,0.1);
  --accent-mid:   rgba(88,166,255,0.3);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.3);
  --shadow:       0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
}
 
/* Smooth colour transitions when toggling theme */
body, .nav, .section, .skill-card, .work-card,
.timeline-card, .contact-form input, .contact-form textarea,
.footer, .hero, .about, .experience, .works, .contact {
  transition: background-color 0.35s ease, border-color 0.35s ease,
              color 0.25s ease, box-shadow 0.35s ease !important;
}
 
/* ── NAV RIGHT (wraps toggle + hamburger) ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
 
/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: var(--bg-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
              color var(--transition), transform var(--transition) !important;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: rotate(20deg);
}
 
.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
 
/* Light mode: show moon icon (click to go dark) */
.theme-icon-sun  { display: none; }
.theme-icon-moon { display: flex; }
 
/* Dark mode: show sun icon (click to go light) */
[data-theme="dark"] .theme-icon-sun  { display: flex; }
[data-theme="dark"] .theme-icon-moon { display: none; }
 
/* ── DARK MODE: hero background & overlays ── */
[data-theme="dark"] .hero {
  background: var(--bg-2);
}
[data-theme="dark"] .hero-noise {
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(88,166,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(88,166,255,0.03) 0%, transparent 55%);
}
[data-theme="dark"] .hero-grid-lines {
  background-image:
    linear-gradient(to right, rgba(88,166,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88,166,255,0.04) 1px, transparent 1px);
}
 
/* ── DARK MODE: nav when scrolled ── */
[data-theme="dark"] .nav.scrolled {
  background: rgba(13,17,23,0.94);
  border-bottom-color: var(--border);
}
 
/* ── DARK MODE: mobile nav drawer ── */
@media (max-width: 900px) {
  [data-theme="dark"] .nav-links {
    background: rgba(13,17,23,0.98);
  }
}

/**toggle **/


@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}