﻿body {
    display: flex;
    margin: 0;
    font-family: Arial, sans-serif;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: white;
}

.container, #policy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.top-content {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    justify-content: center;
    height: 420px;
}


.text-box {
    padding: 5px;
    background-color: white; 
    text-align: left;
    color: #00040d;
}

.box1 {
    flex: 1;
    max-width: 30%;
    font-size: 60px;
    margin-right: 10px;
}

.box2 {
    flex: 2;
    max-width: 70%;
}

.profile-container {
    display: flex;
    justify-content: center;  
    align-items: center; 
}


.profile-image {
    width: 140px;     
    height: auto;
    display: block;
    margin-top: 15px;
    margin-bottom: 20px;
}

.heading {
    margin: 0;
    text-align: center;
    font-size: 50px;
    line-height: 1;
}

.sub-heading {
    text-align: center;
    margin-top: 5px;
    font-size: 25px;

}

.horizontal-line {
    height: 1px;
    background-color: #00040d;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

.image-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    background-color: white; 

}

.link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: white;
    text-align: center;
}


.link-box img {
    display: block;
    width: 93px;
    height: auto;
    cursor: pointer;
    background-color: white; 
}


.link-box button {
    border: 0px;
    padding: 0; 
    cursor: pointer; 
    background-color: white; 
    overflow: visible;

}

.link-box img:hover {
    transition: transform 0.1s ease;
    transform: scale(1.1);
}

.iconLabels {
    font-size: 14px;
}


#content-pane, #privacy-content-pane {
    display: none;
    width: 100%;
    max-width: 800px;
    height: auto;
}


.policy a, .policy p {
    font-size: 10px;
}


.policy {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

#policy-content-pane {
    display: none;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-bottom: 10px;
}

.job-header, .education-header {
    font-style: italic;
}

.job-container, .app-container .policy-container {
    padding-bottom: 15px;
    padding-bottom: 30px;
}

/* BACK TO TOP BUTTON */
.back-to-top-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.back-to-top-btn {
    padding: 10px 20px;
    background-color: #F6F6F6;
    color: #00040d;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.back-to-top-btn:hover {
    background-color: #d9d9d9;
}

/* COLLAPSIBLE CONTAINER */
.collapsible {
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
  align-items: stretch;
}


.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding-left: 10px;
  height: 50px;
  background-color: #f6f6f6;
  border-bottom: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
  position: relative;
  z-index: 999;
  pointer-events: auto;
  color: #2C3E50;
}

.collapsible-header:hover {
    background-color: #d9d9d9;
}


.collapsible-header h3 {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
  color: #00040d;
}

.header-text {
    font-size: 0.9em;
    margin-right: 20px;
    white-space: nowrap;
    color: #00040d;
}

.toggle-icon {
  transition: transform 0.4s ease;
  font-size: 25px;
  color: #00040d;
}

.toggle-icon.open {
  transform: rotate(180deg);
}


.collapsible-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  padding: 0 15px;
  background-color: #f6f6f6;
}

.collapsible.open .collapsible-content {
  padding: 15px;
}

/* GA PROJECT LAYOUT */

.project-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 15px;
}

.project-text {
    flex: 1;
}

.project-image {
    flex-shrink: 0;
    width: 250px;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.1);
}


.tooltip-container {
    position: relative;
}

.custom-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 8px;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.tooltip-container:hover .custom-tooltip {
    opacity: 1;
    transition-delay: 0.3s;
}


.dashboard-app {
  position: relative;
  width: 97%;
  height: auto;
  margin: 12px 0 18px;
  overflow: hidden;
  object-fit: contain;
  background: #d9d9d9;
  padding: 10px;
}

/* MOBILE OVERRIDES ONLY */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* Avoid accidental horizontal scrolling on phones */
body { overflow-x: hidden; }

/* Improve tap responsiveness on touch devices */
button, a, .collapsible-header {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


/* ---------------------------------- Mobile ---------------------------------- */
@media (max-width: 768px) {

  
  body {
    padding: 12px;
    justify-content: flex-start;  
    align-items: stretch;
  }

  
  .container, #policy-container,
  .top-content,
  .horizontal-line,
  .image-links,
  #content-pane, #privacy-content-pane,
  #policy-content-pane,
  .policy,
  .collapsible {
    max-width: 100% !important;
  }

  
  .top-content {
    height: auto !important;
    flex-direction: column;
    align-items: stretch;
  }

  .profile-image {
    width: 140px;     
    height: auto;
    display: block;
  }

  .box1 {
    display: flex;
  }
  
  .box1, .box2 {
    max-width: 100% !important;
    margin-right: 0 !important;
  }

  .homeHeadings {
    padding-top: 50px;
  }


  
  .heading {
    margin-left: 20px;
    font-size: 40px !important;
    line-height: 1.05;
  }

  .sub-heading {
    font-size: 18px !important;
    margin-left: 20px;
  }

  
  .text-box {
    padding: 0px 12px 0px 12px !important;
  }

  
  .image-links {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .link-box {
    padding: 8px !important;
    border: 2px solid transparent;
  }

   .link-box:active {
    border: 2px solid #f6f6f6;
  }

  .link-box img {
    width: 72px !important;
    margin: 0 auto;
  }

  /*
  .link-box img:active {
    background-color: #f6f6f6;
  }
  */


  .collapsible-header {
    height: auto !important;
    padding: 12px !important;
  }

  .collapsible-header h3 {
    font-size: 16px;
  }

  .header-text {
    white-space: normal !important;
    margin-right: 10px !important;
    font-size: .7em;
  }

  .h1 {
    text-align: center;
  }

  
  .custom-tooltip {
    display: none !important;
  }

  
  .dashboard-app {
    width: 100% !important;
  }

  .project-layout {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        max-width: 300px;
    }
}