/* ============================================
   SK Tech Solutions - Premium Design System
   Deep Navy + Electric Blue | B2B Engineering
   ============================================ */

/* --- Global Layout Safety Net --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
img, svg, video, canvas, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}
p, h1, h2, h3, h4, h5, h6, li, td, th, blockquote, figcaption {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
* { font-family: 'Inter', sans-serif; }

/* --- Design Tokens --- */
:root {
  --navy: #0B1F3A;
  --navy-light: #132D4A;
  --navy-dark: #07152B;
  --electric: #2563EB;
  --electric-light: #3B82F6;
  --electric-glow: rgba(37, 99, 235, 0.25);
  --accent: #2563EB;
  --accent-bg: #2563EB;
  --accent-hover: #1D4ED8;
  --text-primary: #0B1F3A;
  --text-secondary: #64748B;
  --surface: #F8FAFC;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(37,99,235,0.15);
  --radius-sm: 8px;
  --radius-md: 20px;
  --radius-lg: 26px;
}

/* --- Global Styles --- */
body {
  background: var(--white);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hero Gradient (Deep Navy) --- */
.hero-gradient {
  background: linear-gradient(160deg, #0B1F3A 0%, #132D4A 30%, #0B1F3A 60%, #07152B 100%);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(37,99,235,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* --- Blueprint Grid Overlay --- */
.blueprint-grid {
  background-image: 
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Accent Utilities --- */
.accent { color: var(--electric); }
.accent-bg { background-color: var(--electric); }
.accent-border { border-color: var(--electric); }
.hover-accent:hover { color: var(--electric); }

/* --- Glassmorphism --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
}
.glass-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(37,99,235,0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* --- White Glass Cards (for light sections) --- */
.glass-white {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* --- Blue Glow Effect --- */
.glow-blue {
  box-shadow: 0 0 30px rgba(37,99,235,0.15), 0 0 60px rgba(37,99,235,0.05);
}

/* --- Card Hover Effect --- */
.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* --- Navigation --- */
.nav-link {
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--electric);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: #ffffff;
}
.nav-link.active {
  color: #ffffff;
}

/* --- Transparent Header (initial state) --- */
.nav-transparent {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.nav-transparent .nav-link {
  color: rgba(255,255,255,0.75) !important;
}
.nav-transparent .hamburger-line {
  background-color: rgba(255,255,255,0.75) !important;
}

/* --- Sticky Header Scroll Effect --- */
.header-scrolled {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.header-scrolled .nav-link {
  color: #64748B !important;
}
.header-scrolled .hamburger-line {
  background-color: #64748B !important;
}
.header-scrolled .company-name span {
  color: #0B1F3A !important;
}
.header-scrolled .company-name p {
  color: #64748B !important;
}

/* --- Fade-In-Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Staggered Delays --- */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* --- Scale In Animation --- */
.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Mobile Menu Transitions --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* --- Hamburger to X Animation --- */
.hamburger-line {
  transition: all 0.3s ease;
  transform-origin: center;
  background-color: rgba(255,255,255,0.75);
}
.hamburger-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Button Styles --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--electric), var(--electric-light));
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 34px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--electric), var(--electric-light));
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
}

/* --- Gradient Banner (Projects CTA) --- */
.gradient-banner {
  background: linear-gradient(135deg, #0B1F3A 0%, #1A3D6B 50%, #0B1F3A 100%);
  position: relative;
  overflow: hidden;
}
.gradient-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- Form Input Focus --- */
.form-input:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* --- Scroll Margin for Anchor Links --- */
.scroll-mt {
  scroll-margin-top: 80px;
}

/* --- Project Card Image Placeholder --- */
.project-img-placeholder {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.project-img-placeholder span {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
}

/* --- Tag / Badge Styles --- */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}
.tag:hover {
  background-color: #e2e8f0;
}

/* --- Blue Chip Tag (for dark sections) --- */
.tag-blue {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(37,99,235,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

/* --- Section Spacing --- */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* --- Service Card Icon Container --- */
.icon-container {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(37,99,235,0.05));
  border: 1px solid rgba(37,99,235,0.1);
  transition: all 0.3s ease;
}
.group:hover .icon-container {
  background: linear-gradient(135deg, var(--electric), var(--electric-light));
  border-color: transparent;
}
.icon-container svg {
  color: var(--electric);
  transition: all 0.3s ease;
}
.group:hover .icon-container svg {
  color: white;
}

/* --- Stat Card Style --- */
.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  
  /* Normalize mobile font sizes */
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }
  .text-4xl, .text-5xl, .text-6xl { font-size: 1.75rem !important; }
  .text-3xl { font-size: 1.5rem !important; }
  .text-lg { font-size: 1rem !important; }
  .text-sm { font-size: 0.875rem !important; }
  
  /* Hero mobile image cover */
  .hero-gradient .lg\\:hidden img {
    max-height: 100vh !important;
    object-fit: cover !important;
    opacity: 0.3 !important;
  }
}
