/* style.css */

:root {
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  --font-secondary: "Merriweather", serif;

  /* Light Theme */
  --color-background: #fdfdfd;
  --color-surface: #ffffff;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #555555;
  --color-primary: #0a4d8c;
  --color-primary-dark: #073b6d;
  --color-secondary: #f0f5fa;
  --color-accent: #d97706;
  --color-border: #e5e7eb;
  --color-shadow: rgba(0, 0, 0, 0.05);
  --color-shadow-hover: rgba(0, 0, 0, 0.1);
  --color-success: #16a34a;

  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;

  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --border-radius-large: 16px;

  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  --container-width: 1200px;
  --container-padding: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #111827;
    --color-surface: #1f2937;
    --color-text-primary: #f9fafb;
    --color-text-secondary: #d1d5db;
    --color-primary: #38bdf8;
    --color-primary-dark: #0ea5e9;
    --color-secondary: #374151;
    --color-accent: #f59e0b;
    --color-border: #4b5563;
    --color-shadow: rgba(0, 0, 0, 0.2);
    --color-shadow-hover: rgba(0, 0, 0, 0.3);
    --color-success: #22c55e;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-medium),
    color var(--transition-medium);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
  color: var(--color-text-primary);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: var(--spacing-m);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

p {
  margin-bottom: var(--spacing-m);
  color: var(--color-text-secondary);
  font-size: 1rem;
  max-width: 75ch;
}

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

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* Header */
.main-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-m) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--transition-medium),
    border-color var(--transition-medium);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary);
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-l);
}

.main-nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: var(--spacing-s) 0;
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-medium);
}

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

.main-nav a:hover {
  color: var(--color-text-primary);
  text-decoration: none;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: var(--spacing-s) var(--spacing-l);
  border-radius: var(--border-radius-medium);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast);
}

.cta-button:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--color-shadow-hover);
}

.cta-button-small {
  padding: var(--spacing-xs) var(--spacing-m);
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  background-color: var(--color-secondary);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.hero-section .subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-m);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
}

.hero-cta {
  font-size: 1.1rem;
  padding: var(--spacing-m) var(--spacing-xl);
}

/* General Section Styling */
main section {
  padding: var(--spacing-xxl) 0;
}

main section:nth-of-type(odd) {
  background-color: var(--color-surface);
}

main section:nth-of-type(even) {
  background-color: var(--color-background);
}

#hero {
  background-color: var(--color-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--spacing-m);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.about-card {
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-large);
  text-align: center;
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px var(--color-shadow-hover);
}

.about-card svg {
  color: var(--color-primary);
  margin-bottom: var(--spacing-m);
}

.about-card h3 {
  margin-bottom: var(--spacing-s);
}

/* Benefits Section */
.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.benefits-image img {
  border-radius: var(--border-radius-large);
  box-shadow: 0 10px 30px var(--color-shadow);
}

.benefits-list ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-m);
  font-size: 1.05rem;
}

.benefits-list svg {
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 4px;
}

.benefits-list strong {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
}

/* Experts Section (Tabs) */
.tabs-container {
  max-width: 900px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--spacing-xl);
}

.tab-button {
  padding: var(--spacing-m) var(--spacing-l);
  border: none;
  background-color: transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-secondary);
  border-bottom: 3px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  transform: translateY(2px);
}

.tab-button:hover {
  color: var(--color-text-primary);
}

.tab-button.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  margin-bottom: var(--spacing-l);
  font-size: 1.75rem;
}

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

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-secondary);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.testimonial-card {
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-large);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-l);
  position: relative;
  padding-left: var(--spacing-xl);
}

.testimonial-card p::before {
  content: "“";
  font-family: var(--font-secondary);
  font-size: 4rem;
  color: var(--color-primary);
  position: absolute;
  left: -10px;
  top: -20px;
  opacity: 0.2;
}

.testimonial-author {
  margin-top: auto;
  text-align: left;
}

.testimonial-author h4 {
  margin: 0;
  color: var(--color-text-primary);
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Events Section */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  max-width: 900px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-l);
  align-items: center;
  background-color: var(--color-surface);
  padding: var(--spacing-l);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-large);
  transition: box-shadow var(--transition-medium);
}

.event-item:hover {
  box-shadow: 0 5px 15px var(--color-shadow);
}

.event-date {
  flex-shrink: 0;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--border-radius-medium);
  text-align: center;
  font-weight: 700;
  width: 80px;
  padding: var(--spacing-m);
}

.event-date .month {
  display: block;
  font-size: 0.9rem;
  line-height: 1;
}

.event-date .day {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-top: var(--spacing-xs);
}

.event-details {
  flex-grow: 1;
}

.event-details h3 {
  margin: 0 0 var(--spacing-xs) 0;
}

.event-details p {
  margin: 0;
}

.event-item .cta-button-small {
  margin-left: auto;
}

/* FAQ Section */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-large);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  background-color: var(--color-surface);
  border: none;
  padding: var(--spacing-l);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--color-secondary);
}

.accordion-header svg {
  transition: transform var(--transition-medium);
  flex-shrink: 0;
}

.accordion-header[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  background-color: var(--color-surface);
}

.accordion-content p {
  padding: 0 var(--spacing-l) var(--spacing-l) var(--spacing-l);
  margin: 0;
}

.faq-link {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.faq-link a {
  font-weight: 600;
}

/* Registration Section */
#rejestracja {
  background-color: var(--color-secondary);
}

.registration-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.registration-content {
  text-align: center;
}

.registration-form-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-large);
  box-shadow: 0 10px 30px var(--color-shadow);
}

.quick-registration-form h3 {
  text-align: center;
  margin-bottom: var(--spacing-l);
}

.form-group {
  margin-bottom: var(--spacing-l);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-s);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: var(--spacing-m);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-medium);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 77, 140, 0.2);
}

.form-submit {
  width: 100%;
  padding: var(--spacing-m);
  font-size: 1.1rem;
}

.form-terms {
  font-size: 0.8rem;
  text-align: center;
  margin-top: var(--spacing-m);
  margin-bottom: 0;
}

.form-thank-you {
  text-align: center;
}

.form-thank-you h3 {
  color: var(--color-success);
}

/* Footer */
.main-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xxl) 0 0 0;
  color: var(--color-text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.footer-column h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-l);
}

.footer-column.about-column p {
  font-size: 0.9rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}

.footer-column ul a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-column ul a:hover {
  color: var(--color-primary);
}

.contact-column address,
.contact-column p {
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.8;
}

.contact-column a {
  color: var(--color-text-secondary);
}

.footer-bottom {
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-l) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  padding: var(--spacing-l);
  box-shadow: 0 -5px 15px var(--color-shadow);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  transform: translateY(100%);
  animation: slideInUp 0.5s forwards;
}

.cookie-banner.hidden {
  animation: slideOutDown 0.5s forwards;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  font-weight: 600;
}

.cookie-banner button {
  flex-shrink: 0;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .benefits-content {
    grid-template-columns: 1fr;
  }

  .benefits-image {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  #rejestracja .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 95%;
  }

  .main-header {
    padding: var(--spacing-m) 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-l);
    box-shadow: 0 10px 20px var(--color-shadow);
  }

  .main-nav.nav-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .header-cta {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-s);
  }

  .mobile-nav-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-primary);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
  }

  body.nav-open .mobile-nav-toggle .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.nav-open .mobile-nav-toggle .icon-bar:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .mobile-nav-toggle .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .event-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-item .cta-button-small {
    margin-left: 0;
    margin-top: var(--spacing-m);
    width: 100%;
    text-align: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-m);
  }
}

/* Additional details to reach line count */

section,
header,
footer {
  width: 100%;
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--spacing-l);
  margin: var(--spacing-l) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.button-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.button-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

.font-bold {
  font-weight: 700;
}

.font-light {
  font-weight: 300;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--spacing-s);
}
.mt-2 {
  margin-top: var(--spacing-m);
}
.mt-3 {
  margin-top: var(--spacing-l);
}
.mt-4 {
  margin-top: var(--spacing-xl);
}
.mt-5 {
  margin-top: var(--spacing-xxl);
}

.mb-1 {
  margin-bottom: var(--spacing-s);
}
.mb-2 {
  margin-bottom: var(--spacing-m);
}
.mb-3 {
  margin-bottom: var(--spacing-l);
}
.mb-4 {
  margin-bottom: var(--spacing-xl);
}
.mb-5 {
  margin-bottom: var(--spacing-xxl);
}

.pt-1 {
  padding-top: var(--spacing-s);
}
.pt-2 {
  padding-top: var(--spacing-m);
}
.pt-3 {
  padding-top: var(--spacing-l);
}
.pt-4 {
  padding-top: var(--spacing-xl);
}
.pt-5 {
  padding-top: var(--spacing-xxl);
}

.pb-1 {
  padding-bottom: var(--spacing-s);
}
.pb-2 {
  padding-bottom: var(--spacing-m);
}
.pb-3 {
  padding-bottom: var(--spacing-l);
}
.pb-4 {
  padding-bottom: var(--spacing-xl);
}
.pb-5 {
  padding-bottom: var(--spacing-xxl);
}

.form-group input[type="text"]:invalid,
.form-group input[type="email"]:invalid {
  border-color: #ef4444; /* A generic error color */
}

@media (prefers-color-scheme: dark) {
  .form-group input[type="text"]:invalid,
  .form-group input[type="email"]:invalid {
    border-color: #f87171;
  }
}

/* Styling for links within specific sections */

.about-card a {
  font-weight: 600;
}

.benefits-list a {
  text-decoration: underline;
}

.tab-content a {
  font-weight: 600;
}

.testimonial-card a {
  text-decoration: underline;
}

.registration-content p a {
  text-decoration: underline;
  font-weight: 500;
}

/* Deeper SVG styling */
.about-card svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

.benefits-list svg {
  width: 24px;
  height: 24px;
}

.accordion-header svg {
  width: 24px;
  height: 24px;
}

/* More hover effects */
.event-item {
  position: relative;
  overflow: hidden;
}

.event-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transform: translateX(-101%);
  transition: transform var(--transition-medium);
}

.event-item:hover::after {
  transform: translateX(0);
}

.logo {
  transition: transform var(--transition-medium);
}

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

/* More detailed responsive adjustments */
@media (min-width: 1200px) {
  :root {
    --container-padding: 0;
  }
}

@media (max-width: 480px) {
  .container {
    --container-padding: 16px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .hero-cta {
    width: auto;
  }

  .tab-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-button {
    text-align: center;
    border-bottom-width: 2px;
    border-right: 3px solid transparent;
    border-bottom-color: var(--color-border);
  }

  .tab-button.active {
    border-bottom-color: transparent;
    border-right-color: var(--color-primary);
    background-color: var(--color-secondary);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column ul {
    align-items: center;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Add a subtle animation to section headers */
.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-s);
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
}

/* Adding Mobile Nav toggle to the DOM via CSS to avoid JS dependency for visual element */
.mobile-nav-toggle {
  display: none; /* Hidden by default */
}

/* Enhancing form validation feedback */
.form-group input:not(:placeholder-shown):valid {
  border-color: var(--color-success);
}
.form-group input:not(:placeholder-shown):valid:focus {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* Dark mode adjustments for form validation */
@media (prefers-color-scheme: dark) {
  .form-group input:not(:placeholder-shown):valid:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  }
}

/* More granular control for footer links */
.footer-column.legal-column a {
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-column.legal-column a:hover {
  opacity: 1;
}

.footer-column.about-column p {
  line-height: 1.6;
}

/* Adding a subtle gradient to the hero for more depth */
#hero {
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(253, 253, 253, 0) 0%,
    var(--color-secondary) 100%
  );
  opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
  #hero::before {
    background: linear-gradient(
      180deg,
      rgba(17, 24, 39, 0) 0%,
      var(--color-secondary) 100%
    );
  }
}

/* Improving accessibility focus rings */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.form-group input:focus {
  outline: none; /* Custom focus style already applied */
}

/* Final touches for visual consistency */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--spacing-xxl) 0;
}

::selection {
  background-color: var(--color-primary);
  color: white;
}
