/* Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* Reset */
:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --primary: #6366f1;
  --primary-light: #818cf8;

  --text: #f8fafc;
  --muted: #cbd5e1;
  --border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #050816;
}

::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border-radius: 20px;
}

/* Loader */

#loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 20px;
  background: #050816;
  z-index: 9999;
  transition: 0.5s;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#loader h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Navigation */

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 90%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  z-index: 1000;
  transition: 0.3s;
}

.logo {
  color: white;

  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  min-height: 100vh;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 5rem;
  padding: 120px 5%;
}

.hero-intro {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero h2 {
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-description {
  max-width: 550px;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.primary {
  background: var(--primary);
  color: white;
}

.primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

.secondary {
  border: 1px solid var(--border);
  color: white;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}
.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-links a {
  color: var(--muted);
  font-size: 1.3rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: white;
  transform: translateY(-4px);
}
.hero-image {
  display: flex;
  justify-content: center;
}

.profile {
  width: 360px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.08);
}
section{
    max-width:1200px;
    margin:auto;
    padding:120px 5%;
}

h2{
    font-size:2.5rem;
    font-weight:800;
    margin-bottom:1.5rem;
}

p{
    color:#CBD5E1;
    line-height:1.8;
}
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    margin-top:40px;
}

.grid div{
    background:#1E293B;
    padding:25px;
    border-radius:18px;
    text-align:center;
    transition:.3s;
}

.grid div:hover{
    transform:translateY(-6px);
}
.project-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

    margin-top:50px;

}

.project{

    background:#1E293B;

    border-radius:20px;

    overflow:hidden;

    transition:.3s;

}

.project img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.project h3{

    padding:20px 20px 10px;

}

.project p{

    padding:0 20px 25px;

}