:root {
  --nav-height: 70px;
  --accent: #ff9800;
  --bg-dark: #111827;
  --muted: #666;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
}

body {
  color: #222;
  background: #fafafa;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #0f1724;
  color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(2,6,23,0.3);
}

nav .nav-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.brand { font-weight: 700; }

.nav-links {
  display: flex;
  gap: 14px;
}

.nav-links a {
  color: #e6eef6;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }

/* SECTION BASE */
section {
  padding: calc(var(--nav-height) + 40px) 18px 80px;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* HOME */
#home {
  background: linear-gradient(135deg,#1e3a8a 0%, #2563eb 60%);
  color: #fff;
}
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  margin-bottom: 10px;
}
.home-text { max-width: 780px; }
#home h1 { font-size: clamp(28px, 4vw, 44px); }
#home p { color: #e6f0ff; }
#home button {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
#home button:hover { background: #e68900; }

/* About Section */
#about {
  background: linear-gradient(135deg,#1e3a8a 0%, #2563eb 60%);
  padding: 80px 20px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.about-img img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid #3b82f6;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.about-text {
  flex: 1;
  text-align: left;
  max-width: 600px;
}

.about-text h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #1e40af;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
}

.about-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.about-cards .card {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-cards h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2563eb;
}


/* PROJECTS */ 
#projects
/* Projects Section Layout */
.projects {
  padding: 60px 20px;
  background: linear-gradient(135deg,#1e3a8a 0%, #2563eb 60%);
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  color: #222;
  margin-bottom: 10px;
}

.project-card p {
  color: #555;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn.live {
  background: #007bff;
}

.btn.code {
  background: #28a745;
}

.btn:hover {
  opacity: 0.9;
}

/* Skills Section */
#skills {
  background: linear-gradient(135deg,#1e3a8a 0%, #2563eb 60%);
}
#skills h2 {
  margin-bottom: 20px;
}
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.skill-category {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.skill-category:hover {
  transform: translateY(-5px);
}
.skill-category h3 {
  margin-bottom: 10px;
  color: #e9c961;
}
.skill-category ul {
  list-style: none;
}
.skill-category ul li {
  margin: 8px 0;
  font-size: 16px;
}
.skill-category ul li i {
  margin-right: 8px;
  color: #0097a7;
}



/* CONTACT */
#contact { background: #0f1724; color: #fff; }
.contact-links {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:10px;
}
.contact-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#fff;
  text-decoration:none;
  background: rgba(255,255,255,0.06);
  padding:10px 14px;
  border-radius:8px;
  transition: 0.3s;
}
.contact-btn:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.09);
  color: var(--accent);
}

footer {
  text-align:center;
  padding:28px 12px;
  color:#9aa7b2;
  background:#fafafa;
}

/* RESPONSIVE */
@media (max-width:720px){
  .projects-grid { flex-direction: column; align-items:center; }
  .project-card { width: 90%; }
}



