/* ================= RESET ================= */

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

/* ================= GLOBAL ================= */

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: #181818;
  color: #fff;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= PAGE WRAPPER ================= */

.page {
  flex: 1; /* pushes footer to bottom on short pages */
  width: 100%;
  max-width: 2500px;
  margin: 0 auto;

  /* space so content doesn't sit under the fixed header */
  padding: 200px 90px 0;
}

/* ================= HEADER ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999999;
  background: transparent;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  will-change: transform;
}

/* hide header when scrolling down */
.site-header.is-hidden {
  transform: translateY(-120%);
  transition: transform 0.25s ease;
}

/* show instantly at top */
.site-header:not(.is-hidden) {
  transform: translateY(0);
  transition: none;
}

.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;

  padding: 54px 90px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* ================= NAV (DESKTOP) ================= */

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

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 600;
}

.site-nav a:hover {
  opacity: 0.65;
}

/* ================= DROPDOWN (DESKTOP) ================= */

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 10px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);

  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1px;

  background: transparent;
  white-space: nowrap;
  z-index: 2000;
}

.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 600;

  display: block;
  line-height: 1;
  padding: 2px 0;
  margin: 0;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: flex;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center center;
}

/* ================= GALLERY ================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
}

/* ================= TEXT PAGES ================= */

.text-page {
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================= FOOTER ================= */

.site-footer {
  margin-top: auto;
  padding: 80px 0 70px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-follow {
  font-size: 40px;
  letter-spacing: 1px;
  font-weight: 500;
}

.footer-icons {
  display: flex;
  gap: 14px;
}

.footer-icons a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  opacity: 0.9;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px) {
  .header-inner {
    padding: 32px 24px;
  }

  .page {
    padding: 170px 24px 0;
  }

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

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* ================= ABOUT PAGE ================= */

.about-page {
  padding-top: 240px;
}

.about-content {
  max-width: 900px;
  margin-left: 90px;
}

.about-text {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 400;
  margin-bottom: 20px;
}

.about-email {
  font-size: 28px;
  margin-bottom: 18px;
}

.about-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.about-icons a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  opacity: 0.95;
}

.about-icons a:hover {
  opacity: 0.6;
}

@media (max-width: 980px) {
  .about-page {
    padding-top: 190px;
  }

  .about-content {
    margin-left: 24px;
    margin-right: 24px;
  }

  .about-text,
  .about-email {
    font-size: 20px;
  }
}

/* ✅ About page: allow long email to wrap on mobile */
.about-email{
  overflow-wrap: anywhere;   /* best modern fix */
  word-break: break-word;    /* fallback */
  max-width: 100%;
}

@media (max-width: 780px){
  .about-email{
    font-size: 15px;         /* tweak if you want */
    line-height: 1.4;
  }
}


/* ================= CONTACT PAGE ================= */

.contact-page {
  padding-top: 260px;
}

.contact-grid {
  max-width: 1650px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1.15fr;
  column-gap: 140px;
  align-items: start;
}

.contact-left {
  max-width: 520px;
}

.contact-title {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2px;

  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 22px 0;
}

.contact-blurb {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.2px;

  font-size: 19px;
  line-height: 1.8;
  opacity: 1;
  max-width: 520px;
  margin: 0;
}

.contact-right {
  max-width: 820px;
  width: 100%;
}

.contact-form {
  width: 100%;
}

.contact-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.contact-label span {
  font-weight: 400;
  opacity: 0.6;
}

.contact-field {
  margin-bottom: 18px;
}

.contact-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 10px 12px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-submit {
  margin-top: 22px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 12px 34px;
  font-size: 13px;
  letter-spacing: 1.5px;
  cursor: pointer;

  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700; /* bold */
  text-transform: uppercase;
}

.contact-submit:hover {
  opacity: 0.6;
}

@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr;
    row-gap: 50px;
    column-gap: 0;
    max-width: 900px;
  }

  .contact-left,
  .contact-right {
    max-width: 100%;
  }

  .contact-title {
    font-size: 38px;
  }
}

.about-email {
  font-size: 21px;
  margin-top: 22px;
}

/* ✅ About page: allow long email to wrap on mobile */
.about-email{
  overflow-wrap: anywhere;   /* best modern fix */
  word-break: break-word;    /* fallback */
  max-width: 100%;
}

@media (max-width: 780px){
  .about-email{
    font-size: 16px;         
    line-height: 1.4;
  }
}

.contact-success{
  margin-top: 18px;
  font-size: 18px;
  color: #4CAF50;
  opacity: 0.8;
}


/* =========================================================
   MOBILE MENU (OPTION B — Glass + card/pill look)
   Requires JS toggling: .site-nav.open and .dropdown.sub-open
   ========================================================= */

/* Hide hamburger on desktop by default */
.menu-toggle{
  display: none;
}

@media (max-width: 780px) {

  /* show hamburger on mobile */
  .menu-toggle{
    display: block;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle span{
    display: block;
    width: 34px;
    height: 2px;
    background: #fff;
    margin: 8px 0;
    border-radius: 2px;
    opacity: 0.95;
  }

  /* hide nav by default on mobile */
  .site-nav{
    display: none;
  }

  /* open nav panel */
  .site-nav.open{
    display: flex;

    position: fixed;
    top: 92px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 40px);
    max-width: 420px;

    padding: 26px 20px;
    gap: 18px;

    flex-direction: column;
    align-items: stretch;

    background: rgba(24, 24, 24, 0.55);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 40px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
      0 35px 80px rgba(0,0,0,0.5),
      0 10px 28px rgba(0,0,0,0.25);

    z-index: 999999;
  }

  /* dropdown container full width */
  .dropdown{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* ALL top-level items are full-width pills INCLUDING portfolio */
  .site-nav.open > a,
  .site-nav.open .portfolio-link{
    width: 100%;
    display: block;
    text-align: center;

    padding: 18px 0;

    border-radius: 999px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);

    color: #fff;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-style: italic;

    transition: background 0.2s ease, transform 0.15s ease;
  }

  .site-nav.open > a:hover,
  .site-nav.open .portfolio-link:hover{
    background: rgba(255,255,255,0.13);
  }

  .site-nav.open > a:active,
  .site-nav.open .portfolio-link:active{
    transform: scale(0.98);
  }

  /* kill desktop hover dropdown behaviour on mobile */
  .dropdown:hover .dropdown-menu{
    display: none;
  }

  /* submenu appears under Portfolio as pills too */
  .dropdown-menu{
    position: static;
    transform: none;

    display: none;
    width: 100%;

    margin-top: 12px;
    padding: 0;

    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    background: none;
    box-shadow: none;
  }

  .dropdown.sub-open .dropdown-menu{
    display: flex;
  }

  .dropdown-menu a{
    width: 100%;
    text-align: center;

    padding: 14px 0;
    border-radius: 999px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.05);

    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-style: italic;
    opacity: 0.92;

    color: #fff;
    text-decoration: none;
  }

  .dropdown-menu a:hover{
    background: rgba(255,255,255,0.10);
    opacity: 1;
  }
}

@media (max-width: 780px) {
  .hero {
    background-position: 50% 55% !important; /* X Y */
  }
}

/* HERO — mobile framing override */
@media (max-width: 780px) {
  .hero {
    /* first value = left/right, second value = up/down */
    background-position: 46% 40% !important;
  }
}

.footer-icons{
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.footer-icons .icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;   /* clickable area */
  height: 32px;

  color: #fff;
  opacity: 0.9;
  text-decoration: none;

  transition: opacity .2s ease, transform .15s ease;
}

.footer-icons .icon svg{
  width: 24px;   /* ACTUAL icon size */
  height: 24px;
  fill: currentColor;
  display: block;
}

.footer-icons .icon:hover{
  opacity: 0.6;
}

.footer-icons .icon:active{
  transform: scale(0.95);
}

/* Mobile tweak */
@media (max-width: 780px){
  .footer-icons .icon svg{
    width: 20px;
    height: 20px;
  }
}

.site-footer{
  margin-top: auto;
  padding: 100px 0 70px;   /* slightly tighter top */
  text-align: center;
}

.footer-follow {
  margin-bottom: -27px;
}

.footer-icons .icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;          /* makes it white */
  display: block;
}

.footer-icons .icon {
  cursor: pointer;
}

/* Slightly scale the email icon to match others */
.footer-icons .icon--mail svg {
  transform: scale(1.45);
  transform-origin: center;
}

.footer-icons .icon--facebook svg {
  transform: scale(1.02);
}

.footer-icons .icon--artstation svg {
  transform: scale(1.1);
}

/* Instagram tends to look a touch smaller */
.footer-icons .icon--instagram svg {
  transform: scale(1.2);
  }

  /* About page: make the icon row behave like footer icons */
.about-icons{
  margin-top: 14px;
  justify-content: flex-start; /* left aligned under the email */
}
.about-icons .icon{
  display: inline-flex;        /* ensures the clickable area exists */
  align-items: center;
  justify-content: center;
}

