@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg-dark: #0D0D0D;
  --text-light: #F5F5F0;
  --accent-orange: #FF4D00;
  --accent-cyan: #2cb8c9;
  --accent-blue: #6c7fd0;
  --font-main: 'Space Grotesk', 'Pretendard', sans-serif;
  --font-display: 'Space Grotesk', 'Pretendard', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background-color: var(--bg-dark);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
  display: flex;
  flex-direction: column;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 1.3rem;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none !important;
  transition: color 0.3s;
}

.logo-top,
.logo-bottom {
  color: var(--accent-orange);
  transition: color 0.3s;
}

.logo-container:hover .logo-top,
.logo-container:hover .logo-bottom {
  color: #3c4d9f;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: rgba(245, 245, 240, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--text-light);
}

.nav-btn {
  background-color: var(--accent-orange);
  color: var(--bg-dark);
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.nav-btn:hover {
  background-color: #d64000;
}

/* Hero Panels */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.panels {
  display: flex;
  height: 100%;
  width: 100%;
  padding-top: 80px;
}

.panel {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.panel:last-child {
  border-right: none;
}

.panel:hover {
  flex: 1.5;
}

.panel-overlay {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: rgba(13, 13, 13, 0.6);
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover .panel-overlay {
  background: rgba(13, 13, 13, 0.1);
}

.panel-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s, font-weight 0.3s;
}

.panel:hover .panel-text {
  transform: scale(1.1);
  color: #FD5E0F;
  font-weight: 700;
}

.hero-bottom-text {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 245, 240, 0.9);
  letter-spacing: 0.05em;
  z-index: 10;
}

/* Works Section */
.works-container {
  padding: 120px 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.work-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  height: 400px;
}

.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-item:nth-child(even) {
  flex-direction: row-reverse;
  gap: 60px;
}

.work-info {
  flex: 1;
}

.work-info h3 {
  font-size: 4.0rem;
  margin-bottom: 10px;
  font-family: var(--font-display);
  color: var(--text-light);
  line-height: 1.1;
}

.work-info p {
  display: flex;
  align-items: flex-start;
  color: rgba(245, 245, 240, 0.6);
  font-size: 1.8rem;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.work-info strong {
  flex: 0 0 160px;
  color: var(--text-light);
}

.work-media {
  flex: 0 0 auto;
  aspect-ratio: 21 / 9;
  height: 100%;
  overflow: hidden;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.8);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  will-change: transform;
}

.work-media:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) brightness(1);
}

/* About Section */
.about-container {
  padding: 100px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--accent-orange);
}

.about-container p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(245, 245, 240, 0.8);
}

/* Footer */
.footer {
  background-color: var(--accent-orange);
  color: var(--bg-dark);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.socials a {
  color: var(--bg-dark);
  text-decoration: none;
  margin-left: 20px;
  transition: opacity 0.3s;
}

.socials a:hover {
  opacity: 0.7;
}

body.no-scroll {
  overflow: hidden;
}

.menu-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .panels {
    flex-direction: column;
  }

  .panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .panel:last-child {
    border-bottom: none;
  }

  .work-item,
  .work-item:nth-child(even) {
    flex-direction: column-reverse;
    gap: 30px;
    align-items: flex-start;
    height: auto;
  }

  .work-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: none;
  }
}

@media (max-width: 768px) {
  /* Header */
  .header {
    height: 70px;
    padding: 0 20px;
  }

  .logo-container {
    font-size: 1.1rem;
  }

  /* Hamburger Menu Toggle */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--accent-orange);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Navigation Overlay */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.4rem;
    color: rgba(245, 245, 240, 0.8);
  }

  .nav-link:hover {
    color: var(--accent-orange);
  }

  .nav-btn {
    font-size: 1.4rem;
    padding: 12px 36px;
    background-color: var(--accent-orange);
    color: var(--bg-dark);
  }

  /* Index Hero Panels */
  .panel-text {
    font-size: clamp(1.4rem, 5.5vw, 2.2rem) !important;
  }

  .hero-bottom-text {
    bottom: 20px;
    padding: 0 20px;
  }

  .hero-bottom-text p {
    font-size: clamp(0.7rem, 2.8vw, 0.85rem) !important;
    line-height: 1.4;
  }

  /* Works Section */
  .works-container {
    padding: 100px 20px 50px 20px !important;
  }

  .work-item {
    margin-bottom: 50px;
  }

  .work-info h3 {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    margin-bottom: 15px;
    word-break: keep-all;
  }

  .work-info p {
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 12px;
  }

  .work-info strong {
    flex: none;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  /* Footer */
  .footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 25px 20px;
  }

  .socials {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .socials a {
    margin-left: 0;
  }
}