/* MODERN & PREMIUM CSS */
:root {
  --bg-dark: #050b14;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  
  --primary: #4F46E5;
  --primary-glow: #6366f1;
  --secondary: #A855F7;
  --accent: #0EA5E9;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

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

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

html {
  scroll-behavior: smooth; /* Native smooth scroll for all anchor links */
  scroll-padding-top: 100px; /* Offset for fixed navbar */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* FIX KAYDIRMA HATASI (SCROLL BUGS) 
   html ve body elementine overflow-x: hidden vermek mobil tarayıcılarda scroll-behavior ve 
   sıçrama hatalarına neden olabilir. Bunun yerine ana gövdeyi bir wrapper ile sarıyoruz. */
.page-wrapper {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Background Effects */
.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  z-index: -2;
  opacity: 0.3;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.25;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--primary);
  animation: float-1 15s infinite alternate ease-in-out;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--secondary);
  animation: float-2 15s infinite alternate ease-in-out;
}

@keyframes float-1 {
  from { transform: translate(0, 0); }
  to { transform: translate(5%, 10%); }
}

@keyframes float-2 {
  from { transform: translate(0, 0); }
  to { transform: translate(-5%, -10%); }
}

/* Typography */
h1, h2, h3, .logo-text, .chip-text {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

h1 span {
  background: linear-gradient(to right, var(--primary-glow), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 span {
  color: var(--primary-glow);
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.subtitle {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  font-family: var(--font-heading);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary-glow {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  z-index: 1;
}

.btn-primary-glow::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: .5s;
  z-index: -1;
}

.btn-primary-glow:hover::before {
  left: 100%;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

.btn-outline {
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.mt-20 { margin-top: 1.5rem; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 2px;
  background: var(--primary-glow);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 11, 20, 0.98);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 2rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.hero p {
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Visual / Terminal */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.dashboard-mockup {
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  height: 400px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
  transform: rotateY(-5deg) rotateX(5deg);
}

.mockup-sidebar {
  width: 60px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid var(--border-light);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.circle-btn { width: 12px; height: 12px; border-radius: 50%; }
.circle-btn.red { background: #ff5f56; }
.circle-btn.yellow { background: #ffbd2e; }
.circle-btn.green { background: #27c93f; }

.sidebar-lines { width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); margin-top: 5px;}

.mockup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  height: 45px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-end;
  padding: 0 1rem;
  gap: 0.5rem;
}

.tab {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab.active {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-light);
  color: white;
}

.text-yellow { color: #f7df1e; }
.text-blue { color: #264de4; }

.code-terminal {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #abb2bf;
}

.keyword { color: #c678dd; }
.string { color: #98c379; }
.function { color: #61afef; }
.variable { color: #e5c07b; }
.comment { color: #5c6370; font-style: italic; display: block; margin-bottom: 0.5rem; }

/* Floating Cards */
.floating-glass-card {
  position: absolute;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.floating-glass-card .icon {
  width: 40px; height: 40px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.floating-glass-card .data {
  display: flex; flex-direction: column;
}
.floating-glass-card .data span { font-size: 0.75rem; color: var(--text-muted); }
.floating-glass-card .data strong { font-size: 1.25rem; font-family: var(--font-heading); }

.card-1 { top: -20px; right: -30px; animation: floatY 6s infinite ease-in-out; }
.card-2 { bottom: -20px; left: -30px; animation: floatY 7s infinite ease-in-out reverse; }

@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* Marquee */
.tech-marquee {
  margin-top: 6rem;
  text-align: center;
}
.tech-marquee p { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }
.marquee-track {
  margin-top: 1.5rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.marquee-track::before, .marquee-track::after {
  content: ''; position: absolute; top:0; width: 150px; height: 100%; z-index: 2;
}
.marquee-track::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.marquee-track::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

.marquee-content {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-content span {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.25rem; font-family: var(--font-heading);
  color: var(--text-muted);
  opacity: 0.5; transition: var(--transition);
}
.marquee-content span:hover { opacity: 1; color: white; transform: scale(1.05); }

@keyframes scrollMarquee {
  to { transform: translateX(calc(-50% - 1.5rem)); }
}

/* Services */
.services { padding: 100px 0; }

.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card-glow {
  position: absolute;
  width: 150px; height: 150px;
  background: var(--primary);
  filter: blur(60px);
  opacity: 0;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.card-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent);
  margin-bottom: 1.5rem; transition: var(--transition);
}

.glass-card:hover .card-icon {
  background: var(--accent); color: white; transform: scale(1.1) rotate(5deg);
}

.glass-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Workflow */
.workflow { padding: 100px 0; background: linear-gradient(to right, rgba(255,255,255,0.01), transparent); }

.workflow-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.workflow-timeline {
  display: flex; flex-direction: column; gap: 2rem; position: relative;
}

.workflow-timeline::before {
  content: ''; position: absolute; top: 20px; bottom: 20px; left: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item { display: flex; gap: 2rem; position: relative; z-index: 1; }

.timeline-dot {
  width: 50px; height: 50px; min-width: 50px;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.timeline-content {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  padding: 1.5rem; border-radius: 16px; width: 100%; transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  background: rgba(255,255,255,0.05); border-color: var(--border-glow); transform: translateX(10px);
}

.timeline-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: white;}

/* Contact Banner */
.contact-banner { padding: 100px 0; }

.contact-card {
  position: relative;
  padding: 4rem;
  border-radius: 30px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.01);
}

.contact-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 30px 30px;
  z-index: -1;
}

.contact-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  z-index: -2;
}

.contact-card h2 { font-size: 3rem; margin-bottom: 1rem; }
.contact-card p { margin-bottom: 3rem; font-size: 1.25rem; }

.contact-grid {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
}

.contact-info-block {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(0,0,0,0.5);
  padding: 1rem 2rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none; color: white; transition: var(--transition);
}

.contact-info-block:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); border-color: var(--primary); }

.icon-bubble {
  width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.mail-bg { background: rgba(99, 102, 241, 0.2); color: var(--primary-glow); }
.phone-bg { background: rgba(14, 165, 233, 0.2); color: var(--accent); }

.contact-info-block div { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.contact-info-block div span { font-size: 0.8rem; color: var(--text-muted); }
.contact-info-block div strong { font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--border-light); padding: 4rem 0 2rem; background: rgba(0,0,0,0.3); }

.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; gap: 2rem;}

.footer-brand p { max-width: 300px; margin-top: 1rem; font-size: 0.9rem; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.footer-links a:hover { color: white; transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* REVEAL ANIMATIONS */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(-40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero p { margin: 0 auto 2.5rem; }
  .dashboard-mockup { transform: none !important; margin: 0 auto; max-width: 600px; }
  .floating-glass-card { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .workflow-split { grid-template-columns: 1fr; }
  .workflow-text { text-align: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 3rem 1.5rem; }
  .contact-grid { flex-direction: column; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-brand p { margin: 1rem auto; }
}
