/* ===== Root Variables ===== */
:root {
  --bg: #f8fafc;              
  --surface: #ffffff;        
  --card: #ffffff;
  --text: #1e293b;            
  --muted: #64748b;           
  --primary: #0ea5e9;        
  --primary-dark: #0284c7;     
  --radius: 14px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --transition: 250ms ease;
}
/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== Containers ===== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: left;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  height: 40px;
  margin-right: 0.5rem;
}

.site-nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

/* ===== Mobile Nav ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(5px);
}

/* ===== Hero ===== */
.hero-grid {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-text h1 span {
  color: var(--primary);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quick-info {
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.quick-info li {
  margin-bottom: 0.5rem;
}

.quick-info a {
  color: var(--primary);
  text-decoration: none;
}

.hero-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.avatar {
  max-width: 260px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* ===== Chips ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.chip {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ===== Projects ===== */
.project {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.project-media img {
  width: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-info {
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.5rem;
}

.tags li {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
}

/* ===== Resume ===== */
.resume-row {
  text-align: center;
}

.resume-row p {
  margin-bottom: 1rem;
  text-align: left;
}
.btn-left {
  text-align: left;
}


/* ===== Contact ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-family: inherit;
}

.error {
  font-size: 0.8rem;
  color: red;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: white;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
footer {
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .project {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .project-media img {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--surface);
    flex-direction: column;
    width: 200px;
    display: none;
    box-shadow: var(--shadow);
    padding: 1rem;
  }
  .nav-links li {
    margin: 0.5rem 0;
  }
  .nav-links.active {
    display: flex;
  }
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0d495c; /* blue */
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #2563EB; /* slightly lighter blue on hover */
  transform: translateY(-2px);
}
