/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #111;
  scroll-behavior: smooth;
}

/* Header */
header {
  padding: 20px 40px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.header-logo {
  height: 30px;
  max-height: 24px;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.nav-buttons a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.nav-buttons a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  gap: 40px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 30px;
}

.hero-button {
  padding: 12px 28px;
  background-color: #111;
  color: white;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
  margin-top: 40px;
}

.hero-button:hover {
  background-color: #333;
}

.hero-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 100px 5vw 60px;
  }

  .hero-content {
    flex: 1;
    max-width: 600px;
  }

  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    max-width: 400px;
  }
}

/* General Sections */
section {
  padding: 80px 20px;
  text-align: center;
  background-color: #fff;
}

section.case-study {
  padding: 30px 20px;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

/* About */
.about-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.85;
  color: #222;
}

.about-content h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: -0.5px;
  color: #111;
}

.about-content p {
  margin-bottom: 30px;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 8px 0;
  font-weight: 300;
}

.info-cards h3 {
  text-align: left;
}

.projects h2 {
  text-align: left;
}

.what-i-do {
text-align: left;
}

.what-i-do p {
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.what-i-do-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 40px 0 20px;
  color: #111;
}

.what-i-do ul li {
  margin: 14px 0;
  font-size: 1.05rem;
  font-weight: 100;
}

.values-section {
  padding: 4rem 1rem;
  background: #f9f9f9;
  text-align: left;
}

.values-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.values-list li {
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: left;
}

.values-list strong {
  font-weight: 500;
  color: #111;
}

/* Info Cards */
.info-cards {
  background: #f8f8f8;
  padding: 80px 20px;
  text-align: center;
}

.info-cards h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
  color: #111;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.info-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 24px;
  min-height: 100px;
  border-radius: 12px;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Project Cards */
.project-card {
  background: #f8f8f8;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 600px;
  font-weight: 100;
  text-align: left;
}

.case-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.case-details.expanded {
  max-height: 5000px; /* Large enough to show full content */
  opacity: 1;
}

.expand-toggle {
  background: none;
  border: none;
  color: #333;
  font-weight: 300;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.expand-toggle:hover {
  color: #000;
}

.how-i-work {
  padding: 4rem 1rem;
  background: #ffffff;
  text-align: left;
}

.how-i-work h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.how-i-work p,
.how-i-work li {
  font-weight: 300;
  line-height: 1.6;
  text-align: left;
}

.how-i-work ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-i-work li {
  margin-bottom: 1rem;
}

.how-i-work strong {
  font-weight: 500;
  color: #111;
}

.case-study,
.case-block,
.case-block p,
.case-block h3,
.case-block ul,
.case-block li {
  text-align: left;
}

.case-study {
  font-weight: 100;
  line-height: 1.6;
}

.case-block + .case-block {
  margin-top: 1rem; /* Controls vertical spacing between entries */
}

.case-block h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.case-subtitle {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #666;
  font-weight: 300;
}

.case-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.case-left p {
  margin-bottom: 1.25rem;
  font-weight: 100;
  font-size: 0.95rem;
  color: #111;
}

.case-left p strong {
  display: inline-block;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.case-right ul {
  padding-left: 1rem;
  list-style: none;
}

.case-right li {
  margin-bottom: 0.75rem;
  font-weight: 100;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.case-right li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: green;
  font-weight: 300;
}

.collapsed {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.project-logo {
  max-width: 120px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .case-columns {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .case-columns {
    flex-direction: column;
  }
}

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto; /* 👈 enables vertical scrolling */
  z-index: 9999;
  padding: 2rem;
}

.slide-panel.open {
  transform: translateX(0);
}

.slide-panel.hidden {
  display: none;
}

.slide-panel h4 {
  margin-top: 0;
}

.slide-panel p {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.slide-dismiss {
  display: block;
  margin: 2rem auto 0;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.slide-dismiss:hover {
  color: #000;
}

/* Optional for mobile tweaks */
@media (max-width: 480px) {
  .slide-dismiss {
    left: -28px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .slide-wrapper {
    padding: 1rem 1rem 3rem;
  }
}

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #fff;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: 2000;
  pointer-events: none;
}

.slide-panel.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}

.panel-content {
  padding: 2rem;
  height: 100%;
  overflow-y: auto;
}

.close-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.hidden {
  display: none;
}

/* Footer */
.site-footer {
  background-color: #f8f8f8;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: 80px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Mobile Fixes */
@media (max-width: 600px) {
  .about-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .about-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .header-logo {
    max-height: 22px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
  }

  .hero h1 br {
    display: inline;
  }

  .nav-buttons {
    justify-content: center;
    margin-top: 20px;
  }
}
