:root {
    --medical-green: #117B6E;
    --soft-beige: #E5E9C5;
    --dark-text: #1A1C1E;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

* { margin:0; padding:0; box-sizing: border-box; }
body { font-family: 'Alexandria', sans-serif; background: var(--bg-light); color: var(--dark-text); }

.case-study-wrapper { max-width: 1400px; margin: 0 auto; background: var(--white); }


.img-placeholder {

    
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 15px;
}


.hero-section { background: var(--bg-light); padding: 40px; position: relative; overflow: hidden; }
.header-nav { display: flex; justify-content: space-between; align-items: center; }
.designer-tag { background: var(--medical-green); color: white; padding: 5px 20px; border-radius: 20px; }
.hero-main { display: flex; justify-content: space-between; margin-top: 80px; }
.hero-mockups { position: relative; width: 50%; height: 400px; }
.phone-tilt-1 { width: 200px; height: 400px; transform: rotate(-15deg); position: absolute; left: 0; z-index: 2; }
.phone-tilt-2 { width: 200px; height: 400px; transform: rotate(5deg); position: absolute; left: 150px; top: 50px; }


.about-section { padding: 100px 10%; text-align: center; }
.section-title-pill { 
    display: inline-block; border: 2px solid var(--dark-text); 
    padding: 10px 40px; border-radius: 50px; margin-bottom: 40px; 
}
.about-content p { font-size: 1.2rem; margin-bottom: 20px; line-height: 1.6; }
.illustration-about { width: 100%; height: 300px; margin-top: 40px; }


.goals-section { padding: 80px 10%; background: var(--bg-light); }
.goal-label { background: #333; color: white; display: inline-block; padding: 10px 30px; transform: rotate(-5deg); border-radius: 10px; margin-bottom: 40px; }
.goals-container { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.goal-item { 
    background: var(--medical-green); color: white; padding: 15px 40px; 
    border-radius: 50px; width: fit-content; max-width: 80%;
}
.arrow-right { align-self: flex-start; border-bottom-left-radius: 0; transform: rotate(-2deg); }
.arrow-left { align-self: flex-end; border-bottom-right-radius: 0; transform: rotate(2deg); background: #fdfdfd; color: var(--medical-green); border: 1px solid var(--medical-green); }


.design-system { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding: 100px 10%; align-items: center; }
.color-palette { display: flex; gap: 20px; margin-top: 20px; }
.color-circle { width: 80px; height: 80px; border-radius: 10px; display: flex; align-items: flex-end; padding: 5px; font-size: 0.7rem; }
.medical-icon-set { height: 250px; width: 100%; }

.screens-showcase { padding: 80px 5%; background: #e9f0ee; text-align: center; }
.grid-title { margin: 60px 0 30px; font-weight: 800; text-decoration: underline; text-underline-offset: 10px; }
.screens-grid { display: grid; gap: 20px; margin-bottom: 40px; }
.row-4 { grid-template-columns: repeat(4, 1fr); }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.phone-v { height: 600px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.phone-v.large { height: 750px; }




.footer {
  background: #f6f6ff;
  color: black;
  padding: 70px 0 0;
  position: relative; 
  box-shadow: 0 -15px 30px rgba(108, 39, 145, 0.4);
  border-radius: 40px;
}

.footer-container{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:40px;
}

.footer-links a{
  display:block;
  color:black;
  margin:8px 0;
  text-decoration:none;
}
.footer-brand .mail {
color : black;
}
.footer-brand p {
  color :#94A3B8;
}

.footer-links h4{
  color: #94A3B8;

}




.footer-bottom{
  text-align:center;
  padding:20px 0;
  margin-top:40px;
  border-top:1px solid #333;
  color:#aaa;
}
.footer-head{
  color: #6C2791;
}


/* FIX image conflict after adding navbar css */

.case-study-wrapper img {
  width: auto;
  height: auto;
  max-width: 100%;
}

/* Hero phones */
.phone-tilt-1 img,
.phone-tilt-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Vertical screens */
.phone-v img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* About & icon images */
.illustration-about img,
.medical-icon-set img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}



/* Responsive Navbar */
@media (max-width: 991px) {

  /* ================= HERO ================= */
  .hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  .hero-mockups {
    width: 80%;
    height: auto;
    position: relative;
  }
  .phone-tilt-1, .phone-tilt-2 {
    position: relative;
    left: 0 !important;
    top: 0 !important;
    width: 70%;
    height: auto;
    margin: 20px auto;
    transform: rotate(0deg) !important;
  }
  .phone-tilt-1 img,
  .phone-tilt-2 img {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }

  /* ================= ABOUT ================= */
  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .illustration-about {
    width: 80%;
    margin: 30px auto 0 auto;
  }

  /* ================= DESIGN SYSTEM ================= */
  .design-system {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .medical-icon-set {
    width: 80%;
    margin: 30px auto 0 auto;
  }

  /* ================= SCREENS SHOWCASE ================= */
  .screens-grid {
    grid-template-columns: 1fr !important;
    max-width: 90%;
    margin: 0 auto 30px auto;
  }
  .phone-v, .phone-v.large {
    width: 80%;
    height: auto;
    margin: 0 auto;
  }

  /* ================= GOALS ================= */
  .goals-container {
    gap: 20px;
    align-items: center;
  }
  .arrow-right, .arrow-left {
    align-self: center !important;
    width: 80% !important;
    transform: rotate(0deg) !important;
    border-radius: 50px !important;
  }

  /* ================= NAVBAR ================= */
  .navbar nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
  }
  .navbar nav.active {
    display: flex;
  }
  .hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
  }
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    border-radius: 2px;
  }

}