/* ==========================================================================
   ÖLMEZ TECH - ULTRA LUXURY SAPPHIRE TECH DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Deep Midnight Sapphire & Cyan (Logo Harmony) */
  --bg-main: #040711;
  --bg-surface: #0a1120;
  --bg-surface-hover: #111d35;
  --bg-card: rgba(10, 17, 32, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(59, 130, 246, 0.14);
  --border-active: rgba(59, 130, 246, 0.45);
  
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 100px;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(6, 182, 212, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Custom Magnetic Cursor */
.custom-cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hovered {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.25);
  border-color: transparent;
}

@media (max-width: 992px) {
  .custom-cursor { display: none; }
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  margin-bottom: 22px;
}

/* Buttons */
.btn-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  background: var(--bg-surface-hover);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.3);
}
.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(220, 39, 67, 0.5);
}

/* ================= HEADER / NAVBAR ================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

#header.scrolled {
  padding: 12px 0;
  background: rgba(4, 7, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-blue);
  box-shadow: 0 0 15px var(--accent-glow);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ================= HERO SECTION & 3D PHONE SHOWCASE ================= */
.hero-section {
  padding-top: 170px;
  padding-bottom: 110px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.15;
  margin-bottom: 22px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 38px;
  max-width: 580px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero Visual Showcase Area */
.hero-visual-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}

.hero-phone-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-phone-shell {
  position: relative;
  width: 250px;
  height: 500px;
  border-radius: 40px;
  background: #000;
  border: 5px solid #1e293b;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.9),
    0 0 40px var(--accent-glow),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-camera-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  height: 18px;
  background: #0a0f1d;
  border-radius: 10px;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.phone-screen-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-screen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.96);
}

.hero-screen-img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-phone-glare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 8;
}

/* Floating Mini Cards Around Phone */
.floating-app-chip {
  position: absolute;
  background: rgba(10, 17, 32, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-active);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 4;
  animation: floatAnim 6s ease-in-out infinite;
  white-space: nowrap;
}

.floating-app-chip.chip-1 {
  top: 20px;
  left: -40px;
  animation-delay: 0s;
}

.floating-app-chip.chip-2 {
  top: 130px;
  right: -45px;
  animation-delay: 2s;
}

.floating-app-chip.chip-3 {
  bottom: 80px;
  left: -45px;
  animation-delay: 4s;
}

.floating-app-chip.chip-4 {
  bottom: 15px;
  right: -30px;
  animation-delay: 1.5s;
}

.chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chip-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
}
.chip-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ================= TECH MARQUEE BAR ================= */
.marquee-bar {
  background: var(--bg-surface);
  border-y: 1px solid var(--border-subtle);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 45px;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.marquee-item i {
  color: var(--accent-cyan);
}

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

/* ================= SECTION COMMON ================= */
.section-padding {
  padding: 110px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.7rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ================= SIDE-BY-SIDE PUBLISHED CARDS ================= */
.side-by-side-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.published-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.published-card:hover {
  border-color: var(--border-active);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.card-hero-thumb {
  position: relative;
  width: 100%;
  height: 250px;
  background: #040814;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-hero-thumb img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.published-card:hover .card-hero-thumb img {
  transform: scale(1.05);
}

.app-accent-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(4, 7, 17, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.published-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.app-card-title {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.app-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.55;
}

.app-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.app-card-actions .btn-studio {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.88rem;
}

/* ================= SCREENSHOTS LIGHTBOX MODAL ================= */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--accent-blue);
  color: #fff;
}

.modal-header {
  margin-bottom: 18px;
  text-align: center;
}

.modal-header h3 {
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.modal-body {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-phone-frame {
  width: 230px;
  height: 460px;
  border-radius: 32px;
  background: #000;
  border: 4px solid #1e293b;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  overflow: hidden;
}

.modal-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 17, 32, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-fast);
}

.modal-arrow:hover {
  background: var(--accent-blue);
  color: #fff;
}

.modal-arrow.prev { left: -10px; }
.modal-arrow.next { right: -10px; }

.modal-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px;
}

.thumb-img {
  width: 42px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.thumb-img.active, .thumb-img:hover {
  opacity: 1;
  border-color: var(--accent-cyan);
}

/* ================= COMPACT APPS GRID ================= */
.apps-grid-section {
  background: var(--bg-surface);
  border-y: 1px solid var(--border-subtle);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.compact-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compact-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.card-top {
  margin-bottom: 20px;
}

.card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.compact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.compact-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  align-self: flex-start;
  margin-top: 16px;
}

/* ================= INSTAGRAM SECTION ================= */
.instagram-banner {
  background: linear-gradient(135deg, #0f1c38 0%, #0a1120 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.insta-title {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.insta-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
}

/* ================= ABOUT & CONTACT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-card, .contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.about-list {
  list-style: none;
  margin-top: 28px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1rem;
}

.about-list i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.input-box {
  margin-bottom: 18px;
}

.input-box label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-field:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px var(--accent-glow);
}

textarea.input-field {
  resize: vertical;
  min-height: 110px;
}

/* ================= FOOTER ================= */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  background: #02040a;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 400px;
  font-size: 0.94rem;
}

.footer-col h4 {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 1024px) {
  .side-by-side-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .instagram-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .side-by-side-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(4, 7, 17, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: var(--transition-smooth);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-hamburger {
    display: block;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }
}