/* ==========================================================================
   CSS RESET & FONTS SYSTEM
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-brand);
  color: white;
  padding: 10px 20px;
  z-index: 10000;
  transition: top 0.2s ease;
  border-radius: 0 0 8px 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   VARIABLE-BASED DESIGN SYSTEM (THEMING)
   ========================================================================== */
:root {
  /* Common System Settings */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --container-width: 1240px;
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fd;
  --bg-tertiary: #edf0f8;
  --bg-card: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.85);
  
  --color-brand: #010E87;
  --color-brand-light: #e6e7f3;
  --color-brand-glow: rgba(1, 14, 135, 0.08);
  --color-brand-secondary: #3b4ff0;
  
  --color-text-primary: #17181A;
  --color-text-secondary: #4a4d55;
  --color-text-muted: #808491;
  --color-border: #ececed;
  --color-border-hover: #010E87;
  
  --card-shadow: 0 10px 30px rgba(1, 14, 135, 0.04);
  --card-shadow-hover: 0 20px 40px rgba(1, 14, 135, 0.08);
  --glow-overlay: radial-gradient(circle at 50% 50%, rgba(1, 14, 135, 0.06), transparent 60%);
}

/* Dark Theme Variables */
body.dark-theme {
  --bg-primary: #080a11;
  --bg-secondary: #0f121d;
  --bg-tertiary: #171b2b;
  --bg-card: #131725;
  --bg-navbar: rgba(8, 10, 17, 0.85);
  
  --color-brand: #4b5df7;
  --color-brand-light: #161b3d;
  --color-brand-glow: rgba(75, 93, 247, 0.15);
  --color-brand-secondary: #7483ff;
  
  --color-text-primary: #f5f6f9;
  --color-text-secondary: #a9b0c2;
  --color-text-muted: #6e7485;
  --color-border: #1e2439;
  --color-border-hover: #4b5df7;
  
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 40px rgba(75, 93, 247, 0.15);
  --glow-overlay: radial-gradient(circle at 50% 50%, rgba(75, 93, 247, 0.1), transparent 60%);
}

/* ==========================================================================
   GLOBAL LAYOUT & BASE ELEMENT STYLES
   ========================================================================== */
body {
  background-color: var(--bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--color-text-secondary);
  font-size:large;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ==========================================================================
   BUTTON & INTERACTIVES STYLES (PREMIUM SPEC)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--color-brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-brand-glow);
  background: var(--color-brand-secondary);
}

.btn-primary svg {
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border);
  margin-left: 117px;

}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--color-text-primary);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--color-brand);
  color: white;
  font-size: 1.05rem;
  padding: 16px 36px;
  box-shadow: 0 8px 30px var(--color-brand-glow);
}

.btn-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px var(--color-brand-glow);
  background: var(--color-brand-secondary);
}

.btn-explore {
  background: transparent;
  color: var(--color-brand);
  border: 1.5px solid var(--color-brand);
  padding: 10px 24px;
  width: 100%;
}

.btn-explore:hover {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--color-brand-glow);
}

/* ==========================================================================
   NAVIGATION HEADER (STICKY / GLASSMORPHISM)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  padding: 8px 0;
  box-shadow: var(--card-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px;
  transition: padding var(--transition-normal);
}

.main-header.scrolled .header-container {
  padding: 8px 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--color-brand);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Status Badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--color-brand-light);
  color: var(--color-brand);
  transform: rotate(15deg);
}

/* Icon visibility matching theme state */
body.light-theme .theme-toggle-btn .sun-icon { display: none; }
body.light-theme .theme-toggle-btn .moon-icon { display: block; }
body.dark-theme .theme-toggle-btn .sun-icon { display: block; }
body.dark-theme .theme-toggle-btn .moon-icon { display: none; }

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Mobile Menu State Triggered by JS */
.mobile-menu-btn.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-primary);
  border-left: 1px solid var(--color-border);
  z-index: 999;
  padding: 100px 32px;
  box-shadow: var(--card-shadow);
  transition: right var(--transition-normal);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ==========================================================================
   HERO SECTION (VISUALLY RICH STYLING)
   ========================================================================== */
.hero {
  padding-top: 160px;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: var(--glow-overlay);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  padding: 6px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(1, 14, 135, 0.1);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-brand);
  border-radius: 50%;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.9rem;
  color: var(--color-text-secondary);
  max-width: 540px;
}

.hero-cta-wrapper {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Visual Mockup fallbacks for illustration */
.visual-card-wrapper {
  position: relative;
  width: 100%;
}

.visual-card-glow {
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-secondary) 100%);
  filter: blur(40px);
  opacity: 0.15;
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

.visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow-hover);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fallback-img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity var(--transition-normal);
}

/* CSS Vector Illustration Fallback */
.visual-illustration {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--bg-secondary), var(--bg-tertiary));
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(1, 14, 135, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 14, 135, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
}

body.dark-theme .grid-mesh {
  background-image: 
    linear-gradient(rgba(75, 93, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 93, 247, 0.05) 1px, transparent 1px);
}

.orbit-center {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 30px var(--color-brand);
}

.orbit {
  position: absolute;
  border: 1px dashed var(--color-text-muted);
  border-radius: 50%;
  animation: rotateOrbit 40s linear infinite;
  opacity: 0.35;
}

.orbit.ring-1 {
  width: 160px;
  height: 160px;
}

.orbit.ring-2 {
  width: 280px;
  height: 280px;
  animation-duration: 60s;
  animation-direction: reverse;
}

.pulse-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand-secondary);
  box-shadow: 0 0 15px var(--color-brand-secondary);
}

.node-a { top: 25%; left: 30%; animation: float 6s ease-in-out infinite; }
.node-b { top: 70%; left: 20%; animation: float 5s ease-in-out infinite 1s; }
.node-c { top: 40%; left: 75%; animation: float 7s ease-in-out infinite 2s; }

/* ==========================================================================
   OFFER SECTION
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 60px);
}

.sub-heading {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-brand);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 60px);
}

.offer-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.offer-wrapper {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.offer-wrapper::-webkit-scrollbar {
  display: none;
}

.offer-card {
  min-width: calc(33.333% - 20px);
  width: 33.333%;
  flex-shrink: 0;
  scroll-snap-align: start;

  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--color-border-hover);
}

.offer-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.offer-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity var(--transition-normal);
}

.offer-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 24px;
  background-color: var(--bg-card);
}

.offer-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-text h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.offer-text p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.offer-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand);
  transition: color var(--transition-fast);
}

.offer-btn svg {
  transition: transform var(--transition-fast);
}

.offer-btn:hover {
  color: var(--color-brand-secondary);
}

.offer-btn:hover svg {
  transform: translateX(4px);
}
/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  background-color: var(--bg-secondary);
}

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

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition-normal);
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand), transparent);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--color-border-hover);
}

.about-card:hover::before {
  opacity: 1;
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.about-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   CASE STUDIES SECTION
   ========================================================================== */
.case-study-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
  align-items: center;
}

.case-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.case-image video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  border-radius: inherit;
}
.case-content h3 {
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.case-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-block h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-brand);
  font-weight: 700;
}

.case-block p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.results-highlight {
  font-weight: 500;
  color: var(--color-text-primary);
  border-left: 3px solid var(--color-brand);
  padding-left: 16px;
}

.services {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background-color: var(--bg-secondary);
  transition: all var(--transition-fast);
}

.tag:hover {
  background-color: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
}

.case-image-wrapper {
  position: relative;
  width: 100%;
}

.case-image-bg {
display: none;
}

.case-image {
  position: relative;
  z-index: 1;
  border: 1px solid var(--color-border);
  aspect-ratio: 6 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-illustration {
  background: radial-gradient(circle at bottom right, var(--bg-secondary), var(--bg-tertiary));
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  width: 70%;
  height: 50%;
  gap: 16px;
}

.bar {
  width: 25px;
  height: var(--val);
  background: var(--color-brand);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 15px var(--color-brand-glow);
  animation: slideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bar2 { background: var(--color-brand-secondary); }
.bar3 { background: #10b981; }

.case-link {
  position: absolute;
  bottom: -45px;
  left: 0;
  z-index: 2;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.95rem;
}

.arrow-link svg {
  transition: transform var(--transition-fast);
}

.arrow-link:hover svg {
  transform: translateX(6px);
}

/* ==========================================================================
   Consortium (EOSC BEYOND)
   ========================================================================== */
.eosc-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.eosc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eosc-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eosc-content h2 {
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.eosc-stats {
  display: flex;
  gap: 40px;
  margin-top: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.eosc-image {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-connections {
  background: radial-gradient(circle at center, var(--bg-card), var(--bg-tertiary));
}

.eosc-image img {
  position: absolute;
  max-width: 75%;
  max-height: 60%;
  object-fit: contain;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.eosc-image:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   FAQ SECTION (SMOOTH ROW DYNAMICS)
   ========================================================================== */
.faq-container {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 60px;
}

.faq-title {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.faq-title h2 {
  font-size: 2.2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
}

.faq-icon {
  color: var(--color-brand);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dynamic Grid Row Collapse Technique */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-normal);
  overflow: hidden;
}

.faq-answer-content {
  min-height: 0;
  padding: 0 16px 24px 16px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Active Class Dynamic States */
.faq-item.active {
  background-color: var(--bg-secondary);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   USEFUL LINKS SECTION
   ========================================================================== */
.links-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.link-num {
  font-size: 0.85rem;
  color: var(--color-brand);
  margin-right: 20px;
  font-weight: 700;
}

.link-title {
  flex: 1;
}

.link-item svg {
  color: var(--color-text-muted);
  transition: all var(--transition-normal);
}

.link-item:hover {
  border-color: var(--color-brand);
  background-color: var(--color-brand-light);
  transform: translateX(8px);
}

.link-item:hover svg {
  color: var(--color-brand);
  transform: translateX(4px);
}

.links-image-wrapper {
  position: relative;
}

.links-image {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.links-art {
  background: radial-gradient(circle at top right, var(--bg-secondary), var(--bg-tertiary));
}

.bar-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 60%;
}

.grid-line {
  height: 8px;
  background-color: var(--color-border);
  border-radius: 4px;
  width: 100%;
  animation: pulseWidth 3s infinite ease-in-out;
  animation-delay: var(--delay);
}

/* ==========================================================================
   EXPLORE OTHER NODES (SMOOTH HORIZONTAL CAROUSEL)
   ========================================================================== */
.nodes-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 60px);
}

.carousel-controls {
  display: flex;
  gap: 12px;
}

.carousel-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
}

.carousel-control-btn:hover {
  background-color: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
}

.nodes-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.nodes-wrapper {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for clean presentation */
.nodes-wrapper::-webkit-scrollbar {
  display: none;
}

.node-card {
  min-width: calc(33.333% - 20px);
  width: 40%;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;

  scroll-snap-align: start;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  gap: 20px;

  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
}

.node-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--color-border-hover);
}

.node-image {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.node-logo-fallback {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.node-image img {
  position: absolute;
  max-width: 70%;
  max-height: 60%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.node-card:hover .node-image img {
  transform: scale(1.08);
}

.node-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.node-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.node-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.btn-explore {
  margin-top: auto;
}
/* ==========================================================================
   CALL-TO-ACTION (CTA)
   ========================================================================== */
.cta-section {
  padding-bottom: 120px;
  height: 30%;
}

.cta-inner {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: var(--glow-overlay);
  filter: blur(80px);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(2rem, 3vw, 2.2rem);
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  font-size: 0.9rem;
  max-width: 700px;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

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

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-section {
  background: var(--bg-secondary);
}

.section-header h2 {
  margin-bottom: 16px;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  background: var(--bg-secondary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group textarea {
  resize: vertical;
  min-height: 180px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-glow);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
  }
}
/* ==========================================================================
   FOOTER
   background: var(--bg-secondary);
   ========================================================================== */

.main-footer {
  
  border-top: 1px solid var(--color-border);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 64px;
}

.footer-logo {
  width: 160px;
  height: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-desc {
  max-width: 320px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.copyright {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.footer-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-group a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-group a:hover {
  color: var(--color-brand);
}

/* EU funding block */

.eu-funded {
  margin-top: 20px;

  display: flex;
  align-items: center;
  gap: 16px;
}

.eu-logo {
  width: 150px;
  height: 42px;
  flex-shrink: 0;

  background: url("assets/img/eu-icon.svg") center/contain no-repeat;
}

.eu-text {
  display: flex;
  flex-direction: column;
  gap: 4px;

  font-size: 0.85rem;
  line-height: 1.4;
}

.eu-text strong {
  font-weight: 600;
}

.eu-text span {
  color: var(--color-text-muted);
}

/* Mobile */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .eu-funded {
    align-items: flex-start;
  }
}
/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-brand);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--color-brand-secondary);
  transform: translateY(-3px);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes pulse {
  0% { transform: scale(0.92); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.4; }
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes slideUp {
  from { height: 0; opacity: 0; }
  to { height: var(--val); opacity: 1; }
}

@keyframes pulseWidth {
  0% { width: 40%; opacity: 0.3; }
  50% { width: 85%; opacity: 0.8; }
  100% { width: 40%; opacity: 0.3; }
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MEDIA QUERIES)
   ========================================================================== */

/* Laptop / Desktop Small (max-width: 1200px) */
@media (max-width: 1200px) {
  .offer-card {
    min-width: calc(50% - 15px);
  }

  .node-card {
    min-width: calc(50% - 15px);
  }
}



/* Tablet Landscape (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-content p {
    max-width: 100%;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .case-study-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px;
  }
  
  .case-video {
  width: 100%;
  height: auto;
  border-radius: 20px;
  }
  
  .case-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .eosc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .faq-title {
    position: static;
  }
  
  .links-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .links-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .status-badge {
    display: none;
  }
  

  .offer-card {
    min-width: 85%;
  }

  .node-card {
    min-width: 85%;
  }


  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .eosc-stats {
    justify-content: center;
  }
}

/* Mobile Screen (max-width: 480px) */
@media (max-width: 480px) {
  .hero-cta-wrapper {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-wrapper .btn {
    width: 100%;
  }
  
  .cta-inner {
    padding: 48px 24px;
  }
  
  .case-study-card {
    padding: 24px 16px;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  
  .node-card {
    padding: 24px;
  }
  
  .about-card {
    padding: 32px 24px;
  }
}
