/*─────────────────────────────────────
  1. COLOR & THEME VARIABLES
─────────────────────────────────────*/
:root {
  --bg: #FAFAFA;
  --text: #333333;
  --primary: #0A1E3F;
  --accent: #FF6F61;
  --accent2: #00BCD4;
  --muted: #A0A0A0;
  --white: #FFFFFF;
  --font: 'Inter', sans-serif;
}

.dark-mode {
  --bg: #121212;
  --text: #EEEEEE;
  --primary: #E0E0E0;
  --accent: #BB86FC;
  --accent2: #4FC3F7;
  --muted: #555555;
  --white: #222222;
}

/*─────────────────────────────────────
  2. RESET & BOX-SIZING
─────────────────────────────────────*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*─────────────────────────────────────
  3. GLOBAL LAYOUT
─────────────────────────────────────*/
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  transition: background .3s, color .3s;
}
main.container {
  flex: 1;
  padding-top: 4rem; /* space below sticky header */
}
.container {
  max-width: 1000px;
  margin: auto;
  padding: 0 2rem;
}
footer {
  margin-top: auto;
  background: var(--white);
  border-top: 1px solid var(--muted);
  text-align: center;
  padding: 2rem 0;
  color: var(--muted);
  font-size: .9rem;
}

/*─────────────────────────────────────
  4. HEADER & NAVIGATION
─────────────────────────────────────*/
header {
  background: var(--white);
  border-bottom: 1px solid var(--muted);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
nav a, nav button {
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  margin-left: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding-bottom: 1px;
  transition: color .2s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
nav a:hover::after {
  transform: scaleX(1);
}
nav a:hover,
nav button:hover {
  color: var(--accent);
}
.toggle-btn {
  font-size: 1.2rem;
}
.icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: var(--icon-filter, none);
}

/*─────────────────────────────────────
  5. HERO (TWO-COLUMN) SECTION
─────────────────────────────────────*/
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  margin: 3rem 0 4rem; /* top halved */
}
.hero-image {
  flex: 0 0 300px;
  background: var(--white);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.hero-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: .25rem;
}
.hero-text .subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  color: var(--accent2);
  margin-bottom: 1rem;
}
.hero-text .intro {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text);
}

/*─────────────────────────────────────
  6. SECTION & PLACEHOLDER STYLES
─────────────────────────────────────*/
.section {
  padding: 4rem 0;
}
/* Left-border only, no bottom bar */
.section h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-left: .5rem;
  border-left: 4px solid var(--accent);
}
/* EXPERIENCE CARD */
.experience-card {
  background: #E8E8E8;
  color: var(--text);
  border-radius: 6px;
  padding: 2rem;
  margin-top: 1rem;
}

/*─────────────────────────────────────
  7. WORKED PROGRAMS GRID + HOVER BAR
─────────────────────────────────────*/
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
/* reveal-top vertical accent on hover */
.card::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 4px; height: 0;
  background: var(--accent);
  transition: height .3s ease;
}
.card:hover::before {
  height: 100%;
}
/* image fills card, uniform size */
.project-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
/* title block below image */
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  padding: .75rem;
  text-align: center;
  background: var(--white);
}

/*─────────────────────────────────────
  8. CONTACT FORM CARD
─────────────────────────────────────*/
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.contact-form .form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(0,188,212,0.2);
  outline: none;
}
.contact-form button {
  width: 100%;
  padding: .9rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent2);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.contact-form button:hover {
  background: var(--accent);
}

/*─────────────────────────────────────
  9. RESUME PREVIEW CARD
─────────────────────────────────────*/
.resume-card {
  max-width: 840px;
  margin: 1rem auto;
  background: var(--white);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
}
.resume-preview {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.download-btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: var(--accent2);
  color: var(--white);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}
.download-btn:hover {
  background: var(--accent);
}

/*─────────────────────────────────────
  10. DARK-MODE FIX FOR RESUME PREVIEW
─────────────────────────────────────*/
.dark-mode .resume-card {
  background: #8a8585 !important;
  border: 1px solid var(--muted) !important;
  
}
