/* GLOBAL RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Code Pro', monospace;
  font-weight: 400;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .card {
  background: #1e1e1e;
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

body.dark-mode .top-nav {
  background: #0a0a0a;
}

body.dark-mode .footer {
  background: #0a0a0a;
}

body.dark-mode .skill-bar,
body.dark-mode .lang-bar {
  background: #333;
}

body.dark-mode .skill-fill,
body.dark-mode .lang-fill {
  background: #009688;
}

body.dark-mode .section-header {
  color: #ccc;
}

body.dark-mode .text-grey {
  color: #aaa;
}

body.dark-mode .name-box {
  background: rgba(30,30,30,0.9);
  color: #e0e0e0;
}

body.dark-mode hr {
  border-color: #333;
}

body.dark-mode .achievement-item:hover {
  background: #2a2a2a;
}

body.dark-mode .back-to-top {
  background: #009688;
  color: #fff;
  border-color: #009688;
}

.parallax-hero {
  position: relative;
  min-height: 100vh;
  background-image: url("hero.gif");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 2px;
  animation: fade 4s infinite;
}

.hero-text p {
  margin-top: 10px;
  font-size: 1.2rem;
  max-width: 600px;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}

.hero-btn:hover {
  background: #fff;
  color: #000;
}

.experience-btn {
  background: rgba(0, 150, 136, 0.3);
  border-color: #009688;
}

.experience-btn:hover {
  background: #009688;
  color: #fff;
}

.typing {
  overflow: hidden;
  border-right: 2px solid #fff;
  white-space: nowrap;
  display: inline-block;
  animation: typing 9s steps(39) infinite, blink-caret 1s infinite;
}

.page-container {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.column {
  display: flex;
  flex-direction: column;
}

.card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s, border-color 0.3s;
}

.content-card {
  padding-bottom: 10px;
  will-change: transform;
  transition: transform 0.1s ease;
}

.card-content {
  padding: 16px 20px;
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-container {
  position: relative;
  padding-top: 20px;
}

.profile-img {
  width: 200px;
  height: 200px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto;
}

.name-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  margin-top: 10px;
  transition: background 0.3s, color 0.3s;
}

.name-box h2 {
  font-size: 1.4rem;
}

.text-grey {
  color: #666;
}

.icon {
  color: #009688;
  margin-right: 10px;
  width: 18px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 18px 0 8px;
}

.section-header {
  font-size: 1.4rem;
  color: #444;
  padding: 16px 20px 0;
  transition: color 0.3s;
}

.date {
  color: #009688;
  font-size: 0.9rem;
  margin: 4px 0;
}

.email-copy {
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.email-copy:hover {
  color: #009688;
}

.skill-bar {
  background: #e0e0e0;
  border-radius: 4px;
  height: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.3s;
}

.skill-fill {
  background: #333;
  height: 100%;
  width: 0;
}

.lang-bar {
  background: #e0e0e0;
  border-radius: 4px;
  height: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.3s;
}

.lang-fill {
  background: #333;
  height: 100%;
  width: 0;
}

.lang-fill.small {
  width: 20%;
}

.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  transition: background 0.3s;
}

.footer i {
  margin: 0 8px;
  cursor: pointer;
  font-size: 18px;
}

.footer a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.footer a:hover {
  opacity: 0.7;
}

.footer-text {
  font-size: 0.85rem;
  margin-top: 8px;
}

.project-tech-icons {
  display: flex;
  gap: 15px;
  margin: 10px 0 5px;
  font-size: 28px;
  flex-wrap: wrap;
}

.project-tech-icons i {
  transition: transform 0.3s ease, color 0.3s ease;
  color: #555;
}

.project-tech-icons i:hover {
  transform: scale(1.2);
  color: #009688;
}

.project-tech-icons i.devicon-c-original:hover       { color: #A8B9CC; }
.project-tech-icons i.devicon-java-plain:hover        { color: #007396; }
.project-tech-icons i.devicon-typescript-plain:hover  { color: #3178C6; }
.project-tech-icons i.devicon-javascript-plain:hover  { color: #F7DF1E; }
.project-tech-icons i.devicon-css3-plain:hover        { color: #1572B6; }
.project-tech-icons i.devicon-html5-plain:hover       { color: #E34F26; }
.project-tech-icons i.fa-microchip:hover              { color: #009688; }

.top-nav {
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-logo {
  color: #009688;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  font-family: 'Source Code Pro', monospace;
}

.nav-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Source Code Pro', monospace;
  transition: color 0.3s;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #009688;
}

.dark-toggle-btn {
  background: transparent;
  border: 1px solid #555;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  margin-left: 10px;
}

.dark-toggle-btn:hover {
  background: #009688;
  border-color: #009688;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #009688;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #00796b;
}

.experience-list {
  list-style-type: none;
  padding-left: 0;
  margin: 15px 0;
}

.experience-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
}

.experience-list li:before {
  content: "▹";
  color: #009688;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.experience-tech-icons {
  display: flex;
  gap: 15px;
  margin: 15px 0 5px;
  font-size: 28px;
  flex-wrap: wrap;
}

.experience-tech-icons i {
  transition: transform 0.3s ease, color 0.3s ease;
  color: #555;
}

.experience-tech-icons i:hover {
  transform: scale(1.2);
  color: #009688;
}

.experience-tech-icons i.devicon-react-original:hover         { color: #61DAFB; }
.experience-tech-icons i.devicon-nodejs-plain:hover           { color: #68A063; }
.experience-tech-icons i.devicon-mongodb-plain:hover          { color: #47A248; }
.experience-tech-icons i.devicon-amazonwebservices-plain-wordmark:hover { color: #FF9900; }
.experience-tech-icons i.devicon-express-original:hover       { color: #000; }
.experience-tech-icons i.devicon-postgresql-plain:hover       { color: #336791; }
.experience-tech-icons i.devicon-jest-plain:hover             { color: #C21325; }
.experience-tech-icons i.devicon-html5-plain:hover            { color: #E34F26; }
.experience-tech-icons i.devicon-css3-plain:hover             { color: #1572B6; }
.experience-tech-icons i.devicon-javascript-plain:hover       { color: #F7DF1E; }
.experience-tech-icons i.devicon-php-plain:hover              { color: #777BB4; }
.experience-tech-icons i.devicon-wordpress-plain:hover        { color: #21759B; }
.experience-tech-icons i.devicon-wix-original:hover           { color: #0C6EFC; }
.experience-tech-icons i.devicon-shopify-plain:hover          { color: #7AB55C; }

.achievement-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.achievement-item:hover {
  background: #f0f0f0;
}

.achievement-item i {
  font-size: 1.5rem;
  min-width: 40px;
  text-align: center;
}

.achievement-item h5 {
  margin-bottom: 5px;
  color: #333;
}

.achievement-item p {
  color: #666;
  font-size: 0.95rem;
}

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

  .page-container {
    margin-top: -40px;
  }
}

@media (max-width: 768px) {
  .parallax-hero {
    background-attachment: scroll;
    min-height: 70vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    gap: 20px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}

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

@keyframes typing {
  0%, 100% { width: 0; }
  44.44% { width: 100%; }
  55.55% { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #fff; }
}