* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
  width: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-content {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-m {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  animation: popInM 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  margin-bottom: -10px;
  background: linear-gradient(45deg, #fff, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-text {
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 400;
  letter-spacing: 5px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpText 1s ease 1.2s forwards;
  text-transform: uppercase;
}

@keyframes popInM {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUpText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-up-indicator {
  margin-top: 50px;
  opacity: 0;
  animation: fadeInUpText 1s ease 2s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.scroll-up-indicator p {
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.scroll-up-indicator i {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.8);
  animation: bounceUp 2s infinite;
}

@keyframes bounceUp {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo img {
  width: 60px;
  height: 60px;
  display: block;
}

.logo span,
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav li {
  list-style: none;
}

.nav li a {
  text-decoration: none;
  color: #000000;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  display: block;
}

.nav li a:hover {
  background: rgba(0, 0, 0, 0.086);
}


.resume-btn {
  text-decoration: none;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
  display: inline-block;
}

.resume-btn:hover {
  background: #333;
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1000;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/*hero*/
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  padding: 77px;
  gap: 40px;
  position: relative;
  min-height: 80vh;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.6;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 400;
}

.hero-content h2 span {
  font-weight: 700;
}

.hero-content .highlight {
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
  font-weight: 900;
}

.hero-content p {
  font-size: 0.95rem;
  color: #555;
  margin: 15px 0 25px 0;
  line-height: 1.6;
}

.social-links a {
  display: inline-block;
  text-decoration: none;
  color: #000;
  font-size: 1.2rem;
  margin-right: 15px;
  border: 1px solid #000;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.7s ease;
}

.social-links a:hover {
  background: #000;
  color: #fff;
}

.hero-image img {
  width: 100%;
  max-width: 350px;
  display: block;
  margin: auto;
  border-radius: 10%;
  border: 1px solid #000;
}

/* skills */
.skills {
  text-align: center;
  padding: 80px 20px;
}

.skills h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 400;
}

.skills h2 span {
  font-weight: 700;
}

.skills-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1320px;
  margin: auto;
}

.skill-card {
  border: 2px solid #000;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.skill-card img {
  width: 40px;
  height: 40px;
  filter: grayscale(100%);
}

.skill-card p {
  font-size: 0.95rem;
  color: #000;
  font-weight: 500;
  transition: color 0.3s ease;
}

.skill-card:hover {
  background: #000;
}

.skill-card:hover p {
  color: #fff;
}

.skill-card:hover img {
  filter: grayscale(100%) brightness(0) invert(1);
}

/* experience */
.experience {
  background: #000;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.experience h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  font-weight: 400;
}

.experience h2 span {
  font-weight: 700;
}


.experience-card {
  max-width: 1320px;
  margin: 0 auto 30px auto;
  background: #111;
  padding: 25px 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid #333;
  transition: all 0.3s ease;
}



.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* company */
.company {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company img {
  width: 24px;
  height: 24px;
}

.company h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.date {
  font-size: 0.9rem;
  color: #aaa;
}

.experience-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
}

.experience-card:hover {
  background: rgba(148, 143, 143, 0.481);
  border: 1px solid rgba(255, 255, 255, 0.748);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.253);
  transform: translateY(-6px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* about */
.about {
  padding: 40px 15px;
  background: #fff;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  border: 1.5px solid #000;
  border-radius: 6px;
  object-fit: cover;
}

.about-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-content h2 span {
  font-weight: 700;
}

.about-content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* project */
.projects-section {
  background: #000;
  padding: 60px 20px;
  color: #fff;
  text-align: center;
}

.projects-section h2 {
  font-size: 2rem;
  margin-bottom: 60px;
}

.projects-section h2 span {
  font-weight: 700;
}

.project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto 60px auto;
  text-align: left;
}



.project.reverse .project-content {
  order: 1;
}

.project.reverse .project-image {
  order: 2;
}

.project-image img {
  width: 100%;
  max-width: 630px;
  height: auto;
  max-height: 275px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.project-image img:hover {
  transform: scale(1.03);
}

.project-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.project-content p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-content a {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-block;
  border: 1px solid #fff;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.project-content a:hover {
  background: #fff;
  color: #000;
}

.project-content {
  background: black;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
}

.project-content:hover {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.432), rgba(255, 255, 255, 0.03));
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/*devkit*/
.devkits {
  text-align: center;
  padding: 60px 20px;
}

.devkits h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 400;
}

.devkits h2 span {
  font-weight: 700;
}

.devkits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.devkit-card {
  background: #fff;
  color: #000;
  border-radius: 15px;
  padding: 30px 20px;
  width: 100%;
  max-width: 250px;
  height: 280px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.devkit-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

.devkit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.devkit-card p {
  font-size: 0.9rem;
  color: inherit;
}

.devkit-card:hover {
  background: #000;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.devkit-card:hover h3 {
  color: white;
}

.devkit-card:hover p {
  color: white;
}

/* contact */
.contact-section {
  padding: 60px 20px;
  background: #fff;
  color: #000;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: start;
  max-width: 1320px;
  margin: auto;
}

/* Left form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  height: 100px;
  resize: none;
}

.btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 50px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #00000058;
  color: rgb(0, 0, 0);
}

/* Social Icons */
.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 25px;
}

.social-icons a {
  display: inline-block;
  text-decoration: none;
  color: #000;
  padding: 12px;
  font-size: 1.2rem;
  margin-right: 15px;
  border: 1px solid #000;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #000;
  color: #fff;
}

/* Right side text */
.contact-info h2 {
  font-size: 3rem;
  margin-top: 10px;
  margin-left: 40px;
  line-height: 1.3;
}

.contact-info h2 span {
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
  font-weight: 700;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #555;
  margin-left: 40px;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
  margin-left: 40px;
}

/* Footer */
.footer-bar {
  background: #000;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-right {
  margin: 0;
  font-size: 0.8rem;
  margin-right: 40px;
}

.footer-right span {
  margin-left: 39px;
}

.footer-left {
  display: flex;
  align-items: center;
  margin-left: 45px;
}

.footer-left img {
  width: 40px;
  height: 40px;
  display: block;
  filter: invert(1);
}

.footer-left span {
  font-size: 1rem;
  font-weight: 700;
}

/* ===== Download Success Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #111;
  color: #fff;
  padding: 16px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  border-left: 4px solid #22c55e;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  min-width: 280px;
  max-width: 340px;
  overflow: hidden;
}

.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #22c55e;
  transform-origin: left;
  transform: scaleX(1);
  animation: none;
  border-radius: 0 0 0 12px;
}

.toast-show::after {
  animation: toastProgress 3.2s linear forwards;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.toast-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast i {
  font-size: 1.4rem;
  color: #22c55e;
  flex-shrink: 0;
}

.toast span {
  line-height: 1.4;
}

/* Tablets and large phones */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 15px 20px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .logo span {
    font-size: 1.2rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px 30px;
    gap: 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  /* Overlay when menu is open - using body pseudo-element */
  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    animation: fadeIn 0.3s ease;
    pointer-events: auto;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .nav li {
    width: 100%;
  }

  .nav li a {
    width: 100%;
    padding: 12px 15px;
    display: block;
  }

  .hamburger {
    display: flex;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px;
    min-height: auto;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 250px;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }

  /* Skills */
  .skills {
    padding: 60px 20px;
  }

  .skills-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .skill-card {
    padding: 20px 15px;
  }

  /* Experience */
  .experience {
    padding: 60px 20px;
  }

  .experience-card {
    padding: 20px;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .company h3 {
    font-size: 1rem;
  }

  /* Projects */
  .projects-section {
    padding: 60px 20px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    margin-bottom: 40px;
  }

  .project.reverse .project-content,
  .project .project-content {
    order: 2;
    text-align: center;
  }

  .project.reverse .project-image,
  .project .project-image {
    order: 1;
    width: 100%;
  }

  .project-image img {
    height: auto;
    max-height: 250px;
    width: 100%;
    object-fit: cover;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-content h4 {
    font-size: 1.1rem;
  }

  /* About */
  .about {
    padding: 60px 20px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-content {
    text-align: center;
  }

  /* Devkits */
  .devkits {
    padding: 60px 20px;
  }

  .devkits-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .devkit-card {
    max-width: 100%;
    height: auto;
    min-height: 250px;
  }

  /* Contact */
  .contact-section {
    padding: 60px 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .contact-info {
    margin-bottom: 30px;
    text-align: center;
  }

  .contact-info h2 {
    font-size: 2rem;
    margin-left: 0;
    margin-bottom: 20px;
  }

  .contact-info p,
  .contact-info h3 {
    margin-left: 0;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }

  .social-icons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Footer */
  .footer-bar {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-left {
    margin-left: 0;
    justify-content: center;
  }

  .footer-right {
    margin-right: 0;
  }

  .footer-right span {
    margin-left: 0;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .navbar {
    padding: 12px 15px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .logo span {
    font-size: 1rem;
  }

  .nav {
    width: 80%;
    padding: 70px 20px 20px 20px;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
  }

  /* Hero */
  .hero {
    padding: 30px 15px;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .hero-image img {
    max-width: 200px;
  }

  .social-links a {
    font-size: 1rem;
    padding: 6px;
    margin-right: 8px;
  }

  /* Skills */
  .skills {
    padding: 50px 15px;
  }

  .skills h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .skills-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skill-card {
    padding: 15px 10px;
  }

  .skill-card img {
    width: 35px;
    height: 35px;
  }

  .skill-card p {
    font-size: 0.85rem;
  }

  /* Experience */
  .experience {
    padding: 50px 15px;
  }

  .experience h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .experience-card {
    padding: 15px;
  }

  .company h3 {
    font-size: 0.9rem;
  }

  .experience-card p {
    font-size: 0.85rem;
  }

  .date {
    font-size: 0.8rem;
  }

  /* About */
  .about {
    padding: 50px 15px;
  }

  .about-content h2 {
    font-size: 1.3rem;
  }

  .about-content p {
    font-size: 0.85rem;
  }

  /* Projects */
  .projects-section {
    padding: 50px 15px;
  }

  .projects-section h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .project-content h3 {
    font-size: 1.3rem;
  }

  .project-content h4 {
    font-size: 1rem;
  }

  .project-content p {
    font-size: 0.85rem;
  }

  .project-image img {
    max-height: 180px;
  }

  /* Devkits */
  .devkits {
    padding: 50px 15px;
  }

  .devkits h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .devkits-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .devkit-card {
    max-width: 100%;
    padding: 25px 15px;
  }

  .devkit-card h3 {
    font-size: 1.1rem;
  }

  .devkit-card p {
    font-size: 0.85rem;
  }

  /* Contact */
  .contact-section {
    padding: 50px 15px;
  }

  .contact-info h2 {
    font-size: 1.5rem;
    margin-left: 0;
    line-height: 1.4;
  }

  .contact-info p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .contact-info h3 {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .btn {
    padding: 10px 40px;
    font-size: 0.9rem;
  }

  .social-icons a {
    padding: 10px;
    font-size: 1rem;
    margin-right: 8px;
  }

  /* Footer */
  .footer-bar {
    padding: 15px;
    font-size: 0.8rem;
  }

  .footer-left img {
    width: 35px;
    height: 35px;
  }

  .footer-left span {
    font-size: 0.9rem;
  }

  .footer-right {
    font-size: 0.75rem;
  }
}

/* Extra small phones (iPhone 6/7/8 - 375px) */
@media (max-width: 375px) {
  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-image img {
    max-width: 180px;
  }

  .skills-box {
    gap: 10px;
  }

  .skill-card {
    padding: 12px 8px;
  }

  .contact-info h2 {
    font-size: 1.3rem;
  }

  .project-content h3 {
    font-size: 1.2rem;
  }

  .project-content h4 {
    font-size: 0.95rem;
  }
}

/* Tiny phones (iPhone SE - 320px) */
@media (max-width: 320px) {
  .navbar {
    padding: 10px 12px;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }

  .logo span {
    font-size: 0.9rem;
  }

  .nav {
    width: 85%;
    padding: 60px 15px 15px 15px;
  }

  .hero {
    padding: 25px 12px;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .hero-image img {
    max-width: 150px;
  }

  .skills-box {
    grid-template-columns: 1fr;
  }

  .contact-info h2 {
    font-size: 1.2rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .btn {
    padding: 8px 25px;
    font-size: 0.85rem;
  }

  /* Global Section Padding Fix for tiny screens */
  section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}