:root {
  --bg: #0b0d17;
  --surface: #15192b;
  --primary: #00d4ff;
  --text: #e0e6ed;
  --muted: #94a3b8;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,13,23,0.9);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.logo span { color: var(--primary); }

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text);
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 8rem 8%;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-img img {
  width: 280px;
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.tag {
  color: var(--primary);
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
}

.typing-line {
  color: var(--muted);
  margin-top: 0.5rem;
}

.desc {
  max-width: 480px;
  margin-top: 1.5rem;
  color: #aaa;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 5px;
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.hero-img img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
}


/* SECTIONS */
.section {
  padding: 6rem 8%;
}

.center { text-align: center; }

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

/* AUTOMATION REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.6s ease;
}

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

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
}


.section-subtitle {
  max-width: 600px;
  color: #a0aec0;
  margin-bottom: 3rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* Project Card */
.project-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

/* Header */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-header h3 {
  font-size: 1.2rem;
}

.project-tag {
  font-size: 0.75rem;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Description */
.project-desc {
  margin: 1rem 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Bullet points */
.project-points {
  margin-left: 1.2rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.project-points li {
  margin-bottom: 0.4rem;
}

/* Links */
.project-links {
  margin-top: 1.5rem;
}

.project-links a {
  margin-right: 1.2rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.project-links a:hover {
  text-decoration: underline;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== CUSTOM CURSOR ===== */
body {
  cursor: none;
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.2s ease;
}

/* Hover effect on links & buttons */
a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline {
  transform: translate(-50%, -50%) scale(1.4);
  border-color: var(--primary);
}

/* Mobile safety */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}
