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

body {
  background-color: #000000;
  font-family: Arial, Helvetica, sans-serif;
}

h1 {
  color: red;
}

p {
  color: white;
}

.nav-bar {
  background-image: linear-gradient(
    to right,
    rgb(64, 0, 0),
    rgb(162, 8, 8),
    rgb(64, 0, 0)
  );
  display: flex;
  align-items: center;
  padding: 2px;
}

.hamburger {
  display: none;
  margin-left: auto;
  font-size: 34px;
  color: white;
  cursor: pointer;
  margin-right: 20px;
}

.menu {
  display: flex;
  margin-left: auto;
  margin-right: 20px;
}

.menu.open {
  max-height: 500px;
}

.logo {
  width: 130px;
  height: auto;
  margin-left: 20px;
}

.menu-item {
  color: #ffffff;
  font-size: 30px;
  margin: 20px;
  transition: 0.3s ease-in;
  text-decoration: none;
}

.menu-item:hover {
  color: #e10f0f;
}

.site-header {
  background: linear-gradient(to right, #7c1d1d, #b53b2c);
}

.hero-section {
  margin-top: 60px;
  margin-bottom: 150px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: #000000;
}

.hero-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: #000000;
}

.cards-img {
  width: 380px;
  height: auto;
  margin-bottom: -300px;
  rotate: -5deg;
}

.name-big {
  width: 600px;
  height: auto;
  margin-top: -20px;
  margin-left: 10px;
}

.subtitle {
  color: #d9d9d9;
  font-size: 32px;
  letter-spacing: 3px;
  text-align: center;
}

.gracie-photo {
  width: 360px;
  height: auto;
  border-radius: 5px;
}

.photo-wrapper {
  overflow: hidden;
  display: inline-block;
}

.gracie-photo {
  transform: translateY(120px);
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

.gracie-photo.animate {
  transform: translateY(0);
  opacity: 1;
}

.card-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
  margin-bottom: 80px;
}

.flip-card {
  width: 300px;
  height: 450px;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-inner img {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  top: 0;
  left: 0;
}

.back {
  transform: rotateY(180deg);
}

.card-1 {
  rotate: -5deg;
}
.card-2 {
  rotate: 5deg;
}
.card-3 {
  rotate: -5deg;
}
.card-4 {
  rotate: 5deg;
}

.footer {
  max-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footerlogo {
  max-height: 100px;
  margin-bottom: 50px;
  opacity: 60%;
}

#about-page {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

#about-top {
  text-align: center;
  margin-bottom: 24px;
}

#about-hero {
  width: 60%;
  max-width: 420px;
  height: auto;
}

#about-subtitle {
  color: #ff6b6b;
  margin-top: 8px;
  font-size: 18px;
}

#about-middle {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
}

#about-left {
  flex: 1;
}

#about-photo-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  border: 4px solid #000;
  overflow: hidden;
  margin-bottom: 16px;
}

#about-photo {
  width: 100%;
  display: block;
}

#about-corner {
  position: absolute;
  top: 10px;
  left: 14px;
  color: #c53030;
  font-size: 30px;
  font-family: "Times New Roman", serif;
}

#about-quick {
  background-color: #000;
  border-radius: 12px;
  border: 2px solid #e53e3e;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
}

#about-quick h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

#about-quick .label {
  color: rgba(255, 255, 255, 0.6);
}

#about-right {
  flex: 1.2;
  background-color: #ffffff;
  border-radius: 16px;
  border: 4px solid #000;
  padding: 18px 20px 20px;
}

#about-pill {
  display: inline-block;
  background-color: #e53e3e;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

#about-name {
  color: #111;
  font-size: 26px;
  margin-bottom: 4px;
}

#about-tagline {
  color: #4a5568;
  font-style: italic;
  margin-bottom: 14px;
}

#about-text p {
  color: #2d3748;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 14px;
}

#about-values {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.value-box {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 8px 10px;
  flex: 1 1 45%;
}

.value-label {
  font-size: 11px;
  color: #718096;
}

.value-main {
  font-size: 14px;
  color: #1a202c;
}

#about-bottom {
  background: #180000;
  border-radius: 20px;
  border: 3px solid #ffffff;
  padding: 24px 20px 22px;
  color: #fff;
  text-align: center;
}

#about-winning-pill {
  display: inline-block;
  background-color: #e53e3e;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#about-bottom-title {
  font-size: 24px;
  margin-bottom: 18px;
}

#about-bottom-columns {
  display: flex;
  gap: 18px;
  text-align: left;
  font-size: 14px;
  margin-bottom: 18px;
}

.bottom-col h3 {
  color: #feb2b2;
  margin-bottom: 6px;
}

.bottom-col p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

#about-bottom-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 12px;
}

#about-bottom-cta .cta-big {
  color: #f56565;
  font-size: 20px;
  margin-bottom: 4px;
}

#about-bottom-cta .cta-small {
  color: rgba(255, 255, 255, 0.8);
}

/* ================= AI PAGE (Wild Card) ================= */

#ai-page {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

#ai-top {
  text-align: center;
  margin-bottom: 32px;
}

#ai-joker {
  font-size: 64px;
  margin-bottom: 8px;
}

#ai-title {
  color: #ffffff;
  font-size: 36px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#ai-subtitle {
  color: #f87171;
  font-size: 18px;
}

#ai-columns {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.ai-column {
  flex: 1;
  background-color: #0b0b0b;
  border-radius: 16px;
  border: 2px solid #3f3f3f;
  padding: 18px 18px 20px;
}

.ai-column-title {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 14px;
}

.ai-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background-color: #f5f5f5;
  border-radius: 12px;
  border: 2px solid #000000;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.ai-suit {
  font-size: 30px;
  line-height: 1;
}

.ai-suit.red {
  color: #e11d48;
}

.ai-suit.black {
  color: #000000;
}

.ai-card-text h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #111827;
}

.ai-card-text p {
  font-size: 14px;
  color: #374151;
}

.ai-list-block {
  background-color: #111111;
  border-radius: 12px;
  border: 1px solid #4b5563;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.ai-list-block h3 {
  color: #fca5a5;
  font-size: 16px;
  margin-bottom: 4px;
}

.ai-list-block p {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.6;
}

#ai-bottom {
  background: radial-gradient(circle at top, #7f1d1d, #000000);
  border-radius: 18px;
  border: 3px solid #ffffff;
  padding: 18px 16px 20px;
  text-align: center;
}

#ai-pill {
  display: inline-block;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#ai-quote {
  color: #f9fafb;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.6;
}

#ai-small {
  color: #e5e7eb;
  font-size: 14px;
}

/* =========================
   PROJECTS PAGE STYLES
   ========================= */

.projects-hero {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  color: #ffffff;
}

.projects-suits-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 32px;
  margin-bottom: 10px;
}

.projects-suit.red {
  color: #e10f0f;
}

.projects-suit.black {
  color: #ffffff;
}

.projects-title {
  font-size: 32px;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.projects-subtitle {
  color: #e10f0f;
  font-size: 18px;
}

.projects-wrapper {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 80px auto;
}

.projects-category-block {
  margin-bottom: 40px;
}

.projects-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  margin-bottom: 16px;
}

.projects-category.red {
  color: #e10f0f;
}

.projects-category.black {
  color: #ffffff;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-card {
  background-color: #ffffff;
  border: 4px solid #000000;
  border-radius: 16px;
  padding: 16px 18px;
  width: calc(50% - 10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-name {
  font-size: 18px;
}

.project-name.red {
  color: #c00000;
}

.project-name.black {
  color: #000000;
}

.project-suit {
  font-size: 28px;
}

.project-suit.red {
  color: #c00000;
}

.project-suit.black {
  color: #000000;
}

.project-desc {
  font-size: 14px;
  color: #333333;
  margin-bottom: 6px;
}

.project-notes {
  font-size: 13px;
  color: #555555;
  margin-bottom: 10px;
}

.project-link {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid #c00000;
  color: #c00000;
  font-size: 13px;
  text-decoration: none;
  background-color: #ffffff;
  transition: 0.2s ease;
}

.project-link:hover {
  background-color: #c00000;
  color: #ffffff;
}

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

.contact-section {
  min-height: calc(100vh - 140px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
}

.contact-card {
  position: relative;
  background-color: #ffffff;
  border: 8px solid #000000;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 40px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.contact-corner {
  position: absolute;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.contact-corner-top {
  top: 14px;
  left: 16px;
}

.contact-corner-bottom {
  bottom: 14px;
  right: 16px;
  transform: rotate(180deg);
}

.corner-rank {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.corner-suit {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.contact-content {
  text-align: center;
}

.contact-suit-big {
  font-size: 60px;
  margin-bottom: 10px;
}

.contact-name {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #000000;
}

.contact-tagline {
  font-size: 14px;
  color: #555555;
  margin-bottom: 20px;
}

.contact-email-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #c00000;
  background-color: #c00000;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: 0.2s ease;
}

.contact-email-btn:hover {
  background-color: #ffffff;
  color: #c00000;
}

.contact-location {
  font-size: 14px;
  color: #333333;
  margin-bottom: 8px;
}

.contact-phrase {
  font-size: 14px;
  color: #c00000;
}

/* ========== MOBILE / TABLET LAYOUT (≤1080px) ========== */

@media (max-width: 1080px) {
  .nav-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
  }

  .logo {
    margin: 0;
    width: 110px;
  }

  .hamburger {
    display: block;
    margin-left: auto;
    margin-right: 8px;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
    z-index: 1100;
  }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: 70%;
    max-width: 200px;
    background-image: linear-gradient(
      to bottom,
      rgb(64, 0, 0),
      rgb(162, 8, 8),
      rgb(64, 0, 0)
    );
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    margin: 0;
    z-index: 1000;
  }

  .menu.open {
    transform: translateX(0);
  }

  .menu-item {
    font-size: 22px;
    margin: 0 0 8px 0;
  }

  .hero-section {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
  }

  .cards-img {
    display: none;
  }

  .hero-top {
    flex-direction: column;
    align-items: center;
  }

  .photo-wrapper {
    margin-top: 0;
  }

  .gracie-photo {
    width: 260px;
  }

  .hero-bottom {
    margin-top: 16px;
    justify-content: center;
  }

  .name-big {
    width: 280px;
    margin: 0 auto;
  }

  .subtitle {
    font-size: 18px;
    margin-top: 8px;
  }

  .hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -220px;
    margin-bottom: -220px;
    text-align: center;
  }

  .card-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 40px;
    padding: 0 16px;
  }

  .flip-card {
    width: 260px;
    height: 390px;
    rotate: 0deg;
  }

  #about-page {
    margin-top: 24px;
  }

  #about-middle {
    flex-direction: column;
  }

  #about-bottom-columns {
    flex-direction: column;
  }

  #about-hero {
    width: 80%;
  }

  #ai-page {
    margin-top: 24px;
  }

  #ai-columns {
    flex-direction: column;
  }

  .projects-hero {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .projects-title {
    font-size: 24px;
  }

  .projects-subtitle {
    font-size: 16px;
  }

  .project-card {
    width: 100%;
  }

  .contact-card {
    padding: 28px 18px;
  }

  .contact-name {
    font-size: 22px;
  }

  .contact-suit-big {
    font-size: 48px;
  }

  .contact-email-btn {
    width: 100%;
  }
}
