/*
Theme Name: Altun Mühendislik
Theme URI: https://altunmuhendislik.com
Author: Altun Mühendislik
Author URI: https://altunmuhendislik.com
Description: Altun Mühendislik - Elektrik Mühendisliği Çözümleri WordPress Teması
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: altunmuhendislik
*/

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Font Rendering Fix - tüm metinler için */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* ========== SEO İÇERİK KARTLARI (60fps) ========== */
.seo-content-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.seo-content-card:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.15);
}

/* ========== FAQ KARTLARI (60fps) ========== */
.faq-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-card:hover {
  transform: translate3d(4px, 0, 0);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.12);
}
.faq-card:hover .absolute.bg-accentcyan\/40 {
  background-color: #00F0FF;
}

/* ========== HAKKIMIZDA STORY KARTLARI (60fps) ========== */
.about-story-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-story-card:hover {
  transform: translate3d(4px, 0, 0);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.15);
}

/* Wix Fonts - Yerel */
@font-face {
  font-family: 'avenir-lt-w01_85-heavy1475544';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/avenir-lt-w05_85-heavy.woff2') format('woff2');
  unicode-range: U+0100-012B, U+012E-0130, U+0132-0137, U+0139-0149, U+014C-0151, U+0154-015F, U+0162-0177, U+0179-017C, U+0218-021B, U+02C9, U+02D8-02D9, U+02DB, U+02DD, U+0394, U+03A9, U+03BC, U+03C0, U+1E9E, U+20B9-20BA, U+20BC-20BD, U+2113, U+2126, U+212E, U+2202, U+2206, U+220F, U+2211-2212, U+2215, U+2219-221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+F8FF, U+FB01-FB02;
}

@font-face {
  font-family: 'avenir-lt-w01_85-heavy1475544';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/avenir-lt-w01_85-heavy1475544.woff2') format('woff2');
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0160-0161, U+0178, U+017D-017E, U+0192, U+0237, U+02C6-02C7, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
}

@font-face {
  font-family: 'avenir-lt-w01_35-light1475496';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/avenir-lt-w05_35-light.woff2') format('woff2');
  unicode-range: U+0100-012B, U+012E-0130, U+0132-0137, U+0139-0149, U+014C-0151, U+0154-015F, U+0162-0177, U+0179-017C, U+0218-021B, U+02C9, U+02D8-02D9, U+02DB, U+02DD, U+0394, U+03A9, U+03BC, U+03C0, U+1E9E, U+20B9-20BA, U+20BC-20BD, U+2113, U+2126, U+212E, U+2202, U+2206, U+220F, U+2211-2212, U+2215, U+2219-221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+F8FF, U+FB01-FB02;
}

@font-face {
  font-family: 'avenir-lt-w01_35-light1475496';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/avenir-lt-w01_35-light1475496.woff2') format('woff2');
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0160-0161, U+0178, U+017D-017E, U+0192, U+0237, U+02C6-02C7, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
}

/* Custom Animations from HomePage */
.tech-grid {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.tech-grid-dark {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.clip-angled {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.clip-angled-reverse {
  clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%, 0 40px);
}

/* Marquee - YAVAŞLATILDI (60s) */
.marquee-container {
  display: flex;
  width: 200%;
  animation: marquee 60s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-container:hover {
  animation-play-state: paused;
}

/* Radar Animasyonu */
.radar-spin {
  animation: spin 30s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== GPU HIZLANDIRMA (60fps) ========== */
.animate-on-scroll,
.animate-on-scroll-left,
.animate-on-scroll-right,
.feature-card,
.service-item,
.service-image-slide,
.seo-content-card,
.faq-card,
.about-story-card,
.bg-secondary.rounded-lg,
.bg-primary.p-8.rounded-lg,
.border-l-4.border-accentcyan,
.relative.pl-12,
.header-logo,
nav a,
header,
.marquee-container {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ========== SCROLL ANİMASYONLARI (Smooth 60fps) ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.animate-on-scroll-left {
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll-left.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.animate-on-scroll-right {
  opacity: 0;
  transform: translate3d(30px, 0, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll-right.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ========== FEATURE CARD HOVER (Smooth 60fps) ========== */
.feature-card {
  transition: background-color 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important,
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.feature-card:hover {
  background-color: #000000 !important;
  transform: translate3d(0, -4px, 0) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}
.feature-card .feature-icon {
  transition: color 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.feature-card:hover .feature-icon {
  color: #00F0FF;
  transform: scale(1.1);
}
.feature-card .feature-title,
.feature-card .feature-desc {
  transition: color 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important, opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.feature-card:hover .feature-title,
.feature-card:hover .feature-desc {
  color: #FFFFFF;
}
.feature-card:hover .feature-desc {
  opacity: 0.7;
}

/* ========== SERVİS ITEM (Ana Sayfa - 60fps) ========== */
.service-item {
  transition: padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important,
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important,
              background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.service-item:hover {
  padding-left: 2rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-color: #00F0FF;
}
.service-item .service-title {
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.service-item:hover .service-title {
  color: #00F0FF;
}
.service-item .service-arrow {
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important,
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.service-item:hover .service-arrow {
  color: #00F0FF;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ========== SERVİS GÖRSEL GEÇİŞİ (Çok Smooth - crossfade) ========== */
.service-image-slide {
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.service-image-slide img {
  transition: filter 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-image-slide:hover img,
.service-image-slide img.no-grayscale {
  filter: grayscale(0) contrast(1.05);
}

/* ========== LINE CLAMP ========== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== BUTON HOVER (60fps) ========== */
a[class*="bg-accentcyan"], button[class*="bg-accentcyan"] {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a[class*="bg-accentcyan"]:hover, button[class*="bg-accentcyan"]:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
}
a[class*="bg-accentcyan"]:active, button[class*="bg-accentcyan"]:active {
  transform: translate3d(0, 0, 0);
  transition-duration: 0.1s;
}
a[class*="bg-white"] {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a[class*="bg-white"]:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* ========== KART HOVER (60fps) ========== */
.bg-secondary.rounded-lg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bg-secondary.rounded-lg:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}
.bg-primary.p-8.rounded-lg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bg-primary.p-8.rounded-lg:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 16px 32px rgba(0, 240, 255, 0.08);
}

/* ========== GÖRSEL HOVER (60fps) ========== */
img.grayscale {
  transition: filter 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
img.grayscale:hover {
  filter: grayscale(0) contrast(1.05);
}

/* ========== NAVİGASYON (60fps) ========== */
nav a {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
nav a:hover {
  transform: translate3d(0, -1px, 0);
}
header {
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* ========== FOOTER LİNK HOVER (60fps) ========== */
footer a {
  position: relative;
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #00F0FF;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
footer a:hover::after { width: 100%; }
footer a:hover { transform: translate3d(3px, 0, 0); }

/* ========== FORM FOCUS (60fps) ========== */
input, textarea {
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

/* ========== BORDER-L KARTLAR (60fps) ========== */
.border-l-4.border-accentcyan {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.border-l-4.border-accentcyan:hover {
  transform: translate3d(3px, 0, 0);
  box-shadow: -3px 0 16px rgba(0, 240, 255, 0.08);
}

/* ========== İKON ANİMASYONLARI (60fps) ========== */
i[data-lucide] {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover i[data-lucide],
.bg-primary.p-8.rounded-lg:hover i[data-lucide] {
  transform: scale(1.1);
}

/* ========== PROCESS STEPS (60fps) ========== */
.relative.pl-12 {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.relative.pl-12:hover {
  transform: translate3d(6px, 0, 0);
}
.absolute.left-0.top-1 {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.relative.pl-12:hover .absolute.left-0.top-1 {
  background-color: #000;
  border-color: #00F0FF;
  color: #00F0FF;
  transform: scale(1.1);
}

/* ========== LOGO HOVER (60fps) ========== */
.header-logo {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.2));
}

/* Erişilebilirlik */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; transition: background 0.3s ease; }
::-webkit-scrollbar-thumb:hover { background: #00F0FF; }

/* ========== RESPONSİVE DÜZELTMELERİ ========== */

/* Mobil (max-width: 768px) */
@media (max-width: 768px) {
  /* Hero Section - mobilde yığılma önleme */
  section.h-\[100vh\] {
    height: auto !important;
    min-height: auto !important;
  }
  /* Hero sol taraf */
  .lg\:w-\[45\%\] {
    padding-top: 7rem !important;
    padding-bottom: 6rem !important;
  }
  /* Hero sağ resim mobilde küçült */
  .lg\:w-\[55\%\] {
    height: 40vh !important;
  }
  /* Başlık boyutları küçült */
  .text-5xl {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }
  .text-7xl, .text-8xl, .text-9xl {
    font-size: 2.5rem !important;
    line-height: 1 !important;
  }
  /* Alt dekoratif eleman mobilde düzelt */
  .absolute.bottom-12.left-8 {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 2rem;
  }
  /* Grid tek sütun */
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  /* Padding azalt */
  .px-6 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .py-32 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .py-24 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .py-40 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .pt-32 { padding-top: 6rem !important; }
  /* Metin taşmasını önle */
  .max-w-2xl, .max-w-3xl, .max-w-4xl, .max-w-5xl {
    max-width: 100% !important;
  }
  /* CTA section başlık */
  .md\:text-7xl, .lg\:text-8xl {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }
  /* Footer grid tek sütun */
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Process section grid */
  .lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  /* Service list ve image yan yana değil alt alta */
  .lg\:flex-row {
    flex-direction: column !important;
  }
  /* Aspect square küçült */
  .aspect-square {
    max-width: 250px !important;
  }
  /* Gap azalt */
  .gap-16 { gap: 2rem !important; }
  .gap-20 { gap: 2rem !important; }
  /* Marquee yazı boyutu */
  .marquee-container { font-size: 0.65rem !important; }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .text-7xl, .text-8xl {
    font-size: 3.5rem !important;
    line-height: 1 !important;
  }
  .text-6xl {
    font-size: 2.75rem !important;
  }
  .lg\:w-\[45\%\] {
    width: 50% !important;
  }
  .lg\:w-\[55\%\] {
    width: 50% !important;
  }
  .lg\:px-12 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .gap-16 { gap: 2.5rem !important; }
  .py-32 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}

/* Google reCAPTCHA v3 Rozetini Gizleme */
.grecaptcha-badge { 
    visibility: hidden !important;
    opacity: 0 !important;
}
