* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* NAVBAR */
.navbar {
  background: white;
  padding:6px 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: bold;
}

.logo img {
  margin: 10%;
  padding: 10%;
  width: 80px;
}

nav a {
  margin: 0 14px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.btn-nav {
  background: #ecc847;
  padding: 8px 16px;
  border-radius: 20px;
}

body {
  background: #061f26;
  color: #ecedee;
}

/* HERO SECTION */
.case-hero {
  min-height: 60vh;
  background: linear-gradient(180deg, #31855f 0%, #8ce6df 55%, #a0e2cf 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.case-hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: #032825;
  margin-bottom: 20px;
}

.case-hero p {
  max-width: 800px;
  font-size: 18px;
  color: #032525;
  line-height: 1.6;
}

/* FILTER TABS */
.case-tabs {
  background: #0b2b35;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.case-tabs span {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  color: #cfe6e8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.case-tabs span:hover {
  background: #1c444c;
}

.case-tabs .active {
  background: #45d354;
  color: #062022;
  font-weight: 600;
}

/* CASE GRID WRAPPER */
.case-wrapper {
  padding: 80px 4%;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* CASE CARD */
.case-card {
  background: #072a33;
  border-radius: 18px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 8px;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.case-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
}

/* TAG */
.case-tag {
  display: inline-block;
  background: #143f3a;
  color: #45d354;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 14px;
  width: fit-content;
  margin-bottom: 12px;
}

/* TITLE */
.case-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* DESCRIPTION */
.case-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #bcd7dc;
  margin-bottom: 22px;
}

/* BUTTON */
.case-btn {
  display: block;
  width: 65%;
  margin: 0 auto;
  padding: 12px 0;
  margin-top: auto;
  background: #bdb03f;
  color: #062022;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.case-btn:hover {
  background: #dfe8e0;
  transform: translateY(-2px);
}

/* MAIN SECTION */
.case-section{
  padding:50px 90px;
}

/* GRID */
.case-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap: 40px;
}

/* CARD */
.case-card{
  background:#06262f;
  border-radius:18px;
  padding:22px;
  display:flex;
  flex-direction:column;
  box-shadow:0 0 0 rgba(0,0,0,0);
  transition:0.3s;
  margin-top: 10%;
}

.case-card:hover{
  transform:translateY(-6px);
}

/* IMAGE */
.case-card img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:16px;
}

/* TAG */
.tag{
  background:#0b3d30;
  color:#4ee06e;
  padding:6px 14px;
  font-size:12px;
  border-radius:20px;
  width:fit-content;
  margin-bottom:14px;
}

/* TITLE */
.case-card h3{
  font-size:20px;
  margin-bottom:14px;
  line-height:1.4;
}

/* TEXT */
.case-card p{
  font-size:14px;
  color:#b7d2cc;
  line-height:1.6;
  flex-grow:1;
}


/* html page link  buttons */
.case-btn[href$=".html"] {
  background: #bdb03f;
  color: #062022;   /* primary color */
}

.case-btn:hover[href$=".html"] {
  background-color: #168996;
}


/* CTA SECTION */
.cta-section {
  background: #043c3f;
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  color: #cdeeee;
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-btn {
  background: #58d25a;
  color: #000;
  padding: 14px 36px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #46be4b;
}

/* ===== CASE STUDIES GRID ===== */
.case-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 60px 80px;
  background-color: #021f26;
}

/* ===== CASE CARD ===== */
.case-card {
  background: #042a32;
  border-radius: 18px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
}

/* ===== IMAGE ===== */
.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
}

/* ===== TAG ===== */
.case-tag {
  display: inline-block;
  background: #0b7a46;
  color: #6bff9c;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 14px;
}

/* ===== TITLE ===== */
.case-card h3 {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* ===== DESCRIPTION ===== */
.case-card p {
  color: #a8cbd3;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* ===== DOWNLOAD BUTTON ===== */
.case-btn,
.case-card a {
  margin-top: auto;
  background: #d9c44c;
  color: #012b20;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.case-btn:hover,
.case-card a:hover {
  background: #ab8da3;
  color: rgb(2, 44, 38);
}



/* FOOTER */

.site-footer {
  background: #0f3743;
  color: #cfe1e8;
  padding: 70px 10% 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* BRAND */
.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #f5f8f6;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* LINKS */
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #cfe1e8;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #22c55e;
}

/* CONTACT */
.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-founder {
  margin-top: 15px;
  font-weight: 600;
  color: #fafdfb;
}

.footer-contact a {
  color: #ffffff;        /* white text */
  text-decoration: none;
}

.footer-contact a:visited {
  color: #ffffff;        /* visited link purple varama */
}

.footer-contact a:hover {
  color: #7fd1b9;        /* hover effect (optional) */
  text-decoration: underline;
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1f525f;
  font-size: 13px;
  color: #9fb6bf;
}

/* ============ CASE PAGE MOBILE VIEW (DOMAIN STYLE) ============ */
@media (max-width: 768px) {

  
  body {
    overflow-x: hidden;
  }

  /* NAVBAR */
  .nav-container {
    flex-direction:column;
    text-align: center;
  }

  .logo img {
    width: 60px;
    margin: 0;
    padding: 20%;
  }

  nav a {
    margin:3px 0;
    display:inline-table;
    line-height: 0%;
    font-size: 80%;
  }

  .btn-nav{
    padding: 8px;
    line-height: 110%; 
  }


  /* HERO */
  .case-hero {
    min-height: auto;
    padding: 60px 16px 40px;
  }

  .case-hero h1 {
    font-size: 30px;
    line-height: 1.3;
  }

  .case-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* FILTER TABS */
  .case-tabs {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
  }

  .case-tabs span {
    font-size: 13px;
    padding: 6px 14px;
  }

  /* MAIN WRAPPER */
  .case-wrapper,
  .case-section {
    padding: 30px 16px;
  }

  /* GRID → SINGLE COLUMN */
  .case-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  /* CARD */
  .case-card {
    padding: 20px;
    border-radius: 16px;
    margin-top: 0;
  }

  .case-card img {
    height: 180px;
    border-radius: 12px;
  }

  .case-tag,
  .tag {
    font-size: 12px;
    padding: 5px 12px;
  }

  .case-card h3 {
    font-size: 18px;
  }

  .case-card p {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
  }

  /* BUTTON – FULL WIDTH TOUCH FRIENDLY */
  .case-btn,
  .btn,
  .case-card a {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    text-align: center;
  }

  /* CTA */
  .cta-section {
    padding: 50px 16px;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .cta-section p {
    font-size: 15px;
  }

  .cta-btn {
    width: 100%;
    padding: 14px;
  }

  /* FOOTER */
  .site-footer {
    padding: 50px 16px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
}
