:root {
  /* Light Theme Variables */
  --primary-color: #1A1F3C;
  --secondary-color: #2C3875;
  --accent-color: #E4B302;
  --text-color: #2A2C39;
  --bg-color: #ffffff;
  --sidebar-bg: #F8F9FC;
  --card-bg: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-color: rgba(0, 0, 0, 0.03);
  --sidebar-width: 330px;
  --transition: transform 0.3s ease, background-color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #E4B302;
    --secondary-color: #FFD700;
    --accent-color: #1A1F3C;
    --text-color: #E1E1E6;
    --bg-color: #13141A;
    --sidebar-bg: #1C1D25;
    --card-bg: #1C1D25;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.05);
  }
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  display: flex;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: var(--sidebar-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  will-change: transform; /* Performans iyileştirmesi için eklendi */
}

.logo {
  padding: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 180px;
  height: auto;
  filter: brightness(var(--logo-brightness, 1));
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.nav-links a:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(228, 179, 2, 0.1);
  color: var(--primary-color);
}

.nav-links a:hover:before,
.nav-links a.active:before {
  transform: scaleY(1);
}

/* Tablet Navigation */
.navbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--sidebar-bg);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo img {
  height: 40px;
  width: auto;
}

.navbar .nav-links {
  flex-direction: row;
  gap: 2rem;
}

.navbar .nav-links a {
  padding: 0.5rem 1rem;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  background-color: var(--bg-color);
  transition: margin-left 0.3s ease, background-color 0.3s ease;
}

.hero {
  min-height: 100vh;
  padding: 8rem;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(72, 72, 72, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('https://cdn.layer.web.tr/grid-pattern.svg');
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  contain: content;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://cdn.layer.web.tr/dark-grid-pattern.svg') center/cover;
  }
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 650px;
  line-height: 1.8;
  opacity: 0.9;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background-color: var(--gray-light);
}

.service-section {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.service-section p {
  margin-bottom: 2rem;
  line-height: 1.8;
  opacity: 0.9;
  font-size: 0.95rem;
}

.service-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.service-content {
  flex: 1;
  padding: 4rem 6rem;
  background: linear-gradient(135deg, #2B5C97, #1E4573);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content-special {
  flex: 1;
  padding: 4rem 6rem;
  background: linear-gradient(135deg, var(--sidebar-bg), color-mix(in srgb, var(--sidebar-bg) 80%, black));
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content-special h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.service-content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: white;
}

.service-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
  will-change: background-position;
  background-color: var(--sidebar-bg);
  transition: opacity 0.3s;
  will-change: opacity;
  contain: paint;
}

.service-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.service-image[loading] {
  opacity: 0;
}

/* Contact Section */
.contact-section {
  padding: 8rem;
  background-color: var(--sidebar-bg);
  position: relative;
  text-align: center;
}

.contact-section h2 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.contact-section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1rem;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.contact-section > p {
  color: var(--text-color);
  max-width: 650px;
  margin: 0 auto 4rem auto;
  line-height: 1.9;
  font-size: 1.1rem;
  opacity: 0.85;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-group {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.contact-group:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-group h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--text-color);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1rem;
  text-align: center;
}

.contact-group h3::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.contact-group p {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.contact-group a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.contact-group a:hover {
  color: var(--accent-color);
}

.contact-group p a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-color);
  transition: all 0.3s ease;
}

.contact-group p a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Buttons */
.cta-button,
.contact-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  border-radius: 3px;
}

.cta-button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}

.contact-button {
  color: white;
  border: 2px solid white;
  background: transparent;
}

.cta-button:hover,
.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Responsive Design - Yeni Düzenlemeler */
@media (max-width: 1400px) {
  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  .hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }

  .service-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
  }
}

@media (max-width: 1200px) {
  :root {
    --sidebar-width: 0;
  }

  .sidebar {
    display: none;
  }

  .navbar {
    display: block;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 60px;
  }

  body {
    display: block;
  }

  .hero {
    padding: clamp(2rem, 5vw, 5rem);
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }

  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .service-section {
    min-height: auto;
  }

  .service-content {
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
  }

  .contact-section {
    padding: clamp(3rem, 5vw, 6rem);
  }

  .contact-details {
    gap: 2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .navbar {
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-color);
  }

  .navbar-content {
    position: relative;
  }

  .mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }

  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .navbar .nav-links.active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar .nav-links a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
  }

  .main-content {
    padding-top: 60px;
  }

  .hero {
    margin-top: 0;
    padding-top: 4rem;
  }

  .navbar .logo img {
    height: 30px;
  }

  .service-section {
    flex-direction: column;
  }

  .service-content {
    padding: 2rem 1rem;
  }

  .service-content h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .service-content p {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }

  .service-image {
    height: 250px;
  }

  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
  }

  .contact-group {
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .layerwebcialicons {
    justify-content: center;
    margin: 1rem 0;
  }

  .cta-button,
  .contact-button {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .service-content h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-group {
    padding: 1.5rem;
  }

  .contact-group h3 {
    font-size: 0.8rem;
  }

  .contact-group p {
    font-size: 0.9rem;
  }
}

/* Genel Responsive İyileştirmeler */
.main-content {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  content-visibility: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  contain: layout style paint;
}

.layerwebcialicons {
    list-style: none;
    display: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.layerwebcialicons li {
    display: inline-block;
}

.layerwebcialicons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
    color: var(--bg-color);
}

.layerwebcialicons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.layerwebcialicons a:hover svg {
    fill: var(--primary-color);
}

.numberstyle {
  text-decoration: none; 
  color: var(--primary-color);
  border-bottom: 0.7px dotted var(--primary-color); 
  transition: all 0.3s ease;
}

.numberstyle:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

code {
  display: block;
  background-color: #1d1e2417;
  border-left: 4px solid var(--primary-color);
  padding: 10px;
  font-family: 'Courier New', Courier, monospace; 
  font-size: 1rem; 
  color: #333; 
  white-space: pre-wrap; 
  word-wrap: break-word; 
  border-radius: 5px; 
  margin-bottom: 20px;
  margin-top: 14px;
}

.footer {
  background-color: var(--primary-color);
  color: var(--bg-color);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  margin: 1rem 0;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--bg-color);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.premiumpagelw {
  width: 1px;
  height: 1px;
  color: var(--sidebar-bg);
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.premiumpagelw a {
  height: 1px;
  width: 1px;
  color: var(--sidebar-bg);
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Performans için Önemli Sınıflar */
.gpu {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.optimize-paint {
  contain: paint;
}

.optimize-layout {
  contain: layout;
}
