/* ------------------------ */
/* Reset & Global Styles   */
/* ------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  cursor: none;
}

.page-section h2,
.section-heading {
  text-align: center;
  color: #39ff14;
  font-size: 2rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ------------------------ */
/* Navigation Bar           */
/* ------------------------ */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1001;
  border-bottom: 1px solid #1f1f1f;
}

.logo {
  font-size: 1.5rem;
  color: #39ff14;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #ccc;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #39ff14;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #39ff14;
}

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

/* ------------------------ */
/* Hero Section Heading     */
/* ------------------------ */
h1 {
  font-size: 3rem;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
}

/* ------------------------ */
/* Custom Cursor Styles     */
/* ------------------------ */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: #39ff14;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 0 10px #39ff14, 0 0 30px #39ff14;
}

.trail {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid #39ff14;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
  opacity: 0.3;
  transition: all 0.1s ease;
}

/* HERO SECTION */
.hero-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(120deg, #0a0a0a, #111);
  padding: 100px 20px 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 1;
  animation: fadeUp 1.5s ease-out;
}

.highlight {
  color: #39ff14;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #ccc;
}

.buttons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn,
.btn-outline {
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

.btn {
  background: #39ff14;
  color: #000;
  box-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14;
}

.btn:hover {
  background: #2ecc71;
}

.btn-outline {
  border: 2px solid #39ff14;
  color: #39ff14;
}

.btn-outline:hover {
  background: #39ff14;
  color: #000;
}



.page-section {
  padding: 100px 50px;
  background-color: #111;
  color: #fff;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: rotateY(5deg) scale(1.05);
  box-shadow: 0 10px 10px rgba(57, 255, 20, 0.3);
}

/* Skills Bars */
.page-section {
  padding: 60px 20px;
  color: #fff;
  background: #151515;
  font-family: 'Segoe UI', sans-serif;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 25px;

  transition: 0.3s ease;
}

.skill-card:hover {
  box-shadow: 0 0 25px rgba(57, 255, 14, 0.3);
  transform: translateY(-5px);
}

.skill-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #39ff14;
  padding-bottom: 5px;
}

.skill {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 12px;
}

.skill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px #39ff14);
}

.skill span {
  flex: 1;
  font-size: 0.95rem;
  color: #ccc;
}

.bar {
  width: 100%;
  height: 8px;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #39ff14, #2aff00);
  animation: fillBar 2s forwards;
  border-radius: 8px;
}

@keyframes fillBar {
  to {
    width: var(--level);
  }
}



/* About & Contact */
.h4 {
  font-size: 24px;
  color: #39ff14;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.p {
  font-size: 1rem;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  color: #eee;
  font-size: 0.95rem;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.info-grid div {
  background: #111;
  padding: 15px 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  font-weight: 400;
}

.info-grid div:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 20px rgba(57, 255, 14, 0.15);
  border: 1px solid #39ff14;
  font-weight: 500;
  background: #181818;
}


#about {
  background-color: #0f0f0f;
  text-align: center;
  padding: 80px 20px;
}

.section-heading {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#about p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #bbb;
  line-height: 1.8;
  font-size: 1rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 0 20px;
  justify-content: center;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(57, 255, 14, 0.05);
  color: #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(57, 255, 14, 0.15), 0 0 10px rgba(57, 255, 14, 0.1);
}


.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #39ff14;
}

.info-card p {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #ccc;
}

.education-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.education-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(57, 255, 14, 0.15), 0 0 10px rgba(57, 255, 14, 0.1);
}

.edu-header {
  color: #39ff14;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 600;
}

.education-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* contact */
#contact {
  background: #0f0f0f;
  text-align: center;
  padding: 80px 20px;
  border-top: 1px solid #222;
}

.contact-heading {
  color: #39ff14;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-subheading {
  font-size: 1rem;
  color: #aaa;
  font-weight: 400;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 20px;
  border-radius: 12px;
  border: none;
  background: #1c1c1c;
  font-size: 1rem;
  width: 100%;
  max-width: 380px;
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid #2a2a2a;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 1px solid #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.contact-form textarea {
  border-radius: 12px;
  max-width: 100%;
}




.contact-details {
  margin-top: 40px;
  color: #ccc;
  font-size: 1rem;
}

.contact-details p {
  margin: 8px 0;
}

.socials {
  margin-top: 20px;
}

.socials i {
  font-size: 24px;
  margin: 0 10px;
  color: #39ff14;
  transition: 0.3s ease;
}

.socials i:hover {
  color: #2ecc71;
  transform: scale(1.2);
}
/* From Uiverse.io by 00Kubi */ 
.button {
  --primary:#39ff14 ;
  --neutral-1: #ffffff;
  --neutral-2: #f3f4f6;
  --radius: 16px;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  border: none;
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 220px;
  padding: 22px;
  height: 72px;
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 2px 2px rgba(255, 255, 255, 0.4),
    0 18px 32px rgba(0, 0, 0, 0.15),
    0 8px 12px rgba(0, 0, 0, 0.1);
}

.button:active {
  transform: scale(1);
  box-shadow:
    0 0 1px 2px rgba(33, 179, 7, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}
.button:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45))
      border-box;
  z-index: 0;
  transition: all 0.4s ease;
}
.button:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}
.button::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}
.state p {
  display: flex;
  align-items: center;
  justify-content: center;
}
.state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.state .icon svg {
  overflow: visible;
}

/* Outline */
.outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}
.outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 180deg,
    transparent 60%,
    var(--primary) 85%,
    transparent 100%
  );
  animation: spin 2.5s linear infinite;
  animation-play-state: paused;
  opacity: 0.7;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.button:hover .outline {
  opacity: 1;
}
.button:hover .outline::before {
  animation-play-state: running;
}

/* Letters */
.state p span {
  display: block;
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}
.button:hover p span {
  opacity: 1;
  animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.button:focus p span {
  opacity: 1;
  animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}
@keyframes wave {
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px) translateX(0) rotate(0);
    color: var(--primary);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(5px) rotate(-90deg);
    color: var(--primary);
    filter: blur(5px);
  }
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
    filter: blur(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes disapear {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(5px) translateY(20px);
    color: var(--primary);
    filter: blur(5px);
  }
}

/* Plane */
.state--default .icon svg {
  animation: land 0.6s ease forwards;
}
.button:hover .state--default .icon {
  transform: rotate(45deg) scale(1.25);
}
.button:focus .state--default svg {
  animation: takeOff 0.8s linear forwards;
}
.button:focus .state--default .icon {
  transform: rotate(0) scale(1.25);
}
@keyframes takeOff {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    transform: translateX(80px) rotate(45deg) scale(2.2);
  }
  100% {
    opacity: 0;
    transform: translateX(180px) rotate(45deg) scale(0);
  }
}
@keyframes land {
  0% {
    transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
    opacity: 0;
    filter: blur(3px);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Contrail */
.state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}
.button:focus .state--default .icon:before {
  animation: contrail 0.8s linear forwards;
}
@keyframes contrail {
  0% {
    width: 0;
    opacity: 1;
  }
  8% {
    width: 15px;
  }
  60% {
    opacity: 0.7;
    width: 80px;
  }
  100% {
    opacity: 0;
    width: 160px;
  }
}

/* States */
.state {
  padding-left: 29px;
  z-index: 2;
  display: flex;
  position: relative;
}
.state--default span:nth-child(4) {
  margin-right: 5px;
}
.state--sent {
  display: none;
}
.state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}
.button:focus .state--default {
  position: absolute;
}
.button:focus .state--sent {
  display: flex;
}
.button:focus .state--sent span {
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}
.button:focus .state--sent .icon svg {
  opacity: 0;
  animation: appear 1.2s ease forwards 0.8s;
}
@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(4) rotate(-40deg);
    color: var(--primary);
    filter: blur(4px);
  }
  30% {
    opacity: 1;
    transform: scale(0.6);
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


.logo svg,
.logo img {
  height: 20px;
  width: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #39ff14;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }
}


/* Tablets (min-width: 481px and up) */
@media (min-width: 481px) {
  body {
    font-size: 17px;
  }

  .container {
    padding: 0 20px;
  }
}

/* Medium devices (min-width: 768px and up) */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 25px;
  }

  .hamburger {
    display: none;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Large devices (min-width: 1024px and up) */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body {
    font-size: 18px;
  }

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

/* Extra-large (min-width: 1440px and up) */
@media (min-width: 1440px) {
  body {
    font-size: 19px;
  }
}