:root{
  --bg: #050816;
  --card: rgba(15, 23, 42, 0.7);
  --text: #ffffff;
  --primary: #3b82f6;
  --secondary: #60a5fa;
  --border: rgba(255,255,255,0.1);
}

body.light-mode{
  --bg: #f4f7ff;
  --card: rgba(255,255,255,0.8);
  --text: #111827;
  --primary: #2563eb;
  --secondary: #1d4ed8;
  --border: rgba(0,0,0,0.1);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body{
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: 0.4s;
  cursor: none;
}

.container{
  width: min(1200px, 90%);
  margin: auto;
}

.section{
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.bg-grid{
  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: 40px 40px;
  z-index: 0;
}

.glow{
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}

.glow-1{
  background: #2563eb;
  top: -100px;
  left: -100px;
}

.glow-2{
  background: #0ea5e9;
  bottom: -100px;
  right: -100px;
}

.header{
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-wrapper{
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo{
  font-family: 'Orbitron', sans-serif;
  color: var(--text);
}

.logo span{
  color: var(--primary);
}

.navbar{
  display: flex;
  gap: 28px;
}

.navbar a{
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

.navbar a:hover{
  color: var(--primary);
}

.theme-btn{
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.hero-content{
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 60px;
}

.hero-tag{
  color: var(--primary);
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero-text h1{
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text h1 span{
  color: var(--primary);
}

.hero-description{
  font-size: 18px;
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-buttons{
  display: flex;
  gap: 20px;
}

.btn{
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.primary-btn{
  background: var(--primary);
  color: white;
}

.secondary-btn{
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover{
  transform: translateY(-5px);
}

.image-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(12px);
}

.image-card img{
  width: 100%;
  border-radius: 20px;
}

.section-title{
  margin-bottom: 50px;
}

.section-title p{
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.section-title h2{
  font-size: 42px;
}

.about-card,
.education-card,
.project-card,
.contact-card,
.skill-card{
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.about-card,
.education-card{
  padding: 40px;
  border-radius: 24px;
  line-height: 1.9;
}

.skills-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.skill-card{
  padding: 35px;
  border-radius: 24px;
  text-align: center;
  transition: 0.3s;
}

.skill-card:hover{
  transform: translateY(-10px);
  border-color: var(--primary);
}

.skill-card i{
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 18px;
}

.project-grid{
  display: grid;
  gap: 30px;
}

.project-card{
  border-radius: 24px;
  overflow: hidden;
}

.project-card img{
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-content{
  padding: 30px;
}

.project-content h3{
  margin-bottom: 15px;
}

.project-content p{
  opacity: 0.8;
  line-height: 1.8;
}

.project-tags{
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.project-tags span{
  padding: 8px 14px;
  background: rgba(59,130,246,0.15);
  border-radius: 999px;
}

.project-btn{
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: white;
  background: var(--primary);
  padding: 12px 24px;
  border-radius: 12px;
}

.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.contact-card{
  text-decoration: none;
  color: var(--text);
  padding: 30px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: 0.3s;
}

.contact-card:hover{
  transform: translateY(-8px);
  border-color: var(--primary);
}

.contact-card i{
  font-size: 32px;
  color: var(--primary);
}

.footer{
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--border);
}

.reveal{
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.reveal.active{
  opacity: 1;
  transform: translateY(0);
}

.cursor{
  width: 40px;
  height: 40px;
  position: fixed;
  background: url('../assets/spaceship-cursor.png') no-repeat center;
  background-size: contain;
  pointer-events: none;
  z-index: 9999;
}