
/* =========================
   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 {
  display: inline-block;

  padding: 8px 15px;


  background: rgba(0, 82, 179, .97);

  color: white;

  text-decoration: none;

  border-radius: 12px;

  cursor: pointer;

  border: none;

  transition: background 0.3s, transform 0.2s;
}

.theme-toggle {
  position: relative;
}

.theme-toggle span {
  position: relative;
  top: -2px;
}

.theme-toggle {
  line-height: 1;
}
.download-btn:hover,
.theme-toggle:hover {
  background: #0056b3;
  transform: scale(1.03);
}
.download-btn:hover {
  background: rgba(0, 82, 179, 0.9);
}
/* =========================
   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
========================= */

.project-details {
  margin-top: 12px;

  line-height: 1.4;
}

.project-details ul {
  padding-left: 20px;
}

.project-details li {
  margin-bottom: 0px;
}

/* =========================
   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.10);

  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.70);
}

.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;
  }
}
