* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

:root {
  --bg: #08111f;
  --card: #111c2f;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --secondary: #22c55e;
  --border: rgba(255, 255, 255, 0.1);
}

body {
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(8, 17, 31, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1150px;
  margin: auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
}

.logo span,
.hero h1 span,
.section-title p {
  color: var(--primary);
}

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

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

.section {
  max-width: 1150px;
  margin: auto;
  padding: 100px 22px;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 45px;
}

.tagline {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  margin: 12px 0;
}

.hero h2 {
  color: var(--muted);
  margin-bottom: 20px;
}

.hero p,
.about-box p,
.project-card p,
.skill-card p,
.timeline-item p,
.cert-list p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.3s;
  border: 1px solid var(--primary);
}

.btn.primary {
  background: var(--primary);
  color: #03101c;
}

.btn.secondary {
  color: var(--primary);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.hero-card,
.about-box,
.skill-card,
.project-card,
.cert-list,
.timeline-item,
.contact-container {
  background: linear-gradient(145deg, rgba(17, 28, 47, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.hero-card {
  padding: 36px;
  text-align: center;
}

.profile-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 25px;
  overflow: hidden;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.hero-card a {
  display: block;
  color: var(--primary);
  margin-top: 10px;
  word-break: break-word;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title p {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.about-box {
  padding: 35px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stats div {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.stats h3 {
  color: var(--primary);
  font-size: 26px;
}

.skill-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.skill-card,
.project-card {
  padding: 28px;
  transition: 0.3s;
}

.skill-card:hover,
.project-card:hover,
.timeline-item:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
}

.skill-card h3,
.project-card h3,
.timeline-item h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.project-card span {
  color: var(--secondary);
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
}

.project-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 700;
}

.cert-list {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-list p {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 26px;
}

.contact-container {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 15px;
}

.contact-info a {
  color: var(--primary);
}

.contact-form {
  display: grid;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}

.linkedin-btn{
    display:inline-block;
    padding:10px 20px;
    background:#0A66C2;
    color:white;
    text-decoration:none;
    border-radius:5px;
    transition:0.3s;
}

.linkedin-btn:hover{
    background:#084d94;
    transform:translateY(-2px);
}

.github-btn{
    display:inline-block;
    padding:10px 20px;
    background:white;
    color:black;
    text-decoration:none;
    border-radius:5px;
    transition:0.3s;
}

.github-btn:hover{
    background:whitesmoke;
    transform:translateY(-2px);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

#formMsg {
  color: var(--secondary);
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.8s ease;
}

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

@media (max-width: 850px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    text-align: center;
    background: #08111f;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    max-height: 360px;
    padding: 20px 0;
  }

  .hero,
  .contact-container,
  .skill-grid,
  .project-grid,
  .cert-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 130px;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
