body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0a0f1c;
  color: white;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px 40px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-links a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
}

/* HERO */
.hero {
  text-align: center;
  padding: 140px 20px;
  background: radial-gradient(circle at top, #1e293b, #0a0f1c);
}

.hero h1 {
  font-size: 60px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #3b82f6;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #3b82f6;
}

/* SECTIONS */
section {
  padding: 90px 20px;
  max-width: 1000px;
  margin: auto;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

/* CARDS */
.card {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 12px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px) rotateX(5deg);
  background: rgba(255,255,255,0.1);
}

.project-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  transition: 0.3s;
}

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

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* CURSOR GLOW */
.cursor-glow {
  position: fixed;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
}

.unity-box {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.unity-box iframe {
  width: 100%;
  height: 100%;
}

.ai-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
}

.ai-header {
  padding: 10px;
  background: #3b82f6;
  text-align: center;
  font-weight: bold;
}

.chat-box {
  height: 200px;
  overflow-y: auto;
  padding: 10px;
  font-size: 12px;
}

.chat-input {
  display: flex;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
}

.chat-input button {
  background: #3b82f6;
  border: none;
  color: white;
  padding: 8px;
}

.btn.secondary {
  background: transparent;
  border: 1px solid #3b82f6;
  margin-left: 10px;
}

.btn.secondary:hover {
  background: #3b82f6;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #0a0f1c;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: white;
}

.contact-form button {
  padding: 12px;
  background: #3b82f6;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover {
  box-shadow: 0 0 20px #3b82f6;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 25px;
  width: 200px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-card h3 {
  font-size: 32px;
  color: #3b82f6;
  margin: 0;
}

.stat-card p {
  margin: 5px 0 0;
  opacity: 0.8;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.hero-3d {
  text-align: center;
  padding: 140px 20px;
  perspective: 1000px;
}

.hero-3d h1 {
  font-size: 60px;
  transform-style: preserve-3d;
  animation: float3d 4s ease-in-out infinite;
}

.hero-3d p {
  opacity: 0.8;
}

@keyframes float3d {
  0% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0px);
  }
  50% {
    transform: rotateY(10deg) rotateX(-5deg) translateY(-10px);
  }
  100% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0px);
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  background: #111827;
  width: 60%;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 24px;
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.about-image img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(59,130,246,0.5);
  box-shadow:
      0 0 30px rgba(59,130,246,0.4),
      0 0 60px rgba(59,130,246,0.2);
  transition: 0.4s;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-content {
  max-width: 600px;
}

.about-content p {
  line-height: 1.8;
  opacity: 0.9;
}

.about-image {
    position: relative;
    width: 350px;
    height: 350px;
    margin: auto;
}

/* THIS IS THE KEY WRAPPER */
.float-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    
    transform: translate(-50%, -50%);
    
    animation: floatGroup 5s ease-in-out infinite;
}

/* PROFILE IMAGE */
.float-wrapper img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;

    border: 4px solid rgba(59,130,246,0.5);

    box-shadow:
        0 0 25px rgba(59,130,246,0.4),
        0 0 60px rgba(59,130,246,0.2);

    position: relative;
    z-index: 3;
}

/* RINGS */
.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-origin: center;
}

/* INNER RING */
.ring-1 {
    width: 320px;
    height: 320px;
    border: 3px dashed #3b82f6;
    transform: translate(-50%, -50%);
    animation: spin 18s linear infinite;
    z-index: 1;
}

/* OUTER RING */
.ring-2 {
    width: 360px;
    height: 360px;
    border: 2px solid rgba(59,130,246,0.25);
    transform: translate(-50%, -50%);
    animation: spinReverse 28s linear infinite;
    z-index: 0;
}

/* 🌊 FLOAT EVERYTHING TOGETHER */
@keyframes floatGroup {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
}

/* ROTATION */
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}
