/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: linear-gradient(to bottom, #0f172a, #1e293b, #0f172a);
  color: #e0e7ff;
  line-height: 1.6;
  overflow-x: hidden;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
}

a {
  color: #3b82f6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #475569;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #e0e7ff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #3b82f6;
}

.nav-links {
  display: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-weight: 500;
  font-size: 1rem;
  color: #cbd5e1;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #3b82f6;
}

.nav-links li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  font-size: 1.5rem;
  color: #e0e7ff;
  background: rgba(71, 85, 105, 0.5);
  border-radius: 0.375rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid #475569;
}

.mobile-menu-btn:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid #475569;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  list-style: none;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu li a {
  font-size: 1.125rem;
  font-weight: 500;
  color: #cbd5e1;
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid #475569;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu li a:hover {
  color: #3b82f6;
  border-color: #3b82f6;
  padding-left: 0.5rem;
}

/* Show desktop nav on md and up */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Section base styles */
section {
  padding: 5rem 0;
}

.container {
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3rem !important;
  font-weight: 900;
  line-height: 1.1;
  color: #e0e7ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(2.5rem, 4vw, 3rem);
  max-width: 40rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero-cta {
  background-color: #2563eb;
  color: white;
  padding: 1.25rem 3rem;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.5);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta:hover {
  background-color: #1d4ed8;
  box-shadow: 0 15px 25px rgba(29, 78, 216, 0.6);
  transform: translateY(-2px);
}

.hero-cta:active {
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about-section {
  background: rgba(30, 41, 59, 0.3);
  border-radius: 1rem;
  border: 1px solid #475569;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 3rem;
  margin: 2rem 0;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.about-content h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: #e0e7ff;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.skill-item {
  background: rgba(71, 85, 105, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  cursor: default;
  width: 400px;
}

.skill-item:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.about-image {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.2),
    rgba(59, 130, 246, 0.1)
  );
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: #e0e7ff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 768px) {
  .about-section {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: #e0e7ff;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-out;
}

.section-header p {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 36rem;
  margin: 0 auto;
  animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  animation: staggerIn 0.8s ease-out forwards;
}

.project-card {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 1rem;
  border: 1px solid #475569;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: cardSlideIn 0.6s ease-out forwards;

  max-width: 400px;
  /* Make cards smaller */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.project-card:hover {
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
  transform: translateY(-8px) scale(1.02);
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:nth-child(4) {
  animation-delay: 0.4s;
}

.project-card:nth-child(5) {
  animation-delay: 0.5s;
}

.project-card:nth-child(6) {
  animation-delay: 0.6s;
}

.project-card:nth-child(7) {
  animation-delay: 0.7s;
}

.project-card:nth-child(8) {
  animation-delay: 0.8s;
}

.project-card:nth-child(9) {
  animation-delay: 0.9s;
}

@keyframes cardSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-image {
  flex-shrink: 0;
  height: 12rem;
  background-color: #1e293b;
  border-bottom: 1px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e0e7ff;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #3b82f6;
}

.project-description {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #475569;
  padding-top: 1rem;
  font-weight: 600;
  color: #3b82f6;
  font-size: 1rem;
}

.project-footer a {
  color: #3b82f6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-footer a:hover {
  color: #60a5fa;
  transform: translateX(4px);
}

.project-preview {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-preview {
  opacity: 1;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .playstore-button {
    margin-left: 30px;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .skill-item {
    width: 80%;
  }
}

/* Contact Section */
.contact-section {
  max-width: 640px;
  margin: 5rem auto 0;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: #e0e7ff;
  margin-bottom: 1rem;
}

.contact-header p {
  font-size: 1.125rem;
  color: #cbd5e1;
}

.contact-form {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 1rem;
  border: 1px solid #475569;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  background: rgba(71, 85, 105, 0.3);
  border: 1px solid #475569;
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-size: 1rem;
  color: #e0e7ff;
  width: 100%;
  resize: vertical;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.02);
}

.form-group textarea {
  min-height: 150px;
}

.submit-btn {
  background-color: #2563eb;
  color: white;
  padding: 1.25rem;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.5);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-btn:hover:not(:disabled) {
  background-color: #1d4ed8;
  box-shadow: 0 15px 25px rgba(29, 78, 216, 0.6);
  transform: translateY(-2px);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  background-color: #1e40af;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.status-message {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  z-index: 10;
  min-width: 250px;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.status-success {
  background-color: rgba(22, 163, 74, 0.9);
  color: #d1fae5;
  border: 1px solid #22c55e;
}

.status-error {
  background-color: rgba(220, 38, 38, 0.9);
  color: #fee2e2;
  border: 1px solid #ef4444;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Footer */
footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid #475569;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: saturate(180%) blur(10px);
  color: #94a3b8;
  margin-top: auto;
  animation: fadeIn 1s ease-out 1.2s both;
}

footer p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

footer .footer-highlight {
  font-weight: 600;
  color: #e0e7ff;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  color: #94a3b8;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #3b82f6;
  transform: translateY(-2px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: saturate(180%) blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgba(30, 41, 59, 0.95);
  border-radius: 1rem;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #475569;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  padding: 2rem;
  color: #e0e7ff;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #475569;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #e0e7ff;
  flex: 1;
}

.modal-close {
  font-size: 2.5rem;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-image {
  height: 12rem;
  background-color: #1e293b;
  border-radius: 0.75rem;
  border: 1px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-image {
  transform: scale(1.02);
}

.modal-details {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(71, 85, 105, 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #475569;
  margin-bottom: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid #475569;
}

.modal-link,
.modal-close-btn {
  flex: 1 1 100%;
  padding: 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-link {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.5);
}

.modal-link:hover {
  background-color: #1d4ed8;
  box-shadow: 0 15px 25px rgba(29, 78, 216, 0.6);
  transform: translateY(-2px);
}

.modal-close-btn {
  background-color: #475569;
  color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(71, 85, 105, 0.5);
}

.modal-close-btn:hover {
  background-color: #334155;
  box-shadow: 0 12px 32px rgba(51, 65, 85, 0.7);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .modal-link,
  .modal-close-btn {
    flex: 1 1 48%;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .about-section {
    padding: 2rem;
    margin: 1rem 0;
    gap: 2rem;
  }
  .about-content {
    margin-left: 0 !important;
  }

  .project-content {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .social-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.form-group input,
.form-group textarea {
  padding: 1.5rem;
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.submit-btn {
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.6);
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
  box-shadow: 0 15px 30px rgba(29, 78, 216, 0.8);
  transform: translateY(-3px);
}

.project-image {
  width: 100%;
  /* Full width of container */
  height: 12rem;
  /* fixed height matching original design */
  overflow: hidden;
  /* hide overflow */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e293b;
  border-bottom: 1px solid #475569;
  border-radius: 1rem 1rem 0 0;
}

.project-image img {
  width: 100%;
  /* image fills container width */
  height: 100%;
  /* image fills container height */
  object-fit: cover;
  /* maintain aspect ratio, crop excess */
  border-radius: 1rem 1rem 0 0;
  /* match container rounding */
  display: block;
  /* remove inline-gap from img */
}

.modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
}

.modal-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 2px solid #3498db;
  /* Replace with your preferred color */
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.swiper {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.swiper-button-prev,
.swiper-button-next {
  color: #ffffff;
}

.playstore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 1);
  padding: 0.625rem 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 1);
  outline: 0;
  transition: all 0.2s ease;
  text-decoration: none;
}

.playstore-button:hover {
  background-color: transparent;
  color: rgb(255, 255, 255);
}

.icon {
  height: 1.5rem;
  width: 1.5rem;
}

.texts {
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.text-1 {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-2 {
  font-weight: 600;
}

.container {
  max-width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  box-sizing: border-box;
}

/* Improve grid responsiveness for about section */
.about-section {
  grid-template-columns: 1fr !important;
  padding: 2rem !important;
  gap: 2rem !important;
}

/* Skills grid changes for small devices */
.skills-grid {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

/* Projects grid for very small screens */
.projects-grid {
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
}

/* Ensure project cards expand properly */
.project-card {
  width: 100% !important;
  margin: 0 auto !important;
}

/* Adjust navbar for small devices */
nav {
  padding: 0.5rem 1rem !important;
}

/* Navbar inner flex-wrap for small width */
.nav-inner {
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

/* Logo and menu button alignment */
.logo {
  flex: 1 1 auto !important;
  text-align: left !important;
}

.mobile-menu-btn {
  flex: 0 0 auto !important;
}

/* Mobile menu full width */
.mobile-menu {
  width: 100% !important;
  padding: 1rem !important;
}

/* Form rows to stack on narrow screens */
.form-row {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

/* Inputs full width */
.form-group input,
.form-group textarea {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Footer spacing for mobile */
footer {
  padding: 2rem 1rem !important;
}

/* Social links vertical stack on narrow */
.social-links {
  flex-direction: column !important;
  gap: 1rem !important;
}

/* Text resizing for very small devices */
body,
p,
input,
textarea,
button,
h1,
h2,
h3 {
  font-size: calc(1rem + 0.2vw) !important;
  line-height: 1.4 !important;
}

/* Project image scaling */
.project-image {
  height: auto !important;
  max-height: 12rem !important;
  aspect-ratio: 16 / 9 !important;
}

/* Modals handled for small screens */
.modal-content {
  max-width: 90vw !important;
  padding: 1rem !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* Reduce spacing on smallest screens */
@media (max-width: 400px) {
  section {
    padding: 2rem 1rem !important;
  }

  .hero h1 {
    font-size: 2.25rem !important;
  }

  .hero p {
    font-size: 1rem !important;
    max-width: 90% !important;
  }

  .submit-btn {
    font-size: 1rem !important;
    padding: 1rem !important;
  }
}

@media (max-width: 768px) {
  .playstore-button {
    margin-top: 10px;
  }
}

@media (max-width: 1024px) {
  .about-section {
    grid-template-columns: 1fr !important;
    padding: 2rem !important;
    gap: 2rem !important;
  }

  .about-content {
    margin-left: 0 !important;
    padding: 0 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .skill-item {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 600px) {
  .about-section {
    padding: 1.5rem !important;
    gap: 1.5rem !important;
  }

  .about-content {
    padding: 0 0.5rem;
  }
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(59, 130, 246, 0.2);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #3b82f6; /* blue color */
  border-radius: 0.5rem 0 0 0.5rem;
  transition: width 0.5s ease-in-out;
}
