:root {
  --bg: #0f1724; /* dark */
  --card: #0b1220;
  --muted: #94a3b8;
  --accent: #6ea8fe; /* main accent color */
  --surface: #0b1220;
  --radius: 12px;
  --container: 1100px;
  --glass: rgba(255, 255, 255, 0.03);
  --trans: 240ms cubic-bezier(.2,.9,.2,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#071125 0%, #0b1320 100%);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  padding-bottom: 40px;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(5,8,15,0.6), rgba(5,8,15,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem;
}

/* Navigation */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  transition: var(--trans);
}

.nav a:hover {
  color: #ffffff;
  background: var(--glass);
}

/* Hamburger Icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 2000;
  position: relative;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero */
.hero {
  padding: 56px 0;
}

.hero-content {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text { flex: 1; min-width: 260px; }

.hero h1 { font-size: 2.1rem; margin: 0 0 12px; }
.lead { color: var(--muted); margin-bottom: 18px; }
.accent { color: var(--accent); }
.hero-art { width: 220px; min-width: 220px; }

.about-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
}


/* Simple Card */
.profile-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(2,6,23,0.6);
}

.avatar svg { width: 160px; height: 160px; display: block; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #071124;
  text-decoration: none;
  font-weight: 600;
}

.btn-light {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(110,168,254,0.18);
}

/* Sections */
.section { padding: 40px 0; }
.bg-alt { background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent); }
.section-title { font-size: 1.35rem; margin: 0 0 18px; }

/* Filters */
.filters { display: flex; gap: 10px; margin-bottom: 18px; }
.filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}
.filter-btn.active {
  background: rgba(110,168,254,0.12);
  color: var(--accent);
  border-color: transparent;
}

/* Grid */
.grid { display: grid; gap: 16px; }
.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
}

.card-media {
  height: 140px;
  background: linear-gradient(90deg, rgba(110,168,254,0.08), rgba(110,168,254,0.03));
}

.card-body { padding: 14px; }
.card-title { margin: 0 0 6px; }
.card-text { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.card-actions { display: flex; gap: 12px; }
.link { color: var(--accent); text-decoration: none; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
}

.skills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.skills li {
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

.contact-form label { display: block; margin-bottom: 12px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: inherit;
}

.form-actions { margin-top: 8px; }
.small { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { padding: 18px 0; color: var(--muted); text-align: center; margin-top: 40px; }

/* Responsive */
/* Hamburger button */
.menu-toggle {
  display: none; /* shown via media query */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 2000;
  position: relative;
  background: transparent; /* no white background */
  border: none;
  padding: 0;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Show hamburger on small screens */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 68px;
    right: 14px;
    background:#0f1724; /* remove white background */
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--trans);
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav ul {
    flex-direction: column;
    background: transparent; /* remove white */
    padding: 0;
  }

  .nav a {
    padding: 8px 0;
    background: none;
    color: var(--accent);
  }
}



/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 6px 20px rgba(2,6,23,0.3);
}

.testimonial-text {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 14px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-role {
  color: var(--muted);
  font-size: 0.85rem;
}
/* Make tables responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;  /* enables horizontal scroll on small screens */
  -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

table td {
  color: var(--muted);
}

/* Optional: make table scroll nicely on smaller screens */
@media (max-width: 900px) {
  table th, table td {
    padding: 8px;
    font-size: 0.9rem;
  }
}/* Card-style tables for mobile */
@media (max-width: 900px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block; /* stack everything */
  }

  .table-responsive thead tr {
    display: none; /* hide header */
  }

  .table-responsive tr {
    margin-bottom: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.03);
  }

  .table-responsive td {
    padding: 6px 12px;
    text-align: right;
    position: relative;
  }

  .table-responsive td::before {
    content: attr(data-label); /* use data-label for field name */
    position: absolute;
    left: 12px;
    width: 50%;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
  }
}
/* Contact form container */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

/* Make it responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr; /* stack text and form */
  }

  .contact-form {
    width: 100%; /* full width on small screens */
  }
}

/* Inputs and textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: inherit;
  font-size: 1rem;
  margin-bottom: 12px; /* space between fields */
  box-sizing: border-box;
}

/* Form labels */
.contact-form label {
  display: block;
  margin-bottom: 12px;
}

/* Button */
.contact-form .btn {
  width: 100%; /* full width on small screens */
  text-align: center;
}

/* Optional: adjust the small text below form */
.contact-form .small {
  text-align: center;
  display: block;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr; /* stack text and image */
    gap: 20px;
  }

  .about-photo {
    display: flex;
    justify-content: center; /* center image */
  }

  .about-img {
    width: 80%;
    max-width: 300px;
  }
}
