/* Base Styles */
:root {
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-foreground: #ffffff;
  --secondary: #f3f4f6;
  --secondary-foreground: #1f2937;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --accent: #f3f4f6;
  --accent-foreground: #1f2937;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #4338ca;
  --radius: 0.5rem;
}

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

/* Remove underlines from all links */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* SEO-friendly text styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-foreground);
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #1f2937;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Touch target sizes */
.btn,
.btn-lg,
.btn-outline,
.btn-icon,
.btn-ghost {
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  touch-action: manipulation;
}

/* Mobile menu improvements */
#mobile-menu {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 50;
}

#mobile-menu.hidden {
  transform: translateY(-100%);
}

#mobile-menu:not(.hidden) {
  transform: translateY(0);
}

#mobile-menu .block {
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  border-radius: 0.375rem;
}

/* Mobile typography */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .btn {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* Accessibility improvements */
:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn,
  .btn-outline,
  .btn-icon {
    border: 2px solid currentColor;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr; /* Varsayılan olarak tek sütun */
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.min-h-screen {
  min-height: 100vh;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-64 {
  height: 16rem;
}

.h-\[200px\] {
  height: 200px;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-64 {
  width: 16rem;
}

.w-\[80\%\] {
  width: 80%;
}

.w-auto {
  width: auto;
}

.max-w-\[300px\] {
  max-width: 300px;
}

.max-w-\[700px\] {
  max-width: 700px;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

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

.mt-8 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.text-white {
  color: #ffffff;
}

.text-white-90 {
  color: rgba(255, 255, 255, 0.9);
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-900 {
  color: #111827;
}

.text-indigo-800 {
  color: #3730a3;
}

/* Backgrounds */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-indigo-800 {
  background-color: #3730a3;
}

.bg-indigo-800\/20 {
  background-color: rgba(55, 48, 163, 0.2);
}

.bg-black {
  background-color: #000000;
}

.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}

/* Borders */
.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-white {
  border-color: #ffffff;
}

.border-4 {
  border-width: 4px;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* Display */
.block {
  display: block;
}

.hidden {
  display: none;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

/* Object Fit */
.object-cover {
  object-fit: cover;
}

/* Transitions */
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Hero Section */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('placeholder.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  will-change: transform;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(to right, rgba(55, 48, 163, 0.7), rgba(55, 48, 163, 0.4));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  transition-property: color, background-color, border-color;
  transition-duration: 150ms;
  font-size: 0.875rem;
  min-height: 2.5rem;
  touch-action: manipulation;
}

.btn:hover {
  background-color: var(--primary-hover);
}

.btn-lg {
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  min-height: 2.75rem;
}

.btn-primary {
  background-color: #3730a3;
}

.btn-primary:hover {
  background-color: #312e81;
}

.btn-white {
  background-color: #ffffff;
  color: #3730a3;
}

.btn-white:hover {
  background-color: #f3f4f6;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid currentColor;
}

.btn-outline-white {
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-primary {
  color: #3730a3;
  border-color: #3730a3;
}

.btn-outline-primary:hover {
  background-color: #3730a3;
  color: #ffffff;
}

.btn-icon {
  padding: 0.5rem;
}

.btn-ghost {
  background-color: transparent;
  border: none;
  color: currentColor;
  cursor: pointer;
}

.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #e0e7ff;
  color: #3730a3;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: #3730a3;
  color: #ffffff;
}

/* Contact Cards */
.contact-cards {
  text-align: center;
}

.contact-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #e0e7ff;
  color: #3730a3;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}

.contact-card p {
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Powered By */
.powered-by {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.powered-by:hover {
  opacity: 0.8;
}

/* Aspect Ratio */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Media Queries */
@media (min-width: 400px) {
  .min-\[400px\]\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 640px) {
  .sm\:text-3xl {
    font-size: 1.875rem;
  }
  
  .sm\:text-4xl {
    font-size: 2.25rem;
  }
  
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .md\:h-auto {
    height: auto;
  }
  
  .md\:h-10 {
    height: 2.5rem;
  }
  
  .md\:h-\[450px\] {
    height: 450px;
  }
  
  .md\:w-\[450px\] {
    width: 450px;
  }
  
  .md\:w-auto {
    width: auto;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:justify-start {
    justify-content: flex-start;
  }
  
  .md\:justify-end {
    justify-content: flex-end;
  }
  
  .md\:gap-6 {
    gap: 1.5rem;
  }
  
  .md\:gap-12 {
    gap: 3rem;
  }
  
  .md\:space-y-6 {
    margin-top: 1.5rem;
  }
  
  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  .md\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  
  .md\:text-left {
    text-align: left;
  }
  
  .md\:text-lg {
    font-size: 1.125rem;
  }
  
  .md\:text-xl {
    font-size: 1.25rem;
  }
  
  .md\:text-4xl {
    font-size: 2.25rem;
  }
  
  .md\:text-5xl {
    font-size: 3rem;
  }
  
  .md\:mt-0 {
    margin-top: 0;
  }
  
  .md\:mt-12 {
    margin-top: 3rem;
  }
  
  .md\:mb-12 {
    margin-bottom: 3rem;
  }
  
  .md\:block {
    display: block;
  }
}

@media (min-width: 1024px) {
  .lg\:text-5xl {
    font-size: 3rem;
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Accessibility Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
  }
}

/* PageSpeed Optimizations */
@media screen and (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .service-card, 
  .contact-card {
    padding: 1rem;
  }
  
  /* Mobil cihazlar için daha iyi boşluk kullanımı */
  section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  .gap-4 {
    gap: 0.75rem;
  }
  
  .gap-8 {
    gap: 1.5rem;
  }
  
  /* Mobil hero bölümü iyileştirmesi */
  #home {
    text-align: center;
  }
  
  #home .h-64 {
    height: 12rem;
    width: 12rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
  }
  
  #home h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  #home p {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  #home .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  /* Dokunmatik hedefler için minimum boyut */
  .btn, 
  nav a,
  .contact-link,
  .service-card a {
    min-height: 44px;
    min-width: 44px;
    padding: 0.625rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .service-icon,
  .contact-icon {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Preload critical fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuFuYAZ9hiA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Mobil menü iyileştirmeleri */
#mobile-menu {
  transition: opacity 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu .block {
  padding: 0.75rem 0;
}

/* Mobil hizmet kartları iyileştirmesi */
@media (max-width: 768px) {
  .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }
  
  .service-icon {
    margin-bottom: 0.75rem;
  }
  
  .service-card h3 {
    margin-bottom: 0.5rem;
  }
}