/* 
  IBIS Instytut Badań i Szkoleń 
  Premium Stylings & Modern Aesthetics
*/

:root {
  /* Enhanced Color Palette with Vibrancy */
  --primary-color: #1a2245;
  /* Deeper Navy */
  --primary-light: #2c3a70;
  --bg-color: #fcfbfa;
  /* Warmer, softer white for premium feel */
  --bg-gradient: linear-gradient(135deg, #fcfbfa 0%, #f0f4f8 100%);
  --action-color: #f96300;
  /* More vibrant, pure Muted Orange */
  --action-hover: #e85500;
  --action-glow: rgba(249, 99, 0, 0.4);
  --secondary-color: #14a098;
  /* Deeper, richer Teal */
  --secondary-glow: rgba(20, 160, 152, 0.3);
  --text-color: #1e293b;
  /* Darker graphite for better contrast */
  --text-light: #64748b;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout & Decor */
  --max-width: 1280px;
  --nav-height: 85px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;

  /* Advanced Radii */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  /* Modern Shadows */
  --shadow-sm: 0 4px 15px rgba(26, 34, 69, 0.05);
  --shadow-md: 0 10px 30px rgba(26, 34, 69, 0.08);
  --shadow-hover: 0 20px 40px rgba(20, 160, 152, 0.15);
  --shadow-button: 0 8px 25px var(--action-glow);
}

/* Base Reset & Smooth Scroll */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background: var(--bg-color);
  background-image: radial-gradient(circle at top right, rgba(20, 160, 152, 0.05) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(249, 99, 0, 0.03) 0%, transparent 40%);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.container-narrow {
  max-width: 960px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 4rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 4rem;
}

.bg-light {
  background: var(--bg-gradient);
}

.text-white {
  color: var(--white);
}

/* --- Dynamic Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--action-color) 0%, var(--action-hover) 100%);
  color: var(--white) !important;
  box-shadow: var(--shadow-button);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--action-hover) 0%, #d84500 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px var(--action-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white) !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(26, 34, 69, 0.2);
}

.btn-outline-primary {
  background: transparent;
  color: var(--action-color);
  border: 2px solid var(--action-color);
}

.btn-outline-primary:hover {
  background: var(--action-color);
  color: var(--white) !important;
  transform: translateY(-4px);
  box-shadow: var(--shadow-button);
}

.btn-primary-light {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary-light:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  color: var(--action-color);
}

/* --- Typography Helpers --- */
.lead {
  font-size: 1.35rem;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-underline {
  height: 6px;
  width: 80px;
  background: linear-gradient(90deg, var(--action-color), var(--secondary-color));
  border-radius: 3px;
  margin-bottom: 3rem;
}

.title-underline.center {
  margin: 0 auto 3rem;
}

/* --- Premium Glassmorphism Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(252, 251, 250, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled,
body.subpage .navbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 75px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 45px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a:not(.btn):not(.lang-btn) {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-light);
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
}

.nav-links a:not(.btn):not(.lang-btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--action-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):not(.lang-btn):hover::after,
.nav-links a.active:not(.lang-btn)::after {
  width: 100%;
}

.nav-links a:not(.btn):not(.lang-btn):hover,
.nav-links a.active:not(.lang-btn) {
  color: var(--primary-color);
}

/* --- Dropdown Menus --- */
.nav-links .dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-fast);
  padding: 10px 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a:not(.btn):not(.lang-btn) {
  display: block;
  padding: 12px 25px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.dropdown-menu a:not(.btn):not(.lang-btn)::after {
  display: none;
}

.dropdown-menu a:not(.btn):not(.lang-btn):hover {
  background: rgba(20, 160, 152, 0.05);
  color: var(--action-color);
  padding-left: 30px;
}

.dropdown-arrow {
  font-size: 0.8em;
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.social-links {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
}

.social-links a {
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.social-links a::after {
  display: none !important;
}

.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  opacity: 0.6;
}

.lang-btn img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--action-color);
  box-shadow: 0 0 10px var(--action-glow);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* --- Hero Section - High Impact --- */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(32, 178, 170, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 99, 0, 0.08) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-color), #3f51b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--secondary-color);
  -webkit-text-fill-color: initial;
  display: block;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 550px;
  line-height: 1.6;
}

.hero-content .btn {
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.hero-image {
  position: relative;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--action-color), var(--secondary-color));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.2;
  filter: blur(30px);
  animation: pulseRotate 10s infinite alternate;
}

@keyframes pulseRotate {
  0% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.15;
  }

  100% {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.3;
  }
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(26, 34, 69, 0.15);
  position: relative;
  z-index: 2;
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
  border: 4px solid var(--white);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* --- Features / O Nas --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--action-color));
  opacity: 0;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  background: var(--white);
}

.about-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.15), rgba(32, 178, 170, 0.05));
  color: var(--secondary-color);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition);
  transform: rotate(-5deg);
}

.icon-wrapper svg {
  width: 36px;
  height: 36px;
}

.about-card:hover .icon-wrapper {
  transform: rotate(0) scale(1.1);
  background: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 10px 20px var(--secondary-glow);
}

.about-card h3 {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.about-card p {
  color: var(--text-light);
}

/* --- Mission & Values --- */
.mission {
  position: relative;
}

.mission-content {
  text-align: center;
  margin-bottom: 5rem;
}

.mission-content .lead {
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--primary-color);
}

.why-us {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.why-us h3 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.why-item {
  position: relative;
  padding-left: 3rem;
  padding-top: 5px;
}

.why-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--action-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px var(--action-glow);
}

.why-item strong {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.why-item {
  color: var(--text-light);
}

/* --- Services & Training Cards (Uniform Premium Look) --- */
.services-grid,
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

.service-card,
.training-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
}

.service-card:hover,
.training-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.service-img,
.training-img {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.service-img img,
.training-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover .service-img img,
.training-card:hover .training-img img {
  transform: scale(1.1) rotate(1deg);
}

/* Aesthetic Overlay on Images */
.service-img::after,
.training-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 34, 69, 0.5) 0%, transparent 60%);
  opacity: 0.5;
  transition: var(--transition);
}

.service-card:hover .service-img::after,
.training-card:hover .training-img::after {
  opacity: 0;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--action-color), #ff4e00);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(249, 99, 0, 0.4);
  z-index: 10;
}

.service-content,
.training-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3,
.training-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.highlight-text,
.tagline {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-heading);
  display: inline-block;
  padding: 6px 14px;
  background: rgba(32, 178, 170, 0.1);
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.training-content .tagline {
  background: rgba(249, 99, 0, 0.1);
  color: var(--action-color);
}

.service-content p:last-child,
.training-content p:last-child {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* --- Certyfikaty Page (Subpage) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 100px);
  padding-bottom: 120px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d1225 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
}

.page-header h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  position: relative;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
}

.cert-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(32, 178, 170, 0.3);
}

.cert-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.1), rgba(249, 99, 0, 0.05));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  transform: rotate(45deg);
  transition: var(--transition);
}

.cert-icon svg {
  transform: rotate(-45deg);
  width: 44px;
  height: 44px;
}

.cert-card:hover .cert-icon {
  background: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 10px 20px var(--secondary-glow);
}

.cert-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.cert-card p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.cert-card .btn {
  width: 100%;
  margin-top: auto;
}

/* --- Trust CTA (Bottom Banner) --- */
.trust {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0 5% 5rem;
  box-shadow: 0 20px 50px rgba(32, 178, 170, 0.2);
  padding: 6rem 2rem;
}

.trust::after,
.trust::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.trust::after {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.trust::before {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
}

.trust h2 {
  color: var(--white);
  font-size: 3rem;
  position: relative;
}

.trust p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  max-width: 800px;
  margin: 1.5rem auto 3rem;
  position: relative;
}

/* --- Contact Section --- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
  border-top: 5px solid var(--action-color);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.info-item .icon {
  width: 70px;
  height: 70px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--action-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin: 0 auto;
}

.info-item:hover .icon {
  background: var(--action-color);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 10px 20px var(--action-glow);
}

.info-item h4 {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.info-item p,
.info-item a {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 500;
}

.info-item a:hover {
  color: var(--action-color);
}

/* --- Footer --- */
.footer {
  background: #0b1021;
  color: var(--white);
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--action-color), var(--secondary-color));
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding-bottom: 4rem;
}

.footer-logo img {
  height: 70px;

  margin-bottom: 1.5rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 350px;
  font-size: 1.1rem;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  position: relative;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 8px;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

.footer.subpage {
  padding-top: 3rem;
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    margin: 0 auto 2.5rem;
  }

  .hero-content .btn {
    margin: 0 0.5rem 1rem;
  }

  .hero-image img {
    margin: 0 auto;
    max-width: 80%;
  }

  .trust {
    margin: 0 0 4rem;
    border-radius: 0;
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 3rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    gap: 2.5rem;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a:not(.btn):not(.lang-btn) {
    font-size: 1.3rem;
  }

  .nav-links .dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 5px;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a:not(.btn):not(.lang-btn) {
    padding: 10px 0;
    font-size: 1.15rem;
  }

  .dropdown-menu a:not(.btn):not(.lang-btn):hover {
    padding-left: 0;
    background: transparent;
  }

  .social-links {
    margin-right: 0;
    margin-bottom: -1.5rem; /* pull it closer to lang flags */
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-image img {
    max-width: 100%;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .why-grid,
  .footer-content,
  .contact-info {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-card,
  .why-us,
  .contact-card {
    padding: 2rem 1.5rem;
  }

  .trust h2 {
    font-size: 2.2rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .modal-content {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
  }

  .modal-content h2 {
    font-size: 1.15rem;
  }
}

/* --- Smooth Reveal Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: auto;
  background-color: rgba(26, 34, 69, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
}

.modal.fade-in {
  opacity: 1;
  transform: none;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 3rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  box-shadow: var(--shadow-hover);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.fade-in .modal-content {
  transform: translateY(0);
}

.close-modal {
  color: var(--text-light);
  font-size: 2rem;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal:hover,
.close-modal:focus {
  color: var(--action-color);
  text-decoration: none;
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.modal-content #modal-body {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
}

.modal-content #modal-body h1,
.modal-content #modal-body h2,
.modal-content #modal-body h3,
.modal-content #modal-body h4,
.modal-content #modal-body h5,
.modal-content #modal-body h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

.modal-content #modal-body h1 {
  font-size: 2.2rem;
}

.modal-content #modal-body h2 {
  font-size: 1.8rem;
}

.modal-content #modal-body h3 {
  font-size: 1.5rem;
}

.modal-content #modal-body h4 {
  font-size: 1.3rem;
}

.modal-content #modal-body h5 {
  font-size: 1.2rem;
}

.modal-content #modal-body h6 {
  font-size: 1.1rem;
}

.modal-content #modal-body p {
  margin-bottom: 1rem;
}

.modal-content #modal-body ul,
.modal-content #modal-body ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.modal-content #modal-body li {
  margin-bottom: 0.5rem;
}

.modal-trigger {
  cursor: pointer;
}

.read-more {
  color: var(--action-color);
  font-weight: 600;
  margin-top: auto;
  font-size: 0.95rem;
  display: inline-block;
  transition: var(--transition-fast);
}

.service-card:hover .read-more,
.training-card:hover .read-more {
  transform: translateX(5px);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: var(--white);
  padding: 1.5rem 0;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-content .privacy-link {
  color: var(--action-color);
  text-decoration: underline;
  transition: color 0.3s;
}

.cookie-content .privacy-link:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* --- Privacy Modal Details --- */
.privacy-body-scrollable h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.privacy-body-scrollable p {
  color: var(--text-color);
  line-height: 1.6;
}