
:root {
  /* Brand Colors */
  --primary-dark: #0A192F; /* Koyu mavi (kurumsallık ve güven) */
  --primary-mid: #00B4D8; /* Cam göbeği/orta mavi (dinamizm) */
  --primary-light: #90E0EF; /* Açık mavi (teknoloji ve yenilik) */
  
  /* Neutral Colors */
  --text-dark: #1A1A1A;
  --text-light: #F8F9FA;
  --text-muted: #6C757D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-dark: #0A192F;
  
  /* Utilities */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --box-shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary-mid);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 25, 47, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--bg-white);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 1rem 0;
  box-shadow: var(--box-shadow-subtle);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.main-nav ul {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  color: var(--primary-dark);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-mid);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--text-muted);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-col i {
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Card */
.cta-banner {
  padding-top: 0;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  padding: 4rem 5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  color: white;
}

.cta-card h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  line-height: 1.2;
}

.cta-card p {
  color: var(--primary-light);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0;
}

/* Contact Form Container */
.contact-form-container {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-subtle);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-box {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-subtle);
  text-align: center;
}

.stat-box.offset {
  transform: translateY(2rem);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 10rem 0 4rem !important;
  }
  
  .hero-section .container {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .hero-content, .hero-image {
    width: 100%;
    flex: none !important;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content p {
    font-size: 1rem !important;
    margin: 0 auto 2rem auto;
  }
  
  .hero-content .animate-on-scroll:last-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .hero-content .btn {
    width: 100%;
    margin-right: 0 !important;
    justify-content: center;
  }
  
  .hero-image {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  .hero-image > div {
    transform: none !important; /* Remove 3D rotation on mobile for better fit */
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .main-nav.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav li {
    text-align: center;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .main-nav a::after {
    display: none;
  }
  
  .main-nav a.active {
    color: var(--primary-mid);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .cta-card {
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    text-align: center;
    justify-content: center;
  }
  
  .cta-card h2 {
    font-size: 2rem;
  }
  
  .cta-card p {
    font-size: 1rem;
    margin: 0 auto;
  }
  
  .cta-card .btn-outline {
    margin-top: 1rem;
    justify-content: center;
  }
  
  .contact-form-container {
    padding: 2.5rem 1.5rem;
    margin: 0 -2rem;
    border-radius: 0;
  }
  
  .stats-grid {
    gap: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-box {
    padding: 1.5rem 0.5rem;
  }
  
  .stat-box.offset {
    transform: translateY(1rem);
  }
  
  section { padding: 4rem 0; }
  
  .floating-contact {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Floating Contact Buttons */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all var(--transition-normal);
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-5px);
  color: white;
}

.phone-btn {
  background-color: var(--primary-mid);
}
.phone-btn:hover {
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

.wa-btn {
  background-color: #25D366;
}
.wa-btn:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(5px);
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.2s;
}
.lightbox-close:hover {
  transform: rotate(90deg);
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 1rem;
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0.6;
  z-index: 2;
  user-select: none;
}
.lightbox-prev:hover, .lightbox-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

/* Signature Underline Animation */
.signature-underline path {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: drawUnderline 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawUnderline {
    to {
        stroke-dashoffset: 0;
    }
}

/* Projects Filter Transition */
.project-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.project-item.hide {
  display: none;
}

/* Header Call Button Responsive */
@media (max-width: 992px) {
    .header-call-btn {
        display: none !important;
    }
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 400px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9998;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-mid);
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: 100%;
        padding: 1rem;
    }
}