/* styles.css - Clean, consistent theme with your colors */
:root {
  /* Light Theme (default) */
  --primary-light: #CB7885;    /* Light pink */
  --secondary-light: #D4D994;  /* Sage green */
  --accent-light:   #071E07;     /* Dark moss green */
  --bg-color-light: #FFE8d6;   /* Light yellow background */
  --card-bg-light:    #D4D994;    /* White cards */
  --text-color-light: #333333; /* Dark text */
  --border-light: #D4D994;     /* Sage green border */


  /* Dark Theme */
  --primary-dark: #6F040F;     /* Dark pink */
  --secondary-dark:   #071E07;   /* Dark green */
  --accent-dark: #D4D994;      /* Sage green accent */
  --bg-color-dark:   black; /* Beige background */
  --card-bg-dark:   #071E07;     /* Dark cards */
  --text-color-dark: white;  /* White text */
  --border-dark:   #071E07;      /* Dark green border */
  
  /* Shared variables */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 20px;
}

/* Apply light theme by default */
:root {
  --primary: var(--primary-light);
  --secondary: var(--secondary-light);
  --accent: var(--accent-light);
  --bg-color: var(--bg-color-light);
  --card-bg: var(--card-bg-light);
  --text-color: var(--text-color-light);
  --border-color: var(--border-light);
}

/* Dark theme override */
[data-theme="dark"] {
  --primary: var(--primary-dark);
  --secondary: var(--secondary-dark);
  --accent: var(--accent-dark);
  --bg-color: var(--bg-color-dark);
  --card-bg: var(--card-bg-dark);
  --text-color: var(--text-color-dark);
  --border-color: var(--border-dark);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.header {
  text-align: center;
  padding: 60px 0;
  background: var(--primary);
  color: white;
  margin-bottom: 40px;
  border-radius: var(--radius-md);
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.header p {
  font-size: 1.25rem;
}

/* Case Studies Grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}


.case-study-image img {
  width: 100%;
  height: 180px;
  object-fit: contain;  /* Shows the whole image */
  border-radius: 8px 8px 8px 8px;
  display: block;
  border: 1px solid black;
  align-self: center;
  background-color: #fefefe; 
  
}



.case-study-card {
  background: var(--card-bg);
  border-radius: 8px 8px 8px 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.case-study-image {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  background: var(--primary);
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 8px 8px;
}



/* Shimmer effect without gradient */
.case-study-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

}

.case-study-content {
  padding: 30px;
}

.case-study-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color);
}

.case-study-description {
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.7;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.read-more-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.read-more-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Case Study Detail Page */
.case-study-detail {
  display: none;
  background: var(--primary);
  border-radius: var(--radius-md);
  margin: 20px 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.5s ease-out;
}

.detail-header {
  background: var(--primary);
  color: white;
  padding: 60px 40px;
  text-align: center;
  position: relative;
}

.detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.detail-header p {
  font-size: 1.2rem;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,0.3);
}

.detail-content {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.section {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border-left: 5px solid var(--accent);
  transition: all 0.3s ease;
}

.section:hover {
  transform: translateX(5px);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.section h3 {
  font-size: 1.3rem;
  margin: 25px 0 15px;
  color: var(--text-color);
}

.section p {
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 15px;
}

.section ul {
  padding-left: 20px;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 20px;
}

.section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.image-placeholder {
  height: 250px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect for image placeholder */
.image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
}

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

.metric-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.metric-number {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.metric-label {
  color: var(--text-color);
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#themeToggle {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.2rem;
}

#themeToggle:hover {
  background: var(--secondary);
}

.dark-icon {
  display: none;
}

[data-theme="dark"] .light-icon {
  display: none;
}

[data-theme="dark"] .dark-icon {
  display: inline;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.2rem;
  }
  
  .header p {
    font-size: 1.1rem;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .detail-content {
    padding: 20px;
  }
  
  .section {
    padding: 20px;
  }
  
  .detail-header h1 {
    font-size: 1.8rem;
  }
  
  .detail-header {
    padding: 40px 20px;
  }
}
/* Designer Note Styles */
.designer-note {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
  }
  
  .designer-note p {
    margin: 5px 0;
    color: var(--text-color);
  }
  
  .fun-note {
    font-style: italic;
    opacity: 0.8;
    margin-top: 10px !important;
  }
  
  @media (max-width: 768px) {
    .designer-note {
      padding: 20px 15px;
    }
  }

  .case-study-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    background: var(--card-bg);
}

.case-study-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-study-content .read-more-btn {
    margin-top: auto;
}


.prototypes-vertical {
  display: block; /* or omit display - block is default for div */
  max-width: 340px; /* optional max width */
  margin: 0 auto;   /* center container horizontally */
  gap: 20px;        /* space between prototype blocks */
}


.prototype-gallery {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* Each image and caption block */
.prototype-item {
  width: 170%;
  margin-bottom: 2rem;
  text-align: center;
  overflow: hidden;
}

/* Image styling */
.prototype-item img {
  display: block;
  width: 170%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

/* Optional caption styling */
.caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}


.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.video-item {
    flex: 0 1 calc(48% - 10px); /* two videos per row with spacing */
    box-sizing: border-box;
}

.video-item h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .video-item {
        flex: 0 1 100%;
    }
}
