/* Hero Section */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}
.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.hero-title span {
  display: block;
  color: #666;
}

.hero-image {
  width: 100%;
  height: auto;
  max-width: 300px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid #333;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta:hover {
  background: #333;
  color: white;
}

/* Improved Header Styles */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s;
}

.brand span {
  font-weight: 400;
  color: #666;
}

.brand:hover {
  opacity: 0.8;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #333;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: #333;
  border-radius: 50%;
}

.nav-link.active {
  font-weight: 400;
  position: relative;
}

/* Logo Container */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Logo Image */
.logo-img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

/* Logo Text */
.logo-text {
  font-family: "Arial", sans-serif;
  font-weight: 700;
  color: #333;
  font-size: 2rem;
  transition: color 0.3s ease;
}

/* Hover Effects */
.logo-link:hover .logo-img {
  transform: scale(1.1);
}

.logo-link:hover .logo-text {
  color: #007bff;
}

/* About Preview */
.about-preview {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid #eee;
}

.about-preview {
  padding: 4rem 0;
  border-top: 1px solid #eee;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: center;
  padding: 0 2rem;
}

.about-image {
  flex: 0 0 300px;
  animation: slideDown 0.8s ease-out forwards;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

/* Skills Showcase */
.skills-showcase {
  margin: 5rem 0;
  padding: 2rem 0;
}

.skills-showcase h2 {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem; /* Added padding */
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.skill-card i {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.skill-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Footer Styles */
.site-footer {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.footer-tagline {
  color: #888;
  max-width: 25ch;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.nav-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-links a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-wrapper {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-wrapper a {
  color: #fff;
  font-size: 1.5rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.social-wrapper a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.legal-info {
  border-top: 1px solid #333;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-info p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.back-to-top {
  background: #333;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
}

.back-to-top:hover {
  background: #444;
  transform: translateY(-3px);
}
/* Photo Gallery */
.photo-gallery {
  margin: 4rem 0;
}
.photo-gallery h2 {
  margin-top: 2rem;
  padding: 20px 0;
  position: relative;
  z-index: 1;
  color: #333; /* Ensure contrast with background */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
}

/* Bio Section Styling */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.bio-photo {
  text-align: center;
}

.profile-image {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bio-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
}

.bio-subtitle {
  color: #000000;
  margin: 1.5rem 0;
  font-size: 1.4rem;
}

.bio-list {
  list-style: none;
  padding-left: 0;
}

.bio-list li {
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

.timeline-item {
  border-left: 3px solid #000000;
  padding-left: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.timeline-year {
  font-weight: bold;
  color: #1f3b4e;
  margin-bottom: 0.5rem;
}

/* Process Steps */
.process-steps {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 1rem;
  scrollbar-width: thin;
}

.step {
  padding: 2rem;
  background: white;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-number {
  position: absolute;
  top: -20px;
  left: -15px;
  width: 40px;
  height: 40px;
  background: #333;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Design Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 150px));
  gap: 1.5rem;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
  max-width: 1000px;
}

.tool-item {
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tool-item i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-item:hover {
  border-color: #333;
  transform: translateY(-5px);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.hard-skills,
.soft-skills {
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skills-grid h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-grid ul {
  list-style: none;
}

.skills-grid li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.skills-grid li:last-child {
  border-bottom: none;
}

section h2 {
  padding: 0 2rem;
  margin: 3rem 0 2rem;
  text-align: center;
}

.process h2,
.tools h2,
.skills-section h2 {
  margin: 4rem 0 3rem;
}

.custom-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

/* Work Page Specific Styles */
.work-hero {
  text-align: center;
  padding: 8rem 0 4rem;
}

.work-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.work-hero p {
  font-size: 1.2rem;
  color: #666;
}

.work-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 3rem 0;
  padding: 0 2rem;
}

.filter-btn {
  padding: 0.8rem 2rem;
  border: 2px solid #333;
  border-radius: 2rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: #333;
  color: white;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  padding: 0 1rem;
  padding-bottom: 4rem;
  max-width: 1600px;
  margin: 0 auto;
  justify-items: center;
}

.work-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  overflow: hidden;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-width: 0; /* Fix flexbox overflow issue */
}

.work-card h3 {
  font-size: 1.4rem; /* Adjust heading size */
  margin-bottom: 0.5rem;
}
.work-card p {
  font-size: 0.95rem; /* Adjust paragraph size */
  line-height: 1.4;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.work-card:hover {
  transform: translateY(-5px);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.category {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-cta {
  align-self: flex-start;
  margin-top: 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.card-cta:hover {
  border-bottom-color: #333;
}

/* Contact Page Styles */
.contact-section {
  padding: 4rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  padding: 4rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #333;
  outline: none;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  height: 1.2rem;
  display: block;
}

.char-counter {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.cta-btn {
  background: #333;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-item i {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: #333;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.map-container {
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.form-assistant {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(20px);
  opacity: 0;
  animation: assistantEntry 0.6s ease forwards;
  z-index: 1000;
}

.assistant-avatar {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.assistant-messages {
  position: relative;
  min-width: 200px;
}

.active-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
  transform-origin: left;
  animation: messagePop 0.3s ease;
}

.cv-container {
  max-width: 1200px; /* Adjust based on your design */
  margin: 0 auto; /* This centers the container */
  padding: 0 2rem; /* Adds breathing room on sides */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers child elements */
}

.cv-preview {
  width: 100%;
  max-width: 800px; /* Optimal reading width */
  margin: 2rem 0;
}
.cv-preview h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.cv-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.cv-preview img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Optional */
}

.cv-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  padding: 2rem;
  text-align: left;
  pointer-events: none;
}

.download-section {
  text-align: center;
  margin: 4rem 0;
}

.download-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  margin: 0 auto;
}

.download-card i.fa-file-pdf {
  font-size: 3rem;
  color: #e63946;
  margin-bottom: 1.5rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #2a9d8f;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  margin: 1.5rem 0;
  transition: transform 0.3s ease;
}

.download-button:hover {
  transform: translateY(-3px);
}

.file-info {
  color: #666;
  font-size: 0.9rem;
}

.cv-extra {
  display: flex; /* Changed from grid to flex */
  flex-wrap: nowrap; /* Keep cards in single row */
  gap: 2rem;
  padding: 2rem 0;
  overflow-x: auto; /* Allows horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.cv-extra-card {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Add these 2 lines */
  width: 300%;
  height: auto;
}

.cv-extra-card h4 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.cv-extra-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-extra-card li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.cv-extra-card li:last-child {
  border-bottom: none;
}

/* Case Study Navigation */
.case-breadcrumb {
  padding: 2rem 0;
  margin-top: 50px; /* Match header height */
  position: sticky;
  top: 80px; /* Match header height */
  background: white;
  z-index: 900; /* Below header but above content */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.case-section {
  padding: 4rem 0;
  scroll-margin-top: 100px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  z-index: 999; /* Ensure button stays clickable */
}

.back-link:hover {
  opacity: 0.8;
}

/* Case Study Layout */
.case-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.case-header {
  margin-bottom: 4rem;
  margin-top: 2rem;
  text-align: center;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: #fafafa;
  border-radius: 12px;
}

.meta-item {
  text-align: center;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.next-case {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 4rem;
  margin-bottom: 6rem;
  padding: 1.2rem 2rem;
  background: #333;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.next-case:hover {
  transform: translateX(5px);
}

/* Table of Contents */
.toc-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.toc-button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: #333;
  color: white;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.toc-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  position: relative;
}

.toc-icon::before,
.toc-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: white;
  left: 0;
  transition: all 0.3s ease;
}

.toc-icon::before {
  top: -6px;
}
.toc-icon::after {
  top: 6px;
}

.toc-modal {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.toc-checkbox:checked ~ .toc-modal {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.toc-close {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.toc-list {
  padding: 1.5rem;
  margin: 0;
  list-style: none;
}

.toc-list a {
  display: block;
  padding: 0.8rem 1rem;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.toc-list a:hover,
.toc-list .active {
  background: #f5f5f5;
  color: #333;
}

.toc-current {
  font-size: 0.9rem;
}
.toc-checkbox {
  display: none;
}

/* Active state tracking */
.toc-list .active {
  font-weight: 500;
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hamburger Animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes assistantEntry {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes messagePop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .step-number {
    left: 10px;
  }
  .hero-title {
    font-size: 2.5rem;
  }

  .skills-track span {
    font-size: 1.8rem;
    margin: 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-img {
    height: 40px; /* Smaller logo */
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem;
  }

  .nav-link::after {
    height: 1px; /* Thinner underline */
  }
  .back-to-top {
    display: block; /* Ensure it's visible on desktop */
  }
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .legal-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .about-image {
    flex: 0 0 auto;
    width: 200px;
  }

  .social-links {
    order: -1;
    margin-bottom: 1rem;
  }
  .cv-container {
    padding: 6rem 1rem 2rem;
  }

  .download-card {
    padding: 1.5rem;
  }

  .cv-preview h2 {
    font-size: 2rem;
  }

  .work-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
  }

  .work-card {
    padding: 1rem;
    margin: 0 auto;
    max-width: 400px; /* Prevent over-stretching */
  }

  .card-content img {
    height: 150px; /* Smaller images on mobile */
  }

  .work-card h3 {
    font-size: 1.2rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem; /* Smaller filter buttons */
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  /* Stack ALL images vertically inside About section */
  .about-preview img,
  .bio-grid img,
  .about-container img {
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 100%;
  }

  /* If images are inside a flex or grid wrapper */
  .about-container,
  .bio-grid,
  .gallery-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
  }
/* Process section container */
  .process {
    width: 100%;
  }

  /* Stack steps vertically */
  .process-steps {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    overflow-x: hidden; /* remove horizontal scroll */
  }

  /* Each step full width */
  .step {
    max-width: 320px; /* controls card width */
    width: 100%;
    margin: 0 auto;
  }

.bio-photo {
    max-width: 220px;
    width: 100%;
    margin: 0 auto;
  }

  .bio-photo img {
    width: 100%;
    height: auto;
  }


/* Stack skill cards vertically */
  .skills-grid {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 320px; /* shrink overall width */
    margin: 0 auto;
  }

  .hard-skills,
  .soft-skills {
    width: 100%;
    max-width: 280px;
    padding: 1.5rem;
  }

  .skills-grid h3 {
    text-align: center;
    font-size: 1.3rem;
  }

  .skills-grid ul {
    padding-left: 0; /* Optional: remove indent on mobile */
  }

.skills-grid li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
  }

.bio-content {
    max-width: 320px;     /* reduce line length */
    margin: 0 auto;       /* center the text block */
    text-align: left;     /* better readability than centered */
  }

  .bio-content p {
    line-height: 1.7;     /* more vertical breathing room */
    margin-bottom: 1rem;
  }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 320px;   /* keeps the grid compact */
    margin: 0 auto;
  }

 .cv-extra {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

.cv-extra-card {
    max-width: 280px;      /* strong width constraint */
    width: 100%;
    margin: 0 auto;
    padding: 1rem;         /* tighter padding */
  }

.contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    margin-top: 1.5rem;
  }
.contact-form {
    max-width: 320px;     /* controls overall form width */
    margin: 0 auto;
    padding: 1.25rem;    /* tighter padding */
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    max-width: 260px;   /* controls field length */
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  .contact-form textarea {
    min-height: 120px;
  }
/* Case study wrapper */
  .case-study {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  /* Text content */
  .case-study-content {
    max-width: 320px;
    text-align: left;
    line-height: 1.6;
  }

  .case-study-content p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  /* Images */
  .case-study-image,
  .case-study img {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    display: block;
  }

}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .work-card {
    padding: 1.2rem;
  }
}
@media (hover: none) {
  .nav-link:hover::after {
    width: 0;
  }
  .logo-link:hover .logo-img {
    transform: none;
  }
}
@media (max-width: 390px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .step-number {
    left: 10px;
  }
  .hero-title {
    font-size: 2.5rem;
  }

  .skills-track span {
    font-size: 1.8rem;
    margin: 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-img {
    height: 40px; /* Smaller logo */
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem;
  }

  .nav-link::after {
    height: 1px; /* Thinner underline */
  }
  .back-to-top {
    display: block; /* Ensure it's visible on desktop */
  }
  .about-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2rem;
  }

.about-content {
    order: 2;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .legal-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .about-image {
    order: 1;
    width: 100%;
    max-width: 220px;
  }

  .social-links {
    order: -1;
    margin-bottom: 1rem;
  }
  .cv-container {
    padding: 6rem 1rem 2rem;
  }

  .download-card {
    padding: 1.5rem;
  }

  .cv-preview h2 {
    font-size: 2rem;
  }

  .work-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
  }

  .work-card {
    padding: 1rem;
    margin: 0 auto;
    max-width: 400px; /* Prevent over-stretching */
  }

  .card-content img {
    height: 150px; /* Smaller images on mobile */
  }

  .work-card h3 {
    font-size: 1.2rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem; /* Smaller filter buttons */
    font-size: 0.9rem;
  }
}
