:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06d6a0;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-color);
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

.contact {
  padding: 80px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact Info Section */
.contact-info {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 20px;
  padding: 40px;
  height: fit-content;
}

.contact-info h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #f1f5f9;
}

.contact-info p {
  color: #94a3b8;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(51, 65, 85, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(51, 65, 85, 0.5);
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.3);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.contact-details h4 {
  font-size: 1.1rem;
  color: #f1f5f9;
  margin-bottom: 5px;
}

.contact-details p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.95rem;
}

/* Form Section */
.contact-form {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #f1f5f9;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(51, 65, 85, 0.7);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Social Links */
.social-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact {
    padding: 60px 15px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-item {
    padding: 15px;
    display: flex;
    align-items: flex-start; /* Change from center to flex-start */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent icon from shrinking */
  }

  .contact-details {
    flex: 1; /* Take remaining space */
    min-width: 0; /* Allow text to shrink */
  }

  .contact-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
  }

  .contact-details p {
    margin: 0;
    font-size: 0.9rem; /* Slightly smaller font */
    word-wrap: break-word; /* Break long words */
    word-break: break-all; /* Break email if necessary */
    line-height: 1.4;
  }

  /* Specific fix for email text */
  .contact-details p {
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .contact-info,
  .contact-form {
    padding: 25px 20px;
  }
}

/* ...existing code... */
.completed-project-image {
  width: 100%;
  height: 280px;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.completed-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.completed-project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.project-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.project-link:hover {
  color: white;
}
/* ...existing code... */

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0f172a, #1e293b, #374151);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.bg-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(6, 214, 160, 0.1) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(0.5deg);
  }
  66% {
    transform: translateY(10px) rotate(-0.5deg);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(15, 23, 42, 0.9);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 0 2rem;
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.profile-photo {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  padding: 5px;
  animation: fadeInUp 1s ease 0.1s both;
  position: relative;
  overflow: hidden;
}

.profile-photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  animation: rotate 4s linear infinite;
  z-index: -1;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-color);
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent-color);
  border: 5px solid var(--bg-color);
}

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

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  /* margin-bottom: 1rem; */
  background: linear-gradient(45deg, white, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-text h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  /* margin-top: 0.5rem; */
  background: linear-gradient(
    90deg,
    #34d399,
    #3b82f6
  ); /* green to blue gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-text .subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-text .description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 1s ease 0.6s both;
}

.categories-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}

.btnbtn {
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primaries {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.btn-secondaries {
  background: var(--glass-bg);
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.btnbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Programming Languages Section */
.languages {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.language-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.language-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.language-card:hover::before {
  left: 100%;
}

.language-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.language-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.3s ease;
}

.language-card img.language-icon {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.language-card:hover .language-icon {
  transform: scale(1.2);
}

.vue-icon {
  color: #4fc08d;
}
.laravel-icon {
  color: #ff2d20;
}
.javascript-icon {
  color: #f7df1e;
}
.php-icon {
  color: #777bb4;
}
.firebase-icon {
  color: #ffa000;
}
.css-icon {
  color: #1572b6;
}
.html-icon {
  color: #e34f26;
}
.mysql-icon {
  color: #4479a1;
}

.language-name {
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

/* Skills Section */
.skills {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, white, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  transition: width 2s ease;
  width: 0;
}

/* Completed Projects Section */
.completed-projects {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 500;
}

.completed-projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.completed-project-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.completed-project-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

.completed-project-title {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.completed-project-role {
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 1rem;
}

.completed-project-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.completed-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Projects Section */
.projects {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 200px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.project-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    gap: 1rem;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .categories-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btnbtn {
    width: 200px;
    text-align: center;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .languages-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* === Responsive adjustments for smaller screens === */

/* Tablets and below */
@media (max-width: 1024px) {
  .hero-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .profile-placeholder {
    width: 180px !important;
    height: 180px !important;
    font-size: 5rem !important;
  }

  .hero-text {
    flex: 1 1 100% !important;
    text-align: center !important;
  }

  .categories-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .hero {
    padding-top: 100px; /* adjust for navbar height */
  }

  .hero-content {
    flex-direction: column !important;
    align-items: center !important;
  }

  .profile-placeholder {
    width: 140px !important;
    height: 140px !important;
    font-size: 4rem !important;
  }

  .hero-text h1 {
    font-size: 2rem !important;
  }

  .subtitle {
    font-size: 1rem !important;
  }

  .languages-grid,
  .skills-grid,
  .projects-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    padding: 0 1rem;
  }

  .completed-projects-list,
  .completed-project-item {
    padding: 1rem !important;
  }

  .contact {
    margin: 2rem 1rem;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem !important;
  }

  .categories-buttons a {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* Stats grid responsiveness */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Completed projects list responsiveness */
.completed-projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .completed-projects-list {
    grid-template-columns: 1fr;
  }
}

/* Optional: padding and margin adjustments on small screens */
@media (max-width: 600px) {
  .completed-project-item {
    padding: 1rem;
  }
}

/* filepath: c:\Users\thatn\OneDrive\Desktop\portofolio\combinewithgpt.html */
/* ...existing code... */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
}

#projects {
  margin-top: 8rem;
}

/* Tablet */
@media (max-width: 1024px) {
  .completed-project-image {
    height: 270px;
  }
  /* .completed-project-image img {
          object-fit: cover;
        } */
}

/* Mobile */
@media (max-width: 768px) {
  .completed-project-image {
    height: 200px;
  }
  /* .completed-project-image img {
          object-fit: cover;
        } */
}

/* Extra small phones */
@media (max-width: 480px) {
  .completed-project-image {
    height: 160px;
  }
  /* .completed-project-image img {
          object-fit: cover;
        } */
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 2rem;
    background: rgba(30, 41, 59, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    display: none;
    min-width: 180px;
    transition: all 0.3s;
  }
  .nav-links.open {
    display: flex;
  }
}
