/* ===============================
🌐 General Page Layout
================================== */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===============================
🧭 Navigation
================================== */
nav {
  background-color: #444;
  padding: 0.5rem;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #ff9900;
  transition: color 0.2s ease-in-out;
}

/* ===============================
🔝 Header
================================== */
header {
  background-color: #222;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===============================
🖍️ Typography & Highlight
================================== */
h1, h2 {
  color: #ff6600;
}

.highlight {
  color: #cc5200;
  font-weight: bold;
}

a {
  color: #ff6600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===============================
📦 Enhanced Section
================================== */
.enhanced-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #ff6600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  max-width: 850px;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.enhanced-section h2 i {
  margin-right: 8px;
}

.enhanced-section ul {
  list-style: none;
  padding-left: 0;
}

.enhanced-section li {
  margin-bottom: 0.75rem;
}

/* ===============================
📄 CV Buttons
================================== */
.cv-button,
.cv-download-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background-color: #ff6600;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cv-button:hover,
.cv-download-button:hover {
  background-color: #cc5200;
}

/* ===============================
⏫ Scroll To Top
================================== */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-size: 16px;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: none;
}

#scrollTopBtn:hover {
  background-color: #cc5200;
}

#scrollTopBtn:focus {
  outline: 2px dashed #ff6600;
  outline-offset: 4px;
}

/* ===============================
🏢 Company & Project Entries
================================== */
.company-block {
  margin-bottom: 2rem;
}

.company-title {
  color: #cc5200;
  border-left: 4px solid #ff6600;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.project-entry {
  margin-left: 1rem;
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.project-entry h3 {
  color: #cc5200;
  margin: 0;
}

.project-entry h4 {
  color: #333;
  margin: 0 0 0.3rem 0;
}

.project-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2rem 0;
}

/* ===============================
👤 Profile Image
================================== */
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* ===============================
📊 Stats Footer
================================== */
.stats-footer {
  background: #fafafa;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

.stats-footer .yt-badge iframe {
  height: 30px;
  width: 160px;
  vertical-align: middle;
  margin: 0 0.5rem;
}

.stats-footer img {
  vertical-align: middle;
  height: 20px;
}

/* ===============================
🦶 Footer
================================== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #eee;
  font-size: 0.9rem;
  color: #666;
}

footer a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.social-links a {
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

/* ===============================
🔽 Collapsible Sections
================================== */
.collapsible-header {
  all: unset;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.collapsible-header h2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-size: 1.25rem;
  margin: 0;
  color: #ff6600;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.collapsible-header:hover h2 {
  color: #cc5200;
  background-color: rgba(180, 180, 180, 0.1);
  text-shadow: 0 0 3px rgba(180, 180, 180, 1);
}

.toggle-icon {
  font-size: 1rem;
  color: #ff6600;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  margin-left: 10px;
}

.collapsible-section.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.collapsible-content {
  overflow: hidden;
  max-height: none;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.collapsible-section.collapsed .collapsible-content {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  padding: 0 !important;
}

.enhanced-section.collapsible-section {
  border: 1px solid #e0e0e0;
  border-left: 5px solid #ff6600;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  max-width: 850px;
  padding: 1rem;
  box-sizing: border-box;
}

#collapse-controls button {
  margin: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#collapse-controls button:hover {
  background-color: #e05500;
}

/* ===============================
🏢 Company Accordion
================================== */
.company-subsection {
  margin: 1.5rem 0;
  border-left: 4px solid orange;
  background-color: #f8f8f8;
  padding: 10px 15px;
  border-radius: 4px;
}

.company-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.company-header:hover {
  background-color: rgba(255, 102, 0, 0.05);
  border-radius: 4px;
}

.company-details.hidden {
  display: none;
}

.company-details {
  transition: all 0.3s ease;
}

.company-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

/* ===============================
🧾 Scrollable Wrapper
================================== */
.company-scroll-wrapper {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 1rem;
  scroll-behavior: smooth;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.company-scroll-wrapper::-webkit-scrollbar {
  width: 8px;
}

.company-scroll-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.company-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #ff6600;
  border-radius: 10px;
}

.company-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #cc5200;
}

.company-title-with-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.company-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

/* ===============================
📱 Responsive Media Queries
================================== */
@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header img {
    width: 100px !important;
    height: 100px !important;
  }

  h1 {
    font-size: 1.5rem;
  }

  .enhanced-section {
    padding: 1rem;
    margin: 1rem auto;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem;
  }

  ul {
    padding-left: 1rem;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .company-accordion {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .stats-footer p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
	margin: 0.3rem 0;
  }


.stats-footer i {
  color: #0077b5; /* LinkedIn color default */
  font-size: 1rem;
  vertical-align: middle;
  margin-right: 4px;
}

.stats-footer img.logo {
  width: 20px;
  height: auto;
  vertical-align: middle;
  margin: 0 4px;
  object-fit: contain;
}

.stats-footer a img {
  vertical-align: middle;
  height: 24px;
  margin-left: 4px;
}

/* Optional: emphasize numeric data */
.stats-footer strong {
  color: #222;
  font-weight: 600;
}


  .stats-footer .yt-badge iframe {
    width: 140px;
    height: 28px;
  }
}

/* ===============================
🖨️ Print Mode
================================== */
@media print {
  header,
  nav,
  #scrollTopBtn,
  .cv-button,
  .cv-download-button,
  .no-print {
    display: none !important;
  }

  a {
    color: #0000EE;
    text-decoration: underline;
  }

  .page-break {
    page-break-before: always;
  }
}
