/* ===============================
   Global Design Tokens (Edit here)
   =============================== */
:root{
  /* Palette */
  --bg:#ffffff;
  --ink:#333333;
  --ink-muted:#666666;
  --brand:#008073;           /* teal */
  --brand-dark:#004d40;      /* deep teal (links/accents) */
  --brand-contrast:#ffffff;
  --accent:#10ca38;          /* side-nav link color you used */
  --note:#795548;            /* blockquote brown */

  /* Surfaces */
  --surface:#fafafa;
  --divider:#dddddd;
  --shadow:0 4px 16px rgba(0,0,0,.12);

  /* Typography & rhythm */
  --base-font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --display-font: "Poiret One", var(--base-font);
  --radius: 12px;
  --radius-round: 999px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  /* Accessibility */
  --focus: 2px solid #24305e;
}

/* Optional webfont (kept from your sheet) */
@import url('https://fonts.googleapis.com/css?family=Poiret+One');

/* Reduce motion where requested */
@media (prefers-reduced-motion: reduce){
  *{animation: none !important; transition: none !important;}
}

/* =========================
   Base elements & utilities
   ========================= */
html, body{margin:0;padding:0}
body{
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--base-font);
}
a{color: var(--brand-dark); text-decoration: none;}
a:hover{ text-decoration: underline; }
:focus-visible{ outline: var(--focus); outline-offset: 2px; }

.text-center{ text-align:center; }
.container{ width:95%; margin:0 auto; }

/* =================
   Header / Nav bar
   ================= */
nav{
  background: var(--brand-contrast);
  box-shadow: none;
  height: 0; /* original behavior kept for your layout */
}
nav i{
  padding: 0 15px;
  position: relative;
  top: 5px;
}

/* =================
   Profile / Social
   ================= */
.profile-pic{
  position: relative;
  width: 130px;
  height: 130px;
  overflow: hidden;
  margin: 0;
  border: 6px solid rgba(0,77,64,.4);
  border-radius: 50% !important;
  box-shadow: var(--shadow);
}
.profile-pic img{ width:100%; height:100%; object-fit: cover; display:block; }

.tracker{
  position: fixed;
  bottom: 0;
  right: 0;
}

.social{ margin: 0 auto; width:auto; text-align: inherit; }

/* Icon buttons */
.icon-btn{
  width: 50px; height: 50px;
  border: 0; border-radius: 45px;
  display: inline-grid; place-items: center;
  font-size: 30px; color: #fff;
  background: transparent;
  margin: 4px;
  transition: transform .15s ease;
}
.icon-btn:hover{ transform: scale(1.08); }
.icon-btn:focus-visible{ outline: var(--focus); }

/* Brand tints for icons */
.github{ color: #000; }
.linkedin{ color: #0077b5; }
.angellist{ color: #808080; }

/* Filled hover states for better contrast */
.github:hover{ background:#000; color:#fff; }
.linkedin:hover{ background:#0077b5; color:#fff; }
.angellist:hover{ background:#808080; color:#fff; }

/* ==========================
   Buttons (Readme / Contact)
   ========================== */
.readme,
.contactme{
  position: relative;
  padding: 11px 35px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  border-radius: 5px;
  border: 2px solid #fff;
  display: inline-block;
}
.readme{
  background:#fff; color: var(--brand);
}
.contactme{
  background: transparent; color: #fff; margin-top: 1.5em;
}
.contactme:hover{ color: var(--brand); background: #fff; }

/* ======================
   Typography / Elements
   ====================== */
blockquote{
  border-left: 5px solid var(--note);
  color: var(--note);
  font-size: 125%;
  font-weight: 400;
  margin: 20px 0;
  padding-left: 1.5rem;
}
blockquote *{ font-size: inherit; line-height: inherit; }

h3{
  font-weight: 200;
  margin: 0 0 60px;
  padding: 30px 40px;
  text-transform: uppercase;
  font-family: var(--display-font);
}

/* =================
   Layout / Sections
   ================= */
main{
  background: url(../../assets/img/bg.png) repeat;
  padding-left: 190px; /* side-nav width */
}

.section{
  position: relative;
  padding: 0 0 30px 0;
}

.full-height{ height: 100vh; }

/* Intro section */
#intro.section{
  background: #a7ffeb; /* kept your minty hero */
  position: relative;
}
#intro.section .container{
  color: #fff;
  font-weight: 200;
  left: 0; top:0; position: absolute;
}
#intro.section .container *:not(span){
  font-weight: 300;
  line-height: 150%;
  text-shadow: 1px 1px 5px rgba(0,0,0,.5);
}
#intro.section .underline{ border-bottom: 5px solid #24305e; }
#intro.section .teal{ padding: 0 10px; }

.overlay{
  background-color: rgba(0,0,0,.4);
  height:100%; width:100%;
  position:absolute; left:0; top:0;
}

/* Waves (kept) */
.waves-effect.waves-blue .waves-ripple{
  background-color: rgba(33,150,243,.2);
}

/* ===========================
   Side Nav / Table of contents
   =========================== */
ul.side-nav{ width: 190px; }
ul.side-nav li{ padding: 0; }

ul.side-nav.fixed a{
  box-sizing: content-box;
  color: var(--accent);
  display: block;
  line-height: 100%;
  padding: 10px 0 12px;
}

ul.side-nav.fixed li.logo{
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  box-sizing: content-box;
  min-height: 90px;
  padding: 30px 30px 40px;
}
ul.side-nav.fixed li.logo a{ font-weight: 200; line-height: 100%; }
li.logo span{ display:block; font-size:14px; }

ul.table-of-contents li.logo a.active,
ul.table-of-contents li.logo a:hover{
  border: none; font-weight: 200;
}

ul.table-of-contents li:not(.logo) a.active,
ul.table-of-contents li:not(.logo) a:hover{
  background: var(--surface);
  border-left: 3px solid var(--brand-dark);
}

ul.side-nav.fixed.table-of-contents li:not(.logo) a span,
ul#slide-out li:not(.logo) a span{
  color: var(--ink) !important;
}

/* =========
   “Cards”
   ========= */
.card{ margin-bottom: 60px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card .card-content{ padding-bottom: 30px; }
.card .card-content p{ padding: 5px 0 0; color: inherit; }
.card .card-title{ font-size: 24px; }
.card .card-content .card-title{ line-height: 2.5rem; }
.card h5{ font-size: 1.5rem; margin: 2rem 0 -.5rem; }
.card h6{ margin-top: 2rem; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; }
.card i.right{ margin-left: 10px; }

.card ul{ margin-bottom: 0; }
.card ul li{
  line-height: 200%;
  list-style: disc;
  margin-left: 24px;
}
.card ul li li{
  color: var(--ink-muted);
  font-size: 13px;
}

#experience .card-action{
  background-color: rgba(0,0,0,.02);
  border: none;
}
#experience .card .col.s12.m2 a{ display:block; }
#experience .card .col.s12.m2 a img{ max-height: 60px; }
#experience .card-content .row{
  border-bottom: 1px solid var(--divider);
  padding-bottom: 10px;
}
.card-action span{ font-size: 85%; color: var(--ink-muted); }
.card-action a.btn-floating{ margin-bottom: 0; }

.card .role{
  font-size: 1.25rem;
  position: absolute; right: 38px; top: 35px;
}

/* Links with bottom accent */
a.hoverline{
  border-bottom: 3px solid transparent !important;
  padding: 3px 3px 0 3px;
  transition: border-color .2s ease;
}
a.hoverline:hover{
  border-bottom: 3px solid var(--brand-dark) !important;
}

/* Skills grid */
#skills .card.large{ height: 360px; }
#skills h4{
  border-bottom: 1px solid var(--divider);
  margin-bottom: 30px;
  padding-bottom: 20px;
}
#skills .col img.responsive-img{
  display:block; margin:0 auto; padding-bottom:10px;
  max-height:100px; text-align:center; vertical-align:middle;
}

/* Misc */
#contact a:not(.btn-floating){
  position: relative; bottom: 6px; left: 20px;
}
#experience .col.s12.m2{ text-align:center; }
.fa-external-link:before{ position:relative; left:3px; top:2px; }
.small, small{ display:none; }
.grey-text{ color: var(--ink-muted) !important; }
.teal-text{ color: var(--brand) !important; }
.teal{ background-color: var(--brand) !important; }

/* ==============
   Responsive UX
   ============== */
@media (min-width: 1200px){
  #experience .container{ width: 860px; }
}

@media (max-width: 1360px){
  .card ul li{
    font-size: 14px;
    line-height: 200%;
    margin-left: 20px;
  }
}
@media (max-width: 1160px){
  .card ul li{ line-height: 150%; }
}

@media (max-width: 992px){
  main{ padding-left: 0; padding-top: 64px; }
  ul.side-nav a{
    line-height: 100%;
    padding: 0;
    width: 100%;
  }
  nav{
    background: #fff;
    height: 64px;
    position: absolute;
  }
  nav a.button-collapse,
  nav a.button-collapse i{
    color: #009688;
    height: 56px;
    line-height: 56px;
  }
  h3{ padding: 20px 30px; margin-bottom: 40px; }
  .container{ margin: 0 auto; }
  nav.hide-on-large.only.trigger{
    display: block;
    position: fixed; top:0; z-index:2;
  }
  .name-title{
    display:block; width:100%; height:100%;
    position:absolute; padding-top:15px; text-align:center;
  }
  .name-title a{ display:block; font-size:22px; }
  .name-title span{ display:block; font-size:14px; }
  h3, .container{ position:relative; top:64px; }
  section#intro{ margin-bottom: -64px; }
  .card .role{ position: relative; right: initial; top: initial; }
}

@media (max-width: 600px){
  h2{ font-size:22px; line-height:200%; margin: 30px 0 0; }
  #intro.section .container *:not(span){ padding: 0; }
  .card .card-content .card-title{ font-size:20px; line-height:24px; }
  #experience span.card-title{ display:block; text-align:center; }
  #experience span.card-title a{ margin:0; }
  i.mdi-navigation-close.right{ position:relative; bottom:15px; }
  #contact a:not(.btn-floating){ text-align:center; display:block; left: initial; bottom: initial; }
  #contact a.btn-floating.btn-large{ display:block; text-align:center; margin:0 auto; }
  #intro.section{ background-position-x: 30%; }
}

/* ====== NAVBAR ====== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--divider, #ddd);
}
.navbar .container{
  max-width: 1080px;
  margin: 0 auto;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo{
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-dark, #004d40);
  font-size: 1.15rem;
}
.navbar .nav-links{
  list-style: none;       /* remove bullets */
  margin: 0;
  padding: 0;
  display: flex;          /* horizontal */
  gap: 1rem;
}
.navbar .nav-links a{
  color: var(--brand-dark, #004d40);
  text-decoration: none;
  font-weight: 600;
  padding: .35rem .25rem;
  border-bottom: 2px solid transparent;
}
.navbar .nav-links a:hover{
  border-bottom-color: var(--brand-dark, #004d40);
}
.navbar .nav-links a.active{
  border-bottom-color: var(--brand, #008073);
}

/* ====== HERO ====== */
.hero{
  /* keeps your subtle grid bg while giving a premium header feel */
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    url(/assets/img/bg.png) repeat;
  border: 1px solid var(--divider, #ddd);
  border-radius: 16px;
  padding: 2.25rem 1.25rem;
  margin: 1.25rem auto 0;
}
.hero .hero-content{
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}
.hero h1{
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.hero p{
  color: #2b3a3a;
  margin: 0 0 1rem;
}

/* ====== BUTTONS ====== */
.btn{
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--brand, #008073);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  margin-right: .5rem;
}
.btn:hover{ filter: brightness(1.05); }
.btn.secondary{
  background: #fff;
  color: var(--brand-dark, #004d40);
  border-color: var(--brand-dark, #004d40);
}

/* ====== CARDS GRID (Explore section) ====== */
.cards-grid{
  /* you inline-set this; keeping here so CSS owns layout if you remove inline later */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

/* Make sure our base container matches navbar width */
.container{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Small a11y touch */
a:focus-visible{ outline: 2px solid #24305e; outline-offset: 2px; }

/* Responsive: stack nav on small screens */
@media (max-width: 720px){
  .navbar .nav-links{ gap: .6rem; flex-wrap: wrap; }
  .hero{ padding: 1.5rem 1rem; }
}

