html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #181818;
  color: #fff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

p {
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0em 1rem;
}

.bg-white {
  background-color: #111111;
  color: white;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.25);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}
nav {
  display: flex;
  gap: 2rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.8;
  transition: 0.2s;
  position: relative;
  padding: 0.5em 0;
  &:nth-child(4) {
    background: #d4ff4b;
  color: #181818;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 1.7rem;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  &::after {
    display: none;}
    
  }
}
nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: #d4ff4b;
  transition: 0.2s;
}
nav a:hover {
  opacity: 1;
}

nav a:hover::after {
  width: 100%;
}
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}
.hero-text {
  flex: 1 1 320px;
  min-width: 320px;
}
.hero-title {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.btn-main {
  background: #d4ff4b;
  color: #181818;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 1.7rem;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-main:hover {
  background: #668d03;
}
.social-btn {
  background: #232323;
  color: #d4ff4b;
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 0.2rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-btn:hover {
  background: #d4ff4b;
  color: #181818;
}
.hero-img {
  flex: 1 1 260px;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: go-up-down 5s linear infinite;
}

@keyframes go-up-down {
  50% {
    transform: translateY(-20px);
  }
}

.hero-img img {
  width: 260px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(212, 255, 75, 0.4),
    0 0 8px rgba(212, 255, 75, 0.6), 0 0 16px rgba(212, 255, 75, 0.3);
  background: #232323;
  transition: 0.2s;
}

.hero-img:hover img {
  transform: scale(1.05);
}
.divider {
  border: none;
  border-top: 2px solid #444;
  width: 100%;
  margin: 2.5rem 0 2.5rem 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(212, 255, 75, 0.2);
}
.section-desc {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 2.5rem;
}
.projects {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  perspective: 1000px;
}
.project-card {
  background: #232323;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
  transition: all 0.3s ease;
  width: calc(33.333% - 1rem);
  min-width: 280px;
  flex: 1 1 280px;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(212, 255, 75, 0.3);
  border-color: #444444;
}
.project-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid #333333;
}

.project-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
  z-index: 1;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
  z-index: 2;
  pointer-events: none;
}

.project-img img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: fill;
  background: #181818;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.project-card:hover .project-img {
  border-color: #444444;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(212, 255, 75, 0.2);
}

.project-card:hover .project-img img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.project-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  margin-top: 0.2rem;
}
.project-desc {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  width: 100%;
}
.project-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}
.project-table td {
  padding: 0.2rem 0.5rem 0.2rem 0;
  border-bottom: 1px solid #333;
  font-size: 0.9rem;
  vertical-align: top;
}
.project-table tr:last-child td {
  border-bottom: none;
}
/* Removed .project-links as we now use .card-details consistently */

.card-details {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #b0b0b0;
}

.detail-item {
  margin-bottom: 0.3rem;
}

.detail-item span {
  font-weight: bold;
  color: #fff;
  margin-right: 0.3rem;
}

.detail-item a {
  display: inline-block;
}
.project-link {
  color: #d4ff4b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}
.project-link:hover {
  color: #181818;
  background-color: #d4ff4b;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(212, 255, 75, 0.4);
}

.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 2rem;
}
.contact-section > div {
  width: 45%;
}

.contact-section form {
  width: 60%;
}
.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  flex: 1 1 200px;
}
.contact-info {
  flex: 2 1 320px;
  min-width: 220px;
  color: #b0b0b0;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-socials {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  background: #232323;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
}
.contact-form textarea {
  min-height: 100px;
}

:focus {
  outline: 0;
  box-shadow: 0 4px 12px rgba(212, 255, 75, 0.4),
    0 0 8px rgba(212, 255, 75, 0.6), 0 0 16px rgba(212, 255, 75, 0.3);
}

.contact-form button {
  background: #d4ff4b;
  color: #181818;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 1.7rem;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #668d03;
}
footer {
  text-align: center;
  color: #b0b0b0;
  font-size: 0.95rem;
  padding: 2rem 0 1rem 0;
  border-top: 1px solid #232323;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hero,
  .contact-section {
    text-align: center;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-img,
  .hero-text,
  .contact-title,
  .contact-info {
    min-width: 0;
    width: 100%;
  }
  .projects {
    justify-content: center;
  }
  .project-card {
    width: calc(50% - 1rem);
    min-width: 250px;
  }
}

@media (max-width: 600px) {
  .project-card {
    width: 100%;
    padding: 1rem;
  }
  .project-img {
    height: 180px;
    border-width: 2px;
    margin-bottom: 0.8rem;
  }
  .project-title {
    font-size: 1rem;
  }
}

.lets-defens img {
  object-fit: contain;
  background: #232323;
  padding: 1.5rem;
  border: none;
}

/* Skills List Styles */
.skills-list {
  margin: 0.2em 0 0.2em 0;
  padding-left: 0;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  ul{
    list-style: none;
    padding: 0 1.5rem .5rem 1.5rem;

  }
}

.skills-list li {
  position: relative;
  padding-left: 0.8em;
  margin-bottom: 0.15em;
  line-height: 1.2;
  font-size: 0.85em;
  width: 100%;
}

.skills-list li::before {
  content: "•";
  color: #d4ff4b;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Popup Message Styles */
.popup-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #232323;
  color: #fff;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 
              0 0 15px rgba(212, 255, 75, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  visibility: hidden;
  min-width: 320px;
  border: 1px solid rgba(212, 255, 75, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(35, 35, 35, 0.9);
}

.popup-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
}

.popup-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 30px;
  position: relative;
}

.popup-icon {
  margin-right: 15px;
  font-size: 2rem;
}

.success-icon {
  color: #d4ff4b;
  margin-right: 18px;
  font-size: 2.2rem;
  text-shadow: 0 0 10px rgba(212, 255, 75, 0.5);
  animation: pulse 2s infinite;
}

.error-icon {
  color: #ff4b4b;
  margin-right: 18px;
  font-size: 2.2rem;
  text-shadow: 0 0 10px rgba(255, 75, 75, 0.5);
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }
  30%, 50%, 70% {
    transform: translate3d(-2px, 0, 0);
  }
  40%, 60% {
    transform: translate3d(2px, 0, 0);
  }
}

#popup-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin-left: 12px;
  letter-spacing: 0.5px;
}

/* Overlay effect when popup is shown */
body.popup-active::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
