/*
==============================================
OTURUMVIZESI.NET - MAIN CSS
==============================================
Professional Turkish Immigration Platform
Bootstrap 5.3+ Compatible
Mobile-First Responsive Design
Professional Blue/Green Trust Colors
==============================================
*/

/* =============================================
   CUSTOM PROPERTIES & VARIABLES
============================================= */
:root {
  /* Primary Colors - Professional Trust Colors */
  --primary-blue: #1e40af;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1e3a8a;
  --primary-green: #16a34a;
  --primary-green-light: #22c55e;
  --primary-green-dark: #15803d;
  
  /* Secondary Colors */
  --secondary-gray: #6b7280;
  --secondary-gray-light: #f3f4f6;
  --secondary-gray-dark: #374151;
  
  /* Accent Colors */
  --accent-orange: #ea580c;
  --accent-red: #dc2626;
  --accent-yellow: #ca8a04;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-white: #ffffff;
  
  /* Border & Shadow */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 4rem 0;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* =============================================
   GLOBAL STYLES & RESET
============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

/* =============================================
   HEADER & NAVIGATION
============================================= */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Mobile Navbar Optimization */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--bg-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
  }
  
  .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    font-weight: 500;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    text-align: left;
    font-size: 1rem;
  }

  .navbar-nav .nav-link i {
    margin-right: 0.75rem !important;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: var(--primary-blue);
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: var(--primary-blue-light);
    color: var(--text-white) !important;
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .nav-link:hover i,
  .navbar-nav .nav-link.active i {
    color: var(--text-white) !important;
  }

  /* Mobile Dropdown Styling */
  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: var(--secondary-gray-light);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 0.5rem;
  }

  .navbar-nav .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    margin: 0.125rem 0;
  }
  
  .site-header {
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
  }

  .site-header.scrolled {
    background: var(--bg-white); /* Ensure white background on scroll */
    box-shadow: var(--shadow-md);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .navbar-brand,
  .navbar-toggler {
    color: var(--text-primary) !important;
    z-index: 1002;
    position: relative;
  }
}

/* Navbar Brand Styling */
.navbar-brand {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-blue) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  padding: 0.5rem 0 !important;
}

.navbar-brand:hover {
  color: var(--primary-green) !important;
  transform: scale(1.02);
}

.navbar-brand img {
  transition: var(--transition-fast);
}

.navbar-brand:hover img {
  transform: rotate(5deg);
}

/* Desktop Navbar Container Optimization */
@media (min-width: 992px) {
  .navbar-nav {
    align-items: center;
    gap: 0.25rem;
  }

  .navbar-nav .nav-item {
    position: relative;
  }

  .navbar-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-fast);
  }

  .navbar-nav .nav-item:hover::after,
  .navbar-nav .nav-item.active::after {
    width: 80%;
  }

  /* Desktop Emergency Button */
  .btn-success {
    background: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    border-radius: 0.5rem !important;
    padding: 0.6rem 1.2rem !important;
    font-weight: 600 !important;
    transition: var(--transition-fast) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .btn-success:hover {
    background: var(--primary-green-dark) !important;
    border-color: var(--primary-green-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
  }

  .btn-success i {
    font-size: 1.1rem;
  }
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  margin: 0 0.25rem;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem;
  transition: var(--transition-fast);
  display: flex !important;
  align-items: center !important;
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1.2;
}

.navbar-nav .nav-link i {
  margin-right: 0.5rem !important;
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: var(--secondary-gray-light);
  color: var(--primary-blue) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Dropdown Menu Styling */
.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 0.75rem;
  padding: 0.5rem;
  margin-top: 0.25rem;
  min-width: 200px;
}

.navbar-nav .dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-fast);
  margin: 0.125rem 0;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background-color: var(--primary-blue-light);
  color: var(--text-white);
  transform: translateX(5px);
}

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
  background: var(--bg-white);
  color: var(--text-primary);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(22, 163, 74, 0.03) 100%);
  z-index: 1;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--primary-blue);
  font-weight: 700;
}

/* =============================================
   BUTTONS & INTERACTIVE ELEMENTS
============================================= */
.btn-custom-primary {
  background: var(--primary-green);
  border: none;
  color: var(--text-white);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.btn-custom-primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-white);
}

.btn-custom-secondary {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition-normal);
}

.btn-custom-secondary:hover {
  background: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
}

/* =============================================
   CARDS & CONTENT SECTIONS
============================================= */
.section-padding {
  padding: var(--section-padding);
}

.card-custom {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue-light);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-green-light));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  font-size: 1.5rem;
}

.card-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   STATISTICS & COUNTERS
============================================= */
.stats-section {
  background: var(--secondary-gray-light);
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =============================================
   COUNTRY FLAGS & VISAS
============================================= */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.country-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue-light);
}

.country-flag {
  width: 3rem;
  height: 2rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.visa-types {
  margin-top: 1rem;
}

.visa-badge {
  display: inline-block;
  background: var(--primary-blue-light);
  color: var(--text-white);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
  font-weight: 500;
}

/* =============================================
   CONSULTANT PROFILES
============================================= */
.consultant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.consultant-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.consultant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.consultant-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--primary-blue-light);
}

.consultant-rating {
  color: var(--accent-yellow);
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.consultant-specialties {
  margin-top: 1rem;
}

.specialty-badge {
  display: inline-block;
  background: var(--primary-green-light);
  color: var(--text-white);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  margin: 0.25rem;
  font-weight: 500;
}

/* =============================================
   WARNING & ALERT SECTIONS
============================================= */
.warning-section {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2rem 0;
}

.warning-title {
  color: #92400e;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.warning-title i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.danger-section {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 1px solid var(--accent-red);
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2rem 0;
}

.danger-title {
  color: #991b1b;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.danger-title i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  color: var(--text-white);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-blue-light);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: var(--text-white) !important;
  border-radius: 50%;
  text-decoration: none !important;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
}

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

/* =============================================
   RESPONSIVE DESIGN
============================================= */

/* Tablet Styles */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .country-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .consultant-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile Styles */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
  
  .hero-svg {
    max-width: 100%;
    height: auto;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .card-custom {
    padding: 1.5rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .country-grid,
  .consultant-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-custom-primary,
  .btn-custom-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Small Mobile Styles */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .card-custom {
    padding: 1rem;
  }
  
  .warning-section,
  .danger-section {
    padding: 1.5rem;
  }
}

/* =============================================
   UTILITY CLASSES
============================================= */
.text-primary-custom { color: var(--primary-blue) !important; }
.text-secondary-custom { color: var(--text-secondary) !important; }
.bg-light-custom { background-color: var(--bg-light) !important; }
.border-radius-custom { border-radius: 1rem !important; }
.box-shadow-custom { box-shadow: var(--shadow-md) !important; }

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

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 2px solid var(--border-light);
  border-radius: 50%;
  border-top: 2px solid var(--primary-blue);
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
button:focus,
.btn:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #000080;
    --primary-green: #006400;
    --text-primary: #000000;
    --text-secondary: #333333;
  }
}

/* Print Styles */
@media print {
  .hero-section,
  .site-footer,
  .btn,
  .social-links {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  .card-custom {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* =============================================
   HERO SVG ANIMATIONS
============================================= */
.hero-svg {
  max-width: 100%;
  height: auto;
}

.floating-element {
  animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-10px); 
  }
}

/* Hero Visual Enhancements */
.hero-visual {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-visual {
    padding: 1rem;
  }
  
  .hero-svg {
    width: 100%;
    height: 250px;
  }
}