/* ==========================================================================
   IT Solutions (Sławomir Zgłobicki) - Premium Enterprise Light Theme
   ========================================================================== */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Premium Light Theme Colors */
  --bg-page: #f8fafc;        /* Slate 50 */
  --bg-page-alt: #f1f5f9;    /* Slate 100 */
  --bg-white: #ffffff;
  --bg-card: #ffffff;

  /* Borders & Dividers */
  --border-light: #e2e8f0;   /* Slate 200 */
  --border-hover: #cbd5e1;   /* Slate 300 */
  --border-focus: #3b82f6;

  /* Text Colors */
  --text-dark: #0f172a;      /* Slate 900 */
  --text-body: #334155;      /* Slate 700 */
  --text-muted: #64748b;     /* Slate 500 */
  --text-light: #94a3b8;     /* Slate 400 */

  /* Corporate Accents */
  --primary-blue: #1d4ed8;   /* Royal Blue */
  --primary-hover: #1e40af;
  --accent-cyan: #0284c7;    /* Sky */
  --accent-emerald: #059669; /* Green */
  --accent-indigo: #4f46e5;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 36px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.05);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.text-highlight {
  color: var(--primary-blue);
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ambient Background Light Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.bg-shape-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #dbeafe 0%, #e0f2fe 100%);
  top: -120px;
  right: -5%;
}

.bg-shape-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #e0e7ff 0%, #f8fafc 100%);
  top: 750px;
  left: -8%;
}

/* Top Announcement Bar */
.top-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 9px 0;
  position: relative;
  z-index: 101;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.top-bar-email,
.linkedin-link {
  color: #93c5fd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.top-bar-email:hover,
.linkedin-link:hover {
  color: #ffffff;
}

/* Header & Navbar */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: var(--transition-fast);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Bilingual Selector */
.lang-selector {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3px 5px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--primary-blue);
  box-shadow: var(--shadow-xs);
}

.lang-btn:hover:not(.active) {
  color: var(--text-dark);
}

.lang-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition-smooth);
  cursor: pointer;
  padding: 12px 24px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.22);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.32);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section (Split Grid Layout)
   ========================================================================== */

.hero-section {
  padding: 80px 0 70px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-kicker {
  margin-bottom: 20px;
}

.kicker-tag {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
}

.trust-badge svg {
  color: var(--primary-blue);
}

.trust-sep {
  color: #cbd5e1;
  font-size: 0.8rem;
}

/* Competencies Quick Panel */
.hero-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.panel-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.panel-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.2;
}

.panel-list strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.panel-list p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-top: 22px;
  font-size: 0.8rem;
}

.panel-os {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 500;
}

.panel-badge {
  background: #ecfdf5;
  color: var(--accent-emerald);
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Section Common
   ========================================================================== */

.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-light {
  background: var(--bg-page-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary-blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.icon-blue { background: #eff6ff; }
.icon-cyan { background: #f0fdf4; }
.icon-indigo { background: #eef2ff; }
.icon-emerald { background: #ecfdf5; }

.card-title {
  font-size: 1.32rem;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex-grow: 1;
  line-height: 1.65;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.card-tags span {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   About Section & Engineering Credentials
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.about-main {
  display: flex;
  flex-direction: column;
}

.about-heading {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 18px;
  line-height: 1.7;
}

.about-journey-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0 24px;
}

.about-journey-list li {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-blue);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: var(--shadow-xs);
}

.about-journey-list li:last-child {
  border-left-color: var(--accent-cyan);
}

/* Credentials / Cert Box */
.cert-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.cert-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.cert-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.cert-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cert-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #eff6ff;
  color: var(--primary-blue);
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}

.cert-list strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text-dark);
}

.cert-list span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Tech Stack Grid
   ========================================================================== */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stack-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.stack-box-full {
  grid-column: span 2;
}

.stack-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.stack-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.pill:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: #eff6ff;
}

.pill-key {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary-blue);
  font-weight: 600;
}

/* ==========================================================================
   Principles Section (Inspired by i-service.pl clarity)
   ========================================================================== */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.principle-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.principle-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: #93c5fd;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.principle-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.principle-card p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.contact-header {
  max-width: 720px;
  margin: 0 auto 40px;
}

.contact-title {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-tile {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-fast);
}

.contact-tile:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tile-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.tile-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.tile-value {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.tile-note {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left strong {
  color: var(--text-dark);
}

.footer-tagline {
  margin-left: 10px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-domains a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

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

.sep {
  margin: 0 8px;
  color: var(--border-light);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid,
  .stack-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .contact-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-box-full {
    grid-column: span 1;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }

  .contact-tiles {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 32px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
