/* ==========================================================================
   Software Developer Portfolio - Single Clean Stylesheet
   ========================================================================== */

:root {
  --bg: #0b0f19;
  --card: #131b2e;
  --border: #2a364f;
  --accent: #38bdf8;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --font-main: system-ui, -apple-system, sans-serif;
  --font-code: ui-monospace, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout & Typography */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3rem 0; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; color: var(--text); margin-bottom: 2rem; }
.highlight { color: var(--accent); }
.gradient-text { background: linear-gradient(135deg, var(--accent), #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Sticky Navbar */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(11, 15, 25, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 4rem; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--text); text-decoration: none; font-family: var(--font-code); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero { padding-top: 5.5rem; padding-bottom: 2.5rem; }
.hero-grid { max-width: 820px; margin: 0 auto; }
.hero-tag { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin-right: 4px; }
.hero-title { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin: 0.5rem 0; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.typing-container { font-family: var(--font-code); color: var(--accent); font-weight: 600; }
.hero-description { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.65; }
.hero-cta { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill { padding: 0.25rem 0.65rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; font-size: 0.8rem; font-family: var(--font-code); color: var(--text-muted); }

/* Grid & Universal Cards */
.skills-grid, .projects-grid, .education-grid, .awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.skill-card, .edu-card, .award-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.skill-card:hover, .project-card:hover, .edu-card:hover, .award-card:hover, .skill-category-group:hover, .contact-card-simple:hover { border-color: var(--accent); }

/* Grouped Skills Pills Layout */
.skills-pill-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 850px;
  margin: 0 auto;
}
.skill-category-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.skill-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.skill-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-pill {
  padding: 0.35rem 0.85rem;
  background: #1e293b;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-code);
}

/* Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.project-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.project-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-link {
  color: var(--text);
  text-decoration: none;
}
.project-link:hover {
  color: var(--accent);
}

/* Badges & Buttons */
.badge { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.8rem; font-weight: 600; border-radius: 99px; background: rgba(56, 189, 248, 0.1); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.25); }
.badge-gold { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.25rem; font-size: 0.9rem; font-weight: 600; border-radius: 6px; text-decoration: none; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #000; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Timeline (Work Experience) */
.timeline { position: relative; max-width: 850px; margin: 0 auto; padding-left: 1.5rem; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot { position: absolute; left: -1.5rem; top: 0.25rem; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline-content { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.timeline-content:hover { border-color: var(--accent); }
.timeline-header-flex { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.timeline-role { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.timeline-company { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-code); background: #1e293b; padding: 0.15rem 0.5rem; border-radius: 4px; }
.timeline-desc ul { padding-left: 1.2rem; margin-top: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* Projects, Education & Awards Details */
.project-title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.project-description { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; flex-grow: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.tag { font-size: 0.75rem; font-family: var(--font-code); padding: 0.15rem 0.45rem; background: #1e293b; border: 1px solid var(--border); color: var(--accent); border-radius: 4px; }
.edu-school { font-size: 1.2rem; font-weight: 700; }
.edu-degree { color: var(--accent); font-weight: 600; margin-bottom: 0.4rem; }
.edu-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-code); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border); }
.edu-gpa { color: #22c55e; font-weight: 700; }
.edu-details { font-size: 0.88rem; color: var(--text-muted); }
.award-card { display: flex; gap: 0.85rem; align-items: flex-start; }
.award-icon { font-size: 1.8rem; }
.award-org { color: #f59e0b; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.award-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Simplified Contact Section */
.contact-card-simple {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item { display: flex; gap: 1rem; align-items: center; }
.contact-icon { width: 42px; height: 42px; background: #1e293b; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.contact-details h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.contact-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.contact-link:hover { text-decoration: underline; }

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .nav-links { display: none; position: absolute; top: 4rem; left: 0; width: 100%; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}