/* Babuba.com - Essential Styles Only */
/* Tailwind CSS handles all components and layout */

/* Import Google Fonts - Only Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Import Phosphor Icons */
@import url('https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css');
@import url('https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/fill/style.css');
@import url('https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/duotone/style.css');

/* CSS Variables for consistent theming */
:root {
  --primary-blue: #1977ff;
  --white: #ffffff;
  --dark-blue: #0d47a1;
  --light-blue: #e3f2fd;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Fix for Turkish characters like Ğ, Ş, İ, etc. */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  padding-bottom: 0.1em;
}

p, span, div {
  line-height: 1.7;
  padding-bottom: 0.05em;
}

/* Ensure all text uses Inter font */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Minimal animations for modern corporate design */
@keyframes subtleFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

/* Simple hero background */
.hero-gradient {
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

/* Hero floating animation */
@keyframes heroFloat {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg);
  }
  33% { 
    transform: translate(30px, -30px) rotate(1deg);
  }
  66% { 
    transform: translate(-20px, 20px) rotate(-1deg);
  }
}

/* Hero shimmer effect */
@keyframes heroShimmer {
  0%, 100% { 
    opacity: 0.3;
    transform: translateX(-100%);
  }
  50% { 
    opacity: 0.6;
    transform: translateX(100%);
  }
}

/* Hero content positioning */
.hero-content {
  position: relative;
  z-index: 10;
}

/* Hero logo enhancement */
.hero-logo {
  filter: drop-shadow(0 10px 25px rgba(25, 119, 255, 0.2));
  transition: all 0.3s ease;
}

.hero-logo:hover {
  filter: drop-shadow(0 15px 35px rgba(25, 119, 255, 0.3));
  transform: scale(1.05);
}

/* Hero title enhancement */
.hero-title {
  color: #1e293b;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #1977ff;
  border-radius: 2px;
  animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
  0%, 100% { width: 100px; }
  50% { width: 150px; }
}

/* Hero subtitle enhancement */
.hero-subtitle {
  color: #64748b;
  position: relative;
}

/* Hero buttons enhancement */
.hero-buttons {
  position: relative;
  z-index: 10;
}

/* Mobile Hero Buttons - Equal Width and Alignment */
@media (max-width: 768px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100% !important;
    min-width: 300px;
    text-align: center;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    white-space: nowrap;
    justify-content: center;
  }
}

/* Small Mobile Hero Buttons */
@media (max-width: 480px) {
  .hero-buttons {
    max-width: 320px;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    min-width: 260px;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
}

.hero-btn-primary {
  background: #1977ff;
  box-shadow:
    0 10px 25px rgba(25, 119, 255, 0.3),
    0 4px 10px rgba(25, 119, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(25, 119, 255, 0.2);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(25, 119, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
}

/* Responsive Logo Styles */
.header-logo img {
  transition: all 0.3s ease;
}

/* Desktop Logo - Hidden on mobile */
.header-logo .hidden.md\\:block {
  display: none;
}

@media (min-width: 768px) {
  .header-logo .hidden.md\\:block {
    display: block;
  }
  
  .header-logo .block.md\\:hidden {
    display: none;
  }
}

/* Mobile Logo - Hidden on desktop */
.header-logo .block.md\\:hidden {
  display: block;
}

@media (min-width: 768px) {
  .header-logo .block.md\\:hidden {
    display: none;
  }
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 0;
    align-items: center;
    justify-content: space-between;
  }
  
  .header-logo {
    order: 1;
    display: flex;
    justify-content: flex-start;
    width: auto;
    flex-shrink: 0;
  }
  
  .header-logo a {
    filter: none !important;
    box-shadow: none !important;
  }
  
  .header-right {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: auto;
    flex-shrink: 0;
  }
  
  .language-switcher {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.125rem;
    padding: 0.125rem;
  }
  
  .language-switcher a {
    font-size: 0.625rem;
    padding: 0.25rem 0.375rem;
    white-space: nowrap;
  }
  
  .contact-button {
    font-size: 0.625rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
  }
}

/* Mobile Responsive Typography */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-title {
    font-size: 2rem !important; /* text-4xl -> text-3xl */
    line-height: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.125rem !important; /* text-xl -> text-lg */
    line-height: 1.75rem !important;
  }
  
  .hero-description {
    font-size: 1rem !important; /* text-lg -> text-base */
    line-height: 1.5rem !important;
  }
  
  /* Section Headings */
  .section-title {
    font-size: 2.25rem !important; /* text-4xl -> text-3xl */
    line-height: 2.5rem !important;
  }
  
  .section-subtitle {
    font-size: 1.125rem !important; /* text-xl -> text-lg */
    line-height: 1.75rem !important;
  }
  
  /* Card Titles */
  .card-title {
    font-size: 1.25rem !important; /* text-2xl -> text-xl */
    line-height: 1.75rem !important;
  }
  
  .card-description {
    font-size: 0.875rem !important; /* text-base -> text-sm */
    line-height: 1.25rem !important;
  }
  
  /* Contact Section */
  .contact-title {
    font-size: 1.875rem !important; /* text-3xl -> text-2xl */
    line-height: 2.25rem !important;
  }
  
  .contact-subtitle {
    font-size: 1rem !important; /* text-lg -> text-base */
    line-height: 1.5rem !important;
  }
  
  /* Buttons */
  .btn-primary, .btn-secondary {
    font-size: 0.875rem !important; /* text-sm */
    padding: 0.75rem 1.5rem !important;
  }
  
  /* Mission Section */
  .mission-title {
    font-size: 2.25rem !important; /* text-4xl -> text-3xl */
    line-height: 2.5rem !important;
  }
  
  .mission-description {
    font-size: 1.125rem !important; /* text-xl -> text-lg */
    line-height: 1.75rem !important;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

/* RTL Mobile Responsive Header */
@media (max-width: 768px) {
  [dir="rtl"] .header-container {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 0;
    align-items: center;
    justify-content: space-between;
  }
  
  [dir="rtl"] .header-logo {
    order: 2;
    display: flex;
    justify-content: flex-end;
    width: auto;
    flex-shrink: 0;
  }
  
  [dir="rtl"] .header-right {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: auto;
    flex-shrink: 0;
    flex-direction: row-reverse;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 100px;
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
  outline: none;
}

/* Custom focus for navigation links */
.nav-link:focus,
.mobile-nav-link:focus {
  outline: none;
  color: var(--primary-blue);
}

.nav-link:focus::before {
  width: 100%;
}

/* Header Styles */
#main-header {
  transition: all 0.3s ease;
}

#main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(25, 119, 255, 0.15);
}

/* Navigation Link Styles */
.nav-link {
  position: relative;
  overflow: hidden;
}

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

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: #1977ff !important;
  font-weight: 600;
  border-radius: 8px;
}

.nav-link.active::before {
  width: 100% !important;
}

/* Mobile Navigation */
.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: rgba(25, 119, 255, 0.1);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
  width: 100%;
}

.mobile-nav-link.active {
  color: #1977ff !important;
  background: rgba(25, 119, 255, 0.15) !important;
  font-weight: 600;
  border-radius: 8px;
}

.mobile-nav-link.active::before {
  width: 100% !important;
  background: rgba(25, 119, 255, 0.2);
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: all 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
}

#mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
}

/* Premium Card Designs - World's Best Practices */
.premium-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #1977ff;
}

.premium-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(25, 119, 255, 0.1);
  border-color: rgba(25, 119, 255, 0.2);
}


/* Language Switcher Active State */
.lang-active {
  background-color: white !important;
  color: #2563eb !important;
}

/* Force white text for inactive language links */
.lang-inactive {
  color: white !important;
}

.lang-inactive:hover {
  color: #2563eb !important;
}

/* Override any conflicting text colors */
a.text-white,
.text-white {
  color: white;
}


/* Icon Color System - Semantic & Brand Consistent */
.premium-card-icon {
  color: #1977ff;
  transition: all 0.3s ease;
}

.premium-card:hover .premium-card-icon {
  transform: scale(1.1) rotate(5deg);
  color: #0d47a1;
}

/* Specific Icon Colors for Features */
.icon-car {
  color: #1977ff; /* Primary blue for vehicles */
}

.icon-lightning {
  color: #f59e0b; /* Amber for energy/charging */
}

.icon-profile {
  color: #10b981; /* Emerald for data/information */
}

.icon-rocket {
  color: #8b5cf6; /* Purple for innovation/launch */
}

.icon-users {
  color: #06b6d4; /* Cyan for community */
}

.icon-wrench {
  color: #f97316; /* Orange for services */
}

.icon-chart {
  color: #ef4444; /* Red for analytics */
}

.icon-mobile {
  color: #6366f1; /* Indigo for mobile */
}

.icon-house {
  color: #84cc16; /* Lime for individual users */
}

.icon-buildings {
  color: #64748b; /* Slate for business */
}

.icon-phone {
  color: #1977ff; /* Primary blue for contact */
}

.icon-envelope {
  color: #3b82f6; /* Blue for email */
}

.icon-handshake {
  color: #10b981; /* Green for partnership */
}

.icon-linkedin {
  color: #0077b5; /* LinkedIn brand blue */
}

.icon-instagram {
  color: #e4405f; /* Instagram brand pink */
}

.icon-x {
  color: #1da1f2; /* X brand blue */
}

.icon-youtube {
  color: #ff0000; /* YouTube brand red */
}

.premium-card-title {
  color: #1e293b;
  transition: all 0.3s ease;
}

.premium-card:hover .premium-card-title {
  color: #1977ff;
}

.premium-card-content {
  color: #64748b;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.premium-card:hover .premium-card-content {
  color: #475569;
}

/* Shimmer animation for card top border */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Subtle animations */
.fade-in {
  animation: subtleFade 0.6s ease-out;
}

.float-gentle {
  animation: gentleFloat 6s ease-in-out infinite;
}

/* Modern button styles */
.btn-modern {
  background: linear-gradient(135deg, #1977ff, #0d47a1);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(25, 119, 255, 0.3);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(25, 119, 255, 0.4);
}

/* Corporate section styling */
.section-modern {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  margin: 20px 0;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Icon styling */
.icon-modern {
  background: linear-gradient(135deg, #1977ff, #0d47a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typography improvements */
.heading-modern {
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .header,
  .footer {
    display: none;
  }
  
  .main {
    margin-top: 0;
  }
}