/* styles.css — unified final version
   - All text uses Jost
   - All headings (h1..h6) = 64px
   - Body / paragraph text = 24px
   - Global alignment rule based on About section so all main sections align consistently
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');


:root{
  --bg: #0f0f0f;
  --accent: #00e0b8;
  --text: #ffffff;
  --muted: #cfcfcf;
  --max-width: 1200px;
  --radius: 14px;
  --gap: 2rem;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: "Jost", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 24px;      /* body / paragraph text = 24px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global paragraph spacing */
p + p {
  margin-top: 2rem; /* adds space between consecutive paragraphs globally */
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Headings: all 64px per request */
h1, h2, h3, h4, h5, h6,
.section-heading, .about-title, .hero-title {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 3rem;
  color: var(--text);
}

/* Header / Brand / Nav */
.site-header {
  padding: 2rem 0;
}

.site-header .container {
  padding-left: 0.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  position: relative;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--text);
}

/* Brand sizing follows heading rules */
.brand-main {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  text-align: left;  
}
.brand-underscore {
  color: #007ACC;
  font-weight: 700;
  font-size: 64px;
  margin-left: .12rem;
}

/* Nav */
/* Basic nav styling */
.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: flex-start;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 24px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #4fc3f7;
  transform: translateY(-2px);
}

pre {
  margin: 1rem 0;
  padding: 1rem;
  background: #111;
  border-radius: 8px;
  overflow-x: auto;     /* prevents layout breaking */
  white-space: pre-wrap; /* allows wrapping */
  word-break: break-word; /* breaks long commands */
}

pre code {
  font-size: 16px;
  line-height: 1.5;
}

/* --- MOBILE MENU --- */

/* Hide checkbox visually */
.menu-toggle {
  display: none;
}

/* Hamburger icon */
.menu-icon {
  display: none;
  font-size: 36px;
  color: var(--text);
  cursor: pointer;
}

/* Responsive behavior */
@media (max-width: 768px) {
  /* Show hamburger */
  .menu-icon {
    display: block;
  }

  /* Hide nav by default */
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
  }

  /* Show nav when checkbox checked */
  .menu-toggle:checked + .menu-icon + .main-nav {
    display: flex;
  }

  /* Adjust link spacing */
  .main-nav a {
    font-size: 22px;
    padding: 0.5rem 0;
    width: 100%;
  }
}

/* Hero (the blue section is being used as an image) */
.hero {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image {
  width: 100%;
  max-width: var(--max-width);
  display: block;
  border-radius: var(--radius);
}

/* About Section */
.about {
  padding: 3rem 0 2rem;
  background: var(--bg);
  color: var(--text);
}

.about2 {
  padding: 1rem 0 1rem;
  background: var(--bg);
  color: var(--text);
}

/* GLOBAL RULE: make section inner containers share About layout/alignment */
.about-inner,
.experience-inner,
.skills-inner,
.cred-inner,
.contact-inner,
.cert-inner,
.rec-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
  padding-left: 0;
}

/* Text justification for paragraph-like content inside main sections */
.about-text p,
.experience-inner .exp-list li,
.experience-inner .exp-reflection,
.skills-inner .skills-list li,
.cred-inner .rec-text,
.contact-inner p {
  text-align: justify;
  text-justify: inter-word;
}

/* About specifics */
.about-text {
  /* paragraphs handled by global p styles and p + p */
}
.about-text p {
  margin-bottom: 2rem;
}
.about-title { margin-bottom: 3rem; }

/* Paragraph/body text (applies to many selectors) */
p, .about-text p, .exp-role, .exp-reflection, .rec-text,
.skills-list li, .exp-list li, .contact-loc, .contact-phone,
.contact-email, .cert-heading {
  font-size: 24px;
  font-weight: 400;
  color: #e6e6e6;
}

/* Add spacing specifically for role line */
.exp-role {
  margin: 2rem 0 2rem; /* top, sides, bottom */
}

/* Experience Section */
.experience { padding: 2rem 0 3rem; background: var(--bg); }
.experience-inner {
  /* uses global rule above */
}
.experience-inner .exp-item + .exp-item {
  margin-top: 0.5rem;
  padding-top: 2rem;
}

.exp-list li,
.exp-reflection {
  /* justified behavior handled by global rule */
}

/* Company / Role / list items */
.exp-company { margin: 3rem 0 0.75rem; font-weight: 700; font-size: 24px; }
.exp-company-link {
  font-weight: 400;
  color: var(--text);
  text-decoration: underline dotted;
  text-decoration-thickness: 0.5px;
  transition: color 0.3s ease;
}

.exp-company-link:hover {
  color: #4fc3f7;
  opacity: 0.8;
}

/* List styling */
.exp-list, .skills-list { list-style: none; padding: 0; margin: 0; }
.exp-list li, .skills-list li {
  padding-left: 34px;
  margin-bottom: 1.1rem;
  position: relative;
  color: #e6e6e6;
  font-size: 24px;
  line-height: 1.7;
}
/* simple bullet for experience */
.exp-list li::before { content: "*"; position: absolute; left: 0; top: 0.2em; color:#007ACC; font-size:20px; transform: translateY(2px); }
/* diamond for skills */
.skills-list li::before { content: "*"; position:absolute; left:0; top: 0.2em; color:#007ACC; font-size:20px; }

/* Reflection text */
.exp-reflection { margin-top: 2.5rem; font-size: 24px; color: #e9e9e9; font-style: normal; }

/* Skills Section */
.skills { padding: 3rem 0; background: var(--bg); }
.skills-inner { /* uses global rule above */ }

/* === Certifications Section === */
.certifications {
  background: var(--bg);
  color: var(--text);
  padding: 1rem 0;
}

.cert-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
}

.cert-block {
  margin-bottom: 3rem;
}

.cert-heading {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 3rem;
  color: #e6e6e6;
}

.cert-row {
  display: flex;
  gap: 5.25rem;
  align-items: center;
  flex-wrap: wrap;
}


.cert-badge {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

.cert-badge2 {
  width: auto;
  height: 180px;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
}

.cert-badge3 {
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
}

.cert-badge4 {
  width: 720px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
}

.cert-badge5 {
  width: 200px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
}

.cert-badge.small {
  width: 180px;
}

/* === Go up === */
.go-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff10; /* subtle transparent white */
  color: #fff;
  border: 1px solid #ffffff30;
  backdrop-filter: blur(6px);
  font-size: 24px;
  cursor: pointer;
  display: none;              /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.go-top-btn.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.go-top-btn:hover {
  background: #ffffff30;
  transform: translateY(-4px);
}

/* === Recognitions Section === */
.recognitions {
  background: var(--bg);
  color: var(--text);
  padding: 1rem 0;
}

.rec-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: justify;
}

.rec-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.rec-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  margin-top: 6px;
}

.rec-text {
  font-size: 24px;
  line-height: 1.6;
  color: #e5e5e5;
  margin: 0;
  max-width: var(--max-width);
}

/* Contact Message Section */
.contact-message {
  padding: 1rem 0 1rem;
  background: var(--bg);
  color: var(--text);
  text-align: left;
}

.contact-message .contact-thanks,
.contact-message .contact-cta  {
  font-size: 24px;
  color: #e6e6e6;
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 1.5rem;
}

/* Contact Details Section */
.contact-details-section {
  padding: 3rem 0 2rem;
  background: var(--bg);
  color: var(--text);
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-details {
  font-size: 24px;
  color: #e6e6e6;
}


.contact-name {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff;
}

.contact-loc,
.contact-phone,
.contact-email {
  margin-bottom: 0.4rem;
}

.contact-social {
  margin-top: 3.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.find-me {
  font-size: 25px;
  color: #e6e6e6;
  margin-bottom: 0.6rem;
}

.lnk-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.16s ease;
}

.lnk:hover .lnk-img {
  transform: translateY(-4px);
}

.projects-nav {
  padding: 40px 0 20px;
}

.projects-nav-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.projects-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projects-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Tiles */
.project-tile {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.project-tile h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.project-tile p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Adjust colors to your theme */
.project-tile {
  background: #111;         /* dark card (change if needed) */
  color: #f5f5f5;
}

.project-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  border-color: #888;
}






/* Responsive adjustments */
@media (max-width: 980px) {
  :root { --max-width: 920px; }
  h1,h2,h3,h4,h5,h6, .section-heading, .about-title, .hero-title { font-size: 24px; }

  body, p, .about-text p, .exp-role, .exp-reflection, .rec-text,
  .skills-list li, .exp-list li, .contact-loc, .contact-phone,
  .contact-email, .cert-heading {
    font-size: 18px;  /* or whatever size you want */
  }


  .cred-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .brand-main, .brand-underscore { font-size: 48px; }
  .hero-image { border-radius: 12px; }
   img,
  .hero-image,
  .cert-badge2,
  .cert-badge3,
  .cert-badge4,
  .cert-badge5 {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.cert-row {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 1rem;
}

.cert-row img {
        width: 40vw !important;
        max-width: 40vw !important;
        height: auto;
}

.go-top-btn {
    display: none !important;
}

/* Mobile / tablet */
@media (max-width: 900px) {
  .projects-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .projects-tiles {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  p + p {
    margin-top: 1.5rem;
  }

   /* Hide nav by default and anchor it to header */
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);

    /* NEW positioning so it drops below the header */
    position: absolute;
    top: calc(100% + 0.25rem); /* sits just under the header */
    left: 0;
    right: 0;
    z-index: 999;

    /* optional niceties */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  /* show nav when checkbox checked */
  .menu-toggle:checked + .menu-icon + .main-nav {
    display: flex;
  }
}

/* Smaller phones */
@media (max-width: 480px) {
  h1,h2,h3,h4,h5,h6, .section-heading, .about-title, .hero-title { font-size: 42px; }

  body, p, .rec-text, .contact-loc {
    font-size: 18px;   /* ↓ reduced from 18px */
  }

  .exp-list li, .skills-list li, .exp-reflection, .about-text {
    font-size: 18px;
  }

  .container { padding: 0 1rem; }
  .brand-main, .brand-underscore { font-size: 42px; }
  .lnk-img { width: 48px; height: 48px; }
}
