/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: #fff;
  background: #000;
  line-height: 1.6;
}

img, iframe {
  max-width: 100%;
}

/* Layout */
.container { display: flex; min-height: 100vh; }

/* Sidebar (on desktop/pc) */
.sidebar {
  width: 260px;
  background: #0a0a0a;
  border-right: 1px solid #222;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: 0;
  height: 100vh;
}

.logo-img {
  width: 160px;
  margin-bottom: 40px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center; /* ensures rotations pivot at center */
}

.nav ul { list-style: none; width: 100%; }
.nav li {
  padding: 12px 8px;
  margin-bottom: 6px;
  color: #aaa;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.nav li:hover { color: #fff; }
.nav li.active {
  color: #fff;
  font-weight: 600;
  border-left-color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Main */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Hero */
.hero {
  height: 500px;
  background: radial-gradient(circle at center, #1c1c1c 0%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-logo-img {
  width: 280px;
  max-width: 80%;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0% {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(255,255,255,0.35));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
  }
}

/* Scrolling */
.fade-in {
  opacity: 0;
  transform: translateY(30px); /* start slightly down */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section {
  padding: 60px 80px;
  border-bottom: 1px solid #111;
  background: #000;
  scroll-margin-top: 10px;
}

.section h2, .section h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section p {
  color: #ccc;
  max-width: 720px;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

/* Intro Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 12px;
  align-items: center;
}

.intro-left h2 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.intro-left .highlight {
  color: #08f;
}

.intro-right {
  padding-left: 0;
}

.intro-right p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: none;
  margin: 0;
  line-height: 1.5;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 32px;
  align-items: center;
  max-width: 1100px;  
  margin: 0 auto;     
}

.problem-text {
  font-size: 1.1rem;
  line-height: 1.6;
}

.problem-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.problem-img {
  width: 100%;
  max-width: 450px; 
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  object-fit: cover;
}

/* Design Section */
.design-single-column {
  max-width: 900px;
  margin: 0 auto;
}

.design-text {
  font-size: 1.1rem;
  line-height: 1.6;
}

.design-text h4 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #e5e5e5;
}

.design-inline-image {
  margin: 22px 0 28px;
  display: flex;
  justify-content: center;
}

.design-section-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 16px;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  object-fit: contain;
  background: #111;
}

.design-section-img.wide-img {
  max-width: 760px;
}

.materials-list {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

.materials-list li {
  counter-increment: item;
  margin-bottom: 4px;
}

.materials-list li::before {
  content: counter(item) ". ";
  display: inline-block;
  width: 2.2em;
  color: #ccc;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.image-row.single {
  justify-content: center;
}

.image-box {
  text-align: center;
}

.circle-img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.image-label {
  font-size: 0.9rem;
  color: white;
}

.image-label.top {
  margin-bottom: 8px;
}

.image-label.bottom {
  margin-top: 8px;
}

.process-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.process-video {
  display: flex;
  justify-content: center;
  margin: 20px 0 40px;
}

.process-video iframe {
  width: 100%;
  max-width: 640px;   /* controls video width */
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.results-container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.results-container h4 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e5e5e5;
}

.results-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0 10px;
}

.results-link {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  background: #111;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.results-link:hover {
  background: #1a1a1a;
  border-color: #666;
  transform: translateY(-1px);
}

/* Team Section */
#team {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 40px;
  margin-top: 32px;
  width: 100%;
  max-width: 1200px;
  justify-items: center;
}

.team-member:nth-child(1) { grid-column: 1; grid-row: 1; }
.team-member:nth-child(2) { grid-column: 3; grid-row: 1; }
.team-member:nth-child(3) { grid-column: 5; grid-row: 1; }
.team-member:nth-child(4) { grid-column: 2; grid-row: 2; }
.team-member:nth-child(5) { grid-column: 4; grid-row: 2; }

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid #222;
}

.team-member h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-member p {
  font-size: 0.9rem;
  color: #aaa;
}

.team-member a {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #08f;
  text-decoration: none;
}

.team-member a.linkedin-link {
  display: inline-block;
  margin-top: 6px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.team-member a.linkedin-link svg {
  width: 32px;
  height: 32px;
  fill: #08f;
}

.team-member a.linkedin-link:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #08f);
}

.team-member a:hover { text-decoration: underline; }

.social-links a svg {
  width: 28px;   
  height: 28px;
  fill: #08f;
  transition: transform 0.2s ease, filter 0.2s ease;
  vertical-align: middle; 
}

.social-links {
  display: flex;
  gap: 16px; 
  margin-top: 6px; 
}

.social-links a.instagram-link {
  margin-left: 8px; 
}

.social-links a.instagram-link svg {
  transform: scale(1.5);
  transform-origin: center;
  position: relative;
  top: 2px; 
}

.social-links a:hover svg {
  transform: scale(1.8); 
  filter: drop-shadow(0 0 6px #08f);
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .container { flex-direction: column; }

  .hero {
    display: none;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;        
    justify-content: space-between;
    align-items: center;       
    padding: 8px 12px;
    border-right: none;
    border-bottom: 1px solid #222;
    position: relative;
    top: auto;
  }

  .top {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    width: 100%;
  }

  .menu-toggle {
    display: flex;            
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    margin: 0;               
  }
  .menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* Correct hamburger to X transformation ----> STILL NEEDS TO BE FIXED*/
  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg);
  }
  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: absolute;
    top: 100%;       
    left: 0;
    width: 100%;
    background: #0a0a0a;
    border-top: 1px solid #222;
  }

  .nav.show {
    max-height: 500px; 
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .nav li {
    padding: 12px 20px;
    border: none;
    text-align: left;
  }

  .nav li.active {
    border: none;
    background: rgba(255,255,255,0.05);
  }

  .nav.show {
    display: block; 
  }

  .team-grid {
    grid-template-columns: 1fr; 
    gap: 24px;
  }

  .team-member {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .hero { height: 240px; }
  .hero-logo-img { width: 180px; }
  .section { padding: 30px 20px; }
}




@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .main {
    width: 100%;
    min-width: 0;
  }

  .hero {
    display: none;
  }

  .sidebar {
    width: 100%;
    height: auto;
    padding: 10px 16px;
    border-right: none;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0a0a0a;
  }

  .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo-img {
    width: 120px;
    margin-bottom: 0;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    width: 28px;
    height: 22px;
    margin: 0;
  }

  .menu-toggle .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
  }

  .menu-toggle .bar:nth-child(1) {
    top: 0;
  }

  .menu-toggle .bar:nth-child(2) {
    top: 9px;
  }

  .menu-toggle .bar:nth-child(3) {
    top: 18px;
  }

  .menu-toggle.open .bar:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
  }

  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open .bar:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
  }

  .nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0a0a0a;
    border-top: 1px solid #222;
  }

  .nav.show {
    max-height: 500px;
  }

  .nav ul {
    width: 100%;
    padding: 10px 0;
  }

  .nav li {
    padding: 12px 20px;
    margin-bottom: 0;
    border-left: none;
    text-align: left;
  }

  .nav li.active {
    border-left: none;
    background: rgba(255,255,255,0.05);
    border-radius: 0;
  }

  .section {
    padding: 32px 20px;
    scroll-margin-top: 72px;
  }

  .section h2,
  .section h3 {
    font-size: 1.65rem;
    margin-bottom: 16px;
  }

  .section p {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 100%;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }

  .intro-left h2 {
    font-size: 2.6rem;
    line-height: 1.05;
  }

  .intro-right p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .problem-image {
    margin-top: 8px;
  }

  .problem-img {
    max-width: 100%;
    border-radius: 12px;
  }

  .design-single-column,
  .process-container,
  .results-container {
    max-width: 100%;
  }

  .design-text {
    width: 100%;
  }

  .design-text h4,
  .results-container h4,
  .process-container h4,
  .team-member h4 {
    font-size: 1.05rem;
  }

  .design-inline-image {
    margin: 18px 0 24px;
  }

  .design-section-img,
  .design-section-img.wide-img {
    max-width: 100%;
    border-radius: 12px;
  }

  .materials-list li {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .process-video {
    margin: 16px 0 28px;
  }

  .process-video iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
  }

  .results-links {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .results-link {
    width: 100%;
    text-align: center;
  }

  #team {
    align-items: stretch;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 100%;
  }

  .team-member {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .team-member img {
    width: 130px;
    height: 130px;
  }

  .social-links {
    justify-content: center;
  }

  .footer {
    padding: 20px 16px;
    font-size: 0.85rem;
  }
}

/* Footer */
.footer {
  background: #0a0a0a;
  border-top: 1px solid #222;
  text-align: center;
  padding: 24px 16px;
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
}