/* SafaNET Custom CSS */

/* CSS Variables for Theme Support */
:root {
  --primary-color: #0066ff;
  --secondary-color: #00d4ff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Theme Colors */
  --bg-color: var(--white);
  --text-color: var(--gray-900);
  --card-bg: var(--white);
  --border-color: var(--gray-200);
  --shadow: rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;

  /* Modern Premium Variables */
  --eb-glass: rgba(255, 255, 255, 0.03);
  --eb-glass-border: rgba(255, 255, 255, 0.1);
  --eb-primary-grad: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --card-bg: #2d2d2d;
  --border-color: #404040;
  --shadow: rgba(0, 0, 0, 0.3);
  --gray-100: #2d2d2d;
  --gray-200: #404040;
  --gray-300: #525252;
  --light-color: #2d2d2d;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
  padding-top: 76px;
  /* Account for fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
}

.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: var(--dark-color);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Theme Toggle */
#theme-toggle {
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  transition: var(--transition);
}

#theme-toggle:hover {
  background: var(--primary-color);
  color: white;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--shadow);
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 26, 26, 0.95) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  margin: 0 5px;
  padding: 8px 15px !important;
  border-radius: 6px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(0, 102, 255, 0.1);
}

/* Hero Section (Legacy) */
.hero-section-old {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--gray-100) 100%);
  position: relative;
  overflow: hidden;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 12px 24px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.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: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052cc, #00b8e6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.service-card,
.service-card-detailed,
.testimonial-card,
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.service-card-detailed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover,
.service-card-detailed:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow);
}

.service-card:hover::before,
.service-card-detailed:hover::before {
  transform: scaleX(1);
}

/* Service Icons */
.service-icon,
.service-icon-large,
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.service-icon-large {
  width: 80px;
  height: 80px;
}

.feature-icon {
  width: 80px;
  height: 80px;
}

.service-icon-header {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i,
.service-icon-large i,
.service-icon-header i,
.feature-icon i {
  color: white;
}

.service-icon i {
  font-size: 1.5rem;
}

.service-icon-large i {
  font-size: 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
}

/* Process Steps */
.process-step {
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: var(--gray-300);
  z-index: 1;
}

@media (max-width: 991.98px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}

/* Contact Form & Info */
.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-content h5 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: bounce 2s infinite;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  color: white;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Footer */
footer {
  background: var(--gray-900) !important;
}

[data-theme="dark"] footer {
  background: #0d0d0d !important;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Utility */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 100px 0 50px;
}

.working-hours,
.accordion-item {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.tech-card,
.tech-badge {
  background: var(--card-bg);
  border-color: var(--border-color);
  transition: var(--transition);
}

.tech-card:hover,
.tech-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.accordion-button {
  background: var(--card-bg);
  color: var(--text-color);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: white;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   PREMIUM MODERN STYLES (Consolidated)
   ========================================= */

.fw-800 {
  font-weight: 800;
}

.ls-2 {
  letter-spacing: 2px;
}

.text-gradient-primary {
  background: var(--eb-primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Popup Modern Styles */
.eb-hero-popup {
  position: fixed;
  inset: 0;
  display: none;
  /* JS toggles this */
  place-items: center;
  z-index: 10000;
  padding: 1rem;
}

.eb-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.eb-hero-inner {
  position: relative;
  width: min(800px, 100%);
  background: rgba(26, 30, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: eb-fade-in-scale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes eb-fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.eb-hero-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  transition: all 0.2s;
}

.eb-hero-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.eb-hero-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eb-hero-badge {
  background: #00d4ff;
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eb-hero-paid-badge {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.eb-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eb-hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
}

.eb-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.eb-provider-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.eb-provider-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00d4ff;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(0, 212, 255, 0.3);
}

.eb-provider-name {
  font-weight: 600;
}

.eb-hero-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.eb-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.eb-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.eb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.eb-btn-premium {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 102, 255, 0.5);
}

.eb-btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -6px rgba(0, 102, 255, 0.6);
}

@media (max-width: 600px) {
  .eb-hero-inner {
    padding: 1.5rem;
  }

  .eb-hero-footer {
    flex-direction: column;
  }

  .eb-btn {
    justify-content: center;
  }
}

/* Hero Enhancements */
.hero-section {
  background: #0f1115;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero-mesh-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(at 0% 0%, rgba(0, 102, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 212, 255, 0.15) 0px, transparent 50%);
  z-index: 1;
}

.hero-mini-badge {
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: #00d4ff;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-premium-main {
  background: var(--eb-primary-grad);
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(0, 102, 255, 0.5);
}

.btn-premium-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(0, 102, 255, 0.6);
  color: #fff;
}

.btn-premium-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}

.btn-premium-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: #fff;
}

.btn-premium-glass {
  background: var(--eb-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--eb-glass-border);
  color: #fff;
}

.btn-premium-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--eb-primary-grad);
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 50%;
  animation: blob-move 10s infinite alternate;
}

@keyframes blob-move {
  from {
    transform: translate(-20%, -20%);
  }

  to {
    transform: translate(20%, 20%);
  }
}

/* Service Card Modern */
.section-title-modern {
  font-weight: 800;
  font-size: 2.5rem;
  position: relative;
}

.title-divider {
  width: 80px;
  height: 4px;
  background: var(--eb-primary-grad);
  border-radius: 2px;
}

.service-card-modern {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.service-card-modern:hover {
  transform: translateY(-10px);
  border-color: #0066ff;
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(0, 102, 255, 0.05);
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #0066ff;
  transition: all 0.3s;
}

.service-card-modern:hover .service-icon-wrapper {
  background: var(--eb-primary-grad);
  color: #fff;
}

.service-link {
  color: #0066ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

/* Service Card Detailed Modern (Hizmetler Page) */
.service-card-detailed-modern {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card-detailed-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
  border-color: #0066ff;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
  color: #0066ff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.service-card-detailed-modern:hover .service-icon-box {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  color: #fff;
}

/* Feature Card Modern */
.feature-card-modern {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: all 0.3s;
}

.feature-icon-box {
  width: 70px;
  height: 70px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.1);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #0066ff;
}

[data-theme="dark"] .bg-modern-alt {
  background: #15181c;
}

[data-theme="dark"] .feature-icon-box {
  background: #1a1e24;
  color: #00d4ff;
}

/* Testimonials & CTA Modern */
.testimonial-card-modern {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card-modern:hover {
  transform: translateY(-5px);
  border-color: #0066ff;
}

.quote-icon {
  font-size: 2rem;
  color: #0066ff;
  opacity: 0.2;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.8;
}

.cta-section-modern {
  position: relative;
}

.cta-banner {
  background: #0f1115;
  color: #fff;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.2), transparent 60%);
}

/* Process Section Timeline */
.timeline-line {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 102, 255, 0.3) 20%, rgba(0, 102, 255, 0.3) 80%, transparent);
  z-index: 0;
}

.process-card {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.process-badge {
  width: 60px;
  height: 60px;
  background: #0f1115;
  border: 2px solid #00d4ff;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transition: all 0.3s;
}

.process-card:hover .process-badge {
  transform: scale(1.1);
  background: #0066ff;
  border-color: #fff;
}

.page-header-modern2 {
  position: relative;
}

.bg-modern-dark {
  background: #f8f9fa;
}

[data-theme="dark"] .bg-modern-dark {
  background: #15181c;
}

/* 3D Tilt Effects */
.tilt-card {
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 2;
}