:root {
  --primary: #00ff88;
  --dark: #121212;
  --darker: #0a0a0a;
  --light: #e0e0e0;
  --accent: #00b7ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scrollbar-width: none; /* Firefox */
  transition: all 1s ease;
  scroll-snap-align: start;
}

html {
  scroll-behavior: smooth;
}

section {
  min-height: 100vh;
  padding: 3rem 0;
  margin: 6rem 0; /* Increased vertical margin between sections */
  position: relative;
  width: 100%;
  overflow: hidden;
}

body {
  line-height: 1.6;
  color: var(--light);
  background-color: var(--dark);
  overflow-x: hidden;
  scroll-snap-type: y proximity;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: var(--darker);
}

header {
  background-color: rgba(10, 10, 10, 0.8);
  color: white;
  padding: 2rem 0;
  text-align: center;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: row;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  overflow: visible; /* Allow overflow content to be visible */
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 2rem;
}

.about-tittle {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-left: 500px;
  position: relative;
  display: inline-block;
}

.about-image {
  flex: 0 0 310px;
  position: relative;
  margin-left: 80px;
}

.about-image img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.about-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  z-index: 0;
  transform: translate(15px, 15px);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.about-text {
  flex: 1;
  padding-left: 60px;
}

.about-text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem;
  background: rgba(20, 20, 20, 0.7);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(30, 30, 30, 0.7);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary));
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 0;
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--dark);
}

.quick-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.quick-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.email-btn {
  background: #ff4757;
  color: white;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
}

.quick-button:hover {
  transform: translateY(-3px);
}

.availability {
  background: rgba(30, 30, 30, 0.7);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.availability h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--light);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

.typing-demo {
  line-height: 1.6;
  margin: 1rem 0;
  font-size: 1.1rem;
  max-width: 100%;
  overflow: hidden;
  white-space: normal; /* Changed from nowrap if you had that */
  text-align: left;
}

nav {
  display: flex;
  position: sticky;
  z-index: 1000;
  top: 0;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(10, 10, 10, 0.8);
  transition: all 0.3s ease;
  min-height: 50px;
  padding: 0.3rem 1rem;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  list-style-type: none;
  margin-left: auto;
  margin-right: 80px;
}

.logo {
  font-size: 35px;
  font-weight: 500;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: left;
  margin-left: 0;
  padding: 0;
  align-items: left;
  justify-content: left;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.nav-links a {
  color: var(--light);
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
  display: inline-block;
  background: linear-gradient(to right, var(--primary) 50%, var(--light) 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  padding: 0.5rem 1.5rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary);
  transition: width 0.5s ease;
}

.nav-links :hover {
  text-decoration: underline;
  background-position: left bottom;
  transition: all 0.5s ease;
}

.nav-links a:hover {
  background-position: left bottom;
  transition: all 0.5s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
  background-position: left bottom;
}

.nav-links a.active::after {
  width: 100%;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: white;
  display: inline-block;
}

.d-text {
  font-size: clamp(1.5rem, 6vw, 38px);
  white-space: normal; /* Changed from nowrap */
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.typed-text {
  display: inline-block;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal; /* Changed from nowrap */
  width: 100%;
}

span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h2 {
  color: var(--primary);
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

h3 {
  color: var(--light);
}

/* Hero Section Styles */
.hero {
  padding: 4rem 0;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  width: 485px;
  height: 485px;
  border-radius: 20px;
  margin-top: 8px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  filter: brightness(1);
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 20px;
  background: linear-gradient(45deg, #00ff88, #0088ff, #ff0088);
  z-index: 0;
  animation: bubblePress 4s ease-in-out infinite;
  opacity: 0.6;
}

.hero-image::after {
  content: "";
  position: absolute;
  width: 495px;
  height: 495px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.hero-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
  transition: all 0.5s ease;
}

.hero-image:hover::before {
  opacity: 0.9;
  width: 510px;
  height: 510px;
  animation: shake 5s ease infinite;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  opacity: 0.5;
}

.hero-image:hover::after {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--darker);
  padding: 0.8rem 1.5rem;
  margin-top: 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
  border: none;
  cursor: pointer;
  width:max-content ;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

#projects {
  min-height: auto;
  padding: 6rem 0;
  overflow: visible; /* Allow overflow content to be visible */
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
  max-width: 100%;
  overflow: visible; /* Allow overflow content to be visible */
}

.project-card {
  position: relative;
  background: rgba(30, 30, 30, 0.7);
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  height: 100%; /* Ensure full height */
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem; /* Add bottom margin */
}

.project-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  width: 100%; /* Ensure full width */
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto; /* Allow content to expand */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .project-card {
    min-height: 350px;
  }
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  transition: all 0.3s ease;
}

.project-card {
  transition: transform 0.3s ease;
}

/* Optional: Add hover effect to expand project cards */
.project-card:hover {
  transform: translateY(-10px);
  z-index: 1;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary));
  transition: left 0.5s ease;
}

.project-card:hover::before {
  left: 0;
}

.project-card:hover {
  border: 1px solid rgba(0, 255, 136, 0.2);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: rgba(40, 40, 40, 0.7);
}

.project-img {
  height: 200px;
  background-color: #333;
  background-size: cover;
  background-position: center;
}

.project-content {
  padding: 1.5rem;
}

.project-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0;
}

.status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(5px);
}

.status-badge.completed {
  background: rgba(0, 255, 136, 0.2);
  color: rgb(136, 227, 136);
  border: 1px solid var(--primary);
}

.status-badge.in-progress {
  background: rgba(255, 183, 0, 0.2);
  color: #ffb700;
  border: 1px solid #ffb700;
}

.status-badge.planned {
  background: rgba(0, 183, 255, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-item {
  display: flex;
  align-items: center;
  background: rgba(30, 30, 30, 0.7);
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
  background: rgba(40, 40, 40, 0.7);
}

.skill-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.fa-html5 {
  color: #e34f26;
}

.fa-css3-alt {
  color: #1572b6;
}

.fa-js-square {
  color: #f7df1e;
}

.fa-react {
  color: #61dafb;
}

.fa-node {
  color: #339933;
}

.fa-python {
  background: linear-gradient(135deg, #4b8bbe 50%, #ffd43b 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.skill-item:hover .fa-python {
  transform: scale(1.1);
}

.fa-github {
  color: #fff;
}

.fa-bootstrap {
  color: #7952b3;
}
.fa-git-alt {
  color: #f05032;
}

.fa-java {
  background: linear-gradient(135deg, #5382a1 50%, #f89820 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fa-database {
  color: #00758f;
}

.spring-boot {
  color: #6db33f;
}

.fa-docker {
  color: #2496ed;
}

.fa-flutter {
  color: #02569b;
}

.fa-dart {
  background: linear-gradient(223deg, #0091ea 50%, #104f77 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typescript {
  color: #3178c6;
}

.fa-php {
  color: #777bb4;
}

.fa-sass {
  color: #cc6699;
}

.fa-angular {
  color: #dd0031;
}

.skill-item:hover .skill-icon {
  transform: scale(1.1);
}

.certifications {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cert-card {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary));
  transition: left 0.5s ease;
}

.cert-card:hover::before {
  left: 0;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: rgba(40, 40, 40, 0.7);
}

.cert-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cert-issuer {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cert-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.cert-card a {
  position: relative;
  text-decoration: none;
  color: var(--light);
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-top: 1rem;
  overflow: hidden;
}

.cert-card a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary));
  transition: width 0.3s ease;
}

.cert-card a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.cert-card a:hover::before {
  width: 100%;
}

.cert-card a i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.cert-card a:hover i {
  transform: translateX(5px);
}

footer {
  width: 100%;
  padding: 1rem;
  background-color: transparent;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  color: #fff;
  margin: 0;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  footer {
    padding: 0.8rem;
  }

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--light);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}
/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  padding: 1rem;
  margin-left: auto;
  z-index: 1001;
}

.menu-icon {
  width: 30px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 10px;
}

.menu-icon span:nth-child(3) {
  top: 20px;
}

.menu-icon.open span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.menu-icon.open span:nth-child(2) {
  opacity: 0;
  left: -30px;
}

.menu-icon.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 1000;
    padding-top: 80px;
    margin-right: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }

  .nav-links a::after {
    display: none;
  }

  /* Overlay when menu is open */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Animations */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bubblePress {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

@keyframes rotateReverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg) scale(1.05);
  }
  25% {
    transform: rotate(-5deg) scale(1.05);
  }
  75% {
    transform: rotate(5deg) scale(1.05);
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(10px);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ==================== */
/* COMPLETE RESPONSIVE STYLES */
/* ==================== */

@media (max-width: 1440px) {
  .container {
    max-width: 95%;
    padding: 5rem 2rem;
  }

  .hero-image img {
    width: 450px;
    height: 450px;
  }

  .hero-image::before {
    width: 460px;
    height: 460px;
  }

  .hero-image::after {
    width: 465px;
    height: 465px;
  }

  .about-tittle {
    margin-left: 400px;
  }
}

@media (max-width: 1200px) {
  .hero-content {
    gap: 2rem;
  }

  .hero-image img {
    width: 400px;
    height: 400px;
  }

  .hero-image::before {
    width: 410px;
    height: 410px;
  }

  .hero-image::after {
    width: 415px;
    height: 415px;
  }

  .about-content {
    gap: 2rem;
  }

  .about-tittle {
    margin-left: 300px;
  }

  .skills-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .container {
    padding: 4rem 2rem;
    height: auto;
  }

  /* Navigation */
  nav {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    margin: 1rem auto 0;
    justify-content: center;
    flex-wrap: wrap;
    margin-right: 0;
  }

  /* Hero Section */
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 2;
    margin-top: 2rem;
  }

  .hero-image {
    order: 1;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-tittle {
    margin-left: 0;
  }

  .about-image {
    margin: 0 auto 2rem;
  }

  .about-text {
    padding-left: 0;
  }

  /* Skills Section */
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact Section */
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .d-text {
    font-size: 2rem;
  }

  /* Hero Image */
  .hero-image img {
    width: 350px;
    height: 350px;
  }

  .hero-image::before {
    width: 360px;
    height: 360px;
  }

  .hero-image::after {
    width: 365px;
    height: 365px;
  }

  /* Projects */
  .projects {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  /* Contact Cards */
  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .icon-wrapper {
    margin-bottom: 1rem;
  }

  /* Certifications */
  .certifications {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  /* Base Styles */
  body {
    font-size: 14px;
  }

  section {
    padding: 2rem 0;
  }

  .container {
    padding: 3rem 1.5rem;
  }

  /* Navigation */
  .nav-links a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .logo {
    font-size: 28px;
  }

  /* Hero Section */
  .hero-image img {
    width: 280px;
    height: 280px;
  }

  .hero-image::before {
    width: 290px;
    height: 290px;
  }

  .hero-image::after {
    width: 295px;
    height: 295px;
  }

  /* Skills Section */
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Certifications */
  .certifications {
    grid-template-columns: 1fr;
  }

  /* About Image */
  .about-image {
    flex: 0 0 250px;
  }

  .d-text {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    padding: 0 1rem;
  }

  .typed-text {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
}

@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.8rem;
  }

  /* Hero Section */
  .hero-image img {
    width: 250px;
    height: 250px;
  }

  .hero-image::before {
    width: 260px;
    height: 260px;
  }

  .hero-image::after {
    width: 265px;
    height: 265px;
  }

  /* Skills Section */
  .skills-container {
    grid-template-columns: 1fr;
  }

  /* Quick Buttons */
  .quick-buttons {
    flex-direction: column;
  }

  /* Social Links */
  .social-links {
    flex-wrap: wrap;
  }

  /* Project Cards */
  .project-card {
    margin-top: 1rem;
  }
}

@media (max-width: 380px) {
  /* Hero Section */
  .hero-image img {
    width: 220px;
    height: 220px;
  }

  .hero-image::before {
    width: 230px;
    height: 230px;
  }

  .hero-image::after {
    width: 235px;
    height: 235px;
  }

  /* Navigation */
  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.5rem 0.7rem;
  }

  /* About Image */
  .about-image {
    flex: 0 0 220px;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
/* Hero Section Responsive Styles */
.hero {
  padding: 2rem 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  padding: 1rem;
}

.hero-text {
  text-align: center;
  order: 2;
  width: 100%;
  max-width: 800px;
  padding: 0 1rem;
  overflow: hidden;
}

.hero-image {
  order: 1;
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 485px;
  max-height: 485px;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  top: -10px;
  left: -10px;
  border-radius: 20px;
  background: linear-gradient(45deg, #00ff88, #0088ff, #ff0088);
  z-index: 0;
  animation: bubblePress 4s ease-in-out infinite;
  opacity: 0.6;
}

.hero-image::after {
  content: "";
  position: absolute;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  top: -5px;
  left: -5px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  z-index: 1;
}

/* Typography Adjustments */
.hero h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero .d-text {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Button Adjustments */
.hero .btn {
  padding: 0.8rem clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(0.9rem, 3vw, 1rem);
}

/* Media Queries for Fine-Tuning */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
  }

  .hero-text {
    text-align: left;
    order: 1;
    padding-right: 2rem;
  }

  .hero-image {
    order: 2;
  }

  .hero h1,
  .hero .d-text {
    text-align: left;
  }

  .hero p {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 992px) {
  .hero-content {
    gap: 3rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex: 1;
  }
}

/* Animation Adjustments for Mobile */
@media (max-width: 576px) {
  .hero-image:hover img {
    transform: scale(1.02);
  }

  .hero-image:hover::before {
    animation: bubblePress 4s ease-in-out infinite;
    width: calc(100% + 25px);
    height: calc(100% + 25px);
    top: -12.5px;
    left: -12.5px;
  }
}
