/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
  position: relative;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

#logo {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
}

#logo a {
  font-family: "Raleway", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#logo a:hover {
  opacity: 0.8;
}

/* Dark mode - yellow color */
[data-theme="dark"] #logo a {
  color: var(--primary-color);
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* Right side navbar group */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme switch positioned between logo and hamburger */
.theme-switch {
  display: flex;
  align-items: center;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}
/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  position: relative;
  transition: 0.5s ease-in-out;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  top: 160px;
  left: 10px;
}

/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}

/* Contact/CTA Section */
.contact-section {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-primary);
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--card-background);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: var(--primary-color);
}

.social-icon img,
.social-icon svg {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%);
  transition: all 0.3s ease;
}

.social-icon:hover img,
.social-icon:hover svg {
  filter: brightness(0) saturate(100%) invert(100%);
}

/* Dark mode adjustments for contact section */
[data-theme="dark"] .social-icon {
  background: var(--bg-secondary);
  color: var(--text-color);
}

[data-theme="dark"] .social-icon img,
[data-theme="dark"] .social-icon svg {
  filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .social-icon:hover img,
[data-theme="dark"] .social-icon:hover svg {
  filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .btn-large {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-large:hover {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: var(--weight-semibold);
  border-radius: 50px;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--text-color) 100%
  );
  color: var(--bg-primary);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-large::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-large:hover::before {
  left: 100%;
}

/* Frontend Technologies Carousel */
.tech-carousel-container {
  padding: 4rem 0;
}

.tech-carousel {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  margin: 2rem 0;
}

.tech-carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: calc(150px * 26); /* 13 items × 2 sets */
}

.tech-carousel-track:hover {
  animation-play-state: paused;
}

.tech-item {
  flex: 0 0 150px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0 10px;
}

.tech-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Individual technology brand colors */
.tech-item:nth-child(1) .tech-icon,
.tech-item:nth-child(8) .tech-icon {
  color: #61dafb; /* React blue */
}

/* Next.js SVG styling - black in light mode */
.tech-item:nth-child(2) .tech-icon img,
.tech-item:nth-child(9) .tech-icon img,
.tech-item:nth-child(16) .tech-icon img,
.tech-item:nth-child(23) .tech-icon img {
  filter: brightness(0) saturate(100%); /* Make SVG black */
  width: 80px;
  height: 80px;
}

/* Dark mode: Make Next.js SVG white */
[data-theme="dark"] .tech-item:nth-child(2) .tech-icon img,
[data-theme="dark"] .tech-item:nth-child(9) .tech-icon img,
[data-theme="dark"] .tech-item:nth-child(16) .tech-icon img,
[data-theme="dark"] .tech-item:nth-child(23) .tech-icon img {
  filter: brightness(0) saturate(100%) invert(100%); /* Make SVG white */
  width: 80px;
  height: 80px;
}

.tech-item:nth-child(3) .tech-icon,
.tech-item:nth-child(10) .tech-icon {
  color: #f7df1e; /* JavaScript yellow */
}

.tech-item:nth-child(4) .tech-icon,
.tech-item:nth-child(11) .tech-icon {
  color: #dd0031; /* Angular red */
}

.tech-item:nth-child(5) .tech-icon,
.tech-item:nth-child(12) .tech-icon {
  color: #7952b3; /* Bootstrap purple */
}

.tech-item:nth-child(6) .tech-icon,
.tech-item:nth-child(13) .tech-icon {
  color: #cf649a; /* Sass pink */
}

.tech-item:nth-child(7) .tech-icon,
.tech-item:nth-child(14) .tech-icon {
  color: #333333; /* GitHub dark gray */
}

/* Dark mode: Make GitHub logo white */
[data-theme="dark"] .tech-item:nth-child(7) .tech-icon,
[data-theme="dark"] .tech-item:nth-child(14) .tech-icon,
[data-theme="dark"] .tech-item:nth-child(21) .tech-icon,
[data-theme="dark"] .tech-item:nth-child(28) .tech-icon {
  color: #ffffff; /* GitHub white in dark mode */
}

/* Custom tech card brand colors */
.tech-card:nth-child(1) .tech-icon {
  color: #3178c6; /* TypeScript blue */
}

.tech-card:nth-child(2) .tech-icon {
  color: #1976d2; /* Material-UI blue */
}

.tech-card:nth-child(3) .tech-icon {
  color: #000000; /* Shadcn/ui black */
}

/* Dark mode: Make Shadcn/ui white */
[data-theme="dark"] .tech-card:nth-child(3) .tech-icon {
  color: #ffffff; /* Shadcn/ui white in dark mode */
}

/* Dark mode: Make Shadcn/ui white in carousel (positions 10 and 23 based on HTML structure) */
[data-theme="dark"] .tech-item:nth-child(10) .tech-icon img,
[data-theme="dark"] .tech-item:nth-child(23) .tech-icon img {
  filter: brightness(0) saturate(100%) invert(100%); /* Make Shadcn/ui logo white */
}

/* Ensure MUI logo keeps its original colors in both light and dark mode */
.tech-item:nth-child(9) .tech-icon img,
.tech-item:nth-child(22) .tech-icon img {
  filter: none !important; /* Remove any filters from MUI logo */
}

[data-theme="dark"] .tech-item:nth-child(9) .tech-icon img,
[data-theme="dark"] .tech-item:nth-child(22) .tech-icon img {
  filter: none !important; /* Keep MUI logo original colors in dark mode */
}

.tech-card:nth-child(4) .tech-icon {
  color: #06b6d4; /* Tailwind cyan */
}

.tech-card:nth-child(5) .tech-icon {
  color: #ff4154; /* React Query red */
}

.tech-card:nth-child(6) .tech-icon {
  color: #764abc; /* Zustand purple */
}

.tech-item h4 {
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  text-align: center;
  color: var(--text-color);
}

/* Tech Grid for additional technologies */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-card {
  text-align: center;
}

.tech-card .tech-icon {
  margin: 0 auto 0.5rem;
  font-size: 3rem;
}

.tech-card h4 {
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color);
}

.tech-card .tech-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-150px * 13));
  }
}

/* Experience Section */
.experience-container {
  padding: 4rem 0;
}

.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.experience-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
}

.experience-date {
  margin-bottom: 0.5rem;
}

.date-badge {
  display: inline-block;
  background: var(--card-background);
  color: var(--text-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-badge.current {
  background: var(--primary-color);
  color: var(--bg-primary);
}

.experience-content h3 {
  font-size: 1.3rem;
  font-weight: var(--weight-bold);
  color: var(--text-color);
  margin-bottom: 0.2rem;
}

.experience-content h4 {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.experience-details {
  list-style: none;
  padding: 0;
}

.experience-details li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 0.9rem;
}

.experience-details li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Dark mode adjustments for experience section */
[data-theme="dark"] .experience-item::before {
  border-color: var(--bg-primary);
}

[data-theme="dark"] .date-badge.current {
  color: var(--text-color-two);
}

/* Contact Form Section */
.contact-form-container {
  padding: 4rem 0;
}

.contact-form-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  align-items: start;
}

.contact-form {
  background: var(--card-background);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  position: relative;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 15px 15px 0 0;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-color);
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Raleway", sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 205, 66, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(255, 205, 66, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: auto;
  margin-top: 1.5rem;
  margin-left: auto;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  font-weight: var(--weight-bold);
  border: none;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--bg-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 205, 66, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 205, 66, 0.4);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

.contact-form .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 205, 66, 0.3);
}

.contact-form .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.contact-form .btn:hover::before {
  left: 100%;
}

.contact-form .btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.contact-form .btn:hover i {
  transform: translateX(3px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: sticky;
  top: 2rem;
}

.contact-info-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-info-header h3 {
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.contact-info-header p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--card-background);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.2rem;
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: var(--weight-bold);
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Dark mode adjustments for contact form */
[data-theme="dark"] .contact-form {
  background: var(--card-background);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-item {
  background: var(--card-background);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: var(--bg-primary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 205, 66, 0.2);
  background: var(--bg-primary);
}

[data-theme="dark"] .form-group label {
  color: var(--text-color);
}

[data-theme="dark"] .contact-form .btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-color-two);
  box-shadow: 0 4px 15px rgba(255, 205, 66, 0.2);
}

[data-theme="dark"] .contact-form .btn:hover {
  box-shadow: 0 8px 25px rgba(255, 205, 66, 0.3);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

/* Go to Top Button */
.go-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 205, 66, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.go-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 205, 66, 0.4);
}

.go-to-top:active {
  transform: translateY(-1px);
}

/* Dark mode adjustments for go to top button */
[data-theme="dark"] .go-to-top {
  background: var(--primary-color);
  color: var(--text-color-two);
  box-shadow: 0 4px 15px rgba(255, 205, 66, 0.2);
}

[data-theme="dark"] .go-to-top:hover {
  background: var(--secondary-color);
  box-shadow: 0 8px 25px rgba(255, 205, 66, 0.3);
}

/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Base font size adjustments */
  body {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1rem;
  }

  /* Navbar font sizes */
  .nav-link {
    font-size: 0.85rem;
  }

  #logo a {
    font-size: 1.5rem;
  }

  /* Hero section */
  .header-container h1 {
    font-size: 1.8rem;
  }

  .header-container h2 {
    font-size: 1.1rem;
  }

  .header-container p {
    font-size: 0.9rem;
  }

  /* Content sections */
  .content-text h2 {
    font-size: 1.4rem;
  }

  .content-text p {
    font-size: 0.85rem;
  }

  .tech-carousel {
    height: 100px;
  }

  .tech-item {
    flex: 0 0 120px;
    height: 100px;
    margin: 0 5px;
  }

  .tech-carousel-track {
    width: calc(120px * 26);
  }

  .tech-icon {
    font-size: 3rem;
  }

  .tech-icon img {
    width: 50px;
    height: 50px;
  }

  .tech-item h4 {
    font-size: 0.7rem;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }

  .social-icons {
    gap: 1.5rem;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  .social-icon img,
  .social-icon svg {
    width: 20px;
    height: 20px;
  }

  .btn-large {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  /* Experience responsive */
  .experience-timeline::before {
    left: 20px;
  }

  .experience-item {
    padding-left: 60px;
  }

  .experience-item::before {
    left: 14px;
  }

  .experience-content h3 {
    font-size: 1rem;
  }

  .experience-content h4 {
    font-size: 0.9rem;
  }

  .experience-details li {
    font-size: 0.8rem;
  }

  .date-badge {
    font-size: 0.7rem;
  }

  /* Contact form responsive */
  .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .contact-info-header h3 {
    font-size: 1.1rem;
  }

  .contact-info-header p {
    font-size: 0.8rem;
  }

  .contact-item h4 {
    font-size: 0.9rem;
  }

  .contact-item p {
    font-size: 0.8rem;
  }

  /* Form elements */
  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.85rem;
  }

  .contact-form .btn {
    font-size: 0.8rem;
  }
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .navbar-right {
    gap: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

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

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }

  /* Experience mobile responsive */
  .experience-timeline::before {
    left: 15px;
  }

  .experience-item {
    padding-left: 45px;
  }

  .experience-item::before {
    left: 9px;
    width: 10px;
    height: 10px;
  }

  .date-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .experience-content h3 {
    font-size: 1rem;
  }

  .experience-content h4 {
    font-size: 0.9rem;
  }

  .experience-details li {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  /* Contact form mobile responsive */
  .contact-form-wrapper {
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-item {
    padding: 1rem;
  }

  .contact-item i {
    font-size: 1.2rem;
  }

  /* Go to top button mobile responsive */
  .go-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}
