* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: #ffffff;
  --text-secondary: #cfcfcf;
  --main-color: #3b82f6;    
  --main-color-dark: #1e3a8a; 
  --glass: rgba(255,255,255,0.03);
  --shadow-color: rgba(59,130,246,0.12);
}

html { 
  font-size: 62.5%; 
  scroll-padding-top: 8rem;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 2.2rem 6%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 1.6rem;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(59,130,246,0.1);
}

#menu-icon {
  font-size: 3.2rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: none;
  border: none;
}

#menu-icon:hover,
#menu-icon:focus {
  transform: scale(1.1);
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.logo {
  font-size: 2.4rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s ease;
}

.logo:hover,
.logo:focus { 
  transform: scale(1.05); 
  outline: none;
}

.logo span {
  background: linear-gradient(270deg, var(--main-color) 10%, var(--main-color-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar {
  display: flex;
  gap: 2.4rem;
  font-size: 1.6rem;
  color: var(--text-color);
  margin-left: 2rem;
  align-items: center;
}

.navbar a {
  color: inherit;
  padding: .8rem 1.2rem;
  border-radius: .8rem;
  transition: all .3s ease;
  position: relative;
  border: 2px solid transparent;
}

.navbar a:hover,
.navbar a:focus,
.navbar a.active {
  color: var(--main-color);
  background: rgba(59,130,246,0.1);
  border: 2px solid var(--main-color);
  outline: none;
}

.gradient-btn {
  font-size: 1.4rem;
  padding: 0.9rem 1.8rem;
  border-radius: 3rem;
  background: linear-gradient(270deg, var(--main-color) 10%, var(--main-color-dark) 100%);
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  border: 2px solid transparent;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
  outline: none;
}

.gradient-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35);
}

.gradient-btn:focus {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
  border-color: var(--main-color);
}

.gradient-btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
}

/* Section Base Styles */
section { 
  min-height: 100vh; 
  padding: 12rem 6%; 
  display: flex; 
  align-items: center; 
  position: relative;
}

/* Home Section */
.home {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
}

.home-left { 
  display: flex; 
  flex-direction: column; 
  gap: 2.4rem; 
}

.home-content { 
  max-width: 70ch; 
}

.home-content h1 {
  font-size: clamp(3.6rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.home-content h1 span { 
  display: inline-block; 
  margin-left: .6rem;
  background: linear-gradient(270deg, var(--main-color) 10%, var(--main-color-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-content h3 {
  margin: .8rem 0;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 600;
  min-height: 3.5rem;
}

.home-content h3 span {
  color: var(--main-color);
  position: relative;
}

.home-content h3 span::after {
  content: '|';
  position: absolute;
  right: -8px;
  color: var(--main-color);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.home-content p {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.btn-group { 
  display: flex; 
  gap: 1.6rem; 
  margin-top: 1.2rem; 
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.6rem;
  background-color: var(--main-color);
  box-shadow: 0 0 20px rgba(59,130,246,0.12);
  border-radius: 2rem;
  font-size: 1.6rem;
  color: white;
  border: 2px solid transparent;
  font-weight: 600;
  transition: all .3s ease;
  cursor: pointer;
  text-align: center;
  min-height: 5rem;
  text-decoration: none;
}

.btn:hover,
.btn:focus { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 30px rgba(59,130,246,0.25);
  outline: none;
}

.btn.alt { 
  background: transparent; 
  color: var(--main-color); 
  border: 2px solid var(--main-color); 
  box-shadow: none; 
}

.btn.alt:hover,
.btn.alt:focus { 
  background: linear-gradient(270deg, var(--main-color) 10%, var(--main-color-dark) 100%); 
  color: #fff; 
  box-shadow: 0 10px 25px rgba(59,130,246,0.2); 
}

.social-icons { 
  display: flex; 
  gap: 1rem; 
  margin-top: 1.4rem; 
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  padding: .8rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  transition: all .3s ease;
  width: 5rem;
  height: 5rem;
}

.social-icons a:hover,
.social-icons a:focus {
  color: #fff;
  background-color: var(--main-color);
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 6px 30px rgba(59,130,246,0.18);
  outline: none;
}

.home-right { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
}

.profile-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 14px; 
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(30,58,138,0.35), 0 0 25px rgba(59,130,246,0.08);
  border: 2px solid rgba(255,255,255,0.03);
  transition: all .4s ease;
  position: relative;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  transition: transform .4s ease;
}

.profile-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(30,58,138,0.45), 0 0 45px rgba(59,130,246,0.14);
}

.profile-frame:hover img {
  transform: scale(1.05);
}

/* About Section */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background: var(--second-bg-color);
  flex-wrap: wrap;
}

.about-img {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color-dark);
  transition: all 0.4s ease-in-out;
}

.about-img img:hover {
  box-shadow: 0 0 25px var(--main-color-dark),
              0 0 50px var(--main-color-dark),
              0 0 100px var(--main-color-dark);
  transform: scale(1.02);
}

.about-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.about-content h2 {
  font-size: clamp(3.6rem, 5vw, 4.8rem);
  text-align: left;
  margin-bottom: 3rem;
}

.about-content h2 span {
  color: var(--main-color);
}

.about-content p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Skills section */
.skills {
  margin: 3rem 0;
  padding: 2rem 0;
}

.skills h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-weight: 600;
  text-align: left;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--main-color);
  padding: 0.8rem 1.6rem;
  border-radius: 2.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  border: 2px solid var(--main-color);
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.skill-tag i {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.skill-tag:hover {
  background: var(--main-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.skill-tag:hover i {
  transform: scale(1.1);
}

/* Heading Styles */
.heading {
  text-align: center;
  font-size: clamp(4rem, 8vw, 7rem);
  margin: 0 0 6rem 0;
  font-weight: 700;
}

.heading span {
  color: var(--main-color);
}

/* Services Section */
.services {
  background-color: var(--bg-color);
  padding: 12rem 6%;
  display: block;
}

.services h2 {
  color: var(--text-color);
  margin-bottom: 8rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  gap: 3rem;
  margin-top: 4rem;
}

.services-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--main-color-dark) 0%, rgba(30,58,138,0.8) 100%);
  min-height: 500px;
  border-radius: 3rem;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
}

.services-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.services-box:hover {
  background: var(--second-bg-color);
  border: 3px solid var(--main-color);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59,130,246,0.3);
}

.services-box:hover::before {
  opacity: 1;
}

.services-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  position: relative;
  z-index: 2;
}

.services-info h4 {
  font-size: 2.8rem;
  margin: 2rem 0;
  font-weight: 700;
  color: var(--text-color);
}

.services-info p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-secondary);
}

.services-info i {
  font-size: 6rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.services-box:hover .services-info i {
  transform: scale(1.1);
  color: var(--main-color);
}

/* Projects Section - Fixed Buttons */
.projects {
  background-color: var(--second-bg-color);
  padding: 12rem 6%;
  display: block;
}

.projects h2 {
  margin-bottom: 8rem;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  place-items: center;
  gap: 4rem;
  row-gap: 6rem;
  margin-top: 4rem;
}

.projects-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, rgba(8,8,8,0.9) 100%);
  border: 2px solid var(--main-color);
  border-radius: 3rem;
  gap: 2rem;
  padding: 4rem 2rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(59,130,246,0.2);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
}

.projects-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.projects-card:hover {
  box-shadow: 0 0 35px var(--main-color),
              0 0 60px rgba(59,130,246,0.3);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--main-color);
}

.projects-card:hover::before {
  opacity: 1;
}

.projects-card img {
  max-width: 280px;
  width: 100%;
  border-radius: 2rem;
  object-fit: cover;
  transition: all 0.4s ease;
  border: 2px solid rgba(59,130,246,0.2);
}

.projects-card:hover img {
  transform: scale(1.05);
  border-color: var(--main-color);
}

.projects-card h3 {
  font-size: 2.6rem;
  color: var(--text-color);
  margin-top: 1rem;
  font-weight: 700;
}

.projects-card p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Fixed Project Links - Improved Button Layout */
.project-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.project-links .btn {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  text-align: center;
  font-size: 1.4rem;
  padding: 1.2rem 1.6rem;
  margin: 0;
  white-space: nowrap;
}

/* Specific styles for different button types in projects */
.project-links .btn.alt {
  background: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.project-links .btn.alt:hover {
  background: var(--main-color);
  color: white;
}

/* Live Demo button style */
.project-links .btn.live-demo {
  background: linear-gradient(270deg, #10b981 10%, #059669 100%);
  border: 2px solid #10b981;
}

.project-links .btn.live-demo:hover {
  background: linear-gradient(270deg, #059669 10%, #047857 100%);
  transform: translateY(-3px);
}

/* Contact Section */
.contact {
  background-color: var(--bg-color);
  padding: 12rem 6%;
  display: block;
}

.contact h2 {
  margin-bottom: 8rem;
  color: var(--text-color);
}

.contact-text {
  font-size: 3rem;
  color: var(--text-color);           
  text-align: center;       
  margin: 1rem 0 2rem 0;    
  line-height: 1.6;        
  max-width: 600px;        
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;         
}

.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem auto;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

.input-group {
  display: flex;
  gap: 3rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.input-box {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  min-width: 280px;
}

.input-group-2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.8rem 2rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: rgba(255,255,255,0.05);
  border-radius: 1.5rem;
  border: 2px solid var(--main-color);
  resize: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.contact form .input-box input::placeholder,
.contact form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Contact Form Button Fix */
.contact form input[type="submit"] {
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  border: none;
  background: linear-gradient(270deg, var(--main-color) 10%, var(--main-color-dark) 100%);
  color: white;
  border-radius: 2.5rem;
  transition: all 0.3s ease;
  margin: 1rem auto 0;
  display: block;
}

.contact form input[type="submit"]:hover,
.contact form input[type="submit"]:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59,130,246,0.4);
  outline: none;
}

/* Form Messages */
.form-message {
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 1rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid #4CAF50;
  color: #4CAF50;
}

.form-message.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid #f44336;
  color: #f44336;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background-color: var(--second-bg-color);
  padding: 6rem 0 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(59,130,246,0.1);
}

.footer .social-icons {
  justify-content: center;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer ul {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 3rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer ul li {
  display: inline-block;
}

.footer ul li a {
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
  border: 2px solid transparent;
}

.footer ul li a:hover,
.footer ul li a:focus {
  color: var(--main-color);
  background: rgba(59,130,246,0.1);
  border: 2px solid var(--main-color);
  outline: none;
}

.footer .copyright {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--main-color) 0%, var(--main-color-dark) 100%);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--main-color-dark) 0%, #1e40af 100%);
}

/* Focus Styles for Accessibility */
a:focus, 
button:focus, 
#menu-icon:focus,
.navbar a:focus,
.btn:focus,
.social-icons a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.logo:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive Design */
@media (max-width: 1285px) {
  #menu-icon {
    display: block;
  }
  
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .navbar a {
    display: block;
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: var(--text-color);
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 0.8rem;
    width: 100%;
  }

  .navbar.active {
    display: flex;
  }
  
  .gradient-btn {
    display: none;
  }
  
  .home {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 5rem;
  }
  
  .home-left {
    align-items: center;
  }
  
  .about {
    flex-direction: column-reverse;
    text-align: center;
    gap: 5rem;
  }
  
  .about-content h2 {
    text-align: center;
  }
  
  .about-img img {
    width: 70vw;
    max-width: 300px;
  }
  
  .skills h3 {
    text-align: center;
  }
  
  .input-group {
    flex-direction: column;
  }

  .services-container,
  .projects-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-box {
    height: auto;
    min-height: 450px;
  }

  /* Project buttons responsive fix */
  .project-links {
    flex-direction: column;
    gap: 1rem;
  }

  .project-links .btn {
    min-width: 200px;
    max-width: 250px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .header {
    padding: 1.6rem 4%;
  }

  section {
    padding: 10rem 4%;
  }

  .home-content h1 {
    font-size: 3.6rem;
  }
  
  .home-content h3 {
    font-size: 2rem;
  }
  
  .home-content p {
    font-size: 1.5rem;
  }

  .profile-frame {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .social-icons {
    justify-content: center;
  }

  .heading {
    font-size: 4.5rem;
    margin: 6rem 0 4rem 0;
  }

  .about-content h2 {
    font-size: 3.2rem;
  }

  .services-info h4 {
    font-size: 2.4rem;
  }

  .services-info i {
    font-size: 5rem;
  }

  .services-box {
    min-height: 400px;
  }

  .projects-card {
    padding: 3rem 2rem;
  }

  .projects-card img {
    max-width: 220px;
  }

  .footer ul {
    flex-direction: column;
    gap: 1rem;
  }

  .footer ul li {
    display: block;
    margin: 5px 0;
  }

  .navbar {
    width: 80%;
  }

  .btn-group {
    justify-content: center;
  }

  /* Mobile Contact Form Button Fix */
  .contact form input[type="submit"] {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .input-group-2 {
    width: 100%;
  }

  .contact-text {
    font-size: 2.4rem;
  }

  /* Project buttons mobile fix */
  .project-links {
    flex-direction: column;
    gap: 1rem;
  }

  .project-links .btn {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%;
  }

  .heading {
    font-size: 3.8rem;
    margin: 5rem 0 3rem 0;
  }

  .services h2,
  .projects h2,
  .contact h2 {
    margin-bottom: 5rem;
  }

  .services-container,
  .projects-container {
    gap: 2rem;
  }

  .services-box {
    min-height: 380px;
  }

  .services-info {
    padding: 2.5rem;
  }

  .projects-card {
    padding: 2.5rem 1.5rem;
  }

  .input-group {
    gap: 2rem;
  }

  .input-box {
    min-width: 100%;
  }

  .contact form .input-box input,
  .contact form textarea {
    padding: 1.5rem;
    font-size: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .project-links {
    flex-direction: column;
    gap: 1rem;
  }

  .project-links .btn {
    width: 100%;
    max-width: 100%;
  }

  .skill-tags {
    gap: 0.8rem;
    justify-content: center;
  }
  
  .skill-tag {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    gap: 0.5rem;
  }
  
  .skill-tag i {
    font-size: 1.4rem;
  }

  /* Mobile Contact Form Button Fix */
  .contact form input[type="submit"] {
    padding: 1.4rem 2.5rem;
    font-size: 1.5rem;
  }

  .contact-text {
    font-size: 2rem;
  }
}

/* ---------------- About Section ---------------- */
.about {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 4rem 1rem;
  background: var(--second-bg-color);
}

/* Image Container */
.about-img {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
  max-width: 450px;
}

/* Image */
.about-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color-dark);
  transition: all 0.4s ease-in-out;
  object-fit: cover;
}

/* Tablet */
@media (min-width: 768px) {
  .about {
    gap: 4rem;
    padding: 5rem 2rem;
  }
}

/* Desktop */
/* Responsive Design */
@media (max-width: 1285px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 280px;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-left: 2px solid rgba(59,130,246,0.15);
    border-bottom: 2px solid rgba(59,130,246,0.15);
    border-radius: 0 0 0 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
    transition: all .4s ease;
  }

  .navbar.active {
    right: 0;
  }

  .navbar a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.2rem;
    font-size: 1.7rem;
  }
}

/* Tablet / Medium screens */
@media (max-width: 992px) {
  .home {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-right {
    order: -1;
  }

  .home-content {
    margin-top: 2rem;
  }

  .about {
    padding: 10rem 6%;
    text-align: center;
  }

  .about-content {
    text-align: center;
  }

  .skills h3 {
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .home-content h1 {
    font-size: 3.2rem;
  }
  
  .home-content h3 {
    font-size: 1.9rem;
  }

  .profile-frame {
    max-width: 300px;
  }

  .heading {
    font-size: 3.4rem;
  }

  .services-container,
  .projects-container {
    grid-template-columns: 1fr;
  }
}
