@view-transition { navigation: auto; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Space Grotesk', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  box-sizing: border-box;
  background-color: #ffffff;
  overflow-x: hidden;
}

.app-wrapper {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fafaf8 100%);
  position: relative;
}

/* Animated Background Motion */
.motion-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ffffff 0%, #fafaf8 25%, #fff7ed 50%, #fafaf8 75%, #ffffff 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.15;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border-radius: 35% 65% 65% 35% / 35% 35% 65% 65%;
  top: -100px;
  right: -50px;
  animation: float 15s ease-in-out infinite;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 65% 35% 35% 65% / 65% 65% 35% 35%;
  bottom: -80px;
  left: -100px;
  animation: float 18s ease-in-out infinite reverse;
  animation-delay: 2s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #fed7aa 0%, #f97316 100%);
  border-radius: 35% 65% 35% 65% / 65% 35% 65% 35%;
  bottom: 200px;
  right: 10%;
  animation: float 20s ease-in-out infinite;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(5deg); }
  50% { transform: translateY(-60px) rotate(-5deg); }
  75% { transform: translateY(-30px) rotate(5deg); }
}

/* Grid pattern overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.20) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  mask-image: radial-gradient(circle 200px, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 100%);
  -webkit-mask-image: radial-gradient(circle 200px, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 100%);
  mask-size: 400px 400px;
  -webkit-mask-size: 400px 400px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.content { position: relative; z-index: 1; }

/* Header styles */
.header {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;     
  display: flex;
  flex-direction: column;
  gap: 12px;               
  animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  .header-content {
    padding: 12px 48px;    
    gap: 16px;             
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  .header-content { 
    padding: 24px 0px; 
    } 
  }

.header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.9;         
  margin: 0;                
  color: #111827;
}
@media (min-width: 768px) { .header h1 { font-size: 48px; } }

.header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) { .header nav { gap: 40px; } }

.contact-link {
  position: relative;
  text-decoration: none;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (min-width: 768px) { .contact-link { font-size: 16px; } }

.contact-link::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color, #f97316);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.contact-link:hover::before { width: 100%; }
.contact-link:hover {
  color: var(--primary-color, #f97316);
  transform: translateY(-2px);
}

.resume-btn {
  position: relative;
  overflow: hidden;
  background: #f97316;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.resume-btn:hover::before { left: 100%; }
.resume-btn:hover {
  background: #ea580c;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.4);
}

/* Main content */
main { width: 100%; padding: 48px 24px; }
@media (min-width: 768px) { main { padding: 64px 48px; } }
@media (min-width: 1024px) { main { padding: 64px 80px; } }
.main-container { max-width: 1280px; margin: 0 auto; }

/* Video container */
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
  background: #0a0a0a;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .video-container { margin-bottom: 64px; } }

.video-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 50%, rgba(249, 115, 22, 0.05) 100%);
}
video { display: block; width: 100%; background-color: #0a0a0a; }

.reel-wrap {
  position: relative;
  cursor: pointer;
}

.reel-hint {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translate(-50%, -50%);
  z-index: 3;

  padding: 12px 24px;
  border-radius: 9999px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;

  /* 🔹 MATCH RESUME BUTTON (SOFTER) */
  background: rgba(249, 115, 22, 0.88); /* same orange, slightly softened */
  color: #ffffff;
  border: none;

  box-shadow:
    0 10px 24px rgba(249, 115, 22, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.15);

  pointer-events: none;
  white-space: nowrap;
}

.reel-wrap:hover .reel-hint {
  transform: translate(-50%, -50%) scale(1.06);
  transition: transform 0.2s ease;
}

/* Decorative elements */
.accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color, #f97316), rgba(249, 115, 22, 0.3), transparent);
  border-radius: 2px;
}

.accent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color, #f97316);
  animation: pulse 2s ease-in-out infinite;
}

.divider-line {
  padding: 20px 0 56px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Text animations */
.fade-in { animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; opacity: 0; }
.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }

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

/* Hero section */
.hero-section { margin-bottom: 16px; }

.hero-label { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.hero-label span {
  font-size: 11px;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Stats section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 48px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 768px) { .stats-section { margin-bottom: 64px; } }

.stat-item {
  text-align: center;
  padding: 24px;
  border-right: 1px solid rgba(249, 115, 22, 0.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
  color: #4b5563;
}

/* About section */
.about-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 247, 237, 0.3) 100%);
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 32px;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .about-section { padding: 48px; } }

.about-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }

.about-line {
  width: 4px;
  height: 48px;
  background: linear-gradient(to bottom, #f97316, transparent);
  border-radius: 2px;
}

.about-title {
  font-size: 11px;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  align-self: center;
}

.about-text {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.6;
  max-width: 768px;
  font-weight: 300;
}
@media (min-width: 768px) { .about-text { font-size: 20px; } }

/* Portfolio section */
.portfolio-section { margin-top: 80px; }

.portfolio-header { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.portfolio-header span {
  font-size: 11px;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Portfolio Grid */
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 247, 237, 0.4) 100%);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 24px 48px rgba(249, 115, 22, 0.15);
}

.card-media {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card-media::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(249, 115, 22, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.card-media::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.portfolio-card:hover .card-media::after { opacity: 1; }

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

.card-content { padding: 24px; }

.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97316;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-title { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 8px; }

.card-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-cta::after { content: ' →'; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.portfolio-card:hover .card-cta::after { transform: translateX(4px); }

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;

  /* Glass backdrop */
  background: rgba(20, 20, 20, 0.25);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);

  animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Lightbox content */

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90%;

  border-radius: 14px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.4);

  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


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

.lightbox-media {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;

  width: 40px;
  height: 40px;

  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;

  color: #111827;
  font-size: 24px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
  z-index: 10;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lightbox-close:hover {
  background: #ffffff;
  transform: scale(1.1);
}

/* PDF sizing */
.lightbox-pdf {
  width: 100%;
  height: min(80vh, 900px);
  border: 0;
  display: block;
}

/* Footer accent */
.site-footer {
  padding: 48px 0 40px;   
  text-align: center;
}

.footer-text {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;     
}

.site-footer.fade-in,
.site-footer.fade-in-delay-3 {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  transform: none !important;
}
