/* =========================
   Root Variables
========================= */

:root {
  --bg-color: #f8f8f8;
  --text-color: #000000;
  --link-color: #0000ff;
  --section-bg: #f9f9f9;
  --project-bg: #f2f2f2;
  --project-highlight-bg: #e8e8e8;
  --navy-blue: #007bff;
  --progress-bg: #ddd;
  --input-bg: white;
  --input-border: #ccc;
  --body-font-size: 16px;
  --small-font-size: 13px;
  --card-font-size: 16px;
  --heading-font-size: 1.6rem;
  --project-title-size: 1.1rem;
}

/* =========================
   Dark Mode Variables
========================= */

body.dark-mode {
  --bg-color: #2c2c2c;
  --text-color: #f0f0f0;
  --link-color: #00bfff;
  --section-bg: #505050;
  --project-bg: #414141;
  --project-highlight-bg: #4a4a4a;
  --navy-blue: #1e90ff;
  --progress-bg: #555;
  --input-bg: #333;
  --input-border: #666;
}

/* =========================
   Global Styles
========================= */

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition:
    color 0.3s,
    background 0.3s;
  min-height: 100vh;
  font-size: var(--body-font-size);
}
.skill-subtext {
  font-size: var(--small-font-size);
}
h1,
h2 {
  color: var(--text-color);
}

h2 {
  font-size: var(--heading-font-size);
  font-weight: bold;
}

iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.section {
  font-size: var(--card-font-size);
}

/* =========================
   Main Layout Container
========================= */

.container {
  max-width: 794px;
  width: 100%;

  background: var(--section-bg);

  padding: 20px;

  margin: 40px auto;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

  border-radius: 10px;

  box-sizing: border-box;

  transition: background 0.3s;
}

/* =========================
   Header / Hero Section
========================= */

.header-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.center-header {
  text-align: center;
}

.profile-title {
  font-size: 1.1em;
  margin-top: 5px;
  margin-bottom: 5px;
  color: var(--text-color);
  font-weight: 500;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 40px;
  max-width: 100%;
}
.profile-title-box {
  display: inline-block;

  background: var(--section-bg);

  padding: 12px 20px;

  border-radius: 12px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  margin-top: 10px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-title-box:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
body.dark-mode .profile-title-box {
  background: #3f3f3f;
}

/* =========================
   Sections / Cards
========================= */

.section {
  margin-bottom: 20px;

  padding: 15px;

  border-radius: 12px;

  background: var(--project-bg);

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity 0.5s ease-out,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.3s;
}

.section:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.visible {
  opacity: 1;

  transform: translateY(0);
}
/* =========================
   Buttons
========================= */

.download-btn,
.theme-toggle {
  /* Using inline-flex keeps the internal text perfectly centered */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  
  /* Positive numbers push it down, negative numbers pull it up */
vertical-align: -1px; /* Nudges the entire button down 1px */
vertical-align: 6px;  /* Nudges the entire button up 2px */

  padding: 5.5px 13px;
  background: rgba(0, 82, 179, 0.97);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  
  /* Standardizes text settings across links and buttons */
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: inherit;
  line-height: normal; 

  transition:
    background 0.3s,
    transform 0.2s;
}

/* FIX FOR OPERA & FIREFOX ALIGNMENT: 
   We removed the position: relative and top: -2px which was pushing the text up */
.theme-toggle span {
  display: inline-block;
}

/* Clear out any weird default button outlines */
.theme-toggle {
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Shared clean zoom-in hover effect */
.download-btn:hover,
.theme-toggle:hover {
  background: #0056b3;
  transform: scale(1.05); /* Smooth, clean zoom-in */
}

.download-btn:hover {
  background: rgba(0, 82, 179, 0.9);
}

/* Extra safety for Firefox internal framing */
.theme-toggle::-moz-focus-inner {
  border: 0;
  padding: 0;
}
/* =========================
   Resume Download Section
========================= */

.download-resume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 15px;
  margin-bottom: 15px;
}

#resume-format,
.download-btn {
  height: 36px;

  padding: 0 14px;

  border-radius: 12px;
  font-size: var(--card-font-size);

  box-sizing: border-box;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 0;
}

/* =========================
   Social Links
========================= */

.social-links a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--navy-blue);
  font-size: 18px;
}

/* =========================
   Skill Progress Bars
========================= */

.progress-bar {
  width: 100%;
  background-color: var(--progress-bg);
  border-radius: 5px;
  overflow: hidden;

  margin: 4px 0 10px 0;
}

.progress-bar div {
  height: 20px;
  background: var(--navy-blue);
  text-align: right;
  padding-right: 6px;
  color: white;
  line-height: 20px;
}

/* =========================
   Skills Category Headers
========================= */

#skills h3 {
  margin-top: 28px;
  margin-bottom: 12px;

  padding-left: 10px;

  border-left: 4px solid var(--navy-blue);

  color: var(--navy-blue);

  font-size: 1.1rem;

  font-weight: 600;
}

/* =========================
   Skills Text Formatting
========================= */

#skills p {
  line-height: 1.2;

  margin-bottom: 3px;
}

/* Long infrastructure descriptions */
.info-card p {
  font-size: var(--card-font-size);
}

/* =========================
   Forms / Contact Section
========================= */

input,
textarea {
  width: 100%;

  box-sizing: border-box;

  padding: 10px;
  margin-bottom: 10px;

  border: 1px solid var(--input-border);
  border-radius: 5px;

  font-size: 16px;
  font-family: inherit;

  background: white;
  color: var(--text-color);
}

textarea {
  resize: none;
  min-height: 120px;
}

/* =========================
   Projects Section
========================= */

#projects {
  margin-top: 10px;

  border-radius: 12px;

  padding: 20px;

  background: var(--project-bg);
}

.project {
  margin-bottom: 20px;

  padding: 16px;

  background: #e6e6e6;

  border-radius: 12px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.3s ease;
}

/* Dark mode */
body.dark-mode .project {
  background: #4d4d4d;
}

.project a {
  text-decoration: none;

  color: var(--navy-blue);

  font-weight: bold;
}

.project a:hover {
  text-decoration: underline;
}

.sub-project-title {
  font-size: var(--project-title-size);
}

/* =========================
   Collapsible Project Headers
========================= */

.collapsible-header {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.6em;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-color);
}

.toggle-wrapper {
  display: flex;
  align-items: center;
}

.toggle-button {
  font-size: 0.9em;
  font-weight: bold;
  color: var(--navy-blue);
  margin-right: 10px;
}

/* =====================
    Experience job cards
    =================== */

.job-card {
  background: #e6e6e6;

  padding: 18px;

  border-radius: 12px;

  margin-bottom: 20px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s ease,
    background 0.3s ease;
}

.job-card li {
  margin-bottom: 8px;
}

/* Shared card hover effect */
.job-card:hover,
.info-card:hover,
.project:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

/* Dark mode job cards */
body.dark-mode .job-card {
  background: #4d4d4d;
}
/* =========================
   Project Details Layout
========================= */

/* ========================================================
   Smooth Collapsible Projects (CSS Grid Transition Engine)
   ======================================================== */

/* 1. The outer wrapper starts completely flat and hides everything inside */
.project-details-wrapper {
  display: grid;
  grid-template-rows: 0fr; /* Collapsed state */
  transition: grid-template-rows 0.35s ease-out; /* Controls the slide animation speed */
  overflow: hidden;
}

/* 2. When the header's aria-expanded attribute is true, expand the grid row to full content size */
.collapsible-header[aria-expanded="true"] + .project-details-wrapper {
  grid-template-rows: 1fr; /* Expanded state */
}

/* 3. The inner content container manages padding and visibility cleanly */
.project-details-content {
  min-height: 0;
  visibility: hidden;
  transition: visibility 0.35s ease-out;
  padding-bottom: 5px;
}

/* 4. Make content visible and add top padding as soon as the grid expands */
.collapsible-header[aria-expanded="true"] + .project-details-wrapper .project-details-content {
  visibility: visible;
  padding-top: 15px;
}

/* ========================================================
   Icon Interactivity & Smooth Rotation 
   ======================================================== */

.toggle-icon {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--navy-blue);
  margin-right: 10px;
  transform: rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

/* CHANGED: Removed the red color rule so individual sub-projects stay blue when open */
.collapsible-header[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
  color: var(--navy-blue); 
}

/* Ensure the main sub-project titles look clean next to the inline icon */
.sub-project-title {
  font-weight: 600;
}


/* ========================================================
   Main Projects Section Custom Layout & Rotation
   ======================================================== */

.main-projects-header {
  font-size: 1.5rem !important; /* Scaled up significantly to make it noticeably huge */
  text-transform: capitalize; /* Ensures proper case ("Projects") */
  font-weight: 600; /* Maximum thickness for extreme bold emphasis */
  padding: 20px 0; /* Extra structural padding so the huge text doesn't feel cramped */
  letter-spacing: -0.5px; /* Subtle tightening to make large text look premium */
}
/* Since the main project deck starts EXPANDED (true), rotate it to 45deg initially */
/* CHANGED: Set color to var(--navy-blue) instead of red */
.collapsible-header.main-projects-header[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
  color: var(--navy-blue);
}

/* When a user clicks to COLLAPSE it (false), rotate it back to 0deg */
.collapsible-header.main-projects-header[aria-expanded="false"] .toggle-icon {
  transform: rotate(0deg);
  color: var(--navy-blue);
}

/* =========================
   Tech Tags
========================= */

.tech-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin: 18px 0;
}

.tech-tags span {
  background: rgba(0, 123, 255, 0.12);

  color: var(--navy-blue);

  padding: 6px 12px;

  border-radius: 20px;

  font-size: var(--small-font-size);

  font-weight: 600;
}

/* Dark mode */
body.dark-mode .tech-tags span {
  background: rgba(30, 144, 255, 0.18);
}
/* =========================
   Project Button
========================= */

.project-link {
  display: inline-block;

  margin-top: 12px;

  padding: 8px 14px;

  background: rgba(0, 82, 179, 0.95);

  color: white !important;

  border-radius: 10px;

  text-decoration: none;

  font-size: var(--small-font-size);

  font-weight: 600;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

/* Dark mode */
body.dark-mode .project-link {
  background: rgba(0, 82, 179, 0.7);
}

.project-link:hover {
  transform: translateY(-2px);

  opacity: 0.95;

  text-decoration: none;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

/* ================================
    Education & certification cards 
    ============================== */

.info-card {
  background: #e6e6e6;

  padding: 18px;

  border-radius: 12px;

  margin-bottom: 20px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s ease,
    background 0.3s ease;
}

/* Dark mode */
body.dark-mode .info-card {
  background: #4d4d4d;
}

/* Row with two items, aligned left */
.cert-row {
  display: flex;
  gap: 80px;
  justify-content: flex-start; /* left-aligned instead of center */
}

/* Each cert item keeps its content aligned left */
.cert-item {
  text-align: left;
}

.cert-box {
  background: #007bff;
  color: white;
  padding: 15px;
  border-radius: 12px;
  margin-top: 10px;
}

/* =========================
   Navbar
========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  max-width: 794px;

  margin: 0 auto 30px auto;

  background: var(--section-bg);

  border-radius: 12px;

  padding: 15px 0;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .navbar {
  background: #3f3f3f;
}

/* =========================
   Navbar Layout
========================= */

.nav-container {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

/* =========================
   Navbar Links
========================= */

.nav-container a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
}

.nav-container a:hover {
  color: var(--navy-blue);
}

/* =========================
   Active navbar link 
========================= */

.active-nav {
  color: var(--navy-blue) !important;

  border-bottom: 2px solid var(--navy-blue);

  padding-bottom: 3px;
}

/* =========================
   Mobile Navigation
========================= */

.hamburger {
  display: none;

  background: none;
  border: none;

  color: var(--text-color);

  font-size: 28px;

  cursor: pointer;
}

.mobile-nav-header {
  position: relative;

  display: none;

  align-items: center;
  justify-content: center;

  width: 100%;
}

.mobile-nav-title {
  font-weight: bold;
  color: var(--text-color);

  font-size: 16px;
}

/* Hide greeting when mobile menu opens */
.nav-container.menu-open .mobile-nav-title {
  display: none;
}
.hamburger {
  position: absolute;
  left: 0;
}

/* =========================
   Responsive Design
========================= */

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 1.4rem;
  }

  .download-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .progress-bar div {
    height: 16px;
    line-height: 16px;
    font-size: 12px;
  }

  .collapsible-header,
  .toggle-button {
    font-size: 20px;
  }

  .sub-project-title {
    font-size: var(--project-title-size);
  }

  .hamburger {
    display: block;
  }

  .nav-container a,
  .nav-container .theme-toggle {
    display: none;
  }

  .mobile-nav-header {
    display: flex;
  }

  .nav-container.menu-open a {
    display: inline-block;

    padding: 8px 12px;

    margin: 5px;

    border-radius: 8px;

    background: var(--project-bg);

    text-align: center;
  }

  .nav-container.menu-open .theme-toggle {
    display: inline-block;
  }
  .nav-container {
    display: flex;

    flex-direction: row;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 4px;
  }

  /* Expanded mobile menu layout */
  .nav-container.menu-open {
    justify-content: center;

    align-items: center;
  }
  /* Keep hamburger on same line */
  .nav-container.menu-open .mobile-nav-header {
    width: 100%;

    display: flex;

    justify-content: flex-start;

    margin-bottom: -50px;
  }
}
@media (max-width: 768px) {
  .theme-toggle span {
    top: 0;
  }

  .theme-toggle {
    line-height: normal;
  }
}

.cert-row {
  display: flex;
  gap: 25px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.cert-item {
  text-align: left;
}
/* =========================
   Print Styles
========================= */

@media print {
  body {
    width: 210mm;
    height: 297mm;
    margin: 0;
  }

  .container {
    width: 210mm;
    padding: 10mm;
    box-shadow: none;
    border-radius: 0;
  }

  .download-btn,
  .theme-toggle,
  iframe {
    display: none;
  }
}

/* ========================================================
   Professional Development Section Styling
   ======================================================== */

.prof-dev-master-title {
  margin-bottom: 25px;
}

.prof-dev-grid {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Spaces out the professional category blocks */
  width: 100%;
}

/* Reuses your project card styles but adapts cleanly for layout separation */
.prof-card {
  background-color: var(--card-bg, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Adds a clean lift effect on hover over the categories */
.prof-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Bullet list inside the professional development cards */
.prof-list {
  list-style-type: disc;
  margin-left: 20px;
  padding: 5px 0;
}

.prof-list li {
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 1rem;
}

.prof-list li:last-child {
  margin-bottom: 0;
}

/* Contact Me form field text */
/* 1. Ensure the input text itself is visible when a user types */
.dark-mode input,
.dark-mode textarea {
    background-color: #5a5a5a; /* Or whatever dark color you prefer */
    color: #ffffff;            /* The text the user types */
    border: 1px solid #444444;
}

/* 2. FORCE the placeholder text to be visible in Dark Mode across ALL browsers */
.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: #b3b3b3 !important; /* A light gray that stands out on dark backgrounds */
    opacity: 1;                /* Firefox overrides opacity by default, this forces it to show */
}


