/* ========== Base ========== */
:root{
  --bg-1:#000;          /* navbar/footer */
  --bg-2:#1b1b1b;       /* page background */
  --bg-3:#151515;       /* cards/alt sections */
  --fg:#ffffff;
  --muted:#cfcfcf;
  --accent: rgb(216, 117, 173);
  --maxw:1200px;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg-2);
  line-height: 1.6;
}

img { display:block; max-width:100%; height:auto; }
a { color: inherit; text-decoration: none; }
.t-center { text-align:center; }

/* Containers & Sections */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 80px 0;
}
.section.alt {
  background: var(--bg-3);
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--accent);
  font-size: clamp(24px, 2.8vw, 36px);
  margin: 0 0 24px;
}

/* ========== Navbar ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg-1);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .4px;
}

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

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  opacity: .95;
  transition: color .2s ease, opacity .2s ease;
}

.nav-links a:hover { color: var(--accent); opacity: 1; }

/* Mobile toggle */
.nav-toggle{
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-bar{
  display: block;
  width: 24px; height: 2px;
  background: var(--fg);
  margin: 5px 0;
}

/* Responsive menu */
@media (max-width: 900px){
  .nav-toggle{ display: inline-block; }
  .nav-links{
    position: absolute;
    top: 64px; right: 16px;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-1);
    border: 1px solid #222;
    border-radius: var(--radius);
    padding: 12px;
    min-width: 220px;
    box-shadow: var(--shadow);
  }
  .nav-links.show{ display: flex; }
}

/* ========== Main ========== */
.hero {
  padding: 100px 0 80px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow{
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
}
.hero-title{
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 6vw, 64px);
  margin: 0 0 8px;
}
.hero-subtitle{
  font-size: clamp(16px, 2.2vw, 24px);
  color: var(--muted);
  margin: 0 0 24px;
}
.cta-wrap{
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Profile image frame */
.profile-frame{
  width: min(420px, 90%);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

/* ========== Buttons ========== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid var(--fg);
  font-weight: 700;
  letter-spacing: .3px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s;
}
.btn:hover{ transform: translateY(-1px); }

.btn.primary{
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}
.btn.primary:hover{
  background: #fff;
  color: var(--accent);
}

.btn.outline{
  background: transparent;
  color: var(--fg);
}
.btn.outline:hover{
  color: var(--accent);
  border-color: var(--accent);
}
.btn.small{ padding: 8px 12px; font-size: 14px; }

/* ========== About ========== */
.about-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.about-media img{
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.about-text p{
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 16px;
}

/* ========== Skills ========== */
.skills-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.skill{ width: 100%; }
.skill-top{
  display: flex; justify-content: space-between; margin-bottom: 6px;
  font-weight: 700;
}
.bar{
  width: 100%;
  height: 12px;
  background: #2c2c2c;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #000;
}
.bar > span{
  display: block; height: 100%;
  background: linear-gradient(90deg, #034485, var(--accent));
}

/* ========== Cards (Projects) ========== */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card{
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.card h3{ margin: 0; }
.card p{ color: var(--muted); margin: 0; }
.card-actions{ display: flex; gap: 10px; margin-top: 6px; }

/* ========== Contact ========== */
.contact-form{
  max-width: 720px; margin: 0 auto;
  display: grid; gap: 16px;
}
.contact-form .grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.contact-form label{ display: grid; gap: 6px; }
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: var(--fg);
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

/* ========== Footer ========== */
.site-footer{
  background: var(--bg-1);
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid #222;
}
.footer-grid{
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.socials{
  display: flex; list-style: none; gap: 14px; margin: 0; padding: 0;
}
.socials a{ opacity: .95; }
.socials a:hover{ color: var(--accent); opacity: 1; }

/* ========== Responsive ========== */
@media (max-width: 900px){
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .profile-frame { margin: 24px auto 0; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-list { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .contact-form .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .brand{ font-size: 16px; }
  .btn{ width: 100%; justify-content: center; }
}

.disabled-links a,
.disabled-links button {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.skills-category {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.skills-list {
  margin-bottom: 1.5rem;
}

.contact-btn-container {
  text-align: center;
  margin-top: 1rem;
}

.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.icon-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--fg);
  border-radius: 9999px;
  transition: transform .15s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  font-size: 18px;
}

.icon-btn + .icon-btn { margin-left: 8px; }

.icon-btn:hover{
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}