* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  font-family: 'Space Grotesk', sans-serif;
  background: #050505;
  color: #eaeaea;
  overflow-x: hidden;
}

.main-content {
  display: none;
  animation: revealMain 1.2s ease forwards;
}

@keyframes revealMain {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient {
  position: fixed;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, #0f172a, transparent),
    radial-gradient(circle at 80% 70%, #020617, transparent),
    linear-gradient(120deg, #020617, #000);
  z-index: -3;
}

.noise {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.05;
  z-index: -2;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  animation: floatBlob 12s ease-in-out infinite;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00f7ff33, transparent 60%);
  top: -200px;
  left: -200px;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #9333ea33, transparent 60%);
  bottom: -150px;
  right: -150px;
}

@keyframes floatBlob {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(60px, -40px); }
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #00f7ff;
}

.navbar nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #aaa;
  transition: 0.3s;
  position: relative;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #00f7ff;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #00f7ff;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
  width: 100%;
}

.terminal {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-box {
  width: 600px;
  max-width: 90%;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 60px rgba(0,247,255,0.15);
}

.terminal-header {
  display: flex;
  gap: 8px;
  padding: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-body {
  padding: 20px;
  font-size: 14px;
  color: #ccc;
}

.highlight {
  color: #00f7ff;
}

.enter-text {
  margin-top: 10px;
  opacity: 0.7;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

.hero {
  padding: 140px 8% 100px;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
}

.hero-title span {
  color: #00f7ff;
  text-shadow: 0 0 30px #00f7ff88;
}

.hero-sub {
  margin-top: 20px;
  color: #aaa;
  max-width: 500px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}


.hero-image img {
  width: 260px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 60px rgba(0,247,255,0.2);
  animation: floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}


.cta {
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, #00f7ff, #9333ea);
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: 0.4s;
}

.cta:hover {
  transform: scale(1.07);
  box-shadow: 0 0 40px #00f7ff88;
}

.resume-btn {
  padding: 14px 25px;
  border-radius: 50px;
  text-decoration: none;
  background: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
  transition: 0.3s;
}

.resume-btn:hover {
  background: #00f7ff;
  color: black;
}


.about {
  padding: 100px 8%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.about-stats {
  display: flex;
  gap: 20px;
}

.stat {
  flex: 1;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  text-align: center;
}

.stat h3 {
  color: #00f7ff;
  font-size: 1.8rem;
}

.skills {
  padding: 100px 8%;
}

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

.skill-card {
  padding: 25px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  transition: 0.4s;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 40px rgba(0,247,255,0.2);
}


.marquee {
  display: flex;
  overflow: hidden;
  margin-top: 40px;
  color: #00f7ff;
  font-size: 1.3rem;
}

.marquee span {
  white-space: nowrap;
  padding-right: 50px;
  animation: scrollText 18s linear infinite;
}

.marquee:hover span {
  animation-play-state: paused;
}

@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


.projects {
  padding: 100px 8%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 30px;
}

.project-inner {
  height: 220px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  transition: 0.5s;
}

.project-inner:hover {
  box-shadow: 0 0 50px rgba(0,247,255,0.2);
}

.tag {
  margin-top: 10px;
  display: inline-block;
  font-size: 12px;
  color: #00f7ff;
}

.timeline {
  margin-top: 40px;
  border-left: 2px solid #00f7ff;
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: #00f7ff;
  border-radius: 50%;
}

.cta-section {
  padding: 100px 8%;
}

.cta-box {
  max-width: 700px;
  margin: auto;
  padding: 50px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  text-align: center;
}


.contact {
  padding: 100px 8%;
}

.contact-box {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

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

.contact-card {
  padding: 25px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: 0.4s;
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 60px rgba(0,247,255,0.3);
}

.contact-btn {
  margin-top: 40px;
}


.footer {
  text-align: center;
  padding: 30px;
  color: #666;
}

.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75); 
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 2000;
}

.contact-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  width: 420px;
  max-width: 90%;
  padding: 30px;
  border-radius: 14px;

  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow: 
    0 0 40px rgba(0,247,255,0.15),
    0 20px 60px rgba(0,0,0,0.6);
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.06);
  color: #fff;

  outline: none;
  transition: 0.3s;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: #aaa;
}

.modal-content input:focus,
.modal-content textarea:focus {
  border-color: #00f7ff;
  box-shadow: 0 0 10px #00f7ff33;
}

.close-modal {
  position: absolute;
  right: 18px;
  top: 12px;
  cursor: pointer;
  font-size: 18px;
  color: #aaa;
}

.close-modal:hover {
  color: #00f7ff;
}
