/* Custom CSS for Yıldız Bilişim */

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --light-blue: #eff6ff;
  --dark-blue: #1e3a8a;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;
}

/* General Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Logo */
.logo-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  z-index: 1050;
}

.navbar-brand {
  font-size: 1.5rem;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

/* Dropdown Menu */
.dropdown-menu-custom {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1rem 0;
  min-width: 280px;
}

.dropdown-menu-custom .dropdown-header {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}

.dropdown-menu-custom .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.dropdown-menu-custom .dropdown-item:hover {
  background-color: var(--light-blue);
  color: var(--primary-color);
  transform: translateX(5px);
}

.dropdown-menu-custom .dropdown-item i {
  width: 20px;
  color: var(--primary-color);
  margin-right: 10px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--light-blue) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge .badge {
  font-size: 0.9rem;
  font-weight: 500;
}

.bg-primary-light {
  background-color: var(--light-blue) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hero-card .card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 1.5rem;
  border: none;
}

.hero-card .card-body {
  padding: 2rem;
}

.feature-box {
  text-align: center;
  padding: 1rem 0.5rem;
}

.feature-icon {
  background: var(--light-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.service-icon {
  background: linear-gradient(135deg, var(--light-blue), #dbeafe);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  transform: scale(1.1);
}

.service-card .btn {
  margin-top: auto;
}

/* Stats Section */
.stat-item {
  padding: 1rem;
}

.counter {
  transition: all 0.3s ease;
}

/* Advantage Items */
.advantage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.advantage-icon {
  background: var(--light-blue);
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.advantage-card {
  transition: all 0.3s ease;
  height: 100%;
}

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

/* Gradients */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Social Links */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Contact Info */
.contact-info p {
  display: flex;
  align-items: center;
}

.contact-info i {
  width: 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 6rem 0 2rem;
    min-height: auto;
  }

  .hero-section .container .row {
    min-height: auto;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }

  .dropdown-menu-custom {
    position: relative !important;
    width: 100% !important;
    box-shadow: none;
    padding: 1rem 0;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 5rem 0 2rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .feature-box {
    padding: 0.5rem;
  }

  .advantage-item {
    flex-direction: column;
    text-align: center;
  }

  .advantage-icon {
    margin: 0 auto 1rem;
  }

  .stat-item h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 4rem 0 2rem;
  }

  .hero-card .card-body {
    padding: 1.5rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Form Styles */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Alert Styles */
.alert-custom {
  position: relative;
  z-index: 1000;
  margin-bottom: 1rem;
}

/* Utilities */
.shadow-custom {
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1) !important;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Focus States */
.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  .hero-section {
    padding: 2rem 0;
  }
}
