body {
  box-sizing: border-box;
}

:root {
  --color-cream: #F5F0EB;
  --color-sand: #E8DFD4;
  --color-beige: #D4C5B5;
  --color-charcoal: #2C2C2C;
  --color-warm-brown: #8B7355;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
  font-family: 'Outfit', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.gradient-bg {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 100%);
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 115, 85, 0.15);
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

.video-placeholder {
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-beige) 100%);
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-sand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-warm-brown);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.nav-link {
  position: relative;
}

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

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

/* iPhone mockup for hero and portfolio */
.iphone-mockup {
  background: #000;
  border-radius: 32px;
  padding: 12px; /* slightly thicker frame */
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  max-width: 360px; /* was 260px: enlarge base size */
  width: 100%;
  margin-inline: auto;
}

/* Scale up further on larger screens */
@media (min-width: 640px) { /* sm */
  .iphone-mockup { max-width: 420px; }
}
@media (min-width: 1024px) { /* lg */
  .iphone-mockup { max-width: 480px; }
}

.iphone-mockup::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px; /* enlarge notch to match bigger device */
  height: 18px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.iphone-screen {
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-beige) 100%);
  border-radius: 28px; /* slightly larger rounding for bigger screen */
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 16;
}

.iphone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 35%, rgba(255,255,255,0.16) 50%, transparent 65%);
  animation: shimmer 2s linear infinite;
}

.iphone-screen-inner {
  position: relative;
  z-index: 1;
}

/* Make <video> responsive (aspect-video already from Tailwind) */
video { display: block; max-width: 100%; height: auto; }

/* Reusable button animation for all buttons and CTA-like links */
.btn-animated {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), transparent 60%);
  transition: transform 0.5s ease;
}

.btn-animated:hover::after {
  transform: translateX(220%);
}

.btn-animated:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2), 0 0 0 4px rgba(139, 115, 85, 0.12);
}

/* CTA pulsing */
.cta-pulse {
  animation: ctaPulse 2.8s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: translateZ(0) scale(1); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
  50% { transform: translateZ(0) scale(1.04); box-shadow: 0 12px 30px rgba(139,115,85,0.25); }
}

/* Improve Instagram icon: subtle glow */
.instagram-badge {
  box-shadow: 0 0 0 0 rgba(221,42,123,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.instagram-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(221,42,123,0.45);
}

/* Social icon hover */
.social-chip {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.social-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.16);
}

/* About section skill tags hover */
.skill-tag {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}
.skill-tag:hover {
  background: var(--color-beige);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(139,115,85,0.18);
}

/* About image hover tilt */
.about-image {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}
.about-image:hover {
  transform: perspective(800px) rotateX(4deg) rotateY(-4deg) translateY(-4px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* Generic animation utility classes */
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.revealed { opacity: 1 !important; transform: translateY(0) !important; }

/* Hover interaction classes */
.tilt-on-hover { will-change: transform; }
