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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow: auto;
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0052a3;
  text-decoration: underline;
}

footer {
  background-color: #f9f9f9;
  padding: 2rem;
}

footer nav {
  max-width: 1200px;
  margin: 0 auto;
}

footer nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

footer nav li {
  display: inline;
  margin: 0;
}

footer nav a {
  color: #666;
  font-size: 0.95rem;
  text-decoration: none;
}

footer nav a:hover {
  color: #0066cc;
  text-decoration: underline;
}

footer p {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Home Page - Fullscreen Grid */
.home-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiles-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 0;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.tile {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  overflow: hidden;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile h2 {
  color: white;
  text-align: center;
  font-size: 2.5rem;
  margin: 0;
  border: none;
  padding: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

.home-header {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.home-header h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  text-align: center;
  font-size: 3rem;
}

.home-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.35rem 0;
}

.home-footer nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.home-footer nav li {
  margin: 0;
}

.home-footer nav a {
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.home-footer nav a:hover {
  color: #ccc;
}

/* Portfolio Gallery - Scrollable Images */
.portfolio-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
}

.gallery-scroll {
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.gallery-item {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.portfolio-header {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.portfolio-header h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  text-align: center;
  font-size: 3rem;
}

.portfolio-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0;
}

.portfolio-footer nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.portfolio-footer nav li {
  margin: 0;
}

.portfolio-footer nav a {
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.portfolio-footer nav a:hover {
  color: #ccc;
}

/* Scrollbar Styling */
.gallery-scroll::-webkit-scrollbar {
  width: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tile {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.tile:hover {
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.tile:hover .tile-overlay {

}

.tile h2 {
  color: white;
  text-align: center;
  font-size: 1.8rem;
  margin: 0;
  border: none;
  padding: 2rem;
}

@media (max-width: 768px) {
  main {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  footer nav ul {
    gap: 1rem;
  }

  .home-container {
    position: relative;
    height: auto;
    display: block;
  }

  .tiles-container {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }

  .tile {
    height: 50vh;
    min-height: 300px;
  }

  .home-header {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    z-index: 10;
    padding: 1.5rem 0 1rem;
  }

  .home-footer {
    position: relative;
    width: 100%;
    background: #f9f9f9;
  }

  .tile h2 {
    font-size: 1.3rem;
    padding: 1.5rem;
  }
}

