/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

:root {
  --main-purple: #6c2eb7;
  --deep-purple: #1a0841;
  --teal: #00dacb;
  --dark-bg: #100629;
  --light: #fff;
  --shadow: 0 4px 24px 0 rgba(60,0,100,0.17);
}

/* DARK MODE BASE */
html, body {
  background: var(--dark-bg);
  color: var(--light);
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* NAVBAR */
.main-nav {
  width: 100%;
  background: linear-gradient(90deg, #1a0841 0%, #6c2eb7 60%, #00dacb 100%);
  box-shadow: 0 2px 20px 0 rgba(60,0,100,0.10);
  position: sticky;
  top: 0; left: 0; z-index: 100;
  font-family: 'Montserrat', Arial, sans-serif;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; min-height: 60px;
}
.nav-logo {
  font-size: 2rem;
  font-weight: 900;
  color: #00dacb;
  text-decoration: none;
  letter-spacing: -1px;
  border-radius: 50%;
  background: #1a0841;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 20px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.09);
  transition: background .18s;
}
.nav-logo:hover, .nav-logo:focus {
  background: #6c2eb7;
  color: #fff;
}
.nav-links {
  display: flex; list-style: none; gap: 26px; margin: 0; padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 18px;
  border-radius: 18px;
  transition: background .16s, color .18s, box-shadow .22s;
}
.nav-links a:hover, .nav-links a:focus {
  background: #00dacb;
  color: #1a0841;
  box-shadow: 0 4px 16px 0 rgba(108,46,183,0.20);
  outline: none;
}
.nav-spacer {
  flex: 1;
}
.darklight-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 0 0 10px;
  padding: 5px 10px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.darklight-toggle:hover, .darklight-toggle:focus {
  background: #00dacb33;
  outline: none;
}
.darklight-toggle .sun { display: inline; }
.darklight-toggle .moon { display: none; }
html.dark .darklight-toggle .sun { display: none; }
html.dark .darklight-toggle .moon { display: inline; }
html.light .darklight-toggle .sun { display: inline; }
html.light .darklight-toggle .moon { display: none; }
/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  width: 36px; height: 36px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  z-index: 200;
}
.nav-burger span {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: #fff;
  transition: background .18s;
}
/* Drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0;
  width: 70vw; max-width: 300px; height: 100vh;
  background: linear-gradient(150deg, #1a0841 0%, #6c2eb7 100%);
  box-shadow: -5px 0 40px 0 rgba(30,10,90,0.33);
  padding: 80px 32px 24px 32px;
  z-index: 999;
  transition: transform .32s cubic-bezier(.74,.06,.4,1), opacity .19s;
  transform: translateX(100%);
  opacity: 0;
}
.nav-drawer.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.nav-drawer a {
  color: #00dacb;
  font-weight: 700;
  font-size: 1.45rem;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .18s;
  border-radius: 10px;
  padding: 10px 8px;
}
.nav-drawer a:hover, .nav-drawer a:focus {
  color: #fff;
  background: #44217a;
  outline: none;
}
.nav-drawer .darklight-toggle {
  margin-top: 32px;
  align-self: flex-start;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--main-purple) 0%, var(--teal) 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-content {
  max-width: 600px;
  margin: 0 auto;
}
.logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--deep-purple);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 16px auto;
  box-shadow: var(--shadow);
}
h1 {
  font-size: 2.7rem;
  margin: 0 0 12px 0;
  font-weight: 700;
  letter-spacing: -1px;
}
.tagline {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--teal);
  text-shadow: 0 1px 8px var(--deep-purple);
}
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.button {
  background: var(--teal);
  color: var(--deep-purple);
  font-weight: bold;
  padding: 13px 34px;
  border-radius: 25px;
  border: none;
  text-decoration: none;
  font-size: 1.1rem;
  margin: 10px 0;
  box-shadow: var(--shadow);
  transition: background .2s, color .2s, transform .1s;
}
.button:hover, .button:focus {
  background: var(--main-purple);
  color: var(--light);
  transform: translateY(-2px) scale(1.03);
}
.button-alt {
  background: var(--main-purple);
  color: var(--light);
}
.button-alt:hover, .button-alt:focus {
  background: var(--teal);
  color: var(--deep-purple);
}
.button-hire {
  background: #ffb84d;
  color: var(--deep-purple);
}
.button-hire:hover, .button-hire:focus {
  background: #ff9900;
  color: var(--light);
}

/* MAIN */
main {
  padding: 44px 16px 32px 16px;
  max-width: 920px;
  margin: 0 auto;
}
.quick-about {
  background: linear-gradient(135deg, #23125d 0%, #44217a 100%);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  padding: 30px 25px;
}
.quick-about h2, .quick-about h1 {
  color: var(--light);
  margin-top: 0;
}
.quick-about .tagline {
  color: var(--teal);
}
.featured-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.featured-card {
  background: linear-gradient(135deg, var(--deep-purple) 30%, var(--main-purple) 100%);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 28px 24px 26px 24px;
  color: var(--light);
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 260px;
  text-decoration: none;
  transition: transform .15s, box-shadow .18s, background .22s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.featured-card:hover, .featured-card:focus {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 10px 40px 0 rgba(60,0,100,0.35);
  background: linear-gradient(120deg, var(--teal) 5%, var(--main-purple) 100%);
}
.featured-card h3 {
  color: var(--teal);
  margin-top: 0;
}

/* Utility class for consistent card spacing */
.card-spacing {
  margin-bottom: 24px;
}

/* --- ABOUT PAGE IMPROVEMENTS --- */
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 52px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}


.about-card {
  background: linear-gradient(120deg, #35166e 15%, #6c2eb7 100%);
  color: var(--light);
  border-radius: 22px;
  margin: 0 auto;
  padding: 34px 34px 28px 34px;
  box-shadow: var(--shadow);
  max-width: 720px;
  min-width: 0;
  width: 100%;
  font-size: 1.11rem;
  display: block;
  overflow: visible;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  word-break: break-word;
  position: static;
  z-index: 2;
}
.about-card h3 {
  color: var(--teal);
  font-size: 1.23rem;
  margin-top: 0;
  margin-bottom: 12px;
}
.about-blocks ul {
  margin: 14px 0 0 24px;
  padding: 0;
  color: #e5e5ee;
}
.about-blocks a {
  color: var(--teal);
  text-decoration: underline;
  transition: color .18s;
}
.about-blocks a:hover {
  color: #fff;
  background: #2b1767;
  border-radius: 5px;
  text-decoration: none;
}

/* Spacing helper for cards */
.card-spacing {
  margin-bottom: 24px;
}




/* PROJECTS GRID */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 64px;
}
.project-card {
  background: linear-gradient(135deg, var(--deep-purple) 25%, var(--main-purple) 100%);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px 26px 28px 26px;
  color: var(--light);
  min-width: 220px;
  min-height: 170px;
  max-width: 320px;
  flex: 1 1 260px;
  text-decoration: none;
  transition: transform .14s, box-shadow .18s, background .21s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.project-card:hover, .project-card:focus {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 10px 36px 0 rgba(60,0,100,0.32);
  background: linear-gradient(120deg, var(--teal) 8%, var(--main-purple) 100%);
  color: #fff;
}
.project-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 1.3rem;
}
.project-card p {
  margin: 0;
  font-size: 1.07rem;
}

/* PROJECT DETAIL CARD */
.project-detail-card {
  margin: 42px auto 64px auto;
  max-width: 700px;
  background: linear-gradient(120deg, #2a1455 65%, #6c2eb7 100%);
  color: var(--light);
  border-radius: 24px;
  padding: 36px 32px 30px 32px;
  box-shadow: var(--shadow);
  font-size: 1.13rem;
}
.project-detail-card h2,
.project-detail-card h3,
.project-detail-card h4,
.project-detail-card .key-lesson,
.project-detail-card .section-title {
  color: #fff !important;
  text-shadow: 0 1px 3px #2a145588;
}
.project-detail-card ul { margin: 14px 0 0 22px; padding: 0; color: #e5e5ee; }
.project-detail-card a { color: var(--teal); text-decoration: underline; }
.project-detail-card a:hover { color: #fff; background: #2b1767; border-radius: 5px; text-decoration: none; }

.project-detail-card h2 {
  color: var(--teal);
  margin-top: 22px;
}
.project-detail-card ul {
  margin: 14px 0 0 22px;
  padding: 0;
  color: var(--light);
}

/* FOOTER */
footer {
  padding: 32px 0 20px 0;
  text-align: center;
  font-size: 1rem;
  background: none;
  color: #b9b0e7;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .nav-container { padding: 0 8px; }
  .nav-logo { margin-right: 6px; }
  .nav-links { gap: 14px; }
}
@media (max-width: 650px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .featured-cards {
    flex-direction: column;
    gap: 16px;
  }
  .featured-card {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .project-card {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

}

/* LIGHT MODE */
html.light {
  --main-purple: #ad91e8;
  --deep-purple: #eeeaff;
  --teal: #009e93;
  --dark-bg: #f7f6fa;
  --light: #1a0841;
  --shadow: 0 4px 24px 0 rgba(100,120,200,0.10);
}
html.light body,
html.light main,
html.light .quick-about,
html.light .card,
html.light .hero {
  background: var(--dark-bg);
  color: var(--light);
}
html.light .main-nav {
  background: linear-gradient(90deg, #eeeaff 0%, #ad91e8 60%, #009e93 100%);
}
html.light .card,
html.light .featured-card {
  background: linear-gradient(135deg, #eeeaff 20%, #ad91e8 100%);
  color: var(--light);
}
html.light .about-card,
html.light .project-detail-card {
  margin: 42px auto 64px auto;
  max-width: 700px;
  background: linear-gradient(120deg, #2a1455 65%, #6c2eb7 100%);
  color: var(--light);
  border-radius: 24px;
  padding: 36px 32px 30px 32px;
  box-shadow: var(--shadow);
  font-size: 1.13rem;
}
.project-detail-card h2,
.project-detail-card h3,
.project-detail-card h4,
.project-detail-card .key-lesson,
.project-detail-card .section-title {
  color: #fff !important;
  text-shadow: 0 1px 3px #2a145588;
}
.project-detail-card ul { margin: 14px 0 0 22px; padding: 0; color: #e5e5ee; }
.project-detail-card a { color: var(--teal); text-decoration: underline; }
.project-detail-card a:hover { color: #fff; background: #2b1767; border-radius: 5px; text-decoration: none; }

html.light .card h3,
html.light .about-card h3,
html.light .project-card h3,
html.light .project-detail-card h2 {
  color: var(--teal);
}
html.light .nav-links a,
html.light .nav-logo {
  color: var(--main-purple);
}
html.light .nav-logo {
  background: #fff;
  color: #009e93;
}
html.light .button, .html.light .button-alt {
  background: var(--main-purple);
  color: var(--light);
}
html.light .button-hire {
  background: #ffb84d;
  color: var(--deep-purple);
}
html.light .tagline {
  color: #009e93;
}

.project-detail-card .back-btn,
.project-detail-card .back-to-projects {
  display: inline-block;
  margin-top: 32px !important;
}



/* --- Burger Nav Styles (AIVidz-inspired) --- */
body.burger-offset { padding-top: 64px; } /* prevent content hiding under nav */
.burger-nav {
  position: fixed;
  top: 0; left: 0; width: 100%; z-index: 500;
  height: 64px;
  display: flex; align-items: center; background: linear-gradient(90deg, #35166e 0%, #00dacb 100%);
  box-shadow: 0 2px 12px #0003;
}
.nav-logo { margin-left: 26px; }
.nav-logo-initials { background: #2be3d3; color: #1a0547; border-radius: 50%; font-size: 2rem; font-weight: bold; padding: 8px 18px; letter-spacing: -1px; }
.burger-menu {
  margin-left: 24px; border: none; outline: none; background: none;
  width: 40px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  cursor: pointer; z-index: 510;
}
.burger-menu span {
  display: block; width: 28px; height: 4px; background: #fff; border-radius: 3px;
  margin: 4px 0; transition: 0.35s;
}
.burger-menu.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-menu.open span:nth-child(2) { opacity: 0; }
.burger-menu.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-links {
  position: fixed; left: 0; top: 64px; width: 280px; max-width: 85vw;
  background: #2a1455; color: #fff; height: 100vh; z-index: 505; padding-top: 32px;
  display: flex; flex-direction: column; gap: 22px; transform: translateX(-100vw);
  transition: transform .34s cubic-bezier(.53,-0.1,.42,1.24);
  font-size: 1.34rem;
  box-shadow: 2px 0 24px #0004;
}
.nav-links a {
  color: #00dacb; text-decoration: none; font-weight: 600; padding: 12px 36px 12px 28px; border-radius: 18px 0 0 18px;
  transition: background .15s, color .13s;
}
.nav-links a:hover, .nav-links a:focus {
  background: #4e33a5; color: #fff;
}
.nav-links.open {
  transform: translateX(0);
}
body.nav-open { overflow: hidden; }
@media (max-width: 650px) {
  .nav-links { font-size: 1.05rem; width: 92vw; }
  .nav-logo-initials { font-size: 1.5rem; padding: 7px 14px; }
}

/* === NAVIGATION BAR === */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg, #22272e);
  padding: 0.8rem clamp(1rem, 4vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-logo-initials {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent, #67e8f9);
  letter-spacing: 0.02em;
  padding: 0.3em 0.7em;
  border-radius: 1em;
  background: var(--logo-bg, #11151a);
  transition: background 0.2s;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--nav-link, #fff);
  font-weight: 500;
  text-decoration: none;
  padding: 0.3em 0.7em;
  border-radius: 1em;
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover,
.nav-links a:focus {
  background: var(--accent, #67e8f9);
  color: #22272e;
}
.toggle-mode {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
  color: var(--nav-link, #fff);
  transition: color 0.18s;
}
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3em;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.burger-menu span {
  height: 3px;
  width: 26px;
  background: var(--nav-link, #fff);
  border-radius: 2px;
  display: block;
  margin: 2.5px 0;
  transition: all 0.2s;
}

/* Align nav elements: burger left, logo right */
.main-nav .burger-menu { order: 1; }
.main-nav .nav-links { order: 2; }
.main-nav .nav-logo {
  order: 3;
  margin-left: auto;
  margin-right: 0;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    right: 1.5rem;
    background: var(--nav-bg, #22272e);
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.3rem 2.1rem;
    border-radius: 1.3rem;
    box-shadow: 0 3px 18px rgba(0,0,0,0.09);
    z-index: 50;
  }
  .nav-links.open {
    display: flex;
  }
  .burger-menu {
    display: flex;
  }
}

/* === CARDS === */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.card-list .card {
  background: var(--card-bg, #181c21);
  color: var(--text, #e9e9e9);
  border-radius: 22px;
  box-shadow: 0 5px 32px rgba(0,0,0,0.11);
  padding: 34px 26px 28px 26px;
  min-width: 220px;
  min-height: 170px;
  max-width: 320px;
  width: 100%;
  margin: 0.5rem;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: box-shadow 0.18s, background 0.15s;
  word-break: break-word;
}
.card-list .card h3 {
  margin: 0 0 0.7rem 0;
  font-size: 1.27rem;
  font-weight: 700;
}
.card-list .card p {
  font-size: 1.01rem;
  margin: 0 0 0.2rem 0;
}
.card-list .card.coming-soon {
  background: linear-gradient(108deg, #353c47 85%, #67e8f9 110%);
  color: #f7fafc;
  opacity: 0.88;
  border: 2px dashed #67e8f9;
}
.button, .card-link {
  background: var(--accent, #67e8f9);
  color: #22272e !important;
  padding: 0.64em 1.18em;
  font-weight: 700;
  font-size: 1.09rem;
  border: none;
  border-radius: 2em;
  margin-top: 1.0em;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(103,232,249,0.09);
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  display: inline-block;
}
.button:hover, .card-link:hover {
  background: #0ea5e9;
  color: #fff !important;
}
@media (max-width: 650px) {
  .card-list {
    flex-direction: column;
    align-items: center;
  }
  .card-list .card {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}


/* Sub-nav styling */
.sub-nav {
  display: flex;
  justify-content: center;
  gap: 2.3rem;
  padding: 0.7em 0 0.6em 0;
  background: var(--card-bg, #181c21);
  border-bottom: 1.5px solid #23282f;
  box-shadow: 0 1px 0 rgba(103,232,249,0.08);
  margin-bottom: 1.1em;
}
.sub-nav a {
  color: var(--accent, #67e8f9);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 0.22em 0.9em;
  border-radius: 1.3em;
  transition: background 0.18s, color 0.17s;
}
.sub-nav a:hover {
  background: var(--accent, #67e8f9);
  color: #22272e;
}

@media (min-width: 1200px) {
  .project-detail-card,
  html.light .project-detail-card {
    max-width: 900px;
  }
}

.top-space {
  margin-top: 30px;
}
