/* Portfolio Shared Styles - Single Source of Truth */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Base Styles */
* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  /* overflow-x: hidden; */
  max-width: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  position: relative;
  /* overflow-x: hidden; */
  max-width: 100%;
}

h1, h2, h3, h4 {
  letter-spacing: -0.019em;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #000000;
    color: #f5f5f7;
  }
  
  .bg-gray-50 { background-color: #2a2a2a !important; }
  
  .bg-white {
    background-color: #1c1c1e !important;
  }
  
  .text-gray-900 {
    color: #ffffff !important;
  }
  
  .text-gray-700 {
    color: #e5e5e7 !important;
  }
  
  .text-gray-600 {
    color: #d1d1d6 !important;
  }
  
  .text-gray-500 {
    color: #98989d !important;
  }
  
  .text-gray-400 {
    color: #636366 !important;
  }
  
  .border-gray-200 {
    border-color: #38383a !important;
  }
  
  .border-gray-100 {
    border-color: #2c2c2e !important;
  }
  
  nav {
    background-color: rgba(28, 28, 30, 0.8) !important;
    border-color: rgba(56, 56, 58, 0.6) !important;
  }
  
  .gradient-orb-1,
  .gradient-orb-2 {
    opacity: 0.06 !important;
  }
  
  .gradient-orb-3 {
    opacity: 0.05 !important;
  }
}

/* Abstract Background Gradients */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  animation: float 25s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, rgba(102, 126, 234, 0) 70%);
  top: -300px;
  right: -300px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0) 70%);
  bottom: -200px;
  left: -200px;
  animation-delay: 8s;
}

.gradient-orb-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 16s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Content wrapper to sit above gradient */
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Only apply overflow to non-nav content wrappers */
.content-wrapper:not(nav) {
  width: 100%;
  /* max-width: 100%; */
  /* overflow-x: hidden; */
}

/* Navigation Styles */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

/* Hamburger Menu Styles */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  z-index: 100;
}

.hamburger-btn span {
  width: 20px;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0 0.5rem 0;
  margin-top: 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .mobile-menu {
    border-top-color: rgba(84, 84, 88, 0.4);
  }
}

.mobile-menu.active {
  display: block;
  max-height: 300px;
  opacity: 1;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 17px;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.mobile-menu.active a {
  animation: fadeInItem 0.3s ease forwards;
}

.mobile-menu.active a:nth-child(1) {
  animation-delay: 0.05s;
}

.mobile-menu.active a:nth-child(2) {
  animation-delay: 0.1s;
}

.mobile-menu.active a:nth-child(3) {
  animation-delay: 0.15s;
}

.mobile-menu.active a:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes fadeInItem {
  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
  
  .desktop-nav {
    display: flex !important;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-150 { animation-delay: 0.15s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-250 { animation-delay: 0.25s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }

/* Links */
.accent-link {
  color: #667eea;
  transition: all 0.2s ease;
}

.accent-link:hover {
  color: #764ba2;
}

.apple-link {
  color: #06c;
  transition: color 0.2s ease;
  font-weight: 500;
}

.apple-link:hover {
  color: #0077ed;
  text-decoration: underline;
}

/* Section Headers */
.section-header {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .section-header {
    font-size: 48px;
  }
}

/* Profile Picture */
.profile-picture {
  position: relative;
  transition: transform 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.05);
}

/* Nav Profile Picture */
nav img[alt="Arron Taylor"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

nav img[alt="Arron Taylor"]:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Apple-style Cards */
.apple-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.apple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
}

.apple-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.apple-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.apple-card:hover .apple-card-image::after {
  opacity: 0;
}

.apple-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) saturate(1);
}

.apple-card:hover .apple-card-image img {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.1);
}

@media (prefers-color-scheme: dark) {
  .apple-card {
    background: rgba(28, 28, 30, 0.95) !important;
    border-color: rgba(84, 84, 88, 0.4) !important;
  }
  
  .apple-card:hover {
    border-color: rgba(99, 99, 102, 0.6) !important;
  }
  
  .apple-card-image {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%) !important;
  }
}

/* Horizontal Scrolling */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 1.25rem;
  padding: 3rem 0 4rem 0 !important;
  margin: -2rem 0 -1rem 0;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 340px;
}

@media (min-width: 640px) {
  .horizontal-scroll-item {
    width: 380px;
  }
}

@media (min-width: 1024px) {
  .horizontal-scroll-item {
    width: 420px;
  }
}

