/* Base font-family and color settings */
body {
  font-family: 'Roboto', sans-serif; /* Body font */
  font-size: 1.25rem; /* Default font size for body */
  line-height: 1.6;
  color: #444444; /* Font color */
  background-color: #F8F8F8; /* Background color */
  margin: 0;
  padding: 0;
}

/* Headings font-family and color settings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif; /* Heading font */
  font-weight: 700; /* Make headings bold */
  color: #444444; /* Heading font color */
  margin-bottom: 15px;
}

/* Default Heading Sizes for 1920 resolution */
h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
  font-weight: 300;
  /*font-weight: normal;  or use a numeric value like 400 */
}

h4 {
  font-size: 1.5rem;

}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}
figcaption {
  /*font-size: 0.95rem;*/
  text-align: left;
  margin-top: 0.5em;
}

figcaption strong {
  font-weight: 700;
}

figcaption em {
  font-style: italic;
}
/*** NAV MENU ***/

/* Base styles */
/*
body {
  margin: 0;
  background-color: #F8F8F8;
  font-family: 'Roboto', sans-serif;
  color: #444444;
}
*/
header {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Header inner container */
.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Logo */
.logo {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
}

/* Smaller logo on tablets */
@media (max-width: 768px) {
  .logo {
    max-width: 80px;
  }
}

/* Even smaller logo on phones */
@media (max-width: 480px) {
  .logo {
    max-width: 50px;
  }
}
/* Apply padding only on larger screens (e.g. 769px and above) */
@media (min-width: 769px) {
  .logo {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}


/* Hamburger menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: #444;
  border-radius: 2px;
}

/* Nav menu default */
.nav-menu {
  margin-top: 20px;
  text-align: center;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-menu li a {
  text-decoration: none;
  color: #444;
  font-size: 1.25rem;
}

/* Close button */
.close-btn {
  display: none;
}

/* Small screen (mobile/tablet) */
@media (max-width: 768px) {
  .header-container {
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(248, 248, 248, 0.95);
    padding-top: 100px;
    z-index: 1000;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .nav-menu li a {
    font-size: 1.5rem;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.75rem;
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-menu.active .close-btn {
    opacity: 1;
  }

  .hamburger-menu.hide {
    display: none !important;
  }
}


/*** NAV MENU ***/
hr {
  border: none;
  border-bottom: 1px solid #444;
  margin-top: 8px;
}

/*** FORM ***/
.form-custom {
  max-width: 500px;
  margin: 50px auto;
}

.form-label {
  font-weight: 500;
  color: #444;
}

.btn-submit {
  width: 150px;
}
/*** FORM ***/

/*** ABOUT ***/
body.dark {
  --bg-color: #1c1c1c;
  --text-color: #f1f1f1;
}

.section {
  max-width: 100%;
  margin: 0 auto;

}

blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 16px;
  margin: 30px 0;
  font-style: italic;
  background-color: #eef7fc;
  color: #444;
}

body.dark blockquote {
  background-color: #2a2a2a;
  color: #ddd;
}

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.card {
  /*background-color: var(--bg-color);*/
  background-color: #FDFDFD;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.card i {
  display: block;       /* Needed to center with text-align */
  text-align: center;   /* Centers the icon horizontally */
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.card h5 {
  text-align: center;   /* Center the heading */
  margin: 10px 0;       /* Adjust spacing */
}
.card p {
  text-align: left;       /* Keep paragraph left-aligned */
  margin-top: 10px;
}

/* CTA Section */
.cta {
  text-align: left; /* Keeps text left-aligned */
  border-top: 2px solid #ddd;
  padding: 60px 40px;
  background-color: #FDFDFD;
  display: flex;  /* Apply flexbox */
  flex-direction: column;  /* Stack content vertically */
  align-items: center;  /* Horizontally center all children (like button) */
}

.cta h2 {
  margin: 0;
}

/* CTA Button Styles */
.cta-button {
  background-color: #404040;        /* Purple base */
  color: #f5f5f5;
  padding: 8px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #2f2f2f;        /* Slightly darker purple on hover */
  color: #f8f8f8;
}
@media (max-width: 768px) {
  .cta-button {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 16px;
  }
}
  

/* Toggle */
.theme-toggle {
  text-align: center;
  padding: 30px 0 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.toggle-label {
  margin-left: 10px;
  font-weight: 500;
}

/* Footer 
.footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
  background-color: var(--bg-color);
}

.resume-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 600;
}

.resume-link i {
  margin-right: 6px;
}
*/

/* FOOTER NEW */
.footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
  background-color: var(--bg-color);
  color: #444444;
}

.footer-text {
  margin: 0;
  display: inline; /* normal inline flow */
}

.separator {
  margin: 0 0.5rem;
  color: #444444;
  user-select: none;
}

.resume-link {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 600;
  transition: text-decoration 0.3s ease;
  display: inline-block;
  margin-left: 0.5rem;
}

.resume-link:hover,
.resume-link:focus {
  text-decoration: underline;
}

.resume-link i {
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 480px) {
  .footer-text, 
  .resume-link {
    display: block;
    margin: 0 auto;
  }

  .separator {
    display: none;
  }

  .resume-link {
    margin-top: 10px;
    margin-left: 0; /* reset left margin */
  }
}
/* FOOTER NEW */

@media (min-width: 700px) {
  .card-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*** ABOUT ***/

/* Gallery item styling */
.gallery-item {
  position: relative;
  overflow: hidden; /* Hide overflow for the zoom effect */
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f4f4f4; /* Default background color */
  transition: background-color 0.3s ease;
  margin-bottom: 20px; /* Space between gallery items */
  height: 100%; /* Let it be dynamic and fit the content */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Gallery item image styling */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the box without being stretched */
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
}

/* Hover effect for gallery item */
.gallery-item-1:hover {
  background-color: #B0B0B0; /* Change color on hover */
  border-color: white;
}

.gallery-item-1:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-2:hover {
  background-color: #8BB8D5; /* Change color on hover */
  border-color: white;
}

.gallery-item-2:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-3:hover {
  background-color: #E1D2B1; /* Change color on hover */
  border-color: white;
}

.gallery-item-3:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-4:hover {
  background-color: #D1D1D1; /* Change color on hover */
  border-color: white;
}

.gallery-item-4:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-5:hover {
  background-color: #B8E1E1; /* Change color on hover */
  border-color: white;
}

.gallery-item-5:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-6:hover {
  background-color: #C1D9DE; /* Change color on hover */
  border-color: white;
}

.gallery-item-6:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-7:hover {
  background-color: #D9C7B5; /* Change color on hover */
  border-color: white;
}

.gallery-item-7:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-8:hover {
  background-color: #87BCC0; /* Change color on hover */
  border-color: white;
}

.gallery-item-8:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-9:hover {
  background-color: #A1B9DF; /* Change color on hover */
  border-color: white;
}

.gallery-item-9:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-10:hover {
  background-color: #E6BFB9; /* Change color on hover */
  border-color: white;
}

.gallery-item-10:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-11:hover {
  background-color: #C2B8D6; /* Change color on hover */
  border-color: white;
}

.gallery-item-11:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

.gallery-item-12:hover {
  background-color: #BFD8BF; /* Change color on hover */
  border-color: white;
}

.gallery-item-12:hover .gallery-img {
  transform: scale(1.2); /* Zoom in effect */
}

/* Description slide-in effect at the bottom */
.description {
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  background-color: rgba(27, 28, 30, 0.9); /* #1B1C1E color with opacity */
  padding: 15px;
  color: white;
  border-radius: 0 0 5px 5px;
  transition: left 0.3s ease-in-out;
  text-align: left; /* Align text to the left */
}

.gallery-item:hover .description {
  left: 0; /* Slide in the description */
}

/* Text styling for description */
.description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Specific background colors for each gallery item */
.gallery-item-1 { background-color: #D1D1D1; }
.gallery-item-2 { background-color: #A7C7E7; }
.gallery-item-3 { background-color: #F2E8D5; }
.gallery-item-4 { background-color: #EAEAEA; }
.gallery-item-5 { background-color: #D8E8E8; }
.gallery-item-6 { background-color: #E1F1F4; }
.gallery-item-7 { background-color: #F1E4D3; }
.gallery-item-8 { background-color: #A3D2D5; }
.gallery-item-9 { background-color: #C3D9F4; }
.gallery-item-10 { background-color: #F4D8D4; }
.gallery-item-11 { background-color: #DCD4E8; }
.gallery-item-12 { background-color: #D5E8D4; }

.section-label {
  font-size: 1rem;       /* Smaller than body text */
  color: #888;              /* Subtle gray */
  text-transform: uppercase;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.5px;
}
/*** case -study 16sep25 ***/
.image-wrapper {
      position: relative;
      display: inline-block;
}
.bg-half {
      position: absolute;
      top: 50%;
      left: 0;
      width: 100vw; /* full viewport width */
      height: 50%;
      background-color: #f0ad4e; /* example background color */
      z-index: -1; /* place it behind the image */
}
img {
      display: block;
      max-width: 100%;
      height: auto;
}
  /* Desktop grid: 3 images horizontally 
  .desktop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    max-width: 1531px; /* max width matching your desktop grid width 
    margin-left: auto;
    margin-right: auto;
  }*/
  
/* Desktop 3x1 grid */
    .desktop-grid {
      display: flex;
      justify-content: center;
      gap: 16px;
      max-width: 1531px; /* total width of desktop images */
      margin: 0 auto 40px;
    }

    .desktop-grid img {
      width: 510px; /* 1531 / 3 approx */
      height: auto;
      display: block;
      object-fit: contain;
    }
  

.image-wrapper.mobile-grid {
  display: flex;
  flex-wrap: wrap;             /* Allow wrapping on narrow screens */
  justify-content: center;     /* Center images inside container */
  gap: 16px;
  max-width: 450px;            /* Two 210px images + gap */
  margin: 0 auto;
}

.image-wrapper.mobile-grid img {
  width: 210px;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;             /* Prevent overflow */
}
/* ✅ Make images larger when stacked vertically on narrow screens */
@media (max-width: 450px) {
  .image-wrapper.mobile-grid {
    flex-direction: column;
    align-items: center;
    max-width: 100%; /* allow full width */
  }

  .image-wrapper.mobile-grid img {
    width: 250px;        /* larger size in stack mode */
    max-width: 90vw;     /* but don’t overflow screen */
  }
}
/* CASE STUDY MOBILE UI GRID */
.grid-img-wrapper {
  width: 300px;
  height: 220px;
  /*background-color: #A7C7E7;*/
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden; /* clip image to wrapper's rounded corners */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px; /* actual space above the image */
  box-sizing: border-box; /* ensures padding doesn't increase height */
  /*align-items: center;          <-- vertical centering */
  justify-content: center;     /* <-- horizontal centering */
}
.grid-img-mobile {
      width: 193px;
      height: 230px;
      object-fit: cover; /* crop to fit square */
      object-position: top; /* This aligns the crop to the top */
     /* border: 1px solid #ccc;  optional border */
     /*margin-top: 10px;  <-- Adds extra space above the image */
    }
/* CASE STUDY MOBILE UI GRID */


.case-study-header {
font-family: 'Inter', 'Helvetica Neue', sans-serif;
margin-bottom: 1rem;
}
.case-study-label {
text-transform: uppercase;
color: #0070f3; /* Accent color */
font-weight: 700;
font-size: 0.875rem; /* Small label */
letter-spacing: 0.1em;
margin-bottom: 0.25rem;
}
.project-title {
font-size: 2.25rem;
font-weight: 700;
color: #111;
line-height: 1.2;
margin-bottom: 1rem;
}
.project-meta {
font-size: 1rem;
color: #555;
line-height: 1.5;
}
/*** case -study 16sep25 ***/

/*** NAV LINKS ***/
/* Wrapper for navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0;
  padding: 0 1rem;
  flex-wrap: wrap;
  overflow-x: hidden;
}

/* Common styles for all nav links */
.page-nav a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

/* Arrow spacing */
.nav-prev .nav-arrow {
  margin-right: 0.5rem; /* Space between arrow and text */
}

.nav-next .nav-arrow {
  margin-left: 0.5rem; /* Space between text and arrow */
}
.top .nav-arrow {
  margin-right: 0.5rem;
}


/* Hover effect on arrows and text */
.nav-prev:hover .nav-arrow,
.nav-prev:hover .nav-text,
.nav-next:hover .nav-arrow,
.nav-next:hover .nav-text,
.top:hover .nav-arrow,
.top:hover .nav-text {
  color: #888;
}

/* Optional: transition on default state */
.nav-arrow,
.nav-text {
  transition: color 0.3s ease;
}

/* Optional: enhance arrow appearance */
.nav-arrow {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Center Back to Top link */
.page-nav .top {
  justify-content: center;
  font-weight: 500;
}

/* Make Previous and Next text disappear on small screens */
@media (max-width: 576px) {
  .nav-prev .nav-text,
  .nav-next .nav-text {
    display: none;
  }
}
.download-icon {
  margin-right: 0.4rem;
  font-size: 1rem;
  color: inherit;
}

/*** NAV LINKS ***/


/* Responsive grid */
@media (max-width: 1440px) {
  .gallery-item {
    height: auto; /* Let the gallery item height adjust dynamically for 1440px screens */
  }
}

@media (max-width: 1200px) {
  .gallery-item {
    height: auto; /* Adjust for smaller screens like 1200px */
  }
}

@media (max-width: 992px) {
  .gallery-item {
    height: auto; /* Ensure it remains responsive for medium screens */
  }
}

@media (max-width: 768px) {
  .gallery-item {
    height: auto; /* Ensure it remains responsive for tablets */
  }
}

@media (max-width: 576px) {
  .gallery-item {
    height: auto; /* Ensure it remains responsive for small mobile screens */
  }
}
