/* --- 1. CORE STYLES & VARIABLES --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&display=swap");

:root {
  /* PURPLE THEME */
  --primary-color: #8b5cf6;
  --primary-gradient: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  --text-main: #111827;
  --text-secondary: #6b7280;
  --bg-light: #ffffff;
  --max-width: 1200px;
  --border-color: #e5e7eb;
  --header-height: 70px;
}

/* --- CUSTOM TEXT SELECTION --- */
::selection {
  background-color: #7c3aed;
  color: #ffffff;
}
::-moz-selection {
  background-color: #7c3aed;
  color: #ffffff;
}

/* --- CUSTOM SCROLLBAR --- */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* --- CUSTOM CURSOR (DESKTOP ONLY) --- */
.cursor-dot,
.cursor-outline {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-main);
  transition: width 0.2s, height 0.2s;
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}
body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(139, 92, 246, 0.1);
  border-color: transparent;
}
body.hovering .cursor-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
}

/* --- MOBILE CURSOR FIX --- */
@media (max-width: 991px) {
  * {
    cursor: auto !important;
  }

  a,
  button,
  .hamburger,
  .project-image,
  .project-images,
  .footer-link {
    cursor: pointer !important;
  }

  /* Ensure custom cursor elements are hidden */
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
}

/* --- DESKTOP CURSOR LOGIC --- */
@media (min-width: 992px) {
  html,
  a,
  button,
  input,
  textarea,
  select,
  .project-image,
  .project-images,
  .hamburger {
    cursor: none !important;
  }
  .cursor-dot,
  .cursor-outline {
    display: block;
  }
}

/* --- 2. HEADER / NAVIGATION --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: var(--header-height);
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

nav.menu-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

/* .logo {
  font-weight: 900;
  font-size: 24px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  cursor: pointer;
  z-index: 1001;
} */

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 1001;
}

.hamburger {
  display: flex;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}
.hamburger-box {
  width: 22px;
  height: 16px;
  position: relative;
}
.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hamburger span:nth-child(1) {
  top: 0px;
}
.hamburger span:nth-child(2) {
  top: 7px;
}
.hamburger span:nth-child(3) {
  top: 14px;
}
.hamburger.active span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}
.hamburger.active span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* --- FULL SCREEN OVERLAY MENU --- */
.full-screen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 990;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.full-screen-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-list {
  list-style: none;
  text-align: center;
  width: 100%;
}
.menu-list li {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.full-screen-menu.open .menu-list li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.full-screen-menu.open .menu-list li:nth-child(1) {
  transition-delay: 0.1s;
}
.full-screen-menu.open .menu-list li:nth-child(2) {
  transition-delay: 0.15s;
}
.full-screen-menu.open .menu-list li:nth-child(3) {
  transition-delay: 0.2s;
}
.full-screen-menu.open .menu-list li:nth-child(4) {
  transition-delay: 0.25s;
}

.menu-list a {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}
.menu-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  bottom: 0;
  left: 0;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.menu-list a:hover::after {
  width: 100%;
}
.menu-list a:hover {
  color: var(--primary-color);
}

/* --- 3. HERO SECTION --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.project-header {
  margin-top: 80px;
  margin-bottom: 60px;
}
.hero-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 140%;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.timeline-badge {
  color: var(--text-secondary);
  font-size: 18px;
}
.hero-showcase {
  border-radius: 24px 24px 0 0;
  height: 500px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
  position: relative;
}

.hero-showcase img {
  width: 100%;
  height: 500px;
}

#hero-cebcare-mobile {
  display: none;
}

/* --- 4. META & IMPACT --- */
.meta-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 50px;
  width: 100%;
  border-bottom: 1px solid #eee;
  padding-bottom: 40px;
}
.meta-column:first-child {
  text-align: left;
}
.meta-column:last-child {
  text-align: right;
}
.meta-column h3 {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
  letter-spacing: 0.5px;
}
.meta-column p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

.impact-box {
  border: 1px solid #8b5cf6;
  border-radius: 12px;
  padding: 32px;
  background: #fff;
  margin-bottom: 120px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.05);
}
.impact-label {
  color: #6d28d9;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  display: block;
}

.impact-text {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* --- 5. MAIN LAYOUT --- */
.content-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  max-width: var(--max-width);
  margin: 0 auto 120px;
  padding: 0 24px;
  position: relative;
}
.side-nav {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: 80vh;
  overflow-y: auto;
}

.side-nav ul {
  list-style: none;
  border-left: 2px solid #f3f4f6;
  padding-left: 0;
}
.side-nav li {
  margin-bottom: 0;
}

.side-nav a {
  display: block;
  padding: 12px 0 12px 20px;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 500;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.2s;
}

.side-nav a:hover {
  color: var(--text-main);
}

.side-nav a.active {
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
}

.mobile-contents-nav {
  display: none;
  padding: 15px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: var(--header-height);
  z-index: 980;
  overflow-x: auto;
  white-space: nowrap;
}

.mobile-contents-nav a {
  display: inline-block;
  margin-right: 20px;
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
  padding-bottom: 4px;
}

.mobile-contents-nav a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.main-story {
  max-width: 800px;
  width: 100%;
}

section.story-section {
  min-height: auto;
  margin-bottom: 100px;
  scroll-margin-top: 150px;
  padding-top: 20px;
}

h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

p {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 24px;
}

.project-ul-li {
  font-size: 18px;
  color: #4b5563;
  margin-left: 20px;
}

strong {
  color: #111827;
  font-weight: 600;
}

/* --- IMAGES & MODAL --- */
.project-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 40px 0;
}

.project-images {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
}

.white-background-image {
  box-shadow: none;
  border: none;
  margin-top: 64px;
}

@media (min-width: 992px) {
  .project-image {
    cursor: zoom-in;
  }
}

.project-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Modal Background */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* --- CUSTOM CLOSE CURSOR FOR MODAL (RESIZED SMALLER) --- */
@media (min-width: 992px) {
  .lightbox-modal {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E")
        8 8,
      auto;
  }
  .lightbox-content {
    cursor: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='6' cy='6' r='4' fill='white' stroke='black' stroke-width='1'/%3E%3C/svg%3E")
        6 6,
      auto;
  }
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

/* Process Diagram */
.process-flow {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin: 50px 0;
}
/* .process-box {
  flex: 1;
  padding: 24px;
  border-radius: 4px;
  color: #111;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
} */
.process-box:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #000;
}
.box-orange {
  background-color: #ef8a61;
}
.box-blue {
  background-color: #9cdbd9;
}
.box-green {
  background-color: #7abf66;
}
.process-title {
  font-family: "Caveat", cursive;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 12px;
}
.process-desc {
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-style: italic;
  opacity: 0.9;
}

.view-all-link {
  margin-bottom: 14px;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(135deg, #1a1033 0%, #0d0a1c 100%);
  color: #ffffff;
  padding: 80px 0 30px;
  font-family: "Inter", sans-serif;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-heading-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 16px;
  opacity: 1;
}

.footer-heading-label::before {
  content: "✦";
  margin-right: 8px;
  font-size: 16px;
}

.footer-heading {
  font-size: 48px;
  font-weight: 800;
  line-height: 135%;
  letter-spacing: -1px;
  color: #ffffff;
}
.footer-heading span {
  color: #9ca3af;
  display: block;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  padding-top: 40px;
}

.footer-link {
  color: #d1d5db;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom-content {
  margin-bottom: 60px;
}

.contact-label {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 8px;
  display: block;
}

.contact-email {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.contact-email::after {
  content: "↗";
  margin-left: 8px;
  font-size: 18px;
}

/* .footer-logo-large {
  font-size: 120px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -4px;
  line-height: 1;
  margin-top: 40px;
  display: flex;
  align-items: center;
} */

.footer-logo-icon {
  width: 100px;
  height: 100px;
  margin-right: 20px;
  fill: #ffffff;
}
.footer-copyright-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #9ca3af;
}
.footer-social-links a {
  color: #9ca3af;
  margin-left: 24px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-social-links a:hover {
  color: #ffffff;
}

/* --- 6. RESPONSIVE QUERIES --- */
@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .side-nav {
    display: none;
  }
  .mobile-contents-nav {
    display: block;
  }
  .meta-grid {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 10px;
  }
  .meta-column:last-child {
    text-align: left;
  }

  .hero-showcase img,
  .hero-showcase {
    height: 350px;
  }
  .process-flow {
    flex-direction: column;
  }
  .process-box:not(:last-child):after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -25px;
    transform: translateX(-50%);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links-col {
    align-items: flex-start;
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .footer-heading {
    font-size: 36px;
  }

  .footer-logo-icon {
    width: 60px;
    height: 60px;
    margin-right: 16px;
  }
  .footer-copyright-bar {
    flex-direction: column;
    gap: 20px;
  }
  .footer-social-links a {
    margin: 0 12px;
  }

  /* FIXED SPACING FOR MOBILE/TABLET */
  section.story-section {
    margin-bottom: 40px;
    padding-top: 40px;
  }

  .impact-box {
    margin-bottom: 70px;
  }

  .scrolling-text-container {
    display: none;
  }

  .timeline-badge {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-showcase img,
  .hero-showcase {
    height: auto;
  }

  #hero-cebcare-mobile {
    display: block;
  }

  #hero-cebcare-web {
    display: none;
  }
  .impact-box {
    padding: 24px;
  }
  .impact-text {
    font-size: 18px;
  }
  .menu-list a {
    font-size: 32px;
  }
  .footer-heading {
    font-size: 32px;
  }

  .footer-logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }

  .project-header {
    margin-top: 60px;
  }

  section.story-section {
    padding-top: 20px;
  }
}

/* Next Case Study */
/* --- NEXT PROJECT SECTION (INFINITE SCROLL & HOVER) --- */
.next-project-section {
  position: relative;
  overflow: hidden; /* Hides the scrolling text when it goes off-screen */
  background-color: var(--bg-light);
  /* Ensure it sits above footer but below nav */
  z-index: 10;
}

/* 1. The Background Scrolling Text Area */
.scrolling-text-container {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%); /* Center vertically */
  z-index: 0; /* Sits behind content */
  pointer-events: none; /* Ensures mouse clicks go through to the card */
  user-select: none;
}

.scrolling-text-inner {
  display: flex;
  white-space: nowrap; /* Forces text into one long line */
  /* The infinite animation loop */
  animation: scroll-text 5s linear infinite;
}

/* Styling the giant background text */
.scrolling-text-inner span {
  font-size: 12vw; /* Huge, responsive font size */
  font-weight: 900;
  text-transform: uppercase;
  color: #9b9b9b; /* Very subtle light gray initially */
  /* Crucial smooth transition for the hover effect */
  transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
  padding-right: 50px;
  line-height: 1;
}

/* The Animation Keyframes */
@keyframes scroll-text {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  } /* Move half width because we duplicated text */
}

/* 2. The Foreground Content */
.next-project-content {
  position: relative;
  z-index: 2; /* Sits on top of background text */
}

/* The clickable card wrapper */
.next-project-card {
  display: block; /* Makes the whole anchor behave like a block */
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  /* Additional Animation: A subtle lift and scale up of the container */
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Wrapper to clip image zoom */
.image-overflow-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
  transition: box-shadow 0.6s ease;
}

.next-project-image {
  width: 100%;
  height: auto;
  display: block;
  /* Initial state: slightly zoomed in so we can zoom out */
  transform: scale(1.05);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.next-project-title {
  font-size: 32px;
  line-height: 140%;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

/* --- HOVER INTERACTIONS --- */

/* Interaction 1: Fade background text on section hover */
.next-project-section:hover .scrolling-text-inner span {
  color: #d8d8d8; /* Turn almost white */
  opacity: 0.6; /* Becomes barely visible */
}

/* Interaction 2: When hovering the CARD specifically */
.next-project-card:hover {
  /* Lift the whole card up slightly */
  transform: translateY(-20px);
}

.next-project-card:hover .image-overflow-wrapper {
  /* Increase shadow for depth */
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

/* Interaction 3: Zoom OUT the image */
.next-project-card:hover .next-project-image {
  /* Scale back down to 1 (zooming out from 1.05) */
  transform: scale(1);
}

.next-project-card:hover .next-project-title {
  color: var(--primary-color);
}

/* Responsive adjustments for the new section */
@media (max-width: 992px) {
  .scrolling-text-inner span {
    font-size: 15vw;
  } /* Larger relative text on tablets */
  .next-project-title {
    font-size: 32px;
  }

  .content-wrapper {
    margin-bottom: 60px;
  }

  .next-project-section {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .next-project-section {
    padding: 50px 0 80px 0;
  }
  .scrolling-text-inner span {
    font-size: 20vw;
  } /* Even larger on mobile */
  .next-project-title {
    font-size: 24px;
  }
  /* Disable complex hover lifts on mobile for better performance */
  .next-project-card:hover {
    transform: none;
  }

  .content-wrapper {
    margin-bottom: 0px;
  }
}

/* Image - Home */
/* --- FEATURE IMAGE SECTION --- */
.feature-image-section {
  width: 100%;
  padding: 0;
  /* Add spacing before the next section */
  margin-bottom: 120px;
}

.feature-image-wrapper {
  width: 100%;
  /* Define a tall height for impact */
  height: auto;
  max-height: 720px;
  /* CRITICAL: Hide the overflow so the zoomed image doesn't spill out */
  overflow: hidden;
  position: relative;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Optional: Center the image focus */
  object-position: center center;
}

#gallery-mobile {
  display: none;
}

/* Home Page */
/* --- Home HERO SECTION (WHITE THEME) --- */

/* 1. The Outer Wrapper */
.about-hero-wrapper {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;

  /* WHITE BACKGROUND */
  background-color: #ffffff;

  position: relative;
  overflow: hidden;
}

/* 2. The Inner Grid */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: -10px;
}

/* Typography - Dark Text for White Background */
.about-hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 125%;
  color: #111827; /* Dark Black/Gray */
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.highlight-text {
  color: #8b5cf6; /* Primary Purple (Darker for contrast on white) */
  position: relative;
  display: inline-block;
}

.about-hero-text p {
  font-size: 20px;
  color: #4b5563; /* Medium Gray */
  line-height: 1.6;
  max-width: 500px;
}

/* Image Styling */
.about-hero-image-wrapper {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.image-card {
  border-radius: 24px;
  overflow: hidden;

  /* Soft Shadow for Light Mode */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

  background: #ffffff;
  transform: rotate(2deg);
  transition: transform 0.3s ease;

  /* Simple light border */
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px;
}

.about-hero-image-wrapper:hover .image-card {
  transform: rotate(0deg);
}

.hero-portrait {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  display: block;
}

.floating-badge {
  position: absolute;
  bottom: 40px;
  left: 20px;
  /* Primary Purple Gradient */
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
  font-size: 14px;
  letter-spacing: 0.5px;
  z-index: 3;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .about-hero-text h1 {
    font-size: 42px;
  }

  .about-hero-grid {
    margin-top: 0px;
  }
}

@media (max-width: 768px) {
  .about-hero-wrapper {
    min-height: auto;
    padding-top: 40px;
  }
  .about-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-hero-text p {
    margin: 0 auto;
  }
  .image-card {
    transform: rotate(0deg);
  }
  .floating-badge {
    display: none;
    left: 50%;
    transform: translateX(-50%);
  }

  .view-all-link {
    display: none;
  }

  #gallery-web {
    display: none;
  }

  #gallery-mobile {
    display: block;
  }
}

/* --- SELECTED WORKS SECTION --- */
.selected-works-section {
  padding-bottom: 120px;
}

/* Header with "View All" link */
.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0;
}

.view-all-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color); /* Uses your purple variable */
  transition: transform 0.2s ease;
}

.view-all-link:hover {
  transform: translateX(5px); /* Subtle arrow movement */
}

/* The Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 Columns */
  gap: 40px;
}

/* Card Styling */
.project-card-mini {
  display: block;
  text-decoration: none;
  group: hover; /* Setup for hover group */
}

.mini-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; /* Standard portfolio shape */
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
}

/* Hover Effect: Lift and Shadow */
.project-card-mini:hover .mini-image-wrapper {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mini-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Hover Effect: Zoom Image */
.project-card-mini:hover .mini-project-image {
  transform: scale(1.05);
}

.overlay-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  opacity: 0; /* Hidden by default */
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Show tag on hover */
.project-card-mini:hover .overlay-tag {
  opacity: 1;
  transform: translateY(0);
}

.mini-project-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.project-card-mini:hover h3 {
  color: var(--primary-color); /* Purple on hover */
}

.mini-project-info p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
    gap: 60px;
  }

  .works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- ZOOM OUT ANIMATION STYLES --- */

/* 1. Starting State (Before it enters viewport) */
.zoom-out-on-scroll {
  /* Start zoomed IN */
  transform: scale(1.3);
  /* Define a very slow, smooth transition */
  transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Performance optimization */
  will-change: transform;
}

/* 2. Ending State (When it enters viewport) */
/* The JS adds the '.is-visible' class */
.zoom-out-on-scroll.is-visible {
  /* Return to normal size */
  transform: scale(1);
}

/* --- RESPONSIVE FIXES (TABLET & MOBILE) --- */

/* 1. TABLET VIEW (768px - 992px) */
@media (max-width: 992px) {
  /* Fix Hero Spacing */
  .about-hero-wrapper {
    /* Stop forcing 80% screen height on tablets */
    min-height: auto;
    /* Reduce top/bottom padding significantly */
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .about-hero-grid {
    /* Remove the negative margin which causes alignment issues on smaller screens */
    margin-top: 0;
    /* Reduce the gap between text and image */
    gap: 40px;
    /* Ensure content is centered if it wraps */
    align-items: center;
  }

  .about-hero-text h1 {
    font-size: 42px; /* Smaller heading */
    margin-bottom: 16px;
  }

  .about-hero-text p {
    font-size: 18px;
  }

  /* Fix Feature Image Spacing */
  .feature-image-section {
    /* Reduce the huge 120px gap to 60px */
    margin-bottom: 80px;
  }

  /* Fix Selected Works Spacing */
  .selected-works-section {
    padding-bottom: 80px;
  }

  .works-header {
    margin-bottom: 30px;
  }
}

/* 2. MOBILE VIEW (Below 768px) */
@media (max-width: 768px) {
  .about-hero-wrapper {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .about-hero-grid {
    grid-template-columns: 1fr; /* Stack vertically */
    text-align: center;
    gap: 40px;
  }

  .about-hero-text p {
    margin: 0 auto; /* Center the paragraph text */
  }

  /* Image adjustments */
  .about-hero-image-wrapper {
    margin-top: 0;
  }

  .image-card {
    transform: rotate(0deg); /* Remove tilt on mobile */
    max-width: 350px; /* Limit width so it doesn't look huge */
    margin: 0 auto;
  }

  .floating-badge {
    left: 50%;
    transform: translateX(-50%); /* Center badge */
    bottom: 20px;
  }

  /* Grid Fixes */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-title {
    font-size: 28px;
  }
}

/* About Us */
/* --- MINIMAL ABOUT PAGE STYLES --- */

/* 1. Header Alignment */
.about-header {
  text-align: left; /* Desktop: Left Align */
}

.about-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 0;
  color: #111827;
}

/* 2. Main Grid Layout (Desktop) */
.about-grid-minimal {
  display: grid;
  /* Desktop: Image takes 1 part, Text takes 2 parts */
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

/* Image Styles */
.minimal-portrait-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}

.minimal-portrait {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.minimal-portrait-wrapper:hover .minimal-portrait {
  filter: grayscale(0%);
}

/* Text Styles */
.minimal-text-col {
  padding-top: 10px;
}

.min-subhead {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3af;
  margin-bottom: 24px;
  font-weight: 600;
  display: block;
}

.bio-block {
  margin-bottom: 40px;
}

.bio-block p {
  font-size: 20px;
  line-height: 1.6;
  color: #111;
  margin-bottom: 24px;
  max-width: 700px;
}

.project-image {
  width: 100%;
}

/* --- RESPONSIVE LOGIC --- */

/* 1. TABLET VIEW (768px - 992px) */
/* Professional Dual Column Layout */
@media (max-width: 992px) {
  .about-content-wrapper {
    padding-bottom: 80px;
  }

  .about-grid-minimal {
    /* TABLET: Equal width columns (Side by Side) */
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: normal; /* Center text vertically with image */
  }

  .minimal-portrait-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .bio-block p {
    font-size: 20px; /* Slightly smaller for tablet */
  }

  .minimal-text-col {
    padding-top: 0px;
  }
}

/* 2. MOBILE VIEW (Below 768px) */
/* Stacked Layout + Centered Header */
@media (max-width: 768px) {
  /* FORCE HEADER TO CENTER */
  .about-header {
    text-align: center !important;
  }

  .about-grid-minimal {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 40px;
  }

  .minimal-portrait-wrapper {
    max-width: 100%; /* Limit image size */
    margin: 0 auto; /* Center image */
  }

  .about-content-wrapper {
    padding-bottom: 0px;
  }

  .bio-block p {
    font-size: 18px; /* Mobile font size */
  }

  .about-header h1,
  .about-hero-text h1 {
    line-height: 125%;
  }
}

/* --- RESUME DOWNLOAD SECTION --- */
/* --- RESUME DOWNLOAD SECTION --- */
.resume-section {
  padding: 120px 0;
  background-color: #f8fafc;
  text-align: center;
  /* 1. Updated Margin Top to match the bottom spacing perfectly (Symmetry) */
  margin-top: 120px;
  margin-bottom: 120px;
  border-radius: 24px;
}

.resume-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.resume-text {
  font-size: 20px;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.resume-btn {
  background-color: #1f2937;
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.resume-btn:hover {
  background-color: #111;
}

/* --- MODAL STYLES --- */
.resume-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Custom "Close" Cursor on Overlay (Desktop Only) */
@media (min-width: 992px) {
  .resume-modal-overlay {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E")
        12 12,
      auto;
  }
}

.resume-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.resume-modal-box {
  background: #fff;
  width: 90%;
  max-width: 450px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  text-align: left;
  cursor: auto;
}

.resume-modal-overlay.active .resume-modal-box {
  transform: scale(1);
}

/* 2. Smaller Close Button */
.modal-close-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  /* Reduced from 30px to 24px to match your project page style */
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close-icon:hover {
  color: #111;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111;
}

.modal-desc {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* --- PASSWORD INPUT & ICONS --- */
.password-input-wrapper {
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding: 14px;
  padding-right: 50px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.password-input-wrapper input:focus {
  border-color: #8b5cf6;
}

.eye-icon-wrapper {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  padding: 5px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.eye-icon-wrapper:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

.eye-icon-wrapper svg {
  display: block;
}

.error-text {
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.modal-submit-btn {
  width: 100%;
  background-color: #1f2937;
  color: #fff;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-submit-btn:hover {
  opacity: 0.9;
}

/* Shake Animation */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}
.shake-animation {
  animation: shake 0.3s ease-in-out;
  border-color: #ef4444 !important;
}

/* --- 3. RESPONSIVE ADJUSTMENTS --- */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .about-header h1 {
    font-size: 42px;
  }

  .resume-section {
    padding: 80px 0;
    /* Scaled down spacing for tablet */
    margin-top: 0px;
    margin-bottom: 80px;
  }
  .resume-title {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .resume-section {
    padding: 60px 20px;
    /* Minimal spacing for mobile */
    margin-top: 60px;
    margin-bottom: 80px;
    border-radius: 16px;
  }
  .resume-title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .resume-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .resume-btn {
    width: 100%;
    padding: 14px;
  }

  /* Modal Adjustments */
  .resume-modal-box {
    padding: 30px 24px;
    width: 95%;
  }
  .modal-title {
    font-size: 22px;
  }
  /* Ensure Close button isn't too small to tap on mobile */
  .modal-close-icon {
    font-size: 24px;
    top: 15px;
    right: 15px;
  }
}

/* Work Page */
body.carousel-clean-page {
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
}

:root {
  /* Carousel Dimensions */
  --card-width-desktop: 1000px;
  --card-height-desktop: 600px;
  --card-gap: 40px;
}

/* --- CAROUSEL SECTION --- */
.carousel-section {
  width: 100%;
  position: relative;
  /* padding: 0px 0 120px 0; */
  margin-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  padding: 10px 0 0 0;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--card-gap);
  width: max-content;
  margin: 0 auto;
  will-change: transform;
}

/* --- CAROUSEL CARDS --- */
.ui-card {
  width: var(--card-width-desktop);
  height: var(--card-height-desktop);
  flex-shrink: 0;

  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
  opacity: 0.4;
  transform: scale(0.9);
  cursor: pointer;
}

.ui-card.active {
  opacity: 1;
  transform: scale(1);
  /* box-shadow: 0 30px 60px rgba(139, 92, 246, 0.05); */
  z-index: 10;
}

.ui-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
}

.ui-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ui-card.active:hover .ui-card-overlay {
  opacity: 1;
}

.ui-card-title {
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.ui-card.active:hover .ui-card-title {
  transform: translateY(0);
}

/* --- NAVIGATION ARROWS --- */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background-color: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 40px;
}
.next-btn {
  right: 40px;
}
.nav-btn svg {
  width: 24px;
  height: 24px;
}

/* --- LIGHTBOX STYLES --- */
/* Note: You might already have some of these in style.css, ensure no duplicates */
.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3010;
}
.lb-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}
.lb-prev {
  left: 30px;
}
.lb-next {
  right: 30px;
}
.lb-nav-btn svg {
  width: 24px;
  height: 24px;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  :root {
    --card-width-desktop: 600px;
    --card-height-desktop: 400px;
  }
  .prev-btn {
    left: 20px;
  }
  .next-btn {
    right: 20px;
  }

  /* Disable custom cursor on this page */
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }

  .carousel-section {
    margin-bottom: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --card-width-desktop: 300px;
    --card-height-desktop: 200px;
    --card-gap: 20px;
  }
  .nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
  }
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
  .lb-prev {
    left: 10px;
  }
  .lb-next {
    right: 10px;
  }
}

/* --- WORK PAGE (CLEAN LAYOUT) --- */

/* Specific layout for the clean work page */
body.work-clean-page {
  background-color: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center; /* Vertical Center */
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Container */
.work-list-section {
  width: 100%;
  max-width: 1200px; /* Max width variable */
  padding: 0 24px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* --- WIDE PROJECT CARD --- */
.work-card-wide {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease;
  text-decoration: none;
  height: 480px;
  cursor: pointer;
}

.work-card-wide:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Left Side: Content */
.card-content-col {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 28px;
  font-weight: 800;
  color: #111827; /* Dark Text */
  margin-bottom: 20px;
  line-height: 1.1;
}

.card-desc {
  font-size: 18px;
  color: #6b7280; /* Secondary Text */
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 90%;
}

.card-spacer {
  flex-grow: 1; /* Pushes button to bottom */
}

/* Button */
.card-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background-color: #111;
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 40px;
}

.work-card-wide:hover .card-btn {
  background-color: #8b5cf6; /* Primary Purple */
  padding-right: 34px;
}

.card-btn svg {
  width: 0;
  height: 16px;
  margin-left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.work-card-wide:hover .card-btn svg {
  width: 16px;
  margin-left: 8px;
  opacity: 1;
}

/* Right Side: Image */
.card-image-col {
  flex: 1.2;
  position: relative;
  overflow: hidden;
  background-color: #f3f4f6;
}

.card-image {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-position: top left;
  transition: transform 0.6s ease;
}

#ecommerce-project-tab1 {
  display: none;
}

#ceb-project-tab1 {
  display: none;
}

.work-card-wide:hover .card-image {
  transform: scale(1.03);
}

.work-subtexts {
  width: 60%;
  text-align: center;
  margin: 0 auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .work-card-wide {
    flex-direction: column-reverse; /* Image Top, Content Bottom */
    height: auto;
  }
  .card-image-col {
    height: 300px;
    flex: none;
  }
  .card-content-col {
    padding: 40px 30px;
  }

  .card-btn {
    font-size: 13px;
  }
  .work-subtexts {
    width: 65%;
  }

  #ecommerce-project-tab1 {
    display: block;
  }

  #ecommerce-project-web1 {
    display: none;
  }

  #ceb-project-tab1 {
    display: block;
  }

  #ceb-project-web1 {
    display: none;
  }
}

@media (max-width: 768px) {
  .work-list-section {
    padding: 40px 20px;
  }
  .card-title {
    font-size: 24px;
  }
  .card-desc {
    font-size: 16px;
  }
  .card-content-col {
    padding: 30px 24px;
  }

  .card-btn {
    font-size: 12px;
  }

  .carousel-viewport {
    padding-top: 0px;
  }

  .work-subtexts {
    width: 95%;
  }

  #ecommerce-project-tab1 {
    display: none;
  }

  #ecommerce-project-web1 {
    display: block;
  }

  #ceb-project-tab1 {
    display: none;
  }

  #ceb-project-web1 {
    display: block;
  }
}
