@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

/* ===== CSS VARIABLES ===== */
:root {
  --green-primary: #00ff80;
  --green-secondary: #00c862;
  --green-dark: #008542;
  --bg-dark: #0d0d0d;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f0;
  --text-secondary: #888;
  --text-muted: #555;
  --shadow-green: 0 0 40px rgba(0, 255, 128, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-main: "Space Grotesk", sans-serif;
  --font-mono: "Source Code Pro", monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-secondary); }

/* ===== BACKGROUND GRID ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,128,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,128,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.7rem 2.5rem;
  background: rgba(13, 13, 13, 0.95);
}

.nav-logo-text {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  user-select: none;
  cursor: default;
}

.nav-logo-accent {
  color: var(--green-primary);
  margin-left: 0.15em;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
}

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

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

/* TRANSLATE BUTTON */
.translateButton {
  display: flex;
  align-items: center;
}

.buttonTranslate {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition);
  user-select: none;
}

.buttonTranslate:hover {
  border-color: var(--green-primary);
  color: var(--text-primary);
}

.pt { color: var(--green-primary); font-weight: 700; }
.en { color: var(--text-secondary); }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO / HEADER ===== */
header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  z-index: 1;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 128, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-logo-text {
  font-family: var(--font-main);
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease both;
  filter: drop-shadow(0 0 24px rgba(0, 255, 128, 0.25));
  user-select: none;
}

.hero-logo-accent {
  color: var(--green-primary);
  margin-left: 0.15em;
}

.hero-subtitle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.headerText {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.12em solid var(--green-primary);
  margin: 0 auto;
}

#headerTextDeveloper {
  animation: typingDeveloper 2.5s steps(30, end) both,
             blink-caret 0.75s step-end infinite;
}

#headerTextStudent {
  animation: typingStudent 2.5s steps(40, end) 0.5s both,
             blink-caret 0.75s step-end infinite 0.5s;
}

.socialMediaIcons {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.socialMediaIcons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.socialMediaIcons a:hover {
  background: rgba(0, 255, 128, 0.1);
  border-color: var(--green-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 255, 128, 0.2);
}

.socialMediaIcons svg {
  width: 22px;
  height: 22px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator span {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.material-symbols-outlined {
  font-size: 2rem;
  color: var(--green-primary);
  animation: bounce 1.5s ease-in-out infinite;
  cursor: pointer;
}

/* ===== MAIN ===== */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 50%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), transparent);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ===== ABOUT ME ===== */
.myPresentation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0 6rem;
  width: 100%;
}

#me {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 2px solid rgba(0, 255, 128, 0.3);
  box-shadow: 0 0 40px rgba(0, 255, 128, 0.15), inset 0 0 40px rgba(0,0,0,0.3);
  animation: morphBorder 8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes morphBorder {
  0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25%  { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50%  { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75%  { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.textAboutMeContainer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#titleForTextAboutMe {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-primary), var(--green-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

#textAboutMe {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 400;
  text-align: left;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  width: 100%;
  padding: 0 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.skills-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
}

.skills-group-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: flex-start;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.skills-grid--secondary {
  gap: 0.6rem;
}

.skill-tag {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
}

.skill-tag--primary {
  background: rgba(0, 255, 128, 0.07);
  border-color: rgba(0, 255, 128, 0.2);
  color: var(--green-primary);
  font-size: 0.88rem;
}

.skill-tag--primary:hover {
  background: rgba(0, 255, 128, 0.15);
  border-color: rgba(0, 255, 128, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 255, 128, 0.15);
}

.skill-tag--secondary {
  font-size: 0.8rem;
  opacity: 0.6;
}

.skill-tag--secondary:hover {
  opacity: 1;
  background: rgba(0, 255, 128, 0.05);
  border-color: rgba(0, 255, 128, 0.15);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===== TIMELINE ===== */
.timeline {
  width: 100%;
  padding: 4rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.timeline-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 2rem;
}

.timeline-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-primary), transparent);
  border-radius: 1px;
}

.timeline-container {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
  cursor: default;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: 2rem;
  width: 12px;
  height: 12px;
  background: var(--green-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.6);
}

.timeline-container:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(0, 255, 128, 0.2);
  transform: translateX(6px);
  box-shadow: var(--shadow-green);
}

.timeline-container img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.text-box {
  flex: 1;
  min-width: 0;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.title > h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.title > small {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-secondary);
}

.text-box > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
}

.text-box > p strong u {
  color: var(--green-primary);
  text-decoration-color: rgba(0,255,128,0.3);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 255, 128, 0.08);
  border: 1px solid rgba(0, 255, 128, 0.2);
  border-radius: 20px;
  color: var(--green-secondary);
}

/* ===== MY APP - STY ===== */
.myapp-section {
  width: 100%;
  padding: 0 0 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.myapp-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.myapp-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 960px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.myapp-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,255,128,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.myapp-card:hover {
  border-color: rgba(0,255,128,0.2);
  box-shadow: var(--shadow-green);
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 60%, rgba(0,255,128,0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.phone-frame {
  width: 200px;
  background: #111;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(0,255,128,0.15),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
  padding: 12px 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-notch {
  width: 60px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 8px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.06);
}

.phone-screen {
  background: #0d0d0d;
  border-radius: 20px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.phone-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.phone-carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-carousel-track img {
  width: calc(100% / 3);
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.phone-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: var(--green-primary);
  width: 14px;
  border-radius: 3px;
}

.phone-home-bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin: 0 auto;
}

/* App info */
.myapp-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.myapp-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon {
  font-size: 2.4rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  flex-shrink: 0;
}

.app-name {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-primary), var(--green-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.app-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.app-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.app-description strong {
  color: var(--text-primary);
}

.app-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.highlight-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.app-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--green-primary), var(--green-secondary));
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-main);
}

.playstore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 255, 128, 0.35);
  filter: brightness(1.1);
}

/* responsive */
@media screen and (max-width: 860px) {
  .myapp-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.5rem;
    padding: 2rem;
  }

  .app-highlights {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .myapp-card { padding: 1.5rem; }
  .phone-frame { width: 170px; }
  .phone-screen { height: 290px; }
  .app-name { font-size: 1.6rem; }
}

/* ===== PROJECTS ===== */
.projects {
  width: 100%;
  padding: 0 0 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(0, 255, 128, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-green);
}

.project-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover > img {
  transform: scale(1.04);
}

.project-card-text {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-card-text > h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-text > h3 img {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: var(--transition);
}

.project-card:hover .project-card-text > h3 img { opacity: 1; }

.project-card-text > p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.project-card-text > small {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-secondary);
  background: rgba(0, 255, 128, 0.08);
  border: 1px solid rgba(0, 255, 128, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  width: fit-content;
}

#pixel {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: auto;
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

/* ===== FOOTER / SCROLL BUTTON ===== */
.scrollButton {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 128, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  animation: bounceUp 1.5s ease-in-out infinite;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.scrollButton:hover {
  background: rgba(0, 255, 128, 0.1);
  border-color: var(--green-primary);
}

.scrollButton img {
  width: 24px;
  height: 24px;
  display: block;
  filter: invert(1) brightness(0.7);
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

@keyframes typingDeveloper {
  from { width: 0; }
  to   { width: 22ch; }
}

@keyframes typingStudent {
  from { width: 0; }
  to   { width: 30ch; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50%       { border-color: var(--green-primary); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
  .myPresentation {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2.5rem;
    padding: 4rem 0 5rem;
  }

  #textAboutMe { text-align: center; }
  #titleForTextAboutMe { font-size: 1.8rem; }
  #me { width: 220px; height: 220px; }
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .navbar { padding: 1rem 1.5rem; }

  header { padding: 5rem 1.5rem 3rem; }

  .headerText { font-size: 1.1rem; }

  @keyframes typingDeveloper { to { width: 20ch; } }
  @keyframes typingStudent { to { width: 28ch; } }

  #myLogo { width: 8rem; }

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

  .timeline-container { flex-direction: column; gap: 1rem; }

  .projects-container { grid-template-columns: 1fr; max-width: 480px; }
}

@media screen and (max-width: 480px) {
  .navbar { padding: 0.8rem 1rem; }

  .headerText { font-size: 0.95rem; }

  @keyframes typingDeveloper { to { width: 19ch; } }
  @keyframes typingStudent { to { width: 26ch; } }

  main { padding: 0 1rem; }

  .timeline-inner { padding-left: 1.5rem; }

  .timeline-container { padding: 1.2rem; }

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

  #titleForTextAboutMe { font-size: 1.5rem; }
}
