/* ========================================
   PREMIUM KURUMSAL SITE - DESIGN SYSTEM
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #1a56db;
  --primary-dark: #1342a8;
  --primary-light: #e8effc;
  --accent: #f59e0b;
  --accent-glow: #fbbf24;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f1f5f9;
  --light-2: #e2e8f0;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #1a56db 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1a365d 40%, #1a56db 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --shadow-glow: 0 0 30px rgba(26,86,219,.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all .35s cubic-bezier(.4,0,.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a { text-decoration: none; transition: var(--transition); }

img { max-width: 100%; height: auto; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ========================================
   TOPBAR
   ======================================== */
.topbar {
  background: var(--dark) !important;
  padding: 10px 0 !important;
  font-size: .85rem;
  letter-spacing: .3px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar a.text-light { opacity: .7; transition: var(--transition); }
.topbar a.text-light:hover { opacity: 1; color: var(--accent) !important; transform: scale(1.15); }
.topbar i { color: var(--accent); }

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  padding: 16px 0 !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
  z-index: 1050;
}
.navbar.scrolled {
  padding: 10px 0 !important;
  box-shadow: var(--shadow-md);
}
.navbar-brand {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: var(--dark) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  position: relative;
  letter-spacing: .2px;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 18px; right: 18px;
  height: 2.5px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link:hover { color: var(--primary) !important; }

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(26,86,219,.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124,58,237,.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(245,158,11,.15) 0%, transparent 40%);
  z-index: 1;
}
.hero-section .hero-content { position: relative; z-index: 2; }
.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hero-section .hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.8);
  font-weight: 400;
  max-width: 600px;
}
.hero-section .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--accent-glow);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .5px;
}
/* Floating particles */
.hero-particles {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.hero-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
  animation: float-particle 15s infinite linear;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50px;
  border: none;
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,86,219,.35);
  transition: var(--transition);
  letter-spacing: .3px;
  position: relative;
  overflow: hidden;
}
.btn-premium::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s;
}
.btn-premium:hover::before { left: 100%; }
.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26,86,219,.45);
  color: var(--white);
}

.btn-outline-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  color: var(--white);
  transition: var(--transition);
}
.btn-outline-premium:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  transform: translateY(-3px);
}

/* ========================================
   SECTION STYLING
   ======================================== */
.section-padding { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.5px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 16px auto 0;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(0,0,0,.04) !important;
  padding: 40px 30px !important;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: transparent !important;
}
.service-icon {
  width: 72px; height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}
.service-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(124,58,237,.3) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(245,158,11,.2) 0%, transparent 50%);
}
.stat-item {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}
.stat-icon {
  width: 64px; height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: var(--accent-glow);
  margin-bottom: 20px;
}
.stat-item h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.stat-item p {
  color: rgba(255,255,255,.7);
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--light);
  position: relative;
}
.cta-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-card h2 { color: var(--white); font-weight: 800; }
.cta-card p { color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ========================================
   PAGE HEADER (Inner Pages)
   ======================================== */
.page-header {
  background: var(--gradient-hero);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(124,58,237,.2) 0%, transparent 60%);
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 2;
}
.page-header .breadcrumb-custom {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.page-header .breadcrumb-custom a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}
.page-header .breadcrumb-custom a:hover { color: var(--accent-glow); }
.page-header .breadcrumb-custom span { color: rgba(255,255,255,.4); }
.page-header .breadcrumb-custom .current { color: rgba(255,255,255,.9); font-weight: 600; font-size: .9rem; }

/* ========================================
   CONTACT CARDS
   ======================================== */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
}
.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.contact-info-card .contact-icon {
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.4rem;
  margin-bottom: 16px;
  transition: var(--transition);
}
.contact-info-card:hover .contact-icon {
  background: var(--gradient-primary);
  color: var(--white);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: var(--shadow-md);
}
.form-control, .form-select {
  padding: 14px 18px;
  border: 2px solid var(--light-2);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: var(--transition);
  background: var(--light);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,.1);
  background: var(--white);
}
.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--dark-3);
  margin-bottom: 6px;
}

/* ========================================
   PAGE CONTENT
   ======================================== */
.page-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--dark-3);
}
.page-content p { margin-bottom: 1.5rem; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}
.footer h5 {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}
.footer a {
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  font-size: .95rem;
}
.footer a:hover {
  color: var(--accent-glow);
  padding-left: 6px;
}
.footer-link-item {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-link-item::before {
  content: '→';
  color: var(--primary);
  font-size: .8rem;
  transition: var(--transition);
}
.footer-social a {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  margin-right: 10px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-4px);
  padding-left: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  margin-top: 40px;
}
.footer-bottom small {
  color: rgba(255,255,255,.4);
  font-size: .85rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: .1s; }
.fade-up.delay-2 { transition-delay: .2s; }
.fade-up.delay-3 { transition-delay: .3s; }
.fade-up.delay-4 { transition-delay: .4s; }

/* Pulse glow on accent elements */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
  50% { box-shadow: 0 0 20px 8px rgba(245,158,11,.15); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .hero-section { min-height: 70vh; }
  .section-padding { padding: 70px 0; }
  .cta-card { padding: 40px 24px; }
  .contact-form-card { padding: 32px 24px; }
  .navbar-collapse { background: var(--white); padding: 20px; border-radius: var(--radius-md); margin-top: 10px; box-shadow: var(--shadow-lg); }
}
@media (max-width: 767px) {
  .hero-section { min-height: 60vh; }
  .hero-section h1 { font-size: 2rem; }
  .section-padding { padding: 50px 0; }
  .stat-item { padding: 24px 16px; }
  .stat-item h2 { font-size: 2rem; }
  .topbar { display: none !important; }
}
