/* ===============================
   Base Variables
=================================*/
:root {
  --bg1: #cda16e;
  --bg2: #e9d4b7;
  --ink: #0c1440;
  --text: #2a2a2a;
  --muted: #5f616b;
  --card: rgba(255, 255, 255, 0.15);
  --accent: #0c63ff;

  --brand-gold1: #c59b5f;
  --brand-gold2: #e6c27a;
  --accent: #00d4ff;

  /* Brand golds */
  --brand-gold1: #c59b5f;
  --brand-gold2: #e6c890;
  --brand-gold3: #f2e0c9;

  --radius: 16px;
  --shadow: 0 10px 25px rgba(0, 0, 0, .15);
  --space: 1.2rem;
  --space-lg: 2.5rem;
  --max-width: 1350px;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #e6f1ff;
  font-family: "Inter", sans-serif;
}


/* ===============================
   Reset & Global
=================================*/
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 18px/1.75 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
  background: linear-gradient(135deg, var(--bg1), var(--brand-gold2), var(--bg2));
  background-attachment: fixed;
  color: var(--text);
}
img { max-width: 100%; display: block; border-radius: 12px; }
a { color: var(--accent); text-decoration: none; transition: all .25s ease; }
a:hover { color: var(--brand-gold1); }


/* Hide skip link by default */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-gold2);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease;
}

/* Show only when focused (keyboard users) */
.skip-link:focus {
  top: 10px;
}


/* ===============================
   Header & Navigation (Card Style Links)
=================================*/
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); /* dark bar to match footer */
  padding: 1rem 2rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}

.brand {
  font-weight: 900; 
  font-size: 1.8rem; /* slightly larger */
  color: var(--brand-gold2);
}

.links {
  display: flex; 
  gap: 1rem;
}

nav a {
  font-weight: 700;
  font-size: 1.1rem; /* bigger text */
  color: var(--brand-gold3);
  background: rgba(255,255,255,0.05); /* subtle background */
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

nav a:hover {
  background: var(--brand-gold1);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #00d4ff; /* sharp cyan */
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.4); /* subtle glow only */
}

/* Header layout */
header {
  display: flex;
  justify-content: space-between;  /* brand left, nav right */
  align-items: center;
  padding: 0.75rem 2rem;
  background: #0d1b2a;
  color: white;
}

/* Brand */
.brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f5d58e;
  letter-spacing: 0.5px;
}

/* Nav links */
.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}



/* ===============================
   Hero
=================================*/
.hero-img {
  width: 100%; height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(90deg, #00d4ff, #7d5fff); /* cyan → purple */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(12,99,255,0.25);
  letter-spacing: 1px;
}



.hero .subtitle {
  text-align: center; font-size: 1.3rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* ===============================
   Sections
=================================*/
main { max-width: var(--max-width); margin: 0 auto; padding: var(--space-lg) var(--space); }
.section {
  margin: 4rem auto;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
h1, h2, h3 {
  margin-bottom: 1rem;
  line-height: 1.3;
}
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

/* ===============================
   Project Cards
=================================*/
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
  color: #e6f1ff;
}


.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,123,255,0.25), 0 10px 25px rgba(197,155,95,0.25);
}
.project .thumb { aspect-ratio: 16/9; border-radius: 12px; margin-bottom: 1rem; }



.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch; /* ensures equal height */
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps footer links pinned */
  min-height: 400px; /* set consistent baseline */
}

.card a {
  color: #a1b604; /* sharper blue */
  font-weight: 400;
  text-shadow: none; /* remove blur effect */
}

.card a:hover {
  color: var(--brand-gold1); /* matches your gold theme */
  text-decoration: underline;
}



/* ===============================
   Career Timeline
=================================*/
.timeline {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

/* Career Cards (match About Me style) */
.career-card {
  background: rgba(255, 255, 255, 0.05); /* semi-transparent */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px); /* glassmorphism blur */
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25); /* subtle glow */
  color: #e6f1ff;
  font-size: 1.05rem;
  line-height: 1.7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(125, 95, 255, 0.6);
}

/* Career section text match */
.career-card p,
.career-card li {
  font-size: 1.1rem;   /* matches About Me font size */
  line-height: 1.8;     /* extra readability */
}

.career-card h3 {
  font-size: 1.9rem;    /* job titles */
  font-weight: 700;
}

.career-card h4 {
  font-size: 1.9rem;    /* years + location line */
  font-weight: 600;
  color: var(--muted);  /* lighter color for secondary info */
}

.hero .subtitle {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600; /* stronger weight for clarity */
  color: #b3e5fc;   /* softer cyan for better readability */
  margin-top: 0.8rem;
  text-shadow: none; /* remove extra blur glow */
}


/* ===============================
   Skills
=================================*/
.skill-badges {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.skill-card {
  background: rgba(255, 255, 255, 0.007);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.skill-badges span:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, var(--brand-gold1), var(--accent));
  color: white;
}




/* ===============================
   Contact
=================================*/
.contact-form {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 3rem auto;
  max-width: 1200px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  font-size: 1.05rem;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem; margin-bottom: 1.2rem;
  border-radius: 12px; border: 1px solid #ddd;
  font-size: 1rem;
}
.contact-form button {
  background: linear-gradient(90deg, var(--brand-gold1), var(--brand-gold2));
  color: #fff; font-weight: bold;
  border: none; border-radius: 999px;
  padding: 1rem 2.2rem;
  cursor: pointer; transition: all 0.3s ease;
}
.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(197,155,95,0.4);
}

/* Force contact links to use your theme colors */
.contact-info a,
.contact-info a:visited {
  color: var(--brand-gold2) !important;   /* gold as default */
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--accent) !important;  /* your blue accent on hover */
  text-decoration: underline;
}

/* ===============================
   Footer
=================================*/
.footer {
  background: var(--ink);
  color: var(--brand-gold3);
  padding: 3rem 2rem;
}
.footer .grid-footer {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  color: var(--brand-gold2);
}
.footer a {
  color: var(--brand-gold3);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.4rem;
}
.footer a:hover {
  color: var(--brand-gold1);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(197, 155, 95, 0.3);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--brand-gold2);
}


.hero {
  position: relative;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #e6f1ff;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0,212,255,0.15), transparent 60%),
              radial-gradient(circle at bottom right, rgba(125,95,255,0.15), transparent 60%);
  pointer-events: none;
}

.hero .name {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0,212,255,0.6);
  margin-bottom: 10px;
}

.hero .tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  color: #7d5fff;
  margin-bottom: 30px;
}

.hero .content {
  max-width: 850px;
  margin: 0 auto 40px;
  text-align: left;
}

.hero .lede {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #cbd5e1;
}

/* Glassmorphic skill cards */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  font-size: 0.95rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 25px rgba(125, 95, 255, 0.6);
}


input:focus, textarea:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 8px rgba(0,212,255,0.4);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  color: #00d4ff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}
input, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #e6f1ff;
  width: 100%;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 8px rgba(0,212,255,0.4);
}


/* Make all cards consistent */
.card, .career-card, .education-card, .contact-form {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem; /* centers and spaces them evenly */
  padding: 2rem;
}

button {
  background: linear-gradient(135deg, var(--brand-gold1), var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 999px; /* pill style */
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, var(--accent), var(--brand-gold2));
}

/* ===============================
   Reusable Button Style
=================================*/
.btn {
  background: linear-gradient(135deg, var(--brand-gold1), var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 999px; /* pill shape */
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: inline-block;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--accent), var(--brand-gold2));
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}


#poem-form input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1rem;
  color: #e6f1ff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#poem-form input:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 15px rgba(0,212,255,0.6);
}

#poem-form button {
  background: linear-gradient(90deg, #c59b5f, #0c63ff);
  background-size: 200% auto;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  animation: gradientShift 4s linear infinite;
}

#poem-form button:hover {
  transform: translateY(-3px) scale(1.05);
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

#poem-output {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #f2e0c9;
  font-family: 'Space Grotesk', sans-serif;
  border-left: 3px solid #00d4ff;
  padding-left: 1rem;
  white-space: pre-wrap;
  animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Style the button group under inputs */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem; /* pushes buttons below input */
}

.button-group button {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(135deg, #c08457, #3b82f6);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-group button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin: 2rem auto;   /* centers it */
  max-width: 600px;    /* keep it neat */
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}


.contact-card li {
  margin: 0.8rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-card i {
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-card a {
  color: var(--brand-gold2);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.contact-card a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent);}

  /* General mobile reset */
* {
  box-sizing: border-box;
}

/* Make images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navbar fixes */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav a {
  flex: 1 1 auto;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Hero section */
.header, main, section {
  padding: 1rem;
}

/* Responsive text */
h1, h2, h3, p {
  word-wrap: break-word;
  line-height: 1.4;
}

/* Media query for very small screens */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;
  }

  .brand {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #0d1b2a;
    padding: 1rem;
    border-radius: 10px;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    background: #0d1b2a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }
}


@media (max-width: 768px) {
  .nav {
    display: flex !important;   /* force menu visible */
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 1rem;
}

/* Hide toggle button on desktop */
.menu-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav {
    display: none;              /* hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #0d1b2a;
    padding: 1rem;
    border-radius: 10px;
  }

  .nav.active {
    display: flex;              /* show when toggled */
  }

  .menu-toggle {
    display: block;
    background: #0d1b2a;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0.5rem auto;
  }
}

/* ===== Base Nav ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #0d1b2a;
  color: white;
}

.brand {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Toggle button ===== */
.menu-toggle {
  display: none;
  background: #0d1b2a;
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;  /* hidden by default */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: #0d1b2a;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  .nav.active {
    display: flex;  /* visible when toggled */
  }

  .nav a {
    width: 100%; /* make links fill width */
    padding: 0.75rem;
  }
}

/* Mobile nav patch */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: left;
  }

  .menu-toggle {
    margin-bottom: 0.5rem;
  }
}

/* ===============================
   Final Nav Fix (Overrides)
=================================*/

/* Desktop nav stays inline */
.nav {
  display: flex;
  gap: 1rem;
}

/* Hide menu toggle on desktop */
.menu-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: #0d1b2a;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0.5rem auto;
  }

  .nav {
    display: none;               /* hidden by default */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: #0d1b2a;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    gap: 0.75rem;
  }

  .nav.active {
    display: flex;               /* visible when toggled */
  }

  .nav a {
    width: 100%;                 /* full-width links */
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav.active {
    max-height: 500px; /* adjust depending on your links */
  }
}

@media (max-width: 600px) {
  .section {
    padding: 1.5rem;
    margin: 2rem auto;
  }
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
}
.hero .subtitle {
  font-size: clamp(1rem, 4vw, 1.4rem);
}

/* Education cards spacing fix */
.education-card {
  min-height: auto !important;   /* no forced height */
  padding: 1.5rem !important;    /* tighter spacing */
  margin-bottom: 1.5rem !important;
}

.education-card p {
  margin-bottom: 0.5rem;         /* tighten paragraph spacing */
  line-height: 1.5;              /* keep readable but compact */
}

/* Remove unnecessary bottom gap in last card */
.education-card:last-child {
  margin-bottom: 0 !important;
}


/* Hide menu links by default on mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #0d1b2a;
    padding: 1rem;
    border-radius: 10px;
  }

  .nav.active {
    display: flex; /* show only when toggled */
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    background: #0d1b2a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }
}

/* Desktop: show nav normally */
@media (min-width: 769px) {
  .nav {
    display: flex;
    gap: 1rem;
  }
  .menu-toggle {
    display: none;
  }
}


/* ===== Navbar Base ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #0d1b2a;
  color: white;
}

.brand {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Toggle Button ===== */
.menu-toggle {
  display: none; /* hidden on desktop */
  background: #0d1b2a;
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* ===== Mobile Rules ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* visible on mobile */
    margin: 0.5rem auto;
  }

  .nav {
    display: none;  /* hidden by default */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: #0d1b2a;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    gap: 0.75rem;

    /* Smooth animation */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav.active {
    display: flex;
    max-height: 500px; /* expands smoothly */
  }

  .nav a {
    width: 100%; 
    text-align: left;
    padding: 0.8rem;
  }
}



/* ===============================
   Education Section (final fix)
=================================*/
.education-card {
  display: flex;
  align-items: center;        /* vertical center */
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.education-card:last-child {
  margin-bottom: 0;
}

.edu-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;             /* logo won’t shrink */
}

.education-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;    /* ensures text is centered vertically */
}

.education-card h3 {
  margin: 0 0 0.3rem 0;
}

.education-card p {
  margin: 0.3rem 0;
  line-height: 1.5;
  text-align: left;
}

.education-card a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
}

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

/* Responsive layout for mobile */
@media (max-width: 600px) {
  .education-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .edu-logo {
    margin-bottom: 1rem;
  }

  .education-card div {
    justify-content: flex-start; /* reset for stacked view */
  }

  .education-card p {
    text-align: center;
  }
}

.education-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}

.education-card div {
  flex: 1;                /* let text expand */
  max-width: 800px;       /* keep it readable */
}

.edu-logo {
  width: 120px;
  height: auto;
  margin-top: 1.5rem;
  object-fit: contain;
}

.header {
  display: flex;
  flex-direction: column; /* stack brand on top of menu */
  align-items: center;    /* center horizontally */
  padding: 0.5rem;
  gap: 0.3rem; /* small space between brand and menu */
}

.brand {
  font-weight: bold;
  color: #f4d58d;
  font-size: 1.2rem;
}

