:root {
  --primary: #1e3a8a;
  --secondary: #0ea5e9;
  --accent: #0284c7;
  --accent-contrast: #f97316;
  --light: #f0f9ff;
  --dark: #0f172a;
  --gray: #94a3b8;
}

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

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  margin-left: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
  margin-top: 0;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-contrast);
  transition: width 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

nav a:hover {
  color: var(--light);
  transform: translateY(-3px);
  text-shadow: 0 5px 8px rgba(0, 0, 0, 0.8);
}

nav a:hover::after {
  width: 100%;
  background-color: var(--accent-contrast);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.8);
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent-contrast);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

#contact p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

#contact i {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: var(--accent-contrast);
  width: 1.5rem;
  text-align: center;
}

footer {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--accent-contrast);
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 0.5rem;
  }
}

.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.activity {
  padding: 1.5rem;
  border-radius: 12px;
  background-color: white;
  box-shadow: none;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.activity:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.activity-large {
  grid-column: span 2;
  grid-row: span 1;
}

.activity-icon {
  font-size: 2.5rem;
  color: var(--accent-contrast);
  margin-bottom: 1rem;
  text-align: center;
}

.activity h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: center;
}

.activity-image {
  width: calc(100% + 3rem);
  height: 160px;
  object-fit: cover;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  border-radius: 12px 12px 0 0;
}

.activity-large .activity-image {
  height: 200px;
}

@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }

  .activity-large {
    grid-column: span 1;
  }
}

.email-button {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.email-button:hover {
  background-color: var(--accent-contrast);
}

.contact-header {
  margin-bottom: 1.5rem;
}

.contact-header h2 {
  margin-bottom: 0;
  display: inline-block;
}

#reveal-contact {
  margin-bottom: 1rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .contact-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }

  #reveal-contact {
    margin-bottom: 0;
    height: auto;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
  }
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.about-image {
  float: right;
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 1rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-image {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
}

/* Update these styles for a more balanced legal section */
#legal {
  font-size: 0.9rem;
  line-height: 1.4;
}

#legal h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

#legal h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

#legal p {
  margin-bottom: 0.5rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.legal-item {
  margin-bottom: 0;
}

.legal-col-right {
  display: grid;
  grid-template-rows: auto auto;
}

@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.legal-links {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.legal-links a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--accent-contrast);
  text-decoration: underline;
}
