/* ---------------------------------------------
   THEME VARIABLES
---------------------------------------------- */
:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.08);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2933;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text-main);
}

/* ---------------------------------------------
   LAYOUT UTILITIES
---------------------------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------
   HEADER / NAVIGATION
---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--text-main);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ---------------------------------------------
   HERO SECTION
---------------------------------------------- */

.hero {
  padding: 5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
}

/* Badge */
.hero-badge {
  display: flex;
  justify-content: flex-end;
}

.badge-card {
  background: linear-gradient(145deg, #1e293b, var(--card-bg));
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.badge-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.badge-card ul {
  list-style: none;
  color: var(--text-main);
  font-size: 0.95rem;
}

/* ---------------------------------------------
   SECTION STYLES
---------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #020617, #000);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ---------------------------------------------
   SKILLS GRID
---------------------------------------------- */

.skills-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.skill-card h3 {
  margin-bottom: 0.7rem;
}

.skill-card ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 0;
}

/* ---------------------------------------------
   BUTTONS
---------------------------------------------- */

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(56, 189, 248, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn.disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------------------------------------------
   CONTACT SECTION
---------------------------------------------- */

.contact-layout {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.contact-list a {
  color: var(--text-main);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent);
}

/* Contact form */

.contact-form {
  background: rgba(15, 23, 42, 0.9);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------------------------------------------
   PROJECTS PAGE
---------------------------------------------- */

.projects-page h1 {
  font-size: 2.1rem;
}

.project-search {
  margin: 1.5rem 0;
  width: 100%;
  max-width: 420px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  color: var(--text-main);
}

.project-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
  transition: 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.project-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.project-card p {
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.project-card .tech {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.project-card a {
  color: var(--accent);
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

.back-link {
  margin-top: 2.5rem;
}

.back-link a {
  color: var(--text-muted);
  text-decoration: none;
}

.back-link a:hover {
  color: var(--accent);
}

/* ---------------------------------------------
   FOOTER
---------------------------------------------- */

.site-footer {
  background: #020617;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--accent);
  text-decoration: none;
}

/* ---------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.7rem 0;
  }

  .nav {
    margin-top: 0.4rem;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

/* ABOUT IMAGE + TEXT LAYOUT */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.about-image img {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5);
}

.about-text p {
  margin-bottom: 1rem;
}

@media (max-width: 780px) {
  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    margin: 0 auto;
  }
}

