/* ============================================
   JYL CONSULTING - PREMIUM DESIGN SYSTEM
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700&display=swap');

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary-blue: #003366;
  --primary-blue-dark: #002244;
  --primary-blue-light: #004488;
  --primary-green: #7CB342;
  --primary-green-dark: #5B8A2E;
  --primary-green-light: #9CCF5A;
  
  /* Extended Palette */
  --accent-teal: #00A8A8;
  --accent-gold: #D4AF37;
  --accent-coral: #FF6B6B;
  
  /* Neutrals */
  --text-dark: #1a1a2e;
  --text-medium: #4a4a68;
  --text-light: #6b6b8a;
  --background-cream: #faf9f7;
  --background-light: #f4f6f9;
  --white: #ffffff;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #003366 0%, #004488 50%, #00557a 100%);
  --gradient-green: linear-gradient(135deg, #7CB342 0%, #9CCF5A 100%);
  --gradient-dark: linear-gradient(180deg, #003366 0%, #001a33 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(0,51,102,0.92) 0%, rgba(0,68,136,0.88) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,51,102,0.08);
  --shadow-md: 0 8px 30px rgba(0,51,102,0.12);
  --shadow-lg: 0 20px 60px rgba(0,51,102,0.15);
  --shadow-green: 0 8px 30px rgba(124,179,66,0.3);
  
  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-blue);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  color: var(--text-medium);
  font-size: 1.05rem;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,51,102,0.08);
  transition: var(--transition-med);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 45px;
  transition: var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

nav ul li a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-green);
  transition: var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 3px;
}

nav ul li a:hover {
  color: var(--primary-blue);
}

nav ul li a:hover::before,
nav ul li a.active::before {
  width: 30px;
}

nav ul li a.active {
  color: var(--primary-blue);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&q=80');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: -1;
}

/* Animated geometric shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.hero-shapes .shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-green);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shapes .shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-teal);
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.hero-shapes .shape-3 {
  width: 200px;
  height: 200px;
  background: var(--white);
  top: 50%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease;
}

.hero .subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

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

/* Page Heroes (shorter) */
.hero-page {
  min-height: 50vh;
  padding-top: 10rem;
}

.hero-page::before {
  background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&q=80');
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-med);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--gradient-green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(124,179,66,0.4);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

section {
  position: relative;
}

.section-light {
  background: var(--background-light);
}

.section-cream {
  background: var(--background-cream);
}

.section-dark {
  background: var(--gradient-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255,255,255,0.8);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-green);
  margin-bottom: 1rem;
  position: relative;
}

.section-header .overline::before,
.section-header .overline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--primary-green);
}

.section-header .overline::before {
  right: calc(100% + 15px);
}

.section-header .overline::after {
  left: calc(100% + 15px);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-green);
  transform: scaleX(0);
  transition: var(--transition-med);
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(124,179,66,0.15) 0%, rgba(124,179,66,0.05) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-green);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Feature Cards with Images */
.card-feature {
  padding: 0;
  overflow: hidden;
}

.card-feature img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-med);
}

.card-feature:hover img {
  transform: scale(1.05);
}

.card-feature-content {
  padding: 2rem;
}

/* ============================================
   TWO COLUMN LAYOUTS
   ============================================ */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.column-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.column-image img {
  width: 100%;
  height: auto;
  display: block;
}

.column-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--primary-green);
  border-radius: 20px;
  z-index: -1;
}

.column-content h2 {
  margin-bottom: 1.5rem;
}

.column-content p {
  margin-bottom: 1.5rem;
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,51,102,0.1);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .icon {
  width: 30px;
  height: 30px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feature-list strong {
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.25rem;
}

/* ============================================
   TECHNOLOGY GRID
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-med);
  border: 2px solid transparent;
}

.tech-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
}

.tech-card h4 {
  color: var(--primary-green);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.tech-card ul {
  list-style: none;
  color: var(--text-medium);
}

.tech-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--background-light);
}

.tech-card li:last-child {
  border-bottom: none;
}

/* ============================================
   JOB LISTINGS
   ============================================ */
.job-listing {
  background: var(--white);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary-green);
  transition: var(--transition-med);
}

.job-listing:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.job-listing h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.job-section {
  margin-top: 1.5rem;
}

.job-section h4 {
  color: var(--primary-green);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-section ul {
  list-style: none;
  color: var(--text-medium);
}

.job-section li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.job-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-green);
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
  background: var(--gradient-hero);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1920&q=80') center/cover;
  opacity: 0.15;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--primary-blue-dark);
  color: var(--white);
  padding: 5rem 3rem 2rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-green);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.8;
}

footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-green);
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-green);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .two-column.reverse {
    direction: ltr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  
  nav ul {
    display: none;
  }
  
  .hero {
    min-height: 70vh;
    padding: 7rem 1.5rem 4rem;
  }
  
  .container {
    padding: 4rem 1.5rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
