@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Modern, Professional, No Purple/Dark Blue */
  --primary: #0ea5e9;
  /* Sky Blue */
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --secondary: #14b8a6;
  /* Teal */
  --accent: #f59e0b;
  /* Amber for KPIs/CTA */
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1.5rem;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 80px 0;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

/* Glassmorphism Classes */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo span:first-child {
  color: var(--primary);
}

.logo span:last-child {
  color: #000;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary);
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links .btn {
    margin-top: 1rem;
    width: 100%;
  }
}

.show-mobile {
  display: none;
}

/* Hero Section Styles */
.hero-section {
  padding: 80px 0 60px;
  /* Reduced base padding, will increase for desktop */
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero-section {
    padding: 160px 0 100px;
  }
}

@media (min-width: 769px) {
  .hero-section .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 4rem;
  }

  .hero-text {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-btns {
    grid-column: 1;
    grid-row: 2;
    margin-top: 2rem;
  }

  .hero-image {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.hero-text h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: clamp(1rem, 4vw, 1.25rem);
  margin-bottom: 1rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  /* Ensure it respects z-index */
  z-index: 10;
  /* Higher than absolute mockup */
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

/* Hero Mockup Styling */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.desktop-mockup {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: white;
  line-height: 0;
}

.desktop-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-mockup {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 180px;
  background: #1e293b;
  border: 6px solid #1e293b;
  border-radius: 2rem;
  box-shadow: var(--shadow-xl);
  z-index: 5;
  overflow: hidden;
  transition: var(--transition);
}

.mobile-mockup:hover {
  transform: translateY(-10px) rotate(-2deg);
}

.mobile-mockup img {
  width: 100%;
  display: block;
}

.mockup-header {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-body {
  padding: 2rem;
  background: white;
  min-height: 300px;
}

/* Veresiye Section Mobile Integration */
.dashboard-container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1200px) {
  .dashboard-container {
    grid-template-columns: 1fr 320px;
  }
}

.mobile-preview-card {
  background: #1e293b;
  padding: 10px;
  border-radius: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-preview-card img {
  border-radius: 2rem;
  display: block;
}

.skeleton-line {
  height: 12px;
  background: #f1f5f9;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skeleton-card {
  height: 80px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #f1f5f9;
}

.skeleton-chart {
  height: 100px;
  background: linear-gradient(to top, var(--primary-light), transparent);
  border-radius: var(--radius);
  position: relative;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-image {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (max-width: 768px) {
  .hero-section .container {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    /* Reduced further as requested */
    padding-bottom: 20px;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
    margin: 3rem 0;
    /* Add margin so phone doesn't overlap text above */
  }

  .hero-btns {
    order: 3;
    /* Button is definitely below images */
    justify-content: center;
  }

  .mobile-mockup {
    width: 150px;
    bottom: -20px;
    right: 0;
  }
}

/* Module Section Styling */
.module-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-item:hover {
  background-color: var(--primary-light);
  transform: translateX(10px);
}

.icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Dashboard Preview Styling */
.dashboard-preview {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.kpi-row {
  display: flex;
  gap: 1.5rem;
}

.kpi-mini {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.kpi-mini span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-mini strong {
  font-size: 1.125rem;
}

.chart-area {
  height: 220px;
  margin-bottom: 2rem;
  padding-top: 20px;
}

.bar-chart {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2rem, 8vw, 5rem);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.bar-group {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  position: relative;
}

.bar {
  width: clamp(25px, 5vw, 45px);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: all 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Data Labels on top of bars */
.bar::before {
  content: attr(data-value);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease 0.6s;
  /* Fade in after bar grows */
}

.animate-in .bar::before {
  opacity: 1;
}

.bar.veresiye {
  background: var(--primary);
}

.bar.tahsilat {
  background: var(--secondary);
}

.bar:hover {
  filter: brightness(1.1);
  transform: scaleY(1.05);
}

.bar-group::after {
  content: attr(data-month);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.risk-list {
  background: #fffafa;
  border: 1px dashed #feb2b2;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 2.5rem;
  /* Added spacing to resolve "yapışmış" issue */
}

.risk-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c53030;
  margin-bottom: 0.75rem;
}

.risk-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

/* Stats Grid */
.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Modules Grid Section */
.modules-grid-section {
  padding: 100px 0;
  background-color: #f1f5f9;
}

.grid-lg-4 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .grid-lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.module-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.module-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.module-card h3 {
  margin-bottom: 1rem;
}

.module-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.coming-soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background-color: white;
}

.contact-card {
  padding: 4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

/* Force 3 columns on desktop as requested */
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 columns on tablets */
@media (min-width: 640px) and (max-width: 991px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-item:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-item i {
  font-size: 1.5rem;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Animations */
.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.feature-item,
.dashboard-preview,
.stat-card,
.module-card {
  opacity: 1;
  /* Fixed: set to 1 so they are visible by default */
}