:root {
  --sky-top: #020111;
  --sky-bottom: #191621;
  --text: #ffffff;
  --primary: #6455EE;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #050505;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  background-color: #050505;
  background: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- CONTACT SECTION --- */

.contact-section {
  padding: 8rem 5%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  padding: 3rem;
  align-items: stretch;
}

.frosted-card-large {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-info {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

@media (min-width: 769px) {
  .contact-info {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .contact-info.reveal-active {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-info h2 {
  font-size: 3.5rem;
  margin: 1.5rem 0;
  line-height: 1.1;
  font-weight: 500;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-details a:hover {
  opacity: 0.8;
}

.contact-details li:hover {
  transform: translateX(10px);
}

.contact-details svg {
  color: var(--primary);
  opacity: 0.9;
}

.social-links {
  margin-top: auto;
  display: flex;
  gap: 1.5rem;
  padding-top: 3rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a svg {
  width: 30px;
  height: 30px;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #fff;
  width: fit-content;
}

.contact-form-card {
  background: #0a0a0a;
  border-radius: 30px;
  padding: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .contact-form-card {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.2s;
  }

  .contact-form-card.reveal-active {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-form-card h3 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.form-group {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 0;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: #7a62d9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(137, 113, 232, 0.4);
}

.btn-primary-ghost {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
  transition: all 0.3s;
}

.btn-primary-ghost:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* --- HERO SECTION --- */

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0 5%;
  padding-top: 250px;
  /* Accounts for fixed navbar */
  box-sizing: border-box;
}

.navbar {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  /* center pill nav */
  align-items: center;
  padding: 0 1.5rem;
  z-index: 100;
}

.logo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  z-index: 101;
}

.logo img {
  max-height: 60px;
  max-width: 200px;
}


.pill-nav {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.45rem 0.6rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.pill-nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  align-items: center;
  position: relative;
}

.pill-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, text-shadow 0.25s;
}

.pill-link svg {
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.25s, filter 0.25s;
}

.pill-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pill-link:hover svg {
  opacity: 1;
}

.pill-link.active {
  color: #fff;
  z-index: 1;
}

.pill-link.active svg {
  opacity: 1;
}

.nav-indicator {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 0;
}

/* --- HERO GRAPH ANIMATION --- */

.hero-graph {
  position: absolute;
  top: 55%;
  left: 0;
  width: 100%;
  height: 400px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  /* Increased brightness */
}

.graph-path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  /* Slightly thicker */
  stroke-dasharray: 10 10;
  clip-path: inset(0 100% 0 0);
  animation: revealGraph 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.graph-point {
  fill: #fff;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 4;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

/* Combined animation to handle both fade-in and infinite twinkle */
.graph-point:nth-of-type(1) {
  animation: revealPoint 0.5s 0.7s forwards, twinkle 3s infinite alternate ease-in-out 1.2s;
}

.graph-point:nth-of-type(2) {
  animation: revealPoint 0.5s 1.3s forwards, twinkle 3s infinite alternate ease-in-out 1.8s;
}

.graph-point:nth-of-type(3) {
  animation: revealPoint 0.5s 2.2s forwards, twinkle 3s infinite alternate ease-in-out 2.7s;
}

.graph-point:nth-of-type(4) {
  animation: revealPoint 0.5s 3.0s forwards, twinkle 3s infinite alternate ease-in-out 3.5s;
}

.graph-point:nth-of-type(5) {
  animation: revealPoint 0.5s 3.8s forwards, twinkle 3s infinite alternate ease-in-out 4.3s;
}

.graph-point:nth-of-type(6) {
  animation: revealPoint 0.5s 4.5s forwards, twinkle 3s infinite alternate ease-in-out 5.0s;
}

@keyframes revealPoint {
  to {
    opacity: 1;
  }
}

@keyframes revealGraph {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes fadeInPoint {
  to {
    opacity: 1;
  }
}

.hero-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 5rem;
}

.hero-text {
  max-width: 65%;
}

.hero-text h1 {
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
  animation: fadeInLeft 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-text p {
  font-size: 1.1rem;
  color: #d1d1d1;
  line-height: 1.6;
  margin: 0;
  animation: fadeIn 1.5s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  animation: fadeInRight 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  padding: 1.3rem 2.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.3s, background 0.3s, box-shadow 0.3s;
}

.btn-dark {
  background: rgba(42, 42, 44, 0.9);
  color: #fff;
}

.btn-dark:hover {
  background: rgba(60, 60, 62, 0.9);
}

.btn-light {
  background: #fff;
  color: #000;
}

.btn-light:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px 5px rgba(192, 192, 192, 0.6);
}



/* --- SKY BACKGROUND --- */

.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom,
      var(--sky-top),
      var(--sky-bottom));
}

.celestial-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.sun {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;

  background: radial-gradient(circle, #fff6b3, #ffcc33);

  box-shadow:
    0 0 80px rgba(255, 200, 0, 0.8),
    0 0 200px rgba(255, 200, 0, 0.5);

  transform: translate(-50%, -50%);
}

.moon {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;

  background: radial-gradient(circle, #ffffff, #d9d9d9);

  box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);

  transform: translate(-50%, -50%);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 3s;
}

.stars {
  animation: twinkle 6s infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.6
  }

  to {
    opacity: 1
  }
}

.sun,
.moon {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: top 60s linear, left 60s linear;
}

.sun {
  width: 120px;
  height: 120px;
  border-radius: 50%;

  background: radial-gradient(circle, #fff6b3, #ffcc33);

  box-shadow:
    0 0 80px rgba(255, 200, 0, 0.8),
    0 0 200px rgba(255, 200, 0, 0.5);
}

.moon {
  width: 70px;
  height: 70px;
  border-radius: 50%;

  background: radial-gradient(circle, #b3b3b3, #808080);

  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(255, 255, 255, 0.05);
}

@media (min-width: 769px) {
  .moon {
    background: radial-gradient(circle, #ffffff, #e6e6e6);
    box-shadow:
      0 0 25px rgba(255, 255, 255, 0.4),
      0 0 60px rgba(255, 255, 255, 0.2);
  }
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite alternate;
  transition: opacity 0.2s, box-shadow 0.2s;
  pointer-events: auto;
}

.star::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
}

.star:hover {
  opacity: 1;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
  from {
    opacity: 0.3
  }

  to {
    opacity: 1
  }
}

/* --- PORTFOLIO SECTION --- */

.portfolio-section {
  padding: 8rem 5%;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 1400px;
  margin-inline: auto;
}

.section-header h1 {
  font-size: 3.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

.portfolio-grid-desktop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 3.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .portfolio-grid-desktop {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.portfolio-card-desktop {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card-desktop.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-image-container .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card-desktop:hover .card-image {
  transform: scale(1.05);
}

.card-details {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-gallery-open {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-gallery-open:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
  color: #000;
  transform: scale(1.1) rotate(-45deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  border-color: #fff;
}

.card-details h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}

.card-details p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* --- GALLERY MODAL --- */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 2rem;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background: #131313f3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 4rem 3rem 3rem 3rem;
  z-index: 2001;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.gallery-modal.active .modal-content-wrapper {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  position: relative;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  height: 60vh;
  max-height: 600px;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 20px;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  pointer-events: auto;
}

.gallery-nav button {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-nav button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
  color: #fff;
}

.gallery-nav button:active {
  transform: scale(0.95);
}

@media (max-width: 1100px) {
  .modal-content-wrapper {
    padding: 3rem 1.5rem 1.5rem 1.5rem;
  }

  .gallery-nav {
    left: 0.5rem;
    right: 0.5rem;
  }

  .gallery-nav button {
    width: 40px;
    height: 40px;
  }
}

/* Visibility Utilities */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: grid !important;
}

/* --- CUSTOM CURSOR --- */

@media (min-width: 769px) {
  * {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    display: block;
  }
}

@media (max-width: 768px) {
  .custom-cursor {
    display: none !important;
  }
}

/* --- MOBILE NAVIGATION & RESPONSIVENESS --- */

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
}

.mobile-nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Hamburger Animation */
.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    position: fixed;
    right: 1.5rem;
    top: 1.5rem;
  }

  .pill-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: block;
    /* Override any potential display: flex from desktop */
  }

  .pill-nav.mobile-active {
    right: 0;
  }

  .pill-nav ul {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    /* Center links horizontally */
    width: 100%;
  }

  .pill-link {
    font-size: 1.4rem;
    width: auto;
    padding: 1rem 2rem;
    justify-content: center;
    /* Center icon and text within link */
  }

  .nav-indicator {
    display: none !important;
  }

  /* Hero Section Mobile Adjustments */
  .hero-container {
    height: auto;
    min-height: 100vh;
    padding-top: 220px;
    padding-bottom: 1.5rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 4rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2.8rem;
    animation: fadeInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero-text p {
    animation: fadeInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    gap: 1rem;
    margin: 2rem auto 0 auto;
    animation: fadeInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
  }

  .btn {
    width: 100%;
    margin: 0;
    text-align: center;
    justify-content: center;
  }

  /* Contact Section Mobile Adjustments */
  .contact-section {
    padding: 4rem 5%;
  }

  .contact-container {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 3rem;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .contact-container.reveal-active {
    opacity: 1;
    transform: translateY(0);
  }

  .contact-info {
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .contact-info h2 {
    font-size: 2.8rem;
  }

  .contact-info p {
    margin-inline: auto;
  }

  .contact-details {
    align-items: center;
    text-align: center;
  }

  .contact-form-card {
    padding: 2.5rem 1.5rem;
    width: 100%;
  }

  .contact-form-card h3 {
    text-align: center;
    font-size: 1.8rem;
  }

  .contact-form-card .form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .full-width {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }

  /* Mobile Portfolio Styling (Grid Version) */
  .mobile-portfolio {
    display: flex !important;
    flex-direction: column;
    padding: 0;
    margin: 0 5% 1.5rem 5%;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-portfolio.reveal-active {
    opacity: 1;
    transform: translateY(0);
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }

  .portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease, opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
  }

  .portfolio-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
  }

  .card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .card-content {
    padding: 1.8rem;
    flex-grow: 1;
  }

  .card-content h3 {
    margin: 0 0 0.8rem 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
  }

  .card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
  }

  .mobile-portfolio .portfolio-footer {
    width: 100%;
    margin-top: 3rem;
  }

  .mobile-portfolio .btn-full-portfolio {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 16px;
    display: block;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }
}


/* --- SERVICES SECTION --- */

.services-section {
  padding: 6rem 5% 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 4rem 2.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
}

.service-card.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-15px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover .service-icon {
  background: #fff;
  color: #000;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.service-card h3 {
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0;
}

/* --- FOOTER --- */

.main-footer {
  padding: 1rem 0;
  text-align: center;
  /* border-top: 1px solid rgba(255, 255, 255, 0.05); */
  margin-top: 2rem;
}

.main-footer p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
  margin: 0;
}