/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #050505;
  --dark: #0a0a0d;
  --card: #111117;
  --card2: #181820;
  --gold: #eebd2b;
  --gold-light: #ffe18a;
  --cyan: #1dbac9;
  --cyan-light: #5ee8f5;
  --white: #ffffff;
  --gray: #a0a0aa;
  --gray-dark: #666670;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 20px 40px -12px rgba(0,0,0,0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(29, 186, 201, 0.08), transparent 25%),
              radial-gradient(circle at 90% 50%, rgba(238, 189, 43, 0.07), transparent 25%),
              var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .logo, nav, .btn, .stat-card {
  font-family: "Orbitron", "Poppins", "Segoe UI", Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ===== BACKGROUND GRID & GLOW ===== */
.background-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -10;
  pointer-events: none;
}

.glow {
  position: fixed;
  width: 450px; height: 450px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.12;
  z-index: -9;
  pointer-events: none;
}
.glow-one { background: var(--cyan); top: 10%; left: -250px; }
.glow-two { background: var(--gold); right: -250px; bottom: 10%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  padding: 0 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo i { color: var(--cyan); }
.logo span { color: var(--gold); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  transition: 0.3s;
  letter-spacing: 0.5px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.3s;
}
.nav-links a:hover {
  color: white;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links .contact-link {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.3s;
}
.nav-links .contact-link::after { display: none; }
.nav-links .contact-link:hover {
  background: var(--gold);
  color: black;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 150px 7% 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray);
  margin-bottom: 25px;
}
.online-dot {
  width: 8px; height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 15px #00ff88;
}

.hero-small {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 5px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(55px, 8vw, 110px);
  line-height: 0.95;
  font-weight: 900;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

.typing-text {
  margin-top: 25px;
  font-size: 20px;
  color: var(--gold);
  min-height: 30px;
}

.hero-description {
  margin-top: 20px;
  max-width: 650px;
  color: var(--gray);
  line-height: 1.9;
  font-size: 15px;
}

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

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.35s;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b78000);
  color: black;
  box-shadow: 0 8px 20px rgba(238,189,43,0.2);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(238,189,43,0.35);
}
.btn-secondary {
  border: 1px solid var(--border);
  color: white;
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-social {
  display: flex;
  gap: 14px;
  margin-top: 35px;
}
.hero-social a {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gray);
  transition: 0.3s;
  font-size: 16px;
}
.hero-social a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-orbit {
  width: 420px; height: 420px;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(29,186,201,0.25);
}
.orbit-1 { width: 100%; height: 100%; animation: rotate 20s linear infinite; }
.orbit-2 { width: 75%; height: 75%; border-color: rgba(238,189,43,0.3); animation: rotateReverse 15s linear infinite; }
.orbit-3 { width: 50%; height: 50%; }

.robot-core {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #17171d, #08080b);
  border: 2px solid rgba(238,189,43,0.35);
  box-shadow: 0 0 100px rgba(29,186,201,0.15);
  flex-shrink: 0;
}
.robot-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.floating-tech {
  position: absolute;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15,15,20,0.9);
  backdrop-filter: blur(15px);
  font-size: 10px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}
.floating-tech i { color: var(--cyan); font-size: 16px; }
.float-one { top: 10%; left: -5%; }
.float-two { right: -5%; bottom: 20%; animation-delay: 1s; }
.float-three { bottom: 0; left: 10%; animation-delay: 2s; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotateReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ===== SECTION COMMON ===== */
.section {
  padding: 120px 7%;
}
.section-tag {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 500;
}
.section-title {
  margin-top: 15px;
  font-size: clamp(35px, 5vw, 65px);
  line-height: 1.1;
  max-width: 800px;
}
.section-title span { color: var(--gold); }
.section-description {
  margin-top: 20px;
  max-width: 700px;
  color: var(--gray);
  line-height: 1.9;
}

/* ===== STATS ===== */
.stats {
  padding: 20px 7% 100px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: 0.3s;
  text-align: center;
}
.stat-card:hover {
  transform: translateY(-7px);
  border-color: rgba(29,186,201,0.4);
}
.stat-card h2 {
  color: var(--gold);
  font-size: 38px;
  font-weight: 800;
}
.stat-card p {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.5px;
}

/* ===== ABOUT ===== */
.about-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.about-text p {
  color: var(--gray);
  line-height: 2;
  margin-bottom: 20px;
}
.about-text strong { color: white; }

.profile-card {
  padding: 20px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.profile-row:last-child { border-bottom: none; }
.profile-row span {
  color: var(--gray);
  font-size: 10px;
  letter-spacing: 1px;
}
.profile-row strong {
  text-align: right;
  font-size: 13px;
}

/* ===== EDUCATION ===== */
.education-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.education-card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  transition: 0.3s;
}
.education-card:hover {
  border-color: rgba(29,186,201,0.3);
  transform: translateY(-4px);
}
.education-card i { font-size: 35px; color: var(--cyan); }
.education-card h3 { margin-top: 25px; font-size: 22px; }
.education-card p {
  color: var(--gray);
  margin-top: 15px;
  line-height: 1.8;
  font-size: 13px;
}

/* ===== SKILLS ===== */
.skills-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  padding: 35px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: 0.4s;
}
.skill-card:hover {
  transform: translateY(-10px);
  border-color: rgba(238,189,43,0.4);
}
.skill-icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(29,186,201,0.08);
  color: var(--cyan);
  font-size: 22px;
}
.skill-card h3 { margin-top: 25px; }
.skill-card p {
  color: var(--gray);
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.8;
}

/* ===== PROJECTS ===== */
.projects-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  min-height: 360px;
  padding: 40px;
  background: linear-gradient(145deg, #111117, #070709);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: 0.4s;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(29,186,201,0.45);
}
.project-number {
  position: absolute;
  right: 30px; top: 20px;
  font-size: 50px;
  color: rgba(255,255,255,0.05);
}
.project-icon { font-size: 35px; color: var(--cyan); }
.project-card h3 { margin-top: 30px; font-size: 24px; }
.project-card p {
  margin-top: 15px;
  color: var(--gray);
  line-height: 1.8;
  font-size: 13px;
}
.project-tags {
  margin-top: 25px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-tags span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--gray);
  font-size: 10px;
}
.development-badge {
  position: absolute;
  top: 30px; right: 30px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1px;
}

/* ===== EXPERIENCE ===== */
.experience-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.experience-card {
  padding: 35px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.025);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.experience-card span {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 2px;
}
.experience-card h3 {
  margin-top: 20px;
  font-size: 20px;
}
.experience-card p {
  color: var(--gray);
  margin-top: 15px;
  line-height: 1.8;
  font-size: 13px;
}

/* ===== CURRENT PROJECT ===== */
.current-project {
  padding: 120px 7%;
  background: linear-gradient(135deg, rgba(29,186,201,0.08), rgba(238,189,43,0.05));
}
.current-project-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.current-project h2 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.1;
}
.current-project h2 span { color: var(--gold); }
.current-project p {
  margin-top: 25px;
  color: var(--gray);
  line-height: 2;
}
.project-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--gray);
  font-size: 13px;
}
.feature i { color: var(--gold); margin-right: 10px; }

/* ===== GALLERY ===== */
.gallery-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  min-height: 230px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #15151b, #08080b);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  transition: 0.4s;
}
.gallery-item:hover {
  transform: scale(1.03);
  border-color: var(--gold);
}
.gallery-item i { font-size: 40px; color: var(--cyan); }
.gallery-item h3 { margin-top: 20px; }
.gallery-item p {
  color: var(--gray);
  margin-top: 8px;
  font-size: 12px;
}

/* ===== FUTURE ===== */
.future {
  padding: 150px 7%;
  background: radial-gradient(circle at center, rgba(29,186,201,0.08), transparent 60%);
}
.future-content { max-width: 900px; }
.future-tag {
  color: var(--cyan);
  letter-spacing: 4px;
  font-size: 11px;
}
.future h2 {
  margin-top: 20px;
  font-size: clamp(50px, 8vw, 110px);
  line-height: 0.95;
}
.future h2 span { color: var(--gold); }
.future p {
  margin-top: 30px;
  max-width: 750px;
  color: var(--gray);
  line-height: 2;
}
.goal-list {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.goal {
  padding: 15px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gray);
}
.goal i { color: var(--gold); margin-right: 10px; }

/* ===== CONTACT ===== */
.contact {
  padding: 120px 7%;
}
.contact-box {
  margin-top: 60px;
  padding: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  text-align: center;
}
.contact-box h2 {
  font-size: clamp(35px, 5vw, 65px);
}
.contact-box h2 span { color: var(--gold); }
.contact-box p {
  color: var(--gray);
  margin: 20px auto 35px;
  max-width: 600px;
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}
.contact-info a {
  color: var(--gray);
  font-size: 14px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-info a:hover {
  color: var(--gold);
}

/* ===== FOOTER ===== */
footer {
  padding: 70px 7% 30px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo {
  font-size: 28px;
  font-weight: 900;
}
.footer-logo span { color: var(--gold); }
footer p {
  margin-top: 15px;
  color: var(--gray);
}
.footer-social {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}
.footer-social a {
  color: var(--gray);
  transition: 0.3s;
  font-size: 14px;
}
.footer-social a:hover { color: var(--gold); }
.copyright {
  font-size: 11px;
  color: var(--gray-dark);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .navbar { padding: 0 5%; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 80px; left: 0;
    width: 100%;
    background: #09090c;
    flex-direction: column;
    padding: 30px;
    display: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 14px; }
  .hero { padding: 130px 5% 70px; }
  .section { padding: 90px 5%; }
  .stats { padding: 20px 5% 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .education-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .current-project-box { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tech-orbit { width: 300px; height: 300px; }
  .robot-core { width: 120px; height: 120px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .profile-row { flex-direction: column; }
  .profile-row strong { text-align: left; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { justify-content: center; }
  .contact-box { padding: 35px 20px; }
  .project-features { grid-template-columns: 1fr; }
  .floating-tech { font-size: 8px; padding: 10px; }
}