@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-left: 1px solid #2d2d2d;
}

::-webkit-scrollbar-thumb {
  background: #3b83f600;
  border-radius: 18px;
  border: 2px solid #1e1e1e;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #1e1e1e;
}

/* Body */
body {
  background: #141414;
  margin: 0;
  font-family: 'Amiri', serif;
  color: #fff;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.35;
  /* Less intense */
  pointer-events: none;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 600px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: 0 0 20px #00000080;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.profile-pic:hover {
  transform: scale(1.05) rotate(-2deg);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #d1d5db;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(135deg, #3b82f6, #002155);
  color: #fff;
  box-shadow: 0 0 10px #3b82f680, 0 0 20px #3b82f640;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}

.btn:hover {
  transform: scale(1.05) translateY(-2px);
}

.btn.secondary {
  background: transparent;
  border: 2px solid #3b82f6;
  color: #3b82f6;
}

/* About & Code Section */
.about-code {
  padding: 64px 6vw;
  display: grid;
  place-items: center;
}

.code-window {
  width: 100%;
  max-width: 900px;
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.code-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #232323, #1b1b1b);
  border-bottom: 1px solid #2a2a2a;
}

.code-toolbar .dots {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.filename {
  justify-self: center;
  color: #9aa3b2;
  font-family: 'Fira Code', monospace;
  font-size: .9rem;
  letter-spacing: .3px;
}

.code {
  margin: 0;
  padding: 20px 24px 28px;
  color: #e5e7eb;
  font-family: 'Fira Code', monospace;
  font-size: .95rem;
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
  background:
    radial-gradient(1200px 200px at 30% -50%, rgba(59, 130, 246, .12), transparent 60%),
    radial-gradient(1000px 150px at 80% -30%, rgba(96, 165, 250, .10), transparent 60%),
    #1e1e1e;
  border-radius: 0 0 16px 16px;
}

.k {
  color: #93c5fd;
  font-weight: 600;
}

.id {
  color: #60a5fa;
}

.prop {
  color: #a7f3d0;
}

.op, .p {
  color: #9ca3af;
}

.s {
  color: #fca5a5;
}

.c {
  color: #94a3b8;
  font-style: italic;
}

/* About Me + Skills */
.about-me-full {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  padding: 50px 20px;
}

.about-code, .skills {
  flex: 1 1 400px;
  max-width: 500px;
}

.skills h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.2rem;
  color: #ffffff;
  text-shadow: 0 0 10px #6d6d6d;
  max-width: 600px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.skill {
  margin-bottom: 20px;
}

.skill-name {
  display: block;
  margin-bottom: 5px;
  text-align: right;
}

.skill-bar {
  background: #585858;
  border-radius: 12px;
  overflow: hidden;
  height: 20px;
  box-shadow: 0 0 30px #000 inset;
}

.skill-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-radius: 12px;
  box-shadow: 0 0 15px #3b82f680, 0 0 30px #60a5fa40;
  transition: width 2s ease, box-shadow 0.5s ease;
}

.skill-progress.loaded {
  box-shadow: 0 0 10px #3b82f6aa, 0 0 30px #60a5fa55;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn {
    padding: 9px 18px;
    font-size: .95rem;
  }
}

@media (max-width: 900px) {
  .about-me-full {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .about-code, .skills {
    max-width: 90%;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: .95rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .code {
    font-size: .85rem;
    padding: 16px 16px 22px;
  }

  .skill-bar {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: .85rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: .9rem;
  }
}

.boxs {
  max-width: 600px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.boxs::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  animation: rotateBG 10s linear infinite;
}

@keyframes rotateBG {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.boxs * {
  position: relative;
}

.h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.2rem;
  color: #ffffff;
  text-shadow: 0 0 10px #6d6d6d;
  max-width: 600px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.boxs input {
  display: flex;
}

.boxs input,
.boxs textarea {
  padding: 12px 15px;
  border: 1px solid #3b3b3b;
  border-radius: 12px;
  background: #1e1e1e;
  color: #fff;
  font-family: 'Amiri', serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.boxs input:focus,
.boxs textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 15px #3b82f6;
  outline: none;
}

.boxs select {
  padding: 12px 15px;
  border: 1px solid #3b3b3b;
  border-radius: 12px;
  background: #1e1e1e;
  color: #fff;
  font-family: 'Amiri', serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.boxs select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 15px #3b82f6;
  outline: none;
}

.boxs button {
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.boxs button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #3b82f6, 0 0 40px #2563eb;
}

.social {
  display: flex;
}

.social-item {
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px #000;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
}

.social p {
  justify-content: center;
  transform: translateX(-20%);
  gap: 15px;
  display: flex;
  width: 100%;
  align-items: center;
}

.social svg {
  background-color: #000;
  padding: 10px;
  border-radius: 10px;
  width: 30px;
  height: 30px;
  margin-right: 15px;
  fill: #fff;
  transition: fill 0.3s ease;
  cursor: pointer;
}

.pro-items {
  display: flex;
  gap: 20px;
}

.pro-item {
  display: grid;
  grid-template-columns: 3fr;
  gap: 15px;
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pro-item button {
  width: 100%;
}

.pro-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px #000;
  transition: transform 0.3s ease;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.2rem;
  color: #ffffff;
  text-shadow: 0 0 10px #6d6d6d;
  max-width: 800px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.images {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 50px auto;
  gap: 200px;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.images img {
  width: 300px;
  height: 400px;
  border-radius: 10px;
  box-shadow: 0 15px 45px rgba(0, 0, 0);
}

@media (max-width: 600px) {
  .boxs {
    padding: 20px;
    margin: 30px 10px;
  }

  .contact-main h1 {
    margin: 30px 10px;
  }

  .contact-main h2 {
    margin: 30px 10px;
  }

  .boxs h1 {
    font-size: 1.8rem;
  }

  .boxs button {
    font-size: 0.95rem;
    padding: 10px;
  }

  .social p {
    transform: translateX(8%);
  }

  .images {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 50px auto;
    gap: 20px;
    padding: 60px;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
  }
}