/* 
 * SKA IT Solutions Ltd - Custom CSS
 * Copyright (c) 2024 SKA IT Solutions Ltd
 * All royalty-free images from Unsplash.com
 */

:root {
  --brand: #2563eb;         /* primary blue */
  --brand-2: #06b6d4;       /* cyan accent */
  --ink: #0f172a;           /* slate-900 */
  --muted: #475569;         /* slate-500 */
  --surface: #0b1220;       /* dark bg for hero */
  --light: #f8fafc;         /* near-white */
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
  color: var(--ink); 
  line-height: 1.6;
}

/* Navbar */
.navbar {
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(11, 18, 32, 0.6);
  transition: all 0.3s ease;
}

.navbar .nav-link { 
  color: #e2e8f0 !important; 
  font-weight: 600; 
  transition: color 0.2s ease;
}

.navbar .nav-link:hover { 
  color: #fff !important; 
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: 
    linear-gradient(rgba(11, 18, 32, 0.85), rgba(11, 18, 32, 0.85)),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&q=80') center/cover,
    radial-gradient(1200px 600px at 10% 10%, rgba(37,99,235,0.2), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(6,182,212,0.18), transparent 60%),
    linear-gradient(180deg, var(--surface), #0b1220 60%, #0b1220 100%);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent;
}

.hero .badge { 
  background: rgba(148,163,184,0.15); 
  color: #e2e8f0; 
}

.glow {
  position: absolute; 
  inset: auto -10% -40% -10%; 
  height: 50rem; 
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(37,99,235,.18), rgba(6,182,212,.12), transparent 70%);
  filter: blur(60px); 
  opacity: .7;
}

/* Sections */
section { 
  padding: 80px 0; 
}

.section-title { 
  font-weight: 800; 
  letter-spacing: -0.02em; 
  font-size: 2.5rem;
}

.lead { 
  color: var(--muted); 
  font-size: 1.25rem;
}

/* Cards and Service Cards */
.service-card {
  border: 1px solid #e2e8f0; 
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff; 
  border-radius: 1.25rem;
}

.service-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 30px rgba(2, 8, 23, .08); 
}

.icon-badge { 
  width: 56px; 
  height: 56px; 
  border-radius: 14px; 
  display: grid; 
  place-items: center; 
  font-size: 1.6rem; 
  background: rgba(37,99,235,.1); 
  color: var(--brand); 
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; 
  border-radius: 1.25rem; 
  padding: 36px; 
  box-shadow: 0 16px 40px rgba(37,99,235,.25);
}

/* Footer */
footer { 
  background: #0b1220; 
  color: #94a3b8; 
}

footer a { 
  color: #e2e8f0; 
  text-decoration: none; 
}

footer a:hover { 
  text-decoration: underline; 
}

/* Contact Form */
.form-control:focus { 
  border-color: var(--brand); 
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.15); 
}

.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.15);
}

/* Buttons */
.btn-brand { 
  background: var(--brand); 
  border: 0; 
  color: white;
  transition: all 0.2s ease;
}

.btn-brand:hover { 
  background: #1e4fd6; 
  color: white;
  transform: translateY(-1px);
}

/* Utility Classes */
.text-gradient { 
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  .hero {
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  section {
    padding: 60px 0;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Performance Optimizations */
* {
  box-sizing: border-box;
}

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

/* Accessibility Improvements */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .glow {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  .hero {
    background: #fff !important;
    color: #000 !important;
  }
}