/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #ffae00;
  /* Orange/Yellow */
  --secondary-color: #2563ea;
  --dark-color: #111827;
  --light-color: #f3f4f6;
  --white-color: #ffffff;
  --text-color: #374151;
  --heading-color: #000000;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  text-decoration: none;
  outline: none;
  border: none;
}

html {
  font-size: 100%;
  /* Default 16px */
}

body {
  background-color: #ffffff;
  color: var(--text-color);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 100px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom,
      var(--secondary-color),
      var(--primary-color));
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right,
      var(--primary-color),
      var(--secondary-color));
  z-index: 10001;
  transition: width 0.1s ease-out;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 90px;
  width: 45px;
  height: 45px;
  background: var(--secondary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 40px;
}

.scroll-top:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.section-title span {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white-color);
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 174, 0, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 174, 0, 0.4);
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: #000;
  letter-spacing: 1px;
  transition: var(--transition);
}

.logo:hover {
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #000;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 5px;
}

.nav-link:hover,
.nav-link.active {
  color: #1f35ff;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #1f35ff;
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--heading-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
  padding-top: 60px;
  font-family: "Times New Roman", Times, serif;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Changed from space-between to center */
  gap: 4rem;
  /* Added gap for separation */
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 800px; /* Increased from 600px to allow more space for the full name */
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #002057;
  margin-bottom: 10px;
  line-height: 1.4;
}

.name {
  white-space: nowrap;
}

.orange-text {
  color: #ffae00;
}

.hero-content h3 {
  font-size: 2rem;
  font-weight: 600;
  color: black;
  margin-bottom: 15px;
}

.typing-text {
  color: #a00000;
}

/* CTA Button in Hero */
.cta-buttons {
  margin-bottom: 20px;
}

.btn-hero {
  background: #1a047e;
  color: #fff;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(255, 174, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.btn-hero:hover {
  background: #e69c00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 174, 0, 0.4);
}

.bounce-icon {
  animation: arrowBounce 1s infinite alternate;
}

@keyframes arrowBounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(3px);
  }
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: #0e0e0e;
  color: #00aced;
  border: 1px solid #eee;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-right: 15px;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
  max-width: 500px;
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: translateY(-10px);
}

/* Yellow Circle Background */
.hero-image::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: #fec903;
  border-radius: 50%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.hero-image:hover::before {
  background: #c39a02;
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-image img {
  width: 450px;
  aspect-ratio: 1/1;
  max-width: 100%;
  z-index: 2;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.5s ease;
  border: 5px solid transparent;
}

/* .hero-image:hover img {
  border-color: #fec903;
  transform: scale(1.1);
} */

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  text-align: center;
  margin-right: 50px;
}

.about-image img {
  width: 400px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  filter: grayscale(100%);
  /* Black and White by default */
}

.about-image img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  /* Color on hover */
}

.about-text {
  flex: 1.5;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.about-text h3 span {
  color: var(--primary-color);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: black;
}

.about-info {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
  color: black;
}

.info-item {
  flex: 0 0 50%;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--heading-color);
  font-weight: 500;
}

.info-item b {
  color: var(--secondary-color);
  margin-right: 10px;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.skill-card {
  background: var(--white-color);
  padding: 35px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 180px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--skill-color);
  background: rgba(255, 255, 255, 1);
}

.skill-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--skill-color);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: 20px;
}

.skill-card:hover::after {
  opacity: 0.1;
}

.skill-icon {
  width: 80px;
  height: 80px;
  font-size: 4rem;
  /* Slightly larger */
  margin-bottom: 15px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover .skill-icon {
  transform: scale(1.15) rotate(5deg);
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* Education Section */
.education-box {
  margin: 0 auto;
  max-width: 800px;
  border-left: 3px solid var(--primary-color);
  padding-left: 30px;
  font-weight: 500;
}

.edu-card {
  position: relative;
  background: var(--white-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  z-index: 1;
}

.edu-card:hover {
  transform: translateX(15px) translateY(-5px);
  background-color: #f9f9f9;
  /* Subtle greyish background */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -41.5px;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--white-color);
  box-shadow: 0 0 0 4px #f3f4f6;
  transition: all 0.3s ease;
  z-index: 2;
}

.edu-card:hover::before {
  transform: scale(1.2);
  background: var(--primary-color);
  box-shadow: 0 0 20px rgba(37, 99, 234, 0.4);
}

.edu-card h3 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.edu-card .school {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.edu-card .year {
  font-size: 1rem;
  color: #888;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
}

/* Experience Section */
.experience-box {
  margin: 0 auto;
  max-width: 800px;
  border-left: 3px solid var(--secondary-color);
  padding-left: 30px;
  font-weight: 500;
}

.exp-card {
  position: relative;
  background: var(--white-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  transition: var(--transition);
}

.exp-card:hover {
  transform: translateX(10px);
}

.exp-card::before {
  content: "";
  position: absolute;
  top: 25px;
  left: -41.5px;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border-radius: 50%;
  border: 3px solid #f3f4f6;
}

.exp-card h3 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.exp-card .company {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.exp-card .year {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
  font-weight: 600;
  display: inline-block;
}

/* Projects Section */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  flex: 0 1 calc(33.333% - 20px);
  min-width: 280px;
  max-width: 350px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.project-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 20px;
}

.project-tag {
  background: linear-gradient(135deg, rgba(255, 174, 0, 0.1), rgba(255, 174, 0, 0.2));
  color: var(--primary-color);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 174, 0, 0.2);
}

.project-content h3 {
  font-size: 1.4rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.project-content p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 20px;
  font-weight: 500;
}

.btn-project {
  padding: 10px 28px;
  font-size: 0.95rem;
  background: var(--primary-color);
  color: var(--white-color);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-project:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
  box-shadow: 0 10px 30px white;
}

.btn-project i {
  transition: transform 0.3s ease;
}

.btn-project:hover i {
  transform: translateX(5px);
}

/* Contact Section */
.contact-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.contact-content {
  background: var(--white-color);
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  width: 100%;
  text-align: center;
  font-weight: 500;
  color: rgb(43, 42, 42);
}

.contact-info {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-item {
  text-align: center;
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-item p {
  font-weight: 500;
  color: var(--heading-color);
}

/* Footer Section Modern */
.footer {
  background: var(--dark-color);
  color: var(--white-color);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  color: var(--white-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #9ca3af;
  transition: var(--transition);
  font-weight: 500;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.info-col .footer-desc {
  color: #9ca3af;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.footer-logo {
  color: var(--white-color);
  font-size: 2rem;
}

.contact-details p {
  color: #9ca3af;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.contact-details i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.footer-bottom-line {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  color: white;
  font-size: 1rem;
}

@media screen and (max-width: 1150px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

footer {
  background: var(--dark-color);
  color: var(--white-color);
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

footer p {
  margin: 0;
}

footer i {
  color: #ff4757;
}

/* Media Queries for Hero */
/* Media Queries for Hero */
@media screen and (max-width: 1150px) {
  .navbar {
    padding: 0 20px;
  }

  /* Hero Section Responsiveness */
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    padding-top: 40px;
  }

  .hero-content {
    margin-top: 30px;
    flex: 1;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-image {
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }

  .hero-image::before {
    width: 280px;
    height: 280px;
  }

  .hero-image img {
    width: 280px;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .about-info {
    justify-content: center;
  }

  .info-item {
    flex: 0 0 100%;
  }
}

@media screen and (max-width: 1024px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 15px 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-image::before {
    width: 240px;
    height: 240px;
  }

  .hero-image img {
    width: 240px;
  }

  .social-icons {
    margin-bottom: 25px;
  }
}

/* ========== COMPREHENSIVE RESPONSIVE STYLES ========== */

/* Extra Small Devices (Phones, less than 480px) */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  /* Hero Section Mobile Fixes (ULTIMATE FIX FOR 360px - 390px) */
  .hero {
    min-height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .hero-container {
    flex-direction: column-reverse !important;
    gap: 0px !important; /* Managed by item margins now */
    padding-top: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  .hero-content {
    margin-top: 0px !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  .hero-image {
    margin-top: 0px !important;
    margin-bottom: 10px !important;
    width: 180px !important;
    height: 180px !important;
    flex: none !important;
  }

  /* Yellow circle size adjust */
  .hero-image::before {
    width: 180px !important;
    height: 180px !important;
  }

  .hero-image img {
    width: 180px !important;
    height: 180px !important;
  }

  /* TEXT spacing fix */
  .hero-content h1 {
    font-size: 1.7rem !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
  }

  .hero-content h3 {
    font-size: 1rem !important;
    margin-bottom: 15px !important;
  }

  .cta-buttons {
    margin-bottom: 5px !important;
  }

  .btn-hero {
    padding: 12px 25px !important;
    margin-bottom: 10px !important;
  }

  .social-icons {
    margin-top: 5px !important;
    margin-bottom: 0px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .social-icons a {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    margin: 0 !important;
  }

  /* About Section */
  .about-image img {
    width: 280px !important;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 0.9rem;
  }

  .info-item {
    font-size: 0.85rem;
    padding: 8px 0;
  }

  /* Skills Section */
  .skills-container {
    gap: 15px;
  }

  .skill-card {
    width: 140px;
    padding: 20px 15px;
  }

  .skill-icon {
    font-size: 2.5rem !important;
    width: 50px !important;
    height: 50px !important;
  }

  .skill-icon img {
    width: 45px !important;
    height: 45px !important;
  }

  .skill-name {
    font-size: 0.85rem;
  }

  /* Experience & Education Cards */
  .exp-card,
  .edu-card {
    padding: 15px;
  }

  .exp-card h3,
  .edu-card h3 {
    font-size: 1.1rem;
  }

  .experience-box,
  .education-box {
    padding-left: 20px;
  }

  .exp-card::before,
  .edu-card::before {
    left: -31px;
    width: 16px;
    height: 16px;
  }

  /* Projects Section */
  .project-card {
    width: 100%;
    max-width: 320px;
  }

  .project-img {
    height: 160px;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }

  .project-content p {
    font-size: 0.85rem;
  }

  /* Contact Section */
  .contact-content {
    padding: 25px 15px;
  }

  .contact-content h3 {
    font-size: 1.3rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  /* Footer */
  .footer-grid {
    text-align: center;
  }

  .contact-details p {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-desc {
    font-size: 0.85rem;
  }

  /* Scroll to Top */
  .scroll-top {
    width: 35px;
    height: 35px;
    right: 15px;
    bottom: 15px;
    font-size: 1rem;
  }
}

/* Very Small Mobile (320px - 360px) */
@media screen and (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .about-image img {
    width: 100% !important;
    max-width: 260px !important;
  }

  .skill-card {
    width: 100%;
    /* Switch to single column on very small screens to avoid overflow */
    max-width: 240px;
  }
}

/* Small Devices (Phones in landscape, 481px - 600px) */
@media screen and (min-width: 481px) and (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .skill-card {
    width: 150px;
  }

  .project-card {
    width: 100%;
    max-width: 350px;
  }
}

/* Medium Devices (Tablets, up to 1024px) */
@media screen and (max-width: 1024px) {
  .skills-container {
    gap: 20px;
  }

  .skill-card {
    width: 160px;
  }

  .projects-container {
    justify-content: center;
  }

  .project-card {
    width: calc(50% - 15px);
    max-width: 350px;
    flex: 0 1 auto;
  }
}

/* Remove redundant tablet range as 1024 is now handled */

/* Large Devices (Desktops, 992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  .skill-card {
    width: 175px;
  }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .skill-card {
    width: 180px;
  }
}

/* Ultra Wide Screens (1400px and up - perfect for 1440/1920) */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-content h1 {
    font-size: 4.5rem;
  }

  .hero-container {
    gap: 5rem;
  }

  .skills-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .projects-container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ========== ZOOM LEVEL ADJUSTMENTS ========== */
/* These help maintain readability at different zoom levels */

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .hero-image img {
    image-rendering: -webkit-optimize-contrast;
  }

  .about-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print Styles */
@media print {

  .navbar,
  .hamburger,
  .scroll-top,
  #scroll-progress {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 50px 0;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* ========== ORIENTATION SPECIFIC ========== */
/* Landscape Mode for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .hero-container {
    flex-direction: row;
  }

  .hero-image img {
    width: 180px;
  }

  .hero-image::before {
    width: 180px;
    height: 180px;
  }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover effects on touch devices for better UX */
  .skill-card:hover {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  /* Active states instead */
  .skill-card:active {
    transform: scale(0.98);
  }

  .project-card:active {
    transform: scale(0.98);
  }

  .btn:active {
    transform: scale(0.95);
  }
}