/* 
  =========================================
  Portfolio Style Sheet - Home Page
  =========================================
*/

/* --- Local Font Declarations --- */
@font-face {
  font-family: 'BBHBartle';
  src: url('fonts/BBHBartle-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Prompt';
  src: url('fonts/Prompt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Prompt';
  src: url('fonts/Prompt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Prompt';
  src: url('fonts/Prompt-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}

/* --- CSS Variables & Design System --- */
:root {
  --bg-color: #03081e;
  --card-bg-color: #020b1f;
  --accent-mint: #5dfdcb;
  --accent-blue: #0140ed;
  --accent-pink: #f216a6;
  --accent-yellow: #ffe41a;
  --text-white: #ffffff;
  --text-gray: #b3c5e7;
  
  --font-headings: 'BBHBartle', sans-serif;
  --font-body: 'Prompt', sans-serif;
}

/* Custom Text Highlight Selection Color */
::selection {
  background-color: var(--accent-mint);
  color: var(--bg-color); /* Dark blue text for maximum readability on mint green */
}
::-moz-selection {
  background-color: var(--accent-mint);
  color: var(--bg-color);
}

/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevents horizontal scroll on all devices */
}

body {
  background-color: var(--bg-color);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* Base Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Global Section Spacing */
section {
  position: relative;
  padding: 100px 0;
  scroll-margin-top: 130px; /* Offset for fixed header + 50px breathing room above section headings */
}

/* Global Heading Style */
.section-heading {
  font-family: var(--font-headings);
  color: var(--accent-mint);
  font-size: clamp(22px, 5vw, 64px);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 2px;
  line-height: 1.1;
}

/* --- Background Orbits & Stars --- */
.space-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden; /* Clips absolute-positioned orbits/stars extending off-screen to prevent horizontal scroll */
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.orbit-yellow-top {
  width: 1300px;
  height: 1300px;
  border-color: rgba(255, 228, 26, 0.12);
  top: 400px;
  left: 50%;
}

.orbit-white-top {
  width: 950px;
  height: 950px;
  border-color: rgba(255, 255, 255, 0.08);
  top: 400px;
  left: 50%;
}

.orbit-yellow-bottom {
  width: 900px;
  height: 600px;
  border-radius: 50% / 50%; /* Ellipse shape */
  border-color: rgba(255, 228, 26, 0.15);
  bottom: 300px;
  left: 50%;
  transform: translate(-50%, 50%) rotate(-15deg);
}

.star {
  position: absolute;
  pointer-events: none;
  animation: pulse 4s infinite ease-in-out;
  z-index: 1;
}

.star-w1 { top: 15%; left: 10%; width: 20px; animation-delay: 0s; }
.star-y1 { top: 22%; left: 85%; width: 16px; animation-delay: 1.5s; }
.star-w2 { top: 35%; left: 92%; width: 24px; animation-delay: 0.8s; }
.star-w3 { top: 48%; left: 5%; width: 18px; animation-delay: 2.2s; }
.star-y2 { top: 60%; left: 88%; width: 22px; animation-delay: 1.1s; }
.star-w4 { top: 72%; left: 15%; width: 25px; animation-delay: 0.3s; }
.star-y3 { top: 88%; left: 80%; width: 18px; animation-delay: 2.5s; }
.star-w5 { top: 92%; left: 25%; width: 20px; animation-delay: 1.7s; }

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* --- Header / Navigation --- */
header {
  position: fixed; /* Header stays at the top of the viewport when scrolling */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0; /* Compact header height */
  background-color: rgba(3, 8, 30, 0.8); /* Glassmorphic background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: rotate(5deg) scale(1.05);
}

/* Desktop Navigation */
nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--accent-mint);
  text-shadow: 0 0 10px rgba(93, 253, 203, 0.4);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-white);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 150px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-headings);
  color: var(--accent-mint);
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 600px;
}

.hero-subtitle span {
  display: block;
  font-weight: 600;
}

/* Buttons (Pill Outline style) */
.btn-pill {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--text-white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border: 3px solid var(--accent-pink);
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.3s ease, 
              background-color 0.3s ease,
              border-color 0.3s ease;
  z-index: 5;
}

.btn-pill:hover {
  transform: scale(1.05);
  background-color: rgba(242, 22, 166, 0.08);
  box-shadow: 0 0 22px rgba(242, 22, 166, 0.55), 0 0 10px rgba(242, 22, 166, 0.3);
}

.arrow-down-btn {
  margin-top: 40px;
  background: none;
  border: none;
  cursor: pointer;
  animation: bounce 2s infinite;
  transition: transform 0.3s ease;
}

.arrow-down-btn img {
  width: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* --- About Section ("NICE TO MEET U!") --- */
.about {
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr; /* Cohesive bento-style layout split */
  gap: 30px;
  align-items: stretch; /* Forces equal heights for both cards, ensuring perfect alignment */
  margin-top: 120px; /* Pushed down significantly to clear heading and allow space for profile photo */
}

/* Modern Bio Card using Speech Bubble SVG */
.bio-card {
  background-image: url('assets/vector assets/speechBubbleHomeScreen.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  border-radius: 0;
  padding: 75px 85px 85px 90px; /* Ample left & right padding so text stays comfortably clear of both left and right bubble curves */
  display: flex;
  align-items: center;
  gap: 35px;
  position: relative; /* Position relative to allow absolute positioning of the photo */
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.bio-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 15px rgba(93, 253, 203, 0.35)); /* Mint green outer glow on hover */
}

.bio-photo-wrapper {
  position: absolute;
  top: 0;
  left: 18%; /* Positioned on the top-left curve of the speech bubble */
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  z-index: 10;
}

.bio-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--text-white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.bio-sparkles {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  pointer-events: none;
}

.bio-text-wrapper {
  flex-grow: 1;
}

.bio-text {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-white);
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}

/* Modern Tools Card */
.tools-card-modern {
  background-color: var(--card-bg-color);
  border: 4px solid #ffffff;
  border-radius: 64px; /* More rounded corners */
  padding: 30px 25px; /* Slightly reduced padding to match smaller height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Spacing below title */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease;
  height: 86%; /* Matches the visual height of the speech bubble body (excluding tail) */
  align-self: flex-start; /* Aligns with the top edge of the speech bubble */
}

.tools-card-modern:hover {
  border-color: var(--accent-pink);
  transform: translateY(-4px);
}

.tools-card-title {
  font-family: var(--font-body); /* Changed to body font (Prompt) */
  font-weight: 600;
  font-style: italic; /* Changed to italic style */
  color: var(--accent-yellow); /* Changed to yellow */
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tools-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 25px; /* Equal horizontal and vertical spacing */
  justify-content: center;
  width: auto;
}

.tool-icon {
  width: 68px; /* Increased box size for larger presence */
  height: 68px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-blue);
  border-radius: 16px;
  padding: 8px; /* Reduced padding to make graphic icons larger inside the box */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-icon:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 0 15px rgba(1, 64, 237, 0.6);
}

/* --- Explore My Work Section --- */
.work {
  z-index: 2;
}

.work-title-container {
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 100px; /* Increased to give breathing room between the title wave and the folder cards */
}

.work-underline {
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 12px;
  background-image: url('assets/vector assets/yellowLine.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

/* Folder Card */
.folder-card {
  position: relative;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 421 / 414;
  background-image: url('assets/vector assets/folderDesignHomeScreen.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
  text-decoration: none;
}

.folder-card:hover {
  transform: translateY(-12px) scale(1.02);
  filter: drop-shadow(0 15px 25px rgba(1, 64, 237, 0.25));
}

.folder-content {
  position: absolute;
  top: 30%; /* Generous, equalized top margin from the blue cover border */
  left: 20%; /* Generous, equalized left margin from the blue cover border */
  right: 17%; /* Generous, equalized right margin for icon */
  bottom: 14%; /* Generous, equalized bottom margin for icon */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.folder-title {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  font-style: italic;
  color: var(--accent-yellow);
  line-height: 1.25;
}

.folder-icon-wrapper {
  align-self: flex-end;
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
}

.folder-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Motion Playground Section --- */
.playground-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-top: -35px;
  margin-bottom: 60px;
  font-size: 18px;
  font-weight: 400;
}

.playground-video-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* Concentric Bubbles BG */
.blue-bubbles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1100px; /* Increased width to span more screen area */
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  animation: floatBubbles 8s ease-in-out infinite; /* Added gentle floating background animation */
}

@keyframes floatBubbles {
  0% {
    transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-15px) rotate(2deg); /* Gentle drift and sway */
  }
  100% {
    transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
  }
}

/* Video Card Block */
.video-card-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-card {
  width: 320px;
  height: 420px;
  background-color: var(--card-bg-color);
  border: 5px solid #ffffff;
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
}

.video-card:hover {
  transform: scale(1.03);
  border-color: var(--accent-pink);
}

.play-button {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.video-card:hover .play-button {
  transform: scale(1.15);
}

/* AE Tag on video card */
.ae-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--accent-blue);
  color: var(--accent-yellow);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 18px;
}

.video-label {
  margin-top: 15px;
  color: var(--accent-yellow);
  font-family: var(--font-body);
  font-weight: 600;
  font-style: italic;
  font-size: 16px;
}

/* --- Let's Talk Section --- */
.talk {
  z-index: 2;
}

.talk .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px; /* Unified, even vertical spacing between heading, bubble, and button */
}

.email-bubble-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.email-bubble {
  background-image: url('assets/vector assets/speechBubble.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 640px; /* Reduced from 820px to make it smaller and more elegant */
  aspect-ratio: 820 / 176;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding-bottom: 52px; /* Increased to push text upwards, centering it vertically in the bubble body */
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
}

.email-text {
  color: var(--accent-yellow); /* Changed to yellow */
  font-family: var(--font-body);
  font-weight: 600;
  font-style: italic; /* Changed to italic */
  font-size: clamp(16px, 2.5vw, 26px); /* Reduced from 36px to fit visual hierarchy */
  letter-spacing: 0.5px;
  transition: text-shadow 0.3s ease;
}

.email-bubble:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 10px 20px rgba(1, 64, 237, 0.3));
}

.email-bubble:hover .email-text {
  text-shadow: 0 0 15px rgba(254, 221, 59, 0.4);
}

.talk-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-color);
  padding: 80px 0 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
}

.footer-left {
  justify-self: start;
}

.see-you-soon {
  font-family: var(--font-headings);
  color: var(--accent-pink);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-logo img {
  height: 70px;
  width: auto;
}

.footer-right {
  justify-self: end;
}

/* Footer Nav Pills */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid var(--accent-blue);
  border-radius: 30px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.footer-nav a:hover {
  background-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 64, 237, 0.3);
}

/* LinkedIn Footer Button */
.footer-nav a.footer-linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: var(--accent-pink);
  color: var(--text-white);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-nav a.footer-linkedin-btn:hover {
  background-color: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 22, 166, 0.45);
}

.footer-nav a.footer-linkedin-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.footer-nav a.footer-linkedin-btn:hover svg {
  transform: scale(1.1);
}


/* --- Responsive Media Queries --- */

/* Laptop Resolution (<= 1024px) */
@media (max-width: 1024px) {
  .desktop-only-br {
    display: none; /* Hide desktop-only break to allow natural centered wrapping on smaller viewports */
  }

  section {
    padding: 80px 0;
  }
  
  .about-grid {
    gap: 25px;
    margin-top: 100px;
  }
  
  .bio-card {
    padding: 60px 60px 70px 65px; /* Generous paddings so text stays clear of all speech bubble borders */
    gap: 20px;
  }

  .bio-photo-wrapper {
    width: 110px; /* Smaller photo for better text space on laptop */
    height: 110px;
    left: 16%;
  }

  .bio-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .tools-card-modern {
    padding: 25px 15px;
    border-radius: 48px;
    height: 86%;
  }
}

/* Tablet Resolution (<= 900px) */
@media (max-width: 900px) {
  section {
    padding: 60px 0;
  }
  
  /* Navbar Toggle Menu Layout */
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%; /* Cover the entire screen width */
    max-width: none; /* Remove maximum width restriction */
    height: 100vh;
    background-color: rgba(3, 8, 30, 0.98); /* Solid dark blue background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: none; /* Remove left border since it's full screen */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 45px; /* Spacing between links */
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 105;
  }
  
  .nav-links a {
    font-size: 22px; /* Increased font size for better visual presence on full-screen menu */
  }
  
  .nav-links.active {
    right: 0;
  }
  
  /* Hamburger Active Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent-mint);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-mint);
  }

  /* About Stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 80px; /* Clear overlapping profile photo on tablet */
    justify-items: center;
  }
  
  .bio-card {
    background-image: url('assets/vector assets/speechBubbleHomeScreen.svg');
    background-size: 100% 100%;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 70px 82px 75px 88px; /* Balanced left & right padding so text is safely clear of both bubble border curves on tablet */
    gap: 25px;
    position: relative;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
  }
  
  .bio-photo-wrapper {
    left: 15%; /* Compact photo position on top-left curve on tablet */
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    width: 105px;
    height: 105px;
  }

  .bio-text {
    font-size: 13.5px;
    line-height: 1.55;
    text-align: left;
  }
  
  .tools-card-modern {
    padding: 30px 25px;
    border-radius: 48px;
    height: auto; /* Reset desktop height matching */
    align-self: center; /* Center horizontally in stacked column */
    justify-self: center;
    width: 100%;
    max-width: 420px; /* Restrict width so grid icons stay balanced */
    margin: 0 auto;
  }
  
  /* Work Folders Column */
  .folders-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .folder-card {
    max-width: 380px;
  }
  
  /* Footer Stack */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
  }
  
  .footer-left {
    justify-self: center;
  }
  
  .footer-right {
    justify-self: center;
  }
}

/* Mobile Resolution (<= 576px) */
@media (max-width: 576px) {
  .about-grid {
    margin-top: 35px; /* Raised content closer to the heading on mobile */
    gap: 30px; /* Spacing between bio text and tools card */
    justify-items: center;
  }

  .bio-card {
    background-image: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px; /* Spacing between profile photo and text */
    box-shadow: none;
    filter: none;
  }

  .bio-photo-wrapper {
    position: relative; /* Reverts to normal document flow for mobile */
    top: auto;
    left: auto;
    transform: none; /* Removes desktop translate */
    width: 120px;
    height: 120px;
    margin: 0 auto; /* Centers horizontally */
  }

  .bio-text {
    font-size: 15px;
    line-height: 1.6;
    text-align: center; /* Center text alignment on mobile for visual harmony */
    max-width: 400px;
    margin: 0 auto;
    color: var(--text-white);
  }
  
  .tools-card-modern {
    padding: 25px 20px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 36px;
    justify-self: center;
  }

  .tools-grid-modern {
    grid-template-columns: repeat(3, auto);
    gap: 18px; /* Equal horizontal and vertical spacing on mobile */
    justify-content: center;
    width: auto;
  }

  .tool-icon {
    width: 58px; /* Slightly larger on mobile */
    height: 58px;
    border-radius: 14px;
    padding: 8px; /* Reduced padding on mobile too */
  }

  .folder-card {
    max-width: 295px; /* Shrank size for mobile screens */
    margin: 0 auto; /* Ensure centering */
  }

  .video-card {
    width: 250px; /* Shrank video card size for mobile viewports */
    height: 330px;
    border-width: 4px; /* Slightly thinner border for small size */
    border-radius: 30px; /* Proportional border radius */
    margin: 0 auto; /* Keep centered */
  }

  .play-button {
    width: 60px; /* Shrank play button size to fit smaller card */
    height: 60px;
  }

  .ae-tag {
    bottom: 16px;
    left: 16px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
  }

  /* Email speech bubble scaling offset and gap adjustments */
  .talk .container {
    gap: 35px; /* Tighter spacing on mobile */
  }

  .email-bubble {
    max-width: 290px; /* Smaller speech bubble on mobile */
    padding-bottom: 28px; /* Lift text vertically to the center of the bubble body */
  }

  .email-text {
    font-size: 14px; /* Slightly smaller text size to fit mobile bubble proportions */
  }
  
  /* Footer navigation links stacked vertically */
  .footer-nav {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 220px;
    gap: 12px;
  }
  
  .footer-nav a {
    width: 100%;
  }
}

/* Handle ultra-small screens */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 40px;
  }
  
  .video-card {
    width: 220px; /* Even smaller for ultra-small screens like 320px width */
    height: 290px;
    border-radius: 24px;
  }
}

/* =========================================
   Motion Playground Page Styling
   ========================================= */

.playground-page,
.projects-page {
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.playground-page-header,
.projects-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.playground-page-title,
.projects-page-title {
  font-family: var(--font-headings);
  color: var(--accent-mint);
  font-size: clamp(24px, 5.5vw, 68px);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 15px;
}

.playground-page-subtitle,
.projects-page-subtitle {
  font-family: var(--font-body);
  color: var(--text-gray);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.playground-page-grid,
.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 50px;
  align-items: start; /* Align cards at the top to fit different aspect ratios nicely */
}

.projects-page-grid {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.projects-page-grid.active {
  opacity: 1;
}

.playground-project-card {
  background: rgba(2, 11, 31, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s ease, 
              border-color 0.4s ease;
  cursor: pointer;
  text-decoration: none; /* Removes underline link styling from card text headers */
}

.playground-project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(93, 253, 203, 0.4);
  box-shadow: 0 20px 40px rgba(93, 253, 203, 0.15);
}

.playground-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Default square ratio for most clips */
  border-radius: 20px;
  overflow: hidden;
  background-color: #03081e;
}

/* Vertical video overrides to prevent crop and preserve aspect ratio (1080x1350) */
.playground-card-img-wrapper.vertical-video-wrapper {
  aspect-ratio: 4 / 5;
}

.playground-card-img,
.playground-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Coming Soon Overlay for Unreleased Project Cards */
.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 8, 30, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
  z-index: 5;
}

.coming-soon-overlay span {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: italic;
  font-size: 18px;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 10px 22px;
  border-radius: 20px;
  border: 1px solid rgba(254, 221, 59, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(8px);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.coming-soon-card:hover .coming-soon-overlay,
.playground-project-card:hover .coming-soon-overlay {
  opacity: 1;
}

.coming-soon-card:hover .coming-soon-overlay span,
.playground-project-card:hover .coming-soon-overlay span {
  transform: translateY(0);
}

.playground-project-card:hover .playground-card-img,
.playground-project-card:hover .playground-video {
  transform: scale(1.06);
}

/* Mute/Unmute Overlay Button */
.audio-toggle-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(3, 8, 30, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.audio-toggle-btn:hover {
  background-color: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: scale(1.1);
}

.audio-toggle-btn svg {
  width: 18px;
  height: 18px;
  color: var(--text-white);
  stroke: var(--text-white);
  display: block;
}

.playground-card-info {
  padding: 4px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playground-card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: italic;
  color: var(--accent-yellow);
  font-size: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.playground-card-category {
  font-family: var(--font-body);
  color: var(--accent-mint);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Overrides for Playground Page */

@media (max-width: 1024px) {
  .playground-page-grid,
  .projects-page-grid {
    gap: 30px;
  }
  .playground-project-card {
    padding: 12px;
    border-radius: 28px;
  }
}

@media (max-width: 768px) {
  .playground-page,
  .projects-page {
    padding-top: 110px;
    padding-bottom: 80px;
  }
  .playground-page-header,
  .projects-page-header {
    margin-bottom: 50px;
  }
  .playground-page-grid,
  .projects-page-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 320px;
    margin: 30px auto 0 auto;
  }
}

@media (max-width: 576px) {
  .playground-page,
  .projects-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .playground-page-header,
  .projects-page-header {
    margin-bottom: 40px;
  }
  .playground-page-grid,
  .projects-page-grid {
    max-width: 300px;
  }
  .playground-project-card {
    border-radius: 24px;
    padding: 10px;
  }
  .playground-card-img-wrapper {
    border-radius: 16px;
  }
  .playground-card-title {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .playground-page-grid,
  .projects-page-grid {
    max-width: 260px;
  }
}

/* =========================================
   Projects Page Tab Navigation Styling
   ========================================= */

.projects-tabs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.projects-tab-btn {
  padding: 12px 30px;
  border-radius: 50px;
  background: rgba(2, 11, 31, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.projects-tab-btn:hover {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(93, 253, 203, 0.2);
}

.projects-tab-btn.active {
  background-color: var(--accent-pink);
  border-color: var(--accent-pink);
  color: var(--text-white);
  box-shadow: 0 5px 20px rgba(242, 22, 166, 0.4);
}

@media (max-width: 768px) {
  .projects-tabs-container {
    gap: 15px;
    margin-bottom: 40px;
  }
  .projects-tab-btn {
    padding: 10px 24px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .projects-tabs-container {
    gap: 10px;
    margin-bottom: 30px;
  }
  .projects-tab-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* =========================================
   Project Case Study Page Styling
   ========================================= */

.case-study-page {
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.case-study-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 75vh; /* Balanced height for desktop, avoiding huge gaps below */
  padding-top: 0; /* Let flexbox handle absolute center without offset biases */
  margin-bottom: 50px;
  position: relative;
  overflow: hidden; /* Avoids blob overflow scrolling */
}

.hero-decorative-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1400px; /* Extends past the 90vh hero section and down through the overview bubbles */
  z-index: -1;
  pointer-events: none;
  opacity: 0.45; /* Increased opacity to make the thinner lines more prominent */
}

.hero-flat-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Sits behind the title but above background orbit lines */
}

.flat-shape {
  position: absolute;
  pointer-events: none;
}

.pink-circle {
  top: 18%;
  left: 8%; /* Shifted further left */
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent-pink);
  animation: floatSlow 7s infinite alternate ease-in-out;
}

.mint-star {
  top: 24%;
  right: 8%; /* Shifted further right */
  width: 44px;
  height: 44px;
  animation: floatAndSpin 13s infinite linear;
}

.blue-blob {
  bottom: 22%;
  left: 10%; /* Shifted further left */
  width: 88px;
  height: 88px;
  animation: floatBlob 15s infinite alternate ease-in-out;
}

.pink-star {
  bottom: 14%;
  right: 15%; /* Shifted further right and down */
  width: 28px;
  height: 28px;
  animation: floatAndPulse 9s infinite alternate ease-in-out;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-16px); }
}

@keyframes floatAndSpin {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0) rotate(360deg); }
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -15px) scale(1.04); }
  100% { transform: translate(-6px, -6px) scale(0.96); }
}

@keyframes floatAndPulse {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-14px) scale(1.15); opacity: 1; }
}

/* Scattered Background Decorative Shapes */
.bg-shape {
  position: absolute;
  pointer-events: none;
  z-index: -1; /* Placed behind all content, cards, and interactive elements */
  opacity: 0.28; /* Subtly integrated in the background */
}

.mint-star-bg {
  top: 15%;
  right: -5%;
  width: 28px;
  height: 28px;
  animation: floatAndSpin 13s infinite linear;
}

.pink-star-bg {
  bottom: 8%;
  left: -6%;
  width: 20px;
  height: 20px;
  animation: floatAndPulse 9s infinite alternate ease-in-out;
}

.blue-circle-bg {
  top: 40%;
  left: -8%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--accent-blue);
  animation: floatSlow 7s infinite alternate ease-in-out;
}

.yellow-star-bg {
  bottom: 12%;
  right: -7%;
  width: 32px;
  height: 32px;
  animation: floatAndSpin 15s infinite linear;
}

.pink-circle-bg {
  top: 20%;
  left: -8%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent-pink);
  animation: floatSlow 8s infinite alternate ease-in-out;
}

.mint-star-bg-2 {
  bottom: 15%;
  right: -6%;
  width: 24px;
  height: 24px;
  animation: floatAndPulse 11s infinite alternate ease-in-out;
}

.case-study-title {
  font-family: var(--font-headings);
  color: var(--accent-mint);
  font-size: clamp(38px, 6vw, 68px);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

/* VENA Hero Background Card layout */
.case-study-hero-p2 {
  position: relative;
  max-width: 1300px;
  width: 90%;
  margin: 0 auto 60px auto !important; /* Removed top margin to balance header spacing, kept bottom margin */
  border-radius: 40px;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0,0,0,0.55);
  overflow: hidden; /* Clips all pseudo-elements to the rounded corners of the card */
  background-color: #03081e; /* Solid background color under the translucent image */
  padding-top: 60px !important; /* Equal top and bottom inner padding to center content vertically */
  padding-bottom: 60px !important;
}

/* Background image layer with uniform lowered opacity */
.case-study-hero-p2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/project 2 images/12.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.20; /* Darkened further (20% opacity) for high contrast and readability */
  z-index: 1;
  pointer-events: none;
}

/* Radial Vignette Overlay layer to fade the edges smoothly */
.case-study-hero-p2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 20%, #03081e 98%);
  z-index: 2;
  pointer-events: none;
}

/* Ensure all interactive elements and text sit on top of the background layers */
.case-study-hero-p2 > * {
  position: relative;
  z-index: 3;
}

.hero-decorative-shape-p2 {
  top: 720px !important; /* Push down curvy yellow lines to start below the hero image card */
}

/* Project 2 specific card style resets (avoids double borders/distortions) */
.case-study-page-p2 .moodboard-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Static Storyboard Grid (No Carousel for Project 2) */
.storyboard-static-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 30px auto 0 auto;
}

#project-explore-btn {
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

#project-scroll-arrow {
  margin-top: 15px;
  position: relative;
  z-index: 2;
  animation: bounce 2s infinite;
}

.case-study-section {
  margin-top: 80px;
  scroll-margin-top: 15vh; /* Center scroll target in viewport when clicking explore */
}

.case-study-section-heading {
  font-family: var(--font-headings);
  color: var(--accent-mint);
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 75px; /* Pushes content down to prevent sticking to the heading */
}

/* Speech Bubbles Grid */
.bubbles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px; /* Closer together on desktop */
  max-width: 1050px; /* Capped to stay compact and close together */
  margin: 0 auto 40px auto;
}

.bubble-card {
  background-image: url('assets/vector assets/project 1 speechBubble.svg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 0;
  min-height: 250px; /* Larger speech bubbles on desktop */
  padding: 55px 35px 50px 75px; /* Top padding is aligned, keeping all title baselines at the same level */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Aligns all text blocks to the exact same top padding baseline */
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bubble-card:hover {
  transform: translateY(-5px);
}

.bubble-card-p2 {
  background-image: url('assets/vector assets/project 2 speechBubble.svg');
}

.bubble-card-title {
  font-family: var(--font-body);
  color: var(--accent-yellow);
  font-style: italic;
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
}

.bubble-card-text {
  font-family: var(--font-body);
  color: var(--text-white);
  font-size: 16px;
  line-height: 1.5;
}

.case-study-goal-text {
  font-family: var(--font-body);
  color: var(--text-white);
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 800px;
  margin: 50px auto 0 auto;
  line-height: 1.6;
  text-align: center;
}

/* Process Subsection */
.process-subsection {
  margin-top: 70px;
}

.process-subheading {
  font-family: var(--font-body);
  color: var(--accent-yellow);
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.process-subtext {
  font-family: var(--font-body);
  color: var(--text-gray);
  font-size: 16px;
  text-align: center;
  margin-bottom: 30px;
}

/* Moodboard Layout */
.moodboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px; /* Limits the dimensions of both images on desktop while keeping them centered */
  margin: 30px auto 0 auto;
}

.moodboard-card {
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.moodboard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sketches Layout */
.sketches-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 900px; /* Aligns sketches width with moodboard and video elements */
  margin: 30px auto 0 auto;
}

.sketch-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  background-color: #0c1535;
}

.sketch-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Storyboards / Styleframes Grids with Arrows */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  width: 100%;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}

.carousel-indicator {
  font-family: var(--font-body);
  color: var(--accent-yellow);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.storyboard-grid,
.styleframes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 25px;
  width: 100%;
}

.storyboard-panel-card,
.styleframe-panel-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  background-color: #03081e;
  aspect-ratio: 16 / 10;
}

.storyboard-panel-card img,
.styleframe-panel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.storyboard-panel-card:hover img,
.styleframe-panel-card:hover img {
  transform: scale(1.05);
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(1, 64, 237, 0.3);
}

.carousel-arrow:hover {
  background-color: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(242, 22, 166, 0.4);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-white);
  display: block;
}

/* Final Video Container */
.final-video-container {
  max-width: 900px;
  margin: 40px auto 0 auto;
  width: 100%;
}

.final-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #020b1f;
  border: 2px solid var(--text-white);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  display: block;
  object-fit: cover;
  outline: none;
}

/* Back button */
.back-projects-btn {
  display: block;
  width: max-content;
  margin: 50px auto 0 auto;
  padding: 14px 38px;
  background: transparent;
  border: 3px solid var(--accent-pink);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.3s ease, 
              background-color 0.3s ease,
              border-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(242, 22, 166, 0.2);
}

.back-projects-btn:hover {
  transform: scale(1.05);
  background-color: rgba(242, 22, 166, 0.08);
  border-color: var(--accent-pink);
  box-shadow: 0 0 22px rgba(242, 22, 166, 0.55), 0 0 10px rgba(242, 22, 166, 0.3);
}

/* VENA Custom Mint Glow Button Styles (Transparent Background + Subtle Mint Glow) */
.v-btn-mint-outline,
.v-btn-mint-glow {
  background: transparent !important;
  border: 3px solid #5dfdcb !important;
  color: var(--text-white) !important;
  box-shadow: none !important;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.3s ease, 
              background-color 0.3s ease,
              border-color 0.3s ease !important;
}

.v-btn-mint-outline:hover,
.v-btn-mint-glow:hover {
  transform: scale(1.05) !important;
  background-color: rgba(93, 253, 203, 0.08) !important;
  border-color: #5dfdcb !important;
  box-shadow: 0 0 22px rgba(93, 253, 203, 0.6), 0 0 10px rgba(93, 253, 203, 0.35) !important;
}

/* Responsive Breakpoints for Case Study Page */
@media (max-width: 1024px) {
  .carousel-container {
    gap: 15px;
  }
  
  /* Prevent bubble cards from getting squeezed on tablet viewports */
  .bubbles-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    gap: 20px;
    margin: 0 auto 30px auto;
  }
  
  .bubble-card:nth-child(3) {
    grid-column: span 2;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .case-study-page {
    padding-top: 110px;
    padding-bottom: 80px;
  }
  .case-study-hero {
    min-height: 88vh; /* Keep hero tall to hide the next section initially on mobile */
    padding-top: 100px; /* Offset to push content down vertically */
  }
  .pink-circle {
    top: 10%;
    left: 4%;
    width: 18px;
    height: 18px;
  }
  .mint-star {
    top: 14%;
    right: 4%;
    width: 24px;
    height: 24px;
  }
  .blue-blob {
    bottom: 12%;
    left: 8%;
    width: 50px;
    height: 50px;
  }
  .pink-star {
    bottom: 8%;
    right: 8%;
    width: 18px;
    height: 18px;
  }
  .case-study-section {
    margin-top: 60px;
    scroll-margin-top: 12vh; /* Centered scroll target for mobile */
  }
  .case-study-section-heading {
    margin-bottom: 40px; /* Balanced spacing on mobile viewports */
  }
  .bubbles-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto 30px auto;
    gap: 20px;
  }
  .bubble-card {
    padding: 35px 25px 45px 68px; /* Shifted text slightly to the right to clear the speech bubble border */
    min-height: 200px;
  }
  .bubble-card:nth-child(3) {
    grid-column: span 1; /* Reset intermediate grid columns */
    max-width: 100%;
    margin: 0;
  }
  .moodboard-row {
    grid-template-columns: 1fr;
    max-width: 86%; /* Reduces size slightly on mobile, leaving elegant gutters on the sides */
    margin: 30px auto 0 auto;
    gap: 20px;
  }
  .sketches-row {
    grid-template-columns: 1fr;
    max-width: 86%; /* Reduces size slightly on mobile, leaving elegant gutters on the sides */
    margin: 30px auto 0 auto;
    gap: 20px;
  }
  .carousel-container {
    gap: 12px;
  }
  .carousel-arrow {
    display: flex;
    width: 36px;
    height: 36px;
  }
  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }
  .storyboard-grid,
  .styleframes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on small screens, displaying 3 rows of 2 columns each (6 panels) */
    max-width: 580px; /* Expands width to hold two cards comfortably side by side */
    margin: 0 auto;
    gap: 15px;
  }
  .final-video-player {
    border-radius: 20px;
  }
  .bg-shape {
    display: none; /* Hide margins decoration on mobile screens to prevent overlaps */
  }
  .storyboard-static-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 580px;
    gap: 15px;
  }
  .case-study-hero-p2 {
    min-height: 52vh !important;
  }
  .case-study-hero-p2::before {
    background-size: 190% auto !important; /* Retains widescreen aspect ratio, overflowing side limits on mobile */
    background-position: center top !important;
  }
  .hero-decorative-shape-p2 {
    top: 500px !important; /* Start below the mobile hero card */
  }
}

@media (max-width: 576px) {
  .case-study-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .case-study-section {
    margin-top: 50px;
  }
  .explore-btn {
    padding: 10px 30px;
    font-size: 14px;
    margin-top: 30px;
  }
  .back-projects-btn {
    padding: 12px 30px;
    font-size: 14px;
    margin-top: 40px;
  }
  .section-heading,
  .playground-page-title,
  .projects-page-title {
    font-size: clamp(20px, 5.5vw, 32px);
    letter-spacing: 1px;
  }
}


/* =========================================
   Project 3 (Microcopy System) CSS Overrides
   ========================================= */

/* Project 3 Hero Card background styling */
.case-study-hero-p3 {
  position: relative;
  max-width: 1300px;
  width: 90%;
  margin: 0 auto 60px auto !important; /* Balanced header vertical gap spacing */
  border-radius: 40px;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0,0,0,0.55);
  overflow: hidden; /* Clips all pseudo-elements to the rounded corners of the card */
  background-color: #03081e; /* Fallback solid background */
  padding-top: 60px !important; /* Equal top and bottom inner padding to center content vertically */
  padding-bottom: 60px !important;
}

.case-study-hero-p3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/project 3 images/Free MacBook Pro with Female Professional (Mockuuups Studio).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55; /* Brightened further (55% opacity) to show detailed mockup assets clearly */
  z-index: 1;
  pointer-events: none;
}

.case-study-hero-p3::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 20%, #03081e 98%);
  z-index: 2;
  pointer-events: none;
}

.case-study-hero-p3 > * {
  position: relative;
  z-index: 3;
}

/* Figma Prototype Speech Bubble (horizontal design style) */
.figma-bubble-p3 {
  background-image: url('assets/vector assets/speechBubble.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 290px; /* Small, compact width */
  aspect-ratio: 820 / 176;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding-bottom: 24px; /* Increased to 24px to shift the text slightly higher up inside the bubble body */
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
  margin: 0 auto;
}

.figma-bubble-p3:hover {
  transform: translateY(-5px);
}

/* Inner Scroll Containers for UX/UI mockups */
.image-scroll-container {
  width: 100%;
  max-width: 900px;
  height: 600px; /* Fixed viewport height for scrolling */
  margin: 30px auto 15px auto;
  border-radius: 28px;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0,0,0,0.4);
  overflow-y: scroll; /* Forces vertical scrollbar to be visible */
  overflow-x: hidden;
  position: relative;
  background-color: #020818;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-mint) rgba(255, 255, 255, 0.05);
}

/* Custom scrollbars for webkit engines */
.image-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.image-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 28px 28px 0;
}

.image-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(93, 253, 203, 0.45); /* Translucent mint color */
  border-radius: 10px;
  border: 2px solid transparent;
}

.image-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-mint);
}

.scroll-long-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Inner Scroll Containers for UX/UI mockups custom scrollbars and viewport styling overrides */
@media (max-width: 768px) {
  .case-study-hero-p3 {
    min-height: 52vh !important;
  }
  .case-study-hero-p3::before {
    background-size: 190% auto !important;
    background-position: center top !important;
  }
  .image-scroll-container {
    height: 420px; /* Reduced vertical viewport scrollbox height on tablet/mobile screens */
    border-radius: 20px;
  }
}

