@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --color-primary: #A78BFA;
  --color-primary-light: rgba(167, 139, 250, 0.15);
  --color-primary-glow: rgba(167, 139, 250, 0.35);
  --color-dark: #111827;
  --color-dark-muted: #4B5563;
  --color-light-gray: #F3F4F6;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-white: #FFFFFF;
  --color-yellow: #FFC501;
  --color-green-bg: #E6FDF4;
  --color-green-text: #059669;
  
  /* Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 20px 40px rgba(167, 139, 250, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: #F8F9FA;
  background-image: 
    linear-gradient(180deg, #E1E0FE 0%, #F4F4FF 300px, #FFFFFF 600px, #FFFFFF 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='2000' viewBox='0 0 1440 2000'%3E%3Cpath d='M-100,100 C150,200 300,50 600,150 C900,250 1100,50 1540,150 M-100,250 C150,350 300,200 600,300 C900,400 1100,200 1540,300 M-100,400 C150,500 300,350 600,450 C900,550 1100,350 1540,450 M-100,550 C150,650 300,500 600,600 C900,700 1100,500 1540,600 M-100,700 C150,800 300,650 600,750 C900,850 1100,650 1540,750 M-100,850 C150,950 300,800 600,900 C900,1000 1100,800 1540,900 M-100,1000 C150,1100 300,950 600,1050 C900,1150 1100,950 1540,1050 M-100,1150 C150,1250 300,1100 600,1200 C900,1300 1100,1100 1540,1200' fill='none' stroke='%23A78BFA' stroke-width='0.6' stroke-opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% auto;
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hide Default Cursor on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, select, textarea, .project-card, .btn {
    cursor: none !important;
  }
  
  /* Restore standard hand pointer for Resume and navigation items */
  .btn-resume,
  .btn-resume-case,
  .nav-link,
  .nav-link-case,
  .social-circle-btn,
  .footer-social-link,
  .filter-btn,
  .btn-back-gallery,
  .back-btn-circle {
    cursor: pointer !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Custom Cursor System */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  margin-left: -7px;
  background-color: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              margin 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              border-radius 0.3s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

.custom-cursor .cursor-text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-cursor .cursor-icon {
  width: 20px;
  height: 20px;
  opacity: 0;
  visibility: hidden;
  fill: var(--color-primary);
  color: var(--color-primary);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover Cursor States */
.custom-cursor.hover-link {
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  background-color: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.custom-cursor.hover-project {
  width: 110px;
  height: 36px;
  margin-top: -18px;
  margin-left: -55px;
  background-color: #E1E0FE;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.custom-cursor.hover-project .cursor-text {
  opacity: 1;
  visibility: visible;
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 600;
}

.custom-cursor.hover-social {
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-left: -25px;
  background-color: var(--color-white);
  border: 1px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.15);
}
.custom-cursor.hover-social .cursor-icon {
  opacity: 1;
  visibility: visible;
}

.custom-cursor.hover-resume {
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: -40px;
  background-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.4);
}
.custom-cursor.hover-resume .cursor-text {
  opacity: 1;
  visibility: visible;
}

.custom-cursor.hover-email {
  width: 100px;
  height: 36px;
  margin-top: -18px;
  margin-left: -50px;
  background-color: #E1E0FE;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.custom-cursor.hover-email .cursor-text {
  opacity: 1;
  visibility: visible;
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 600;
}

/* Header & Sticky Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

header.shrink {
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Navigation Toggle for Mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  position: relative;
  width: 40px;
  height: 40px;
}

.nav-toggle:focus {
  outline: none;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  position: relative;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-toggle.open .hamburger {
  background: transparent;
}

.nav-toggle.open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
  text-decoration: none;
}

.logo span {
  color: var(--color-primary);
}

.mobile-resume-item {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark-muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

/* Resume Button */
.btn-resume {
  background-color: #000000;
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.btn-resume:hover {
  transform: translateY(-2px);
  background-color: var(--color-dark);
}

.btn-resume svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* HERO SECTION */
.hero-section {
  padding: 160px 0 100px 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background-color: var(--color-green-bg);
  color: var(--color-green-text);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-green-text);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--color-dark-muted);
  margin-bottom: 1.8rem;
  max-width: 580px;
}

.skills-list-text {
  font-size: 0.95rem;
  color: var(--color-dark-muted);
  margin-bottom: 2.2rem;
}

.skills-list-text strong {
  color: var(--color-dark);
}

.btn-email-cta {
  background-color: #000000;
  color: var(--color-white);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-email-cta:hover {
  transform: translateY(-2px);
  background-color: var(--color-dark);
}

.btn-email-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Hero Visual Profile Card */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-card {
  width: 280px;
  height: 340px;
  background-color: var(--color-yellow);
  border-radius: 32px; /* rounded rectangle instead of pill */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card:hover {
  transform: scale(1.02);
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-social-connect {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-dark-muted);
  font-weight: 500;
}

.social-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--color-white);
  transition: all 0.3s ease;
}

.social-circle-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.social-circle-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--color-dark-muted);
  transition: fill 0.3s ease;
}

.social-circle-btn:hover svg {
  fill: var(--color-primary);
}

/* MY WORK SECTION */
.work-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 3rem;
  letter-spacing: -1px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Horizontal Project Card */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.project-mockup-wrapper {
  background-color: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
  border-right: 1px solid var(--color-border);
}

.project-mockup-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.project-card:hover .project-mockup-wrapper img {
  transform: scale(1.03);
}

.project-details-wrapper {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.project-category {
  background: var(--color-light-gray);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark-muted);
  margin-bottom: 1.2rem;
}

.project-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--color-dark-muted);
  margin-bottom: 1.8rem;
}

.project-card-impact {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 500;
}

.project-card-impact strong {
  font-weight: 700;
  color: var(--color-dark);
}

/* ABOUT PAGE REPLICATION */
.about-section {
  padding: 140px 0 80px 0;
}

.about-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.about-intro-left h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-intro-left span {
  font-size: 0.9rem;
  color: var(--color-dark-muted);
}

.about-intro-right {
  font-size: 1rem;
  color: var(--color-dark-muted);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-intro-right ul {
  list-style: none;
  padding-left: 0;
}

.about-intro-right li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.2rem;
}

.about-intro-right li::before {
  content: '•';
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Tools icons layout */
.tools-grid-icons {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.tool-icon-box {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.tool-icon-box:hover {
  transform: translateY(-4px);
}

.tool-icon-box img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Skills grid badges */
.skills-grid-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.skill-badge-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-badge-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

/* WORK PAGE GALLERY */
.work-gallery-section {
  padding: 140px 0 80px 0;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-dark-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* CONTACT PAGE */
.contact-page-section {
  padding: 160px 0 100px 0;
  min-height: 80vh;
}

.contact-card-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 4rem;
  max-width: 700px;
  box-shadow: var(--shadow-card);
  margin-top: 2rem;
}

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

.contact-card-box p {
  color: var(--color-dark-muted);
  margin-bottom: 2rem;
}

/* CASE STUDY PAGES */
.sticky-nav-case {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-nav-case .nav-container {
  width: 1200px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.sticky-nav-case .logo-case {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
  text-decoration: none;
}
.sticky-nav-case .logo-case span {
  color: var(--color-primary);
}

.sticky-nav-case .nav-links-case {
  display: flex;
  gap: 2.2rem;
}

.sticky-nav-case .nav-link-case {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark-muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.sticky-nav-case .nav-link-case:hover {
  color: var(--color-dark);
}

.sticky-nav-case .nav-link-case::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

.sticky-nav-case .btn-resume-case {
  background-color: #000000;
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sticky-nav-case .btn-resume-case:hover {
  transform: translateY(-2px);
  background-color: var(--color-dark);
}

/* Detail Case Container */
.case-study-detail-container {
  position: relative; /* Context for absolute positioning of back button */
  width: 100%;
  background-color: #F8F9FA;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Back Button styles for Case Study Pages */
.back-btn-container {
  position: absolute;
  top: 40px; /* Positioned relative to the top of the case study wrapper */
  left: -70px; /* Floating in the left gutter of the centered page */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
}

.back-btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, color 0.3s ease;
}

.back-btn-circle:hover {
  transform: translateX(-4px);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.back-btn-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.case-study-detail-wrapper {
  position: relative; /* Position context for the back button hotspot */
  width: 1200px;
  max-width: 100%;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.05);
  background-color: var(--color-white);
}

.case-study-img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-nav-bottom {
  width: 1200px;
  max-width: 100%;
  background-color: var(--color-white);
  padding: 4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
}

.case-study-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
}

.case-study-nav-link span {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #6B7280;
  letter-spacing: 1px;
}

.case-study-nav-link h4 {
  font-size: 1.2rem;
  color: var(--color-dark);
  font-family: var(--font-headings);
  font-weight: 700;
  transition: color 0.3s ease;
}

.case-study-nav-link:hover h4 {
  color: var(--color-primary);
}

.case-study-nav-link.next {
  align-items: flex-end;
  text-align: right;
}

.btn-back-gallery {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--color-dark);
  border: 1px solid var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: transparent;
}
.btn-back-gallery:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  background-color: var(--color-white);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-dark-muted);
}

.footer-links-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-social-link {
  font-size: 0.9rem;
  color: var(--color-dark-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-social-link:hover {
  color: var(--color-primary);
}

/* Page Transition Wipe Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  z-index: 10000;
  transform: translateX(-100%); /* Offscreen left */
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.page-transition-overlay.active {
  transform: translateX(0); /* Cover screen */
}

.page-transition-overlay.slide-out {
  transform: translateX(100%); /* Offscreen right */
}

/* Page Wrapper Fade Transition */
#page-wrapper {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.page-fade-out {
  opacity: 0 !important;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-card {
    grid-template-columns: 1fr;
  }
  
  .project-mockup-wrapper {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 768px) {
  .custom-cursor {
    display: none !important;
  }
  
  body, a, button, input, select, textarea, .project-card, .btn {
    cursor: auto !important;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  /* Hamburger Menu Toggle Display */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile Dropdown Menu Card */
  .nav-menu {
    position: absolute;
    top: 85px; /* Just below header */
    right: 20px;
    width: 220px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    font-size: 1.05rem;
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }

  /* Hide resume button on header, show it inside menu on mobile */
  header .btn-resume {
    display: none !important;
  }

  .mobile-resume-item {
    display: block !important;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
    width: 100%;
  }

  .mobile-resume-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Centered, scale-fitted Profile Card to prevent screen overflow */
  .profile-card {
    width: 290px;
    height: 348px;
    margin: 0 auto;
  }
}

/* Custom positioning of the Back Button for intermediate viewports */
@media (max-width: 1360px) {
  .back-btn-container {
    left: 20px;
    top: 20px;
  }
}

@media (max-width: 768px) {
  .back-btn-container {
    display: none !important;
  }
}
