/* =========================================================
       RESET
    ========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bg: #050816;
  --bg2: #0b1023;

  --primary: #00d9ff;
  --secondary: #7b61ff;
  --accent: #ff4ecd;

  --white: #ffffff;
  --muted: #b8b8c7;

  --glass: rgba(255, 255, 255, 0.05);

  --border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: "Inter", sans-serif;

  color: white;

  overflow-x: hidden;

  background:
    radial-gradient(
      circle at top left,
      rgba(0, 217, 255, 0.15),
      transparent 25%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(123, 97, 255, 0.15),
      transparent 25%
    ),
    linear-gradient(135deg, #020412, #050816, #071021, #050816);

  background-size: 300% 300%;

  animation: bgMove 18s ease infinite;

  position: relative;
}

@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

body::before {
  content: "";

  position: fixed;

  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

  background-size: 50px 50px;

  z-index: -2;

  opacity: 0.3;
}

/* =========================================================
       MATRIX RAIN
    ========================================================== */

#codeRain {
  position: fixed;

  inset: 0;

  z-index: -3;

  opacity: 0.12;
}

/* =========================================================
       PARTICLES
    ========================================================== */

.particles {
  position: fixed;

  inset: 0;

  z-index: -1;

  overflow: hidden;
}

.particles span {
  position: absolute;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);

  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  from {
    transform: translateY(0) rotate(0deg);

    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  to {
    transform: translateY(-120vh) rotate(360deg);

    opacity: 0;
  }
}

/* =========================================================
       CURSOR
    ========================================================== */

.cursor {
  width: 22px;
  height: 22px;

  border: 2px solid var(--primary);

  border-radius: 50%;

  position: fixed;

  transform: translate(-50%, -50%);

  pointer-events: none;

  z-index: 99999;

  box-shadow: 0 0 25px var(--primary);
}

.cursor-dot {
  width: 6px;
  height: 6px;

  background: var(--primary);

  border-radius: 50%;

  position: fixed;

  transform: translate(-50%, -50%);

  pointer-events: none;

  z-index: 99999;
}

/* =========================================================
       CONTAINER
    ========================================================== */

.container {
  width: 100%;

  max-width: 1450px;

  margin: auto;

  padding: 0 7%;
}

section {
  padding: 120px 0;

  position: relative;
}

/* =========================================================
       NAVBAR
    ========================================================== */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 1000;

  padding: 24px 0;

  background: rgba(5, 8, 22, 0.45);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: 0.4s ease;
}

.nav-wrapper {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.logo {
  font-size: 2rem;

  font-weight: 800;

  font-family: "Orbitron", sans-serif;
}

.logo span {
  color: var(--primary);
}

nav {
  display: flex;

  gap: 34px;
}

nav a {
  text-decoration: none;

  color: white;

  font-weight: 600;

  position: relative;
}

nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0%;
  height: 2px;

  background: linear-gradient(to right, var(--primary), var(--secondary));

  transition: 0.4s;
}

nav a:hover::after {
  width: 100%;
}

/* =========================================================
       GLOBAL TITLE
    ========================================================== */

.section-title {
  text-align: center;

  margin-bottom: 90px;
}

.section-title h2 {
  font-size: 3.5rem;

  font-family: "Orbitron", sans-serif;

  background: linear-gradient(
    to right,
    var(--primary),
    white,
    var(--secondary)
  );

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

/* =========================================================
       GLASS CARD
    ========================================================== */

.glass-card {
  position: relative;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(24px);

  border-radius: 32px;

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border 0.3s ease;

  transform-style: preserve-3d;

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.glass-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    transparent 40%
  );

  pointer-events: none;
}

.glass-card:hover {
  transform: perspective(1200px) rotateX(5deg) rotateY(-5deg) translateY(-12px)
    scale(1.02);

  border: 1px solid rgba(0, 217, 255, 0.2);

  box-shadow:
    0 20px 60px rgba(0, 217, 255, 0.15),
    0 0 50px rgba(123, 97, 255, 0.12);
}

/* =========================================================
       HERO
    ========================================================== */

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 60px;

  padding-top: 120px;
}

.hero-left {
  flex: 1;
}

.hero-left h3 {
  color: var(--primary);

  margin-bottom: 20px;

  font-size: 1.2rem;
}

.hero-left h1 {
  font-size: 5rem;

  line-height: 1.1;

  margin-bottom: 20px;
}

.hero-left h1 span {
  background: linear-gradient(to right, var(--primary), var(--secondary));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

.typing {
  font-size: 1.5rem;

  margin-bottom: 25px;

  color: #ddd;

  min-height: 45px;
}

.hero-left p {
  color: var(--muted);

  line-height: 1.9;

  max-width: 650px;

  margin-bottom: 35px;
}

.hero-social {
  display: flex;

  gap: 18px;

  margin-bottom: 35px;
}

.hero-social a {
  width: 58px;
  height: 58px;

  border-radius: 18px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: white;

  text-decoration: none;

  font-size: 1.2rem;

  transition: 0.4s ease;
}

.hero-social a:hover {
  transform: translateY(-8px);

  background: linear-gradient(to right, var(--primary), var(--secondary));

  color: black;
}

.hero-buttons {
  display: flex;

  gap: 20px;

  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;

  border-radius: 14px;

  font-weight: 700;

  text-decoration: none;

  transition: 0.4s ease;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  cursor: pointer;

  border: none;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--secondary));

  color: black;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);

  background: rgba(255, 255, 255, 0.05);

  color: white;
}

.btn:hover {
  transform: translateY(-5px) scale(1.03);
}

/* =========================================================
       HERO RIGHT
    ========================================================== */

.hero-right {
  flex: 1;

  display: flex;

  justify-content: center;

  align-items: center;
}

.profile-wrapper {
  width: 650px;
  height: 650px;

  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;

  animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.orbit {
  position: absolute;

  border-radius: 50%;

  border: 1px dashed rgba(255, 255, 255, 0.15);

  animation: rotate 14s linear infinite;
}

.orbit1 {
  width: 520px;
  height: 520px;
}

.orbit2 {
  width: 620px;
  height: 620px;

  animation-direction: reverse;

  animation-duration: 20s;
}

.orbit-dot {
  width: 18px;
  height: 18px;

  background: var(--primary);

  border-radius: 50%;

  position: absolute;

  top: 20px;
  left: 50%;

  box-shadow: 0 0 20px var(--primary);
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.profile-container {
  width: 430px;
  height: 430px;

  border-radius: 50%;

  padding: 10px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  position: relative;
}

.profile-ring {
  position: absolute;

  inset: 0;

  border-radius: 50%;

  background: conic-gradient(
    from 0deg,
    rgba(0, 217, 255, 0.9),
    rgba(123, 97, 255, 0.9),
    rgba(0, 217, 255, 0.9)
  );

  animation: rotate 6s linear infinite;
}

.profile-image-box {
  width: 100%;
  height: 100%;

  border-radius: 50%;

  overflow: hidden;

  position: relative;

  z-index: 2;
}

.profile-image-box img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.profile-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

.profile-text {
  position: absolute;

  bottom: 45px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 3;

  text-align: center;
}

.profile-text h2 {
  font-size: 3.8rem;

  font-family: "Orbitron", sans-serif;
}

.profile-text p {
  color: var(--primary);

  letter-spacing: 4px;
}

/* =========================================================
       ABOUT
    ========================================================== */

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 45px;

  align-items: center;
}

.hero-3d-card {
  min-height: 620px;

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;
}

.profile-wrapper-about {
  width: 320px;
  height: 320px;

  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;
}

.profile-ring-about {
  position: absolute;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  border: 2px solid rgba(0, 217, 255, 0.25);

  animation: rotate 12s linear infinite;
}

.ring-2 {
  width: 400px;
  height: 400px;

  border-color: rgba(123, 97, 255, 0.25);

  animation-direction: reverse;
}

.ring-3 {
  width: 480px;
  height: 480px;

  border-style: dashed;

  border-color: rgba(255, 255, 255, 0.08);
}

.profile-image-about {
  width: 250px;
  height: 250px;

  border-radius: 50%;

  object-fit: cover;

  border: 6px solid rgba(255, 255, 255, 0.08);

  z-index: 5;
}

.floating-icon {
  position: absolute;

  width: 78px;
  height: 78px;

  border-radius: 24px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: white;

  font-size: 1.8rem;

  animation: floatIcon 4s ease-in-out infinite;
}

.icon-1 {
  top: 80px;
  left: 60px;
}

.icon-2 {
  top: 110px;
  right: 60px;
}

.icon-3 {
  bottom: 90px;
  left: 70px;
}

.icon-4 {
  bottom: 70px;
  right: 80px;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }

  100% {
    transform: translateY(0);
  }
}

.about-content {
  min-height: 620px;

  padding: 55px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}

.about-badge {
  width: max-content;

  padding: 10px 18px;

  border-radius: 30px;

  background: rgba(0, 217, 255, 0.12);

  border: 1px solid rgba(0, 217, 255, 0.15);

  color: var(--primary);

  font-size: 0.85rem;

  font-weight: 700;

  margin-bottom: 24px;
}

.about-content h3 {
  font-size: 2.4rem;

  margin-bottom: 28px;
}

.about-content p {
  color: var(--muted);

  line-height: 1.9;

  margin-bottom: 22px;
}

.about-stats {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;

  margin-top: 30px;
}

.stat-card {
  padding: 24px 20px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.06);

  text-align: center;
}

.stat-card h4 {
  color: var(--primary);

  font-size: 2rem;

  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
}

/* =========================================================
       SKILLS
    ========================================================== */

.skills-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 30px;
}

.skill-card {
  padding: 35px;
}

.skill-card h3 {
  color: var(--primary);

  margin-bottom: 25px;
}

.skill-list {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}

.skill {
  padding: 10px 16px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: 0.3s;
}

.skill:hover {
  transform: translateY(-5px);

  background: linear-gradient(to right, var(--primary), var(--secondary));

  color: black;
}

/* =========================================================
       EDUCATION
    ========================================================== */

.timeline {
  position: relative;

  max-width: 1100px;

  margin: auto;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 50%;

  transform: translateX(-50%);

  width: 4px;
  height: 100%;

  background: linear-gradient(var(--primary), var(--secondary));
}

.timeline-item {
  width: 50%;

  padding: 20px 40px;

  position: relative;
}

.timeline-item:nth-child(odd) {
  left: 0;

  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;

  width: 20px;
  height: 20px;

  border-radius: 50%;

  background: var(--primary);

  top: 45px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-card {
  padding: 35px;
}

.timeline-icon {
  width: 70px;
  height: 70px;

  border-radius: 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.5rem;

  margin-bottom: 20px;

  background: linear-gradient(to right, var(--primary), var(--secondary));

  color: black;
}

.timeline-year {
  color: var(--primary);

  font-weight: 700;
}

.timeline-card h3 {
  margin: 15px 0 10px;
}

.timeline-card h4 {
  color: var(--muted);

  margin-bottom: 18px;
}

.timeline-card p {
  color: var(--muted);

  line-height: 1.8;
}

/* =========================================================
       PROJECTS
    ========================================================== */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 35px;
}

.project-card {
  overflow: hidden;
}

.project-image {
  height: 240px;

  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.6s;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 30px;
}

.project-badge {
  width: max-content;

  padding: 10px 16px;

  border-radius: 30px;

  background: rgba(0, 217, 255, 0.12);

  border: 1px solid rgba(0, 217, 255, 0.15);

  color: var(--primary);

  font-size: 0.8rem;

  font-weight: 700;

  margin-bottom: 20px;
}

.project-content h3 {
  margin-bottom: 15px;

  color: var(--primary);
}

.project-content p {
  color: var(--muted);

  line-height: 1.8;

  margin-bottom: 20px;
}

.tech-stack {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 25px;
}

.tech-stack span {
  padding: 8px 14px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.06);
}

.project-buttons {
  display: flex;

  gap: 16px;

  flex-wrap: wrap;
}

/* =========================================================
       CERTIFICATIONS
    ========================================================== */

.certificate-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 30px;
}

.certificate-card {
  padding: 40px;

  text-align: center;
}

.certificate-icon {
  width: 90px;
  height: 90px;

  border-radius: 28px;

  margin: auto auto 30px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 2rem;

  background: linear-gradient(to right, var(--primary), var(--secondary));

  color: black;
}

.certificate-card h3 {
  color: var(--primary);

  margin-bottom: 20px;

  line-height: 1.5;
}

.certificate-card p {
  color: var(--muted);

  line-height: 1.9;
}

/* =========================================================
       CONTACT
    ========================================================== */

.contact-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 40px;
}

.contact-card {
  padding: 40px;
}

.contact-card h3 {
  font-size: 2rem;

  margin-bottom: 25px;
}

.contact-info {
  display: flex;

  flex-direction: column;

  gap: 24px;
}

.contact-item {
  display: flex;

  align-items: center;

  gap: 18px;
}

.contact-item i {
  width: 55px;
  height: 55px;

  border-radius: 18px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.05);

  color: var(--primary);
}

.contact-item a,
.contact-item span {
  color: var(--muted);

  text-decoration: none;
}

.contact-form {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 16px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.05);

  color: white;

  outline: none;

  font-family: "Inter", sans-serif;
}

.contact-form textarea {
  min-height: 150px;

  resize: none;
}

/* =========================================================
       FOOTER
    ========================================================== */

footer {
  padding: 35px;

  text-align: center;

  color: var(--muted);

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================================================
       REVEAL
    ========================================================== */

.reveal {
  opacity: 0;

  transform: translateY(80px);

  transition: 1s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
       RESPONSIVE
    ========================================================== */

@media (max-width: 1100px) {
  .hero {
    flex-direction: column;

    text-align: center;
  }

  .hero-left h1 {
    font-size: 4rem;
  }

  .hero-social,
  .hero-buttons {
    justify-content: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;

    padding-left: 80px;

    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 10px !important;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .hero-left h1 {
    font-size: 3rem;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .profile-container {
    width: 300px;
    height: 300px;
  }

  .orbit1 {
    width: 380px;
    height: 380px;
  }

  .orbit2 {
    width: 450px;
    height: 450px;
  }

  .profile-text h2 {
    font-size: 2.3rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }
}
