/* core/variables.css */
:root {
  --color-primary: #111111;
  --color-accent: #D32F2F;
  --color-accent-hover: #b71c1c;
  --color-text: #333333;
  --color-bg-light: #F9F9F9;
  --color-white: #ffffff;
  --font-family-primary: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --container-width: 1200px;
}

/* core/reset.css */
/* Global Styles */
html,
body,
a,
button,
input,
select,
textarea,
.service-card,
.logo,
.nav-link {
  /* Default: performant system cursor on touch devices */
  cursor: auto;
}

/* Mouse-only cursor effects */
/* Mouse-only cursor effects */
/* Only apply if JS has successfully initialized the cursor AND we are on a fine pointer device */
@media (hover: hover) and (pointer: fine) {

  body.custom-cursor-active,
  body.custom-cursor-active a,
  body.custom-cursor-active button,
  body.custom-cursor-active input,
  body.custom-cursor-active select,
  body.custom-cursor-active textarea,
  body.custom-cursor-active .service-card,
  body.custom-cursor-active .logo,
  body.custom-cursor-active .nav-link {
    cursor: auto !important;  /* Sistem faresi görünür */
  }

  body.custom-cursor-active #cursor-follower {
    display: none !important;  /* Custom takip edeni gizle */
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
}

/* Custom Cursor Follower styles removed */

#cursor-follower img {
  width: 100%;
  height: auto;
  display: block;
  /* Stronger shadow for depth and motion perception */
  filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.6));
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* layout/header.css */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.logo img {
  height: 48px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: var(--transition);
  border-radius: 4px;
  /* For smoother pulse shadow */
  padding: 0.25rem 0.5rem;
  /* Add padding for shadow space */
}

.nav-link:hover {
  color: var(--color-accent);
  animation: pulse 1s infinite;
}

.nav-link.active {
  color: var(--color-accent);
  /* No animation for active state, only color */
}

.btn-contact {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-contact:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  /* Energetic glow effect on hover */
  box-shadow: 0 0 15px rgba(211, 47, 47, 0.6);
  animation: pulse 1s infinite;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* layout/hero.css */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  /* Darker gradient for better text contrast */
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('../images/hero_digital.jpg');
  background-size: 100% 100%;
  background-position: center;
  color: var(--color-white);
  margin-top: 70px;
}

.hero-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  /* Centered alignment */
  position: relative;
  left: 20px;
  /* Approx 0.5cm right shift */
  top: -5px;
  /* Approx 1mm up shift */
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  /* Text shadow for depth */
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  /* Center align */
  opacity: 0.95;
  font-weight: 300;
}

.hero-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  /* Slightly sharper corners */
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.9);
    /* Stronger initial opacity */
  }

  70% {
    box-shadow: 0 0 0 20px rgba(211, 47, 47, 0);
    /* Still wider spread */
  }

  100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
  }
}

.hero-btn:hover {
  animation: pulse 1s infinite;
  /* Pulse active on hover */
  background: var(--color-accent-hover);
  transform: translateY(-3px);
  /* box-shadow handled by animation */
}

/* sections/common.css */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* sections/about.css */
.about {
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.check-icon {
  color: var(--color-accent);
  font-weight: 800;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* sections/services.css */
.services {
  background-color: var(--color-bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.service-card {
  background: #1a1a1a;
  /* Slightly lighter than pure black */
  color: var(--color-white);
  padding: 3rem;
  /* More padding */
  border-radius: 0;
  /* sharper edges for corporate feel */
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border-bottom: 4px solid transparent;
  border: 1px solid #333;
  /* Generic border */
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: #222;
  border-color: var(--color-accent);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.service-card p {
  color: #aaaaaa;
  /* Better contrast grey */
  margin-bottom: 2rem;
  line-height: 1.7;
}

.service-link {
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* sections/contact.css */
.contact-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-grid {
  display: contents !important;
  /* Flatten the intermediate div so grid applies to children */
}

.contact-info {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  border: 1px solid transparent;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2);
  border-color: rgba(211, 47, 47, 0.3);
}

/* Shine effect for contact info */
.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: 0.5s;
  pointer-events: none;
}

.contact-info:hover::before {
  left: 100%;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.contact-form {
  padding: 2rem;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.submit-btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background: #000;
}

/* layout/footer.css */
footer {
  background: #0a0a0a;
  color: #888;
  padding: 4rem 0 0;
  margin-top: auto;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.copyright {
  border-top: 1px solid #222;
  text-align: center;
  padding: 1.5rem 0;
}

/* media queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Mobile menu implementation todo */
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-grid,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content img {
  width: 150px;
  animation: preloaderPulse 2s infinite ease-in-out;
}

@keyframes preloaderPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.company-name {
  color: var(--color-accent);
  border: 2px solid black;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
}

.logo:hover .company-name {
  animation: pulse 1s infinite;
  background-color: rgba(211, 47, 47, 0.05);
}

/* --- Scroll Animations & Energy --- */

.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.reveal-delay-100 {
  transition-delay: 0.1s;
}

.reveal-delay-200 {
  transition-delay: 0.2s;
}

.reveal-delay-300 {
  transition-delay: 0.3s;
}

/* Enhanced Energetic Card Hover */
.service-card {
  position: relative;
  overflow: hidden;
  /* For shine effect */
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: .5s;
  pointer-events: none;
}

.service-card:hover::after {
  left: 100%;
  transition: .75s;
}
/* Custom cursor tamamen devre dışı - fare her zaman görünür */
#cursor-follower {
  display: none !important;
}

body,
a,
button,
input,
select,
textarea {
  cursor: auto !important;
}
/* === ZORUNLU MOUSE GÖRÜNÜR YAPMA - EN ÜST ÖNCELİK === */
*, *::before, *::after {
  cursor: auto !important;
}

#cursor-follower {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body {
  cursor: auto !important;
}

/* Eğer JS inline style ekliyorsa bile ezmek için */
[style*="cursor: none"],
[style*="cursor:none"] {
  cursor: auto !important;
}