:root {
  --bg: #0b111a;
  --card: #111a27;
  --muted: #a5b1c2;
  --accent: #ff6b6b;
  --glass: rgba(255, 255, 255, 0.03);
  --maxw: 1100px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background: #0b111a;
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 28px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ffb26b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #071523;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

nav { display: flex; gap: 14px; align-items: center; }
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
nav a:hover { color: #fff; background: var(--glass); }

/* Hero */
.hero {
  display: block;
  text-align: center;
  margin-bottom: 60px;
}
.hero-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
h1 {
  margin: 0 0 10px 0;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}
.lead {
  color: var(--muted);
  margin: 0 0 18px;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.project-tech{
  cursor: default;
  display: flex;  
  flex-wrap: wrap; 
}
.chip {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: 100px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Sections */
section {
  margin-bottom: 60px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}
.section-title h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.projects-grid.react{
    grid-template-columns: 1fr;
   
    gap: 20px;             
    box-sizing: border-box; 
    margin: 0 auto;       
}
.projects-grid.react .project-tech{
  display: flex;
  gap: 5px;
}
.projects-grid p{
  cursor: default;
}
.project {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}


.project:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}
.project h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.project p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.project a {
  margin-top: 10px;
  align-self: flex-start;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.project a:hover {
  color: #fff;
  background: var(--accent);
}

/* About */
.about {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-text {
  color: var(--muted);
}

/* Footer */
footer {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.project-links {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  transition: 0.3s;
}
.btn-outline {
  background-color: transparent;
  color: #0078ff;
}

.btn-outline:hover {
  background-color: #0078ff;
  color: white;
}

/* Responsive */
@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 16px;
    margin: 20px auto;
  }
  nav { display: none; }
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
