
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }


:root {
  --bg:      #0d0d16;
  --bg2:     #13131f;
  --card:    #1a1a28;
  --accent:  #7c3aed;
  --cyan:    #06b6d4;
  --grad:    linear-gradient(135deg, #7c3aed, #06b6d4);
  --text:    #f1f5f9;
  --muted:   #94a3b8;
  --border:  rgba(255,255,255,0.08);
  --radius:  12px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}


.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: rgba(13,13,22,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: color 0.3s, background 0.3s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.outline:hover { border-color: var(--accent); }


.section { padding: 90px 0; }
.dark    { background: var(--bg2); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 50px;
}
.section-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  gap: 14px;
}

.hello { color: var(--muted); font-size: 1.1rem; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
}
.hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role {
  font-size: 1.2rem;
  color: var(--cyan);
  font-weight: 600;
}

.bio {
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}


.about-grid {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.about-avatar {
  width: 220px; height: 220px;
  border-radius: var(--radius);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(124,58,237,0.3);
}

.about-text { flex: 1; min-width: 260px; }
.about-text h3 { font-size: 1.3rem; color: var(--cyan); margin-bottom: 14px; }
.about-text p  { color: var(--muted); margin-bottom: 12px; }

.about-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.about-info i { color: var(--accent); margin-right: 6px; }


.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124,58,237,0.2);
}
.skill-card i { font-size: 2.2rem; }
.skill-card p  { font-weight: 600; font-size: 0.9rem; }

.bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.fill {
  height: 100%;
  background: var(--grad);
  border-radius: 99px;
  transition: width 1.2s ease;
}


.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1 1 300px;
  max-width: 360px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(124,58,237,0.2);
}

.proj-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.react-bg { background: linear-gradient(135deg,#1a1a2e,#16213e); color: #61dafb; }
.js-bg    { background: linear-gradient(135deg,#1a1a00,#2a2a00); color: #f7df1e; }
.css-bg   { background: linear-gradient(135deg,#0a0a2e,#0a1a3e); color: #6366f1; }

.proj-body { padding: 20px; }
.proj-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.proj-body p  { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }

.proj-links { display: flex; gap: 12px; }
.proj-links a {
  text-decoration: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
}
.proj-links a:hover { color: var(--cyan); }


.contact-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-info { flex: 1; min-width: 240px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 14px; }
.contact-info p  { color: var(--muted); margin-bottom: 10px; }

.contact-items { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.contact-items p { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.contact-items i { color: var(--accent); width: 18px; }

.contact-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; }

.success-msg {
  display: none;
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
.success-msg.show { display: block; }


footer {
  text-align: center;
  padding: 28px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}


@media (max-width: 768px) {
  .navbar { padding: 0 20px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(13,13,22,0.97);
    backdrop-filter: blur(16px);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 12px; }

  .hamburger { display: block; }

  .about-grid { flex-direction: column; align-items: center; text-align: center; }
  .about-info { justify-content: center; }
  .contact-grid { flex-direction: column; }
  .skill-card { width: 140px; }
}
