@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Titan+One&display=swap');

:root {
  --primary-color: #35C963;
  --header-green: #35C963;
  --header-green-dark: #22A94D;
  --text-color: #222222;
  --text-light: #666666;
  --bg-color: #FFFFFF;
  --card-overlay: rgba(0, 0, 0, 0.4);
  --font-heading: 'Titan One', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  --font-header: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-weight: 700;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.site-header {
  background-color: var(--header-green);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.09), transparent 22% 78%, rgba(0,0,0,0.05)),
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.18), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 7px),
    var(--header-green);
}

.header-hero {
  position: relative;
  min-height: 170px;
  padding: 2.25rem 2.6% 3.6rem;
}

.site-header::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: 42px;
  background: #FFFFFF;
  clip-path: polygon(0 44%, 3% 51%, 6% 42%, 10% 55%, 14% 46%, 18% 53%, 22% 41%, 27% 50%, 32% 43%, 37% 55%, 42% 47%, 48% 52%, 54% 42%, 60% 51%, 66% 45%, 72% 54%, 78% 44%, 84% 50%, 90% 43%, 95% 52%, 100% 45%, 100% 100%, 0 100%);
  pointer-events: none;
}

.identity-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.avatar-mark {
  display: block;
  width: clamp(68px, 5.8vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.11);
}

.site-name {
  display: block;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: color 0.3s ease;
}

.header-toolbar {
  position: absolute;
  top: 50%;
  right: 2.6%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.45rem, 2.4vw, 3rem);
  padding: 0;
  background-color: transparent;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 1.85vw, 2.35rem);
}

.nav-links a {
  position: relative;
  font-family: var(--font-header);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.48vw, 1.85rem);
  line-height: 1;
  text-transform: none;
  color: #FFFFFF;
  border: 0;
  border-radius: 0;
  padding: 0 0 0.18rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links a:hover, .nav-links a.active {
  color: #FFFFFF;
  background: transparent;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: -0.02em;
  height: 0.1em;
  border-radius: 999px;
  background: #FFFFFF;
}

.social-icons {
  display: flex;
  gap: clamp(0.9rem, 1.55vw, 1.35rem);
}

.social-icons a {
  display: grid;
  place-items: center;
  width: clamp(36px, 2.7vw, 48px);
  height: clamp(36px, 2.7vw, 48px);
  border-radius: 50%;
  font-size: clamp(1.05rem, 1.3vw, 1.55rem);
  color: var(--header-green-dark);
  background: #FFFFFF;
}

.social-icons a:hover {
  color: var(--header-green-dark);
  background: rgba(255,255,255,0.86);
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.category-card:hover .card-title {
  transform: scale(1.1);
}

/* Gallery Masonry */
.subcategory-title {
  font-family: var(--font-heading);
  color: var(--primary-color);
  padding: 3rem 5% 1rem;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 1.55rem;
}

.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 0 5% 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.has-hover-strip {
  position: relative;
}

.hover-strip {
  background-color: transparent;
  color: #999999;
  padding: 0.5rem 0.2rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
}

.about-page {
  padding-bottom: 4rem;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.about-content .subcategory-title {
  padding-left: 0;
  padding-right: 0;
}

.about-content p {
  color: var(--text-color);
  font-size: 1.15rem;
  line-height: 1.7;
}

.about-layout {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 0 0 55%;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .about-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0,0,0,0.85);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  max-width: min(100%, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.image-lightbox button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--text-color);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox button:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Contact Form Layout */
.contact-page {
  padding-bottom: 4rem;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5%;
}

.contact-form {
  background: #fcfcfc;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #eaeaea;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.submit-btn:hover {
  background-color: var(--header-green-dark);
  transform: translateY(-2px);
}

/* Animation Layout */
.animation-container {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.video-wrapper {
  width: 100%;
}

.video-wrapper iframe, .video-wrapper video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background-color: #000;
}

.video-description {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 1.55rem;
  text-align: center;
  margin: 0 0 1rem;
}

footer {
  text-align: center;
  padding: 2rem 5%;
  background-color: #FFFFFF;
  margin-top: 1rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-socials a {
  font-size: 2rem;
  color: var(--primary-color);
}

.footer-email {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color);
}

.footer-email:hover {
  color: var(--primary-color);
}

/* Script Layout */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 5% 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.script-card {
  background-color: #fcfcfc;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.script-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.08);
  border-color: var(--primary-color);
}

.script-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.script-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.script-type {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.script-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .hamburger-menu {
    display: block;
  }
  .hamburger-menu.is-open {
    color: var(--text-color);
  }
  .header-hero {
    min-height: 0;
    padding: 1.5rem 5% 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .site-header.menu-is-open .header-hero {
    z-index: 1001;
  }
  .site-header.menu-is-open .site-name {
    color: var(--primary-color);
    text-shadow: none;
  }
  .site-header.menu-is-open .avatar-mark {
    display: none;
  }
  .header-toolbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 1000;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 3rem;
    transform: none;
  }
  .header-toolbar.is-open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .nav-links a {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    color: var(--text-color);
    text-shadow: none;
    text-transform: uppercase;
    font-weight: 800;
  }
  .nav-links a.active,
  .nav-links a:hover {
    color: var(--primary-color);
  }
  .nav-links a.active::after,
  .nav-links a:hover::after {
    display: none;
  }
  .social-icons {
    align-self: center;
    margin-top: 1rem;
  }
  .social-icons a {
    width: clamp(48px, 10vw, 64px);
    height: clamp(48px, 10vw, 64px);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    background: #f0f0f0;
  }
  .social-icons a:hover {
    background: #e0e0e0;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .masonry-grid {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .header-hero {
    padding: 1.2rem 5% 3rem;
  }
  .identity-link {
    gap: 0.8rem;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .avatar-mark {
    width: 58px;
    font-size: 2rem;
  }
  .site-name {
    font-size: clamp(1.6rem, 7vw, 2.15rem);
  }
  .nav-links {
    justify-content: center;
    gap: 0.6rem;
  }
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.4rem;
  }
  .masonry-grid {
    column-count: 1;
  }
  .footer-email {
    font-size: 0.9rem;
  }
}
