/* Emre Baytaş - Silicon Valley White & Royal Blue Luxury Architecture */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Cinzel:wght@600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --accent-blue: #2563eb;
  --accent-cobalt: #1d4ed8;
  --accent-sky: #0284c7;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(37, 99, 235, 0.45);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--bg-main);
  color: var(--text-primary);
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================
   GORGEOUS BRAND TYPOGRAPHY (OUTFIT LUXURY)
   ========================================== */
.brand-name-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: #0f172a;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-name-text .brand-dot {
  color: #2563eb;
  font-weight: 900;
  margin-left: 1px;
  transition: transform 0.3s ease;
}

.brand-name-link:hover .brand-name-text {
  color: #2563eb;
  transform: translateX(2px);
}

.brand-name-link:hover .brand-dot {
  transform: scale(1.3) translateY(-1px);
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Subtle Engineering Grid Background */
.white-grid-bg {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

/* Hand Wave Animation */
@keyframes waveHand {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}
.wave-hand {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: waveHand 1.4s ease-in-out infinite;
}

/* Top Minimal Full-Width Navigation */
.minimal-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Typography Gradient */
.text-gradient {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 60%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================
   GIANT GHOST WATERMARK PARALLAX TEXT
   ========================================== */
.ghost-watermark-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.035;
}

.ghost-watermark-text {
  font-size: 13vw;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.05em;
  color: #0f172a;
  will-change: transform;
}

/* ==========================================
   WHITE LUXURY FROSTED GLASS CARDS
   ========================================== */
.luxury-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(30, 58, 138, 0.06), 0 0 1px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  transform: translateZ(0);
}

.luxury-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.18), 0 0 1px rgba(37, 99, 235, 0.3);
  transform: translateY(-6px);
}

/* Specular Light Reflection Sweep on Hover */
.luxury-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 40%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(37, 99, 235, 0.08) 50%,
    transparent 55%
  );
  transform: rotate(35deg) translateY(-100%);
  transition: transform 0.75s ease-out;
  pointer-events: none;
  z-index: 1;
}

.luxury-card:hover::after {
  transform: rotate(35deg) translateY(100%);
}

.luxury-card > * {
  position: relative;
  z-index: 2;
}

/* ==========================================
   IMAGE REVEAL MASK
   ========================================== */
.img-reveal-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

.img-reveal-wrapper img {
  transform: scale(1.06);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover .img-reveal-wrapper img {
  transform: scale(1);
}

/* ==========================================
   SCROLL-DRIVEN TIMELINE WIRE
   ========================================== */
.timeline-track-wrapper {
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, #2563eb, #38bdf8);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
  z-index: 1;
}

.timeline-node-pin {
  position: relative;
  z-index: 2;
}

/* ==========================================
   PORTRAIT PRESENTATION
   ========================================== */
.portrait-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.portrait-ambient-beam {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(56, 189, 248, 0.1) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: beamBreath 6s ease-in-out infinite alternate;
}

@keyframes beamBreath {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.clean-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 30px 60px -15px rgba(30, 58, 138, 0.15), 0 0 30px rgba(37, 99, 235, 0.08);
  -webkit-mask-image: linear-gradient(to bottom, black 72%, rgba(0, 0, 0, 0.4) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 72%, rgba(0, 0, 0, 0.4) 92%, transparent 100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

@media (max-width: 639px) {
  .portrait-ambient-beam {
    width: 280px;
    height: 280px;
  }
  .clean-portrait {
    max-width: 320px;
    height: 380px;
    border-radius: 1.5rem;
  }
}

.clean-portrait:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 35px 70px -15px rgba(30, 58, 138, 0.22);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.4);
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

/* Filter Tab */
.filter-tab {
  transition: all 0.25s ease;
}

.filter-tab.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* ==========================================
   BULLETPROOF SEAMLESS INFINITE MARQUEE
   ========================================== */
.marquee-container {
  overflow: hidden;
  display: flex;
  user-select: none;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: seamlessMarquee 32s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

@keyframes seamlessMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Toast Copy Alert */
#toast-alert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#toast-alert.hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

/* Modal */
.custom-modal {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.custom-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.custom-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ==========================================
   BROWSER MOCKUP & WEBSITE SHOWCASE STYLES
   ========================================== */
.browser-window {
  position: relative;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px -10px rgba(30, 58, 138, 0.07), 0 0 1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-window:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 20px 45px -10px rgba(37, 99, 235, 0.16), 0 0 20px rgba(37, 99, 235, 0.05);
}

.browser-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.browser-address {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #64748b;
  max-width: 220px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-address i {
  color: #10b981;
  font-size: 0.6rem;
}

.browser-viewport {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.browser-screenshot-scroll {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: object-position 4.5s ease-in-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-window:hover .browser-screenshot-scroll,
.featured-split-card:hover .browser-screenshot-scroll {
  object-position: bottom center;
}

.browser-live-btn-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: opacity 0.3s ease;
  z-index: 6;
}

.browser-window:hover .browser-live-btn-overlay {
  opacity: 1;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}

.live-indicator::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.tech-chip {
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tech-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.featured-split-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 15px 35px -10px rgba(30, 58, 138, 0.06), 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.featured-split-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 25px 60px -15px rgba(37, 99, 235, 0.18), 0 0 1px rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
}

/* ==========================================
   ABOUT BIOGRAPHY LUXURY STUDIO FRAME & SLIDESHOW
   ========================================== */
.about-slideshow-frame {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 2.25rem;
  padding: 0.75rem;
  box-shadow: 
    0 30px 70px -15px rgba(30, 58, 138, 0.12),
    0 10px 25px -5px rgba(15, 23, 42, 0.04),
    0 0 1px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 420px;
  height: 100%;
}

.about-slideshow-frame::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at 60% 40%, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.08), transparent 70%);
  border-radius: 3rem;
  z-index: -1;
  filter: blur(24px);
  pointer-events: none;
}

.about-frame-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.75rem 0.65rem 0.75rem;
}

.about-frame-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-frame-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.about-frame-dot.dot-red { background-color: #ff5f56; }
.about-frame-dot.dot-yellow { background-color: #ffbd2e; }
.about-frame-dot.dot-green { background-color: #27c93f; }

.about-frame-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.about-slideshow-container {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  background: #0b1120;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 380px;
  min-height: 380px;
  flex: 1;
}

@media (min-width: 640px) {
  .about-slideshow-frame {
    min-height: 480px;
  }
  .about-slideshow-container {
    height: 440px;
    min-height: 440px;
  }
}

@media (min-width: 1024px) {
  .about-slideshow-frame {
    height: 100%;
    min-height: 520px;
  }
  .about-slideshow-container {
    height: 100%;
    min-height: 480px;
  }
}

.about-slideshow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  overflow: hidden;
  user-select: none;
}

.about-slideshow-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.about-slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.0);
  transition: transform 6.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.about-slideshow-slide.active img {
  transform: scale(1.09);
}

/* Story-style Progress Bars */
.slideshow-progress-bar-wrap {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slideshow-progress-item {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.slideshow-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

/* Contact Form Dynamic Loading Bar */
@keyframes loadingBarSweep {
  0% {
    left: -40%;
    width: 30%;
  }
  50% {
    left: 40%;
    width: 60%;
  }
  100% {
    left: 100%;
    width: 30%;
  }
}

.animate-contact-loading-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #2563eb 100%);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
  animation: loadingBarSweep 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}






