:root {
  --color-primary: #002e51;
  --color-secondary: #5b9eb5; /*65a6d2, 5b9eb5*/
  --color-accent-1: #E74C3C;
  --color-accent-2: #27AE60;
  --color-neutral-light: #F3F4F6;
  --color-neutral-dark: #111827;
}

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

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background-color: var(--color-neutral-light);
  color: var(--color-neutral-dark);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-1);
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1500;
  background-color: var(--color-primary);
  height: 5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;

  position: relative;
}

.lang-toggle {
  background: var(--color-secondary);
  color: var(--color-neutral-light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-neutral-light);
}
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  display: block;
  cursor: pointer;
  color: var(--color-neutral-light);

  position: relative;         
  z-index: 5000;             
  touch-action: manipulation; 
}

.header { position: sticky; }       
.header__inner { position: relative; }  

.nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;

  position: absolute;
  top: 100%;
  right: 0;

  background: var(--color-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);

  pointer-events: none;
  z-index: 2000;
}

.nav.open {
  display: flex;
  pointer-events: auto;
}

.menu-toggle {
  position: relative;
  z-index: 3000;
}

.nav a {
  padding: 0.5rem 0;
  color: var(--color-neutral-light);
}

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--color-secondary);
}
.hero h2 {
  color: var(--color-primary);
}
.hero .tagline {
  color: var(--color-neutral-dark);
  margin-top: 0.5rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}
.bg-light {
  background-color: var(--color-neutral-light);
}

/* Projects grid */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.project-card {
  background-color: var(--color-secondary);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.project-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.project-card h3 {
  margin: 1rem;
  color: var(--color-primary);
}
.project-card p {
  margin: 0 1rem 1rem;
}
.project-card a {
  display: block;
  margin: 0 1rem 1rem;
  color: var(--color-primary);
}
.project-card a:hover {
  color: var(--color-accent-1);
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-neutral-dark);
}

/* Responsive breakpoints */
@media (min-width: 600px) {
  .nav {
    /* Desktop layout */
    display: flex;
    flex-direction: row;
    gap: 1rem;

    /* Reset mobile dropdown styles */
    position: static;
    top: auto;
    right: auto;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;

    /* Reset animation styles if used */
    max-height: none;
    overflow: visible;
    opacity: 1;
    transition: none;
  }

  .menu-toggle {
    display: none;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-icons a img {
  width: 28px;          /* controls icon size */
  height: 28px;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.2s, transform 0.2s;
}

.contact-icons a:hover img {
  filter: none;
  transform: scale(1.1);
}