* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.portfolio-container {
  width: 100%;
  max-width: 1300px;
  height: 700px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  z-index: 2;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.flip-card.imgbox {
  padding: 3px;
  border-radius: 12px;
  background: linear-gradient(black) padding-box,
              linear-gradient(var(--angle), #fff, #ef6105) border-box;
  animation: rotate 8s linear infinite;
  border: 1px solid transparent;
}


.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;

}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);

}

.flip-face {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flip-front {
  background: transparent;
}

.flip-back {
  transform: rotateY(180deg);
  background: black;
}

.flip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.flip-content {
  text-align: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  padding: 20px;
}

.flip-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.flip-content p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Inherit all responsive sizing from .imgbox */

/* IMAGE BOX */
.imgbox {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3px;
  height: 400px;
  width: 320px;
  border-radius: 12px;
  background: linear-gradient(#131219, #131219) padding-box,
              linear-gradient(var(--angle), #fff, #ef6105) border-box;
  animation: 8s rotate linear infinite;
}

/* AVATAR IMAGE */
.profile-img {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.6);
}

@keyframes rotate {
  to { --angle: 360deg; }
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* HEART */
.heart {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #ff3a7f, #ff0a6c);
  transform: rotate(45deg);
  position: relative;
  animation: firePulse 2.5s infinite ease-in-out;
  box-shadow:
    0 0 10px rgba(255, 0, 100, 0.6),
    0 0 20px rgba(255, 80, 40, 0.4),
    inset 0 0 10px rgba(255, 60, 60, 0.3);
  transition: all 0.3s ease;
  z-index: 5;
}

.heart::before,
.heart::after {
  content: "";
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #ff3a7f, #ff0a6c);
  border-radius: 50%;
  position: absolute;
  filter: drop-shadow(0 0 5px rgba(255, 60, 100, 0.3));
  z-index: -1;
}

.heart::before {
  top: -30px;
  left: 0;
}

.heart::after {
  top: 0;
  left: -30px;
}

.heart:hover {
  transform: rotate(45deg) scale(1.1);
  box-shadow:
    0 0 20px rgba(255, 0, 100, 0.8),
    0 0 35px rgba(255, 100, 40, 0.5),
    inset 0 0 20px rgba(255, 70, 70, 0.4);
}

/* Subtle fire pulse */
@keyframes firePulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(255, 0, 100, 0.6),
      0 0 20px rgba(255, 80, 40, 0.4),
      inset 0 0 10px rgba(255, 60, 60, 0.3);
    transform: rotate(45deg) scale(1);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 0, 100, 0.7),
      0 0 30px rgba(255, 100, 50, 0.5),
      inset 0 0 15px rgba(255, 70, 70, 0.4);
    transform: rotate(45deg) scale(1.08);
  }
}


/* TEXT BELOW */
.subheadline {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  max-width: 80%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.5s ease forwards 0.8s;
}
.page-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  max-width: 90%;
  margin: -500px auto 30px; /* adjust top margin if needed */
  text-align: center;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.5s ease forwards 0.8s;
  z-index: 2;
}
.typewriter-text {
  font-family: 'Courier New', monospace;
  align-content: center;
  font-size: 1rem;
  color: #fff;
  white-space: pre-wrap;
  overflow: hidden;
  max-width: 100%;
  margin-top: -180px;
}
a{
  text-decoration: none!important;
}
.contact-form-wrapper {
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  z-index: 3;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 18px;
  border-right: solid 1px white;
  border-left: solid 1px white;
  border-top: none;
  border-bottom: none;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f5a742;
  background: transparent;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: transparent;
  border: solid 1px white;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff5500;
}

.discord-button {
  margin-top: 10px;
  display: inline-block;
  background: transparent;);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.discord-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff5500;
}

.cta-button {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.5s ease forwards 1.1s;
}
.cta-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}
.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}
.cta-button:hover::after {
  transform: translate(-50%, -50%) scale(1);
}
.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 5;
  animation: fadeUp 1.5s ease forwards 1.4s;
}

.lang-item {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f5a742;
  border-color: #f5a742;
}

@media (max-width: 600px) {
  .language-switcher {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .lang-item {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* NAVBAR */

.portfolio-nav {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.5s ease forwards 1.4s;
  flex-wrap: wrap;
}
.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.nav-item:hover {
  color: #f5a742;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #f5a742, #e85a19);
  transition: width 0.3s ease;
}
.nav-item:hover::after {
  width: 100%;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CANVAS BACKGROUND */
.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
canvas {
  width: 100%;
  height: 100%;
}

/* PARTICLES */
.particle {
  position: fixed; /* prevent page shifting */
  border-radius: 50%;
  animation: float 1.5s ease-out forwards;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1000;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1600px) {
  .imgbox { height: 360px; width: 300px; }
}

@media (max-width: 1400px) {
  .imgbox { height: 320px; width: 280px; }
}

@media (max-width: 1200px) {
  .profile-row { gap: 20px; }
  .imgbox { height: 280px; width: 240px; }
  .heart { width: 60px; height: 60px; }
  .heart:before, .heart:after {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
  }
}

@media (max-width: 768px) {
  .profile-row {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  .imgbox { height: 260px; width: 220px; }
  .heart {
    width: 60px;
    height: 60px;
  }
  .heart:before, .heart:after {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
  }
  .subheadline { font-size: 1rem; }
  .cta-button { font-size: 0.9rem; }
  .portfolio-nav { gap: 1rem; }
}

@media (max-width: 500px) {
  .imgbox { height: 220px; width: 180px; }
  .profile-img { width: 100px; height: 100px; }
  .heart { width: 50px; height: 50px; }
  .heart:before, .heart:after { width: 50px; height: 50px; top: -25px; left: -25px; }
}

/* Force both cards to be same size at all resolutions */
.imgbox,
.flip-card {
  width: 400px;
  height: 500px;
  max-width: 100%;
  max-height: 100%;
  padding: 3px;
  border-radius: 12px;
  background: linear-gradient(#131219, #131219) padding-box,
              linear-gradient(var(--angle, 0deg), #fff, #ef6105) border-box;
  animation: rotate 8s linear infinite;
  box-sizing: border-box;
}

/* Ensure flip-card inner face respects same size too */
.flip-card-inner,
.flip-card-front,
.flip-card-back {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

