/* Global Stil Tanımları */
html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0A0A0A;
  color: #E5E7EB;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Fontlar */
.font-poppins {
  font-family: 'Poppins', sans-serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0A0A0A;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(185, 28, 28, 0.3);
  border-top-color: #b91c1c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Aurora Background */
.aurora-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.aurora-background::before,
.aurora-background::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
}

.aurora-background::before {
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  top: -20%;
  left: -20%;
  animation: moveAurora1 20s infinite alternate ease-in-out;
}

.aurora-background::after {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  bottom: -20%;
  right: -20%;
  animation: moveAurora2 20s infinite alternate ease-in-out;
}

@keyframes moveAurora1 {
  0% {
    transform: translate(-20%, -20%) scale(1);
  }

  50% {
    transform: translate(20%, 10%) scale(1.2);
  }

  100% {
    transform: translate(10%, 20%) scale(1);
  }
}

@keyframes moveAurora2 {
  0% {
    transform: translate(20%, 20%) scale(1);
  }

  50% {
    transform: translate(-10%, -20%) scale(1.2);
  }

  100% {
    transform: translate(-20%, -10%) scale(1);
  }
}

/* Floating Particles */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(185, 28, 28, 0.5);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(185, 28, 28, 0.25);
  border-color: rgba(185, 28, 28, 0.5);
}

/* Glowing Button */
.glowing-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.3);
}

.glowing-btn:hover {
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.6);
  transform: translateY(-2px);
}

.glowing-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.glowing-btn:hover::before {
  left: 100%;
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: linear-gradient(90deg, #b91c1c, #ef4444);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  min-width: 280px;
  z-index: 100;
  padding: 0.75rem 0;
  animation: fadeInDown 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing Animation */
.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #b91c1c;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #b91c1c;
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #b91c1c, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-animated {
  background: linear-gradient(135deg, #b91c1c, #ef4444, #f97316, #b91c1c);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Stats Counter */
.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Service Icon Animation */
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.2), rgba(185, 28, 28, 0.1));
  border-radius: 1.5rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(185, 28, 28, 0.3);
}

.glass-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.4);
}

/* Process Timeline */
.process-step {
  position: relative;
  padding-left: 3rem;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 3rem;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(to bottom, #b91c1c, transparent);
}

.process-step:last-child::before {
  display: none;
}

.process-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.5);
}

/* Testimonial Slider */
.testimonial-slider {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: #b91c1c;
  transform: scale(1.2);
}

/* Portfolio Hover Effect */
.portfolio-card {
  position: relative;
  overflow: hidden;
}

.portfolio-card img {
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* Page Transition */
.page-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Footer */
.footer-link {
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #b91c1c;
  transform: translateX(5px);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #b91c1c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(185, 28, 28, 0.3);
}

/* Responsive */

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
  .stat-number {
    font-size: 1.5rem !important;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-card p {
    font-size: 0.7rem;
    margin-top: 0.25rem;
  }

  .glass-card {
    padding: 1rem;
    border-radius: 1rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }

  .service-icon i {
    font-size: 1.25rem !important;
  }

  .process-step {
    padding-left: 2rem;
  }

  .process-number {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
}

/* Small devices (phones in landscape, 768px and down) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .process-step {
    padding-left: 2.5rem;
  }

  .glass-card {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .glass-card:hover {
    transform: translateY(-5px);
  }

  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 1rem;
  }

  .glowing-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .dropdown-menu {
    min-width: 220px;
  }

  /* Footer responsive */
  .footer-link {
    font-size: 0.875rem;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }
}

/* Medium devices (tablets, 1024px and down) */
@media (max-width: 1024px) {
  .stat-number {
    font-size: 2.5rem;
  }

  .glass-card:hover {
    transform: translateY(-5px);
  }
}

/* Prevent horizontal overflow on all devices */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero section responsive */
  section h1 {
    word-break: break-word;
  }

  /* Stats section mobile optimization */
  #stats-section .glass-card {
    padding: 1rem;
  }

  /* Portfolio cards mobile */
  .portfolio-card {
    border-radius: 1rem;
  }

  .portfolio-overlay {
    padding: 1rem;
  }
}