/* Base */
:root {
  --panel-bg: transparent;
  --panel-border: rgba(0, 0, 0, 0.08);
  --text: #2d3748;
  --text-on-dark: #2d3748;
  --muted: #4a5568;
  --card-bg: rgba(255, 255, 255, 0.98);
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  min-height: 100vh;
  background: linear-gradient(135deg, #e6f5ff 0%, #e6ebff 100%);
  background-attachment: fixed;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.6) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

/* Scrolled state - keeping it transparent */
.topbar.scrolled {
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Navigation */
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav {
  display: flex;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
  min-width: 44px;
  height: 44px;
}

.nav a:hover {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
}

.nav a i {
  font-size: 1.2em;
  transition: all 0.3s ease;
  display: block;
}

.nav a span {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  opacity: 1;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.2;
}

/* Collapsed state on desktop */
.topbar.compact .nav a {
  padding: 0.5rem;
  min-width: 36px;
  height: 36px;
  font-size: 0.9em;
}

.topbar.compact .nav a span {
  opacity: 0;
  position: absolute;
  bottom: -20px;
  font-size: 0.6rem;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
  transition: none;
  transform: translateY(5px);
  visibility: hidden;
}

.topbar.compact .nav a:hover span {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.topbar.compact .nav a i {
  font-size: 1.1em;
}

/* Hide hamburger on desktop by default */
@media (min-width: 861px) {
  .hamburger {
    display: none !important;
  }
}

/* Menu Icon - Hidden by default */
.menu-icon {
  display: none; /* Hidden by default */
  cursor: pointer;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
  font-size: 32px;
  color: var(--text);
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  z-index: 1001;
  position: relative;
}

.menu-icon:hover {
  color: #4f46e5;
}

/* Desktop styles */
@media (min-width: 861px) {
  .nav {
    display: flex;
    align-items: center;
  }
  
  .nav-content {
    display: flex;
    gap: 1rem;
  }
  
  .nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    min-width: 60px;
  }
  
  .nav a i {
    margin-bottom: 0.25rem;
  }
  
  .nav a span {
    font-size: 0.75rem;
  }
}

/* Mobile menu styles */
@media (max-width: 860px) {
  .menu-icon {
    display: block; /* Show menu icon on mobile */
  }
  /* Center logo and text in the header */
  .topbar .container {
    height: 30px; /* Fixed height for the header */
  }
  
  .brand {
    display: flex;
    align-items: center;
    height: 100%;
  }
  
  .brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  
  .brand-text {
    height: 24px;
    width: auto;
    margin-left: 10px;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .hamburger:active {
    transform: scale(0.95);
  }
  
  .hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #2d3748;
    margin: 2.5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav > div {
    background: white;
    width: 90%;
    max-width: 320px;
    max-height: 80vh;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
  }
  
  .nav.active > div {
    transform: translateY(0);
  }

  .nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    width: 100%;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .nav a:active {
    background: rgba(0, 0, 0, 0.03);
    transform: scale(0.98);
  }
  
  .nav a span {
    font-size: 0.9rem;
    opacity: 1 !important;
    position: static !important;
    background: none !important;
    color: inherit !important;
    padding: 0 !important;
    transform: none !important;
    visibility: visible !important;
  }

  .nav a i {
    width: 20px;
    text-align: center;
  }

  /* Animate hamburger to X when menu is open */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* When scrolling down on mobile */
.topbar.scroll-down {
  transform: translateY(-100%);
  opacity: 0;
}

/* When scrolling up */
.topbar.scroll-up {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

.topbar.shrink {
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar.shrink .container {
  height: 50px;
}

/* Smooth transition for the brand when expanding/collapsing */
.brand {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar.scroll-down .brand {
  transform: scale(0.9);
  opacity: 0.8;
}

.topbar.scroll-up .brand {
  transform: scale(1);
  opacity: 1;
}

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

/* Logo size adjustments */
.brand-logo {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
  transition: all 0.3s ease;
}

.brand-text {
  height: 18px !important;
  margin-left: 8px !important;
  max-height: 18px !important;
  object-fit: contain;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 0 15px;
  height: 100%;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 60px;
  height: 100%;
  padding: 0 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border-radius: 6px;
}

/* Specific style for the info link */
.nav a[href="#info"] {
  min-width: 70px;
  padding: 0 8px;
}

.nav a i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.nav a:hover i {
  transform: translateY(-1px);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

/* Hamburger Icon */
.menu-toggle .hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  position: relative;
}

.menu-toggle .hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #2d3748;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.menu-toggle .hamburger span:nth-child(1) {
  top: 0;
}

.menu-toggle .hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle .hamburger span:nth-child(3) {
  bottom: 0;
}

/* Active state for hamburger */
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4f46e5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
  }
  
  .menu-toggle:hover {
    background: #4338ca;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 24px;
    position: relative;
  }
  
  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
  }
  
  .hamburger span:nth-child(1) {
    top: 5px;
  }
  
  .hamburger span:nth-child(2) {
    top: 11px;
  }
  
  .hamburger span:nth-child(3) {
    top: 17px;
  }
  
  .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  
  .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1000;
    display: none; /* Start hidden */
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    max-width: 90%;
    margin: 0 auto;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
  }
  
  .nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  
  .nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav a {
    width: 100%;
    padding: 1.25rem 2rem;
    margin: 0;
    border-radius: 10px;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    min-width: auto;
    height: auto;
    text-align: left;
    gap: 1.25rem;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav a:hover,
  .nav a:focus {
    background: rgba(79, 70, 229, 0.05);
    transform: translateX(4px);
    color: #4f46e5;
  }
  
  .nav a i {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    color: #4f46e5;
    transition: transform 0.2s ease;
  }
  
  .nav a:hover i {
    transform: scale(1.1);
  }
  
  .nav a span {
    position: static;
    transform: none;
    background: none;
    color: inherit !important;
    padding: 0;
    font-size: 1rem;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    min-width: auto;
    display: inline;
  }
  
  .nav a:hover,
  .nav a:focus {
    background: rgba(79, 70, 229, 0.05);
    color: #4f46e5;
    transform: translateX(4px);
  }
  
  /* Adjust topbar height on mobile */
  .topbar .container {
    height: 80px;
  }
  
  .topbar.shrink .container {
    height: 70px;
  }
  
  .topbar.shrink .nav {
    top: 70px;
  }
}

.topbar.shrink .nav a i {
  margin: 0;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  z-index: 2;
}

.topbar.shrink .nav a span {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #4f46e5;
  color: white !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  pointer-events: none;
  min-width: max-content;
}

/* Tooltip arrow */
.topbar.shrink .nav a span::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent #4f46e5 transparent;
}

/* Hover effect */
.topbar.shrink .nav a:hover {
  transform: translateY(-2px);
}

.topbar.shrink .nav a:hover span {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  font-size: 0.8rem;
  bottom: -32px;
}

/* Ensure tooltip text is visible */
.topbar.shrink .nav a span {
  display: block !important;
}

/* Animation for menu items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav a {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.nav a:nth-child(1) { animation-delay: 0.1s; }
.nav a:nth-child(2) { animation-delay: 0.15s; }
.nav a:nth-child(3) { animation-delay: 0.2s; }
.nav a:nth-child(4) { animation-delay: 0.25s; }
.nav a:nth-child(5) { animation-delay: 0.3s; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text-on-dark);
  padding: 6px 10px;
  border-radius: 8px;
}

.hero {
  background: transparent;
  padding: 120px 0 60px;
  text-align: center;
}

.hero-logo {
  margin: 0 auto 20px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Brand images */
.brand-logo {
  height: 92%; /* slightly reduced from full height */
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-text {
  height: 28%; /* further reduced label next to logo */
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.95;
}

/* Sections */
main { margin-top: 64px; }
.section {
  padding: 80px 0;
  color: #0c1630;
  position: relative;
  overflow: hidden;
}

/* Alternating section backgrounds */
#home {
  background: linear-gradient(135deg, rgba(12, 195, 253, 0.03) 0%, rgba(64, 102, 225, 0.05) 100%);
}

#features {
  background: #f8fafc;
  padding-top: 24px;
  padding-bottom: 100px;
}

#signup {
  background: linear-gradient(135deg, rgba(12, 195, 253, 0.05) 0%, rgba(64, 102, 225, 0.03) 100%);
}

#about {
  background: #f8fafc;
  padding: 100px 0;
}

#about .container {
  max-width: 800px;
  margin: 0 auto;
}

#about p {
  line-height: 1.8;
  margin-bottom: 1.5em;
  font-size: 1.1rem;
  color: #4a5568;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}

#about h2 {
  margin-bottom: 1.5rem;
  color: #2d3748;
  font-size: 2.2rem;
  text-align: center;
}

#contact {
  background: linear-gradient(135deg, rgba(12, 195, 253, 0.03) 0%, rgba(64, 102, 225, 0.05) 100%);
  padding: 100px 0;
}

/* Section specific adjustments */
#home.section { 
  padding-bottom: 28px;
  padding-top: 40px;
}

#contact.section { 
  padding-top: 80px;
  padding-bottom: 100px;
}

/* Card styling in features section */
#features .card {
  background: white;
  border: 1px solid rgba(12, 195, 253, 0.1);
  box-shadow: 0 4px 20px rgba(12, 195, 253, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#features .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(12, 195, 253, 0.1);
}

.form-note {
  color: #0d214e;
  margin: -6px 0 18px 0;
  opacity: 0.9;
}

/* Add subtle wave divider between sections */
.section-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.section-divider .shape-fill {
  fill: #f8fafc;
}
.hero {
  min-height: 42vh; /* zmenšeno pro vyšší pozici boxů */
  display: grid;
  place-items: center;
  text-align: center;
}
.hero h1 {
  color: #0a1538; /* slightly softer than before */
  font-size: clamp(20px, 3.2vw, 36px);
  line-height: 1.04;
  margin: 0 0 12px 0;
}
.hero p { 
  color: #123260; /* slightly softer */
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 0 0 24px 0;
}

/* Grid layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* Info cards section */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: #2d3748;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #0cc3fd);
  border-radius: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Make price card span full width */
.info-card:last-child {
  grid-column: 1 / -1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Adjust price card content for better full-width display */
.info-card:last-child p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Style for specific info cards */
.info-card:not([data-short]) {
  padding-top: 1.2rem;
}

/* Add a specific class for the 'Kdy a kde' card */
.info-card[data-short] {
  min-height: 0;
  height: auto;
  max-height: 50%;
  align-self: start;
}

.info-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: none;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  padding-top: 1.2rem;
}

/* Ensure consistent spacing for all card content */
.info-card > * {
  margin: 0;
  width: 100%;
}

/* Adjust icon container */
.info-card i {
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure consistent heading margins */
.info-card h3 {
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

/* Ensure consistent paragraph margins */
.info-card p {
  margin: 0;
  line-height: 1.4;
}

.info-card i {
  font-size: 2.2rem;
  color: #4f46e5;
  margin: 0 auto 0.8rem auto;
  background: rgba(79, 70, 229, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  top: 0;
}

.info-card h3 {
  color: #2d3748;
  margin: 0 0 0.6rem 0;
  font-size: 1.4rem;
  line-height: 1.3;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.info-card p {
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 0 0.5rem;
  box-sizing: border-box;
  padding-top: 0.2rem;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 22px;
}
.card h3 { margin-top: 0; }

/* Forms */
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input[type="text"],
.contact-form input[type="email"] {
  background: rgba(255,255,255,0.96);
}
.contact-form label {
  color: #0d214e;
  font-weight: 600;
  display: grid;
  gap: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #f8fafc;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

/* Enhanced form fields */
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(69,88,207,0.35);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  margin-bottom: 12px;
}

.contact-form .btn {
  margin-top: 14px; /* push submit button slightly lower */
}

/* Form status message */
#sendStatus {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

#sendStatus.success {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

#sendStatus.error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.send-status {
  display: inline-block;
  margin-left: 12px;
  color: #0d214e;
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-block;
  color: white;
  background: linear-gradient(135deg, #0cc3fd 0%, #4066e1 100%);
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(12, 195, 253, 0.3);
  transition: all 0.3s ease;
  font-size: 1.05rem;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4066e1 0%, #0cc3fd 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn:hover {
  box-shadow: 0 8px 20px rgba(12, 195, 253, 0.4);
  transform: translateY(-2px);
}

.btn:hover::before {
  opacity: 1;
}

/* Navigation hover effects */
.nav a {
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: #0cc3fd;
  background: transparent;
}

.nav a:hover i,
.nav a:focus i {
  color: #0cc3fd;
  transform: scale(1.1);
}

/* Remove highlight when not on target */
.nav a:not(:hover):not(:focus) {
  background: transparent !important;
  color: inherit;
}

.nav a:not(:hover):not(:focus) i {
  color: inherit;
  transform: none;
}

/* Scrolled state tooltips */
.topbar.shrink .nav a span {
  background: linear-gradient(135deg, #0cc3fd 0%, #4066e1 100%);
}

.topbar.shrink .nav a span::before {
  border-color: transparent transparent #0cc3fd transparent;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6f0f7 0%, #d9e4ec 100%);
  color: #5a7a9a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(90, 122, 154, 0.15);
  z-index: 999;
  border: 1px solid rgba(90, 122, 154, 0.1);
  outline: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  animation: fadeInUp 0.4s ease-out;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #e6f0f7 0%, #d0dce8 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(90, 122, 154, 0.2);
  color: #3a5a7a;
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

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

/* Footer */
.footer {
  color: var(--text);
  background: transparent;
  border-top: 1px solid var(--panel-border);
  padding: 22px 0;
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .nav.open { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
  .topbar .container { align-items: flex-start; }
}
