/* ===========================
   PORTFOLIO — styles.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

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

:root {
  --bg:      #0a0a0a;
  --bg2:     #111111;
  --bg3:     #1a1a1a;
  --accent:  #00ff88;
  --accent2: #00ccff;
  --text:    #f0f0f0;
  --muted:   #888888;
  --border:  #2a2a2a;
  --mono:    'Space Mono', monospace;
  --sans:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease, background 0.3s;
}

nav.scrolled {
  padding: 0.8rem 3rem;
  background: rgba(10, 10, 10, 0.97);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ---- SECTION SHARED ---- */
section {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

h2.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
  color: var(--text);
}

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  position: relative;
  max-width: 100%;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

.hero-grid {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 40px 40px; }
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeUp 0.6s ease both;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  animation: expandLine 0.8s 0.3s ease both;
}

@keyframes expandLine {
  from { width: 0; }
  to   { width: 2rem; }
}

/* Availability pulse dot */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

h1.hero-name {
  font-family: var(--sans);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--text);
  animation: fadeUp 0.7s 0.1s ease both;
}

h1.hero-name em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 240, 240, 0.25);
}

.hero-role {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-role .sep { color: var(--border); }
.hero-role .hl  { color: var(--accent2); }

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

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

.hero-desc {
  max-width: 520px;
  color: #aaaaaa;
  font-size: 1.05rem;
  margin-bottom: 3rem;
  line-height: 1.85;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s ease both;
}

/* ---- BUTTONS ---- */
.btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

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

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

.about-text p {
  color: #aaaaaa;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

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

.stat-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg2);
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-3px);
}

.stat-num {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--mono);
}

/* ---- SKILLS ---- */
#skills {
  padding: 0;
  max-width: 100%;
  background: var(--bg2);
}

#skills .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.skill-group {
  background: var(--bg2);
  padding: 2rem 1.75rem;
  transition: background 0.25s;
}

.skill-group:hover { background: var(--bg3); }

.skill-group-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

.skill-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
}

/* ---- PROJECTS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.project-card:hover { background: var(--bg3); }

/* Accent left bar */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.35s ease;
}

.project-card:hover::before { height: 100%; }

.project-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--border);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

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

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.stack-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 255, 136, 0.06);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.18);
  transition: background 0.2s;
}

.stack-tag:hover { background: rgba(0, 255, 136, 0.14); }

.project-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, gap 0.2s;
}

.project-link:hover { color: var(--accent); gap: 0.7rem; }
.project-link::after { content: '→'; }

/* ---- EXPERIENCE / TIMELINE ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

/* Diamond marker */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  background: var(--bg);
  transform: rotate(45deg);
  transition: background 0.2s;
}

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

.timeline-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.75;
}

/* ---- CONTACT ---- */
#contact {
  padding: 0;
  max-width: 100%;
  background: var(--bg2);
}

#contact .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

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

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  font-size: 0.9rem;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
}

.contact-link-icon {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  min-width: 2rem;
}

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

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.9rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #444;
}

.contact-form textarea { min-height: 120px; }

.contact-form button {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem;
  background: var(--accent);
  border: none;
  color: #000;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.15s;
}

.contact-form button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.contact-form button:active {
  transform: translateY(0);
}

/* ---- FOOTER ---- */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

footer p {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

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

/* ---- LANGUAGE TOGGLE ---- */
.lang-toggle {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Fade transition when switching language */
.lang-fade [data-i18n],
.lang-fade [data-i18n-placeholder] {
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* ---- HERO KEYFRAMES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   RESPONSIVE — MOBILE FIRST
   ================================================ */
 
/* ---- Tablet: ≤ 768px ---- */
@media (max-width: 768px) {
 
  /* Nav: hide links, show hamburger */
  nav {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
 
  nav.scrolled { padding: 0.75rem 1.5rem; }
 
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 100;
  }
 
  .nav-links.open { display: flex; }
 
  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }
 
  /* Hamburger button */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    padding: 0;
    z-index: 101;
  }
 
  .nav-hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--muted);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
  }
 
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--accent); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--accent); }
 
  /* Sections padding */
  section { padding: 4rem 1.5rem; }
 
  #skills .inner,
  #contact .inner { padding: 4rem 1.5rem; }
 
  /* Hero */
  .hero-inner { padding: 0 1.5rem; }
  #hero { padding-top: 6rem; }
 
  h1.hero-name { font-size: clamp(3rem, 13vw, 4.5rem); }
 
  .hero-role { font-size: 0.85rem; flex-wrap: wrap; }
 
  .hero-desc { font-size: 0.95rem; max-width: 100%; }
 
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
 
  /* About: stack vertically */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
 
  /* Stats: 2 cols on mobile is fine */
  .about-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-card { padding: 1.1rem; }
  .stat-num { font-size: 2rem; }
 
  /* Skills: 2 cols */
  .skills-grid { grid-template-columns: 1fr 1fr; }
 
  /* Projects: single column */
  .projects-grid { grid-template-columns: 1fr; }
 
  /* Contact: stack vertically */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
 
  /* Footer: stack */
  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}
 
/* ---- Small mobile: ≤ 480px ---- */
@media (max-width: 480px) {
 
  /* Skills: single column on very small screens */
  .skills-grid { grid-template-columns: 1fr; }
 
  /* Nav logo smaller */
  .nav-logo { font-size: 0.85rem; }
 
  /* Stat cards: tighter */
  .about-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-num { font-size: 1.75rem; }
 
  /* Section title slightly smaller */
  h2.section-title { margin-bottom: 2rem; }
}
 
