@import url("https://fonts.googleapis.com/css2?family=Bungee:wght@400&display=swap");

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

html,
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  color: #ffffff;
  background-color: #000000;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 100px;
}

.bungee-regular {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Navigation */
.navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  pointer-events: none;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 400px 400px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-container {
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: flex-start;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  display: block;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Main Content */
main {
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
  position: relative;
  background: #000;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  text-align: center;
  max-width: 900px;
  opacity: 1;
}

.hero-content span {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  color: white;
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  color: white;
}

/* General Sections */
.page-section {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.fundustry-bg,
.me-bg {
  position: relative;
  overflow: hidden;
}

.fundustry-bg {
  background-image: url("/fundustry.png");
}

.me-bg {
  background-image: url("/me.png");
}

.fundustry-bg::before,
.me-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 35%,
    transparent 60%
  );
}

.me-bg::before {
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 35%,
    transparent 60%
  );
}

.page-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: white;
}

.page-content p {
  color: white;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Category Menu */
.category-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
  align-items: center;
}

.category-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.category-btn::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.category-btn:hover::after {
  transform: scaleX(1);
}

.category-btn.active::after {
  transform: scaleX(1);
}

.category-btn:hover {
  color: #e0e0e0;
}

/* Work Sections */
.work-section {
  margin-bottom: 6rem;
  scroll-margin-top: 100px;
}

.work-section h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Work Items Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.work-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #d3d3d3;
  transition: all 0.3s ease;
}

.work-item:hover .work-image {
  opacity: 0.8;
}

.work-item h3 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
}

.work-item p {
  color: white;
  margin: 0;
}

.learn-link {
  position: absolute;
  top: 12rem;
  right: 8rem;
  color: white;
  text-decoration: underline;
  text-underline-offset: 1rem;
  font-weight: 300;
  font-size: 2rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.learn-link:hover {
  color: #e0e0e0;
}

.learn-link-left {
  right: auto;
  left: 8rem;
}

/* Footer */
.footer {
  background: #0f0f0f;
  color: white;
  margin-top: 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.mail-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mail-btn:hover {
  background: white;
  color: #0f0f0f;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-section p {
  color: #999999;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #999999;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: "→";
  position: absolute;
  left: 100%;
  opacity: 0;
  margin-left: 8px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-links a:hover {
  color: white;
  transform: translateX(12px);
}

.footer-links a:hover::after {
  opacity: 1;
  transform: translateX(8px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  text-align: center;
  color: #888888;
  font-size: 0.9rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-bottom a {
  color: #888888;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GPU Acceleration for animated elements */
.hero-content,
.hero-video,
.work-item,
.learn-link,
.fundustry-bg,
.me-bg {
  will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-section {
    padding: 2rem;
  }

  .page-content h1 {
    font-size: 1.8rem;
  }

  .page-section h2 {
    font-size: 1.5rem;
  }

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

  .category-menu {
    margin-bottom: 2rem;
  }

  .category-btn {
    font-size: 1.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .footer-bottom {
    padding: 1.5rem;
  }

  .learn-link {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    font-size: 1.2rem;
    text-underline-offset: 0.5rem;
    margin-top: 1.5rem;
  }

  .learn-link-left {
    left: auto;
  }
}
