@font-face {
  font-family: 'The Frontman';
  src: url('fonts/TheFrontman.woff2') format('truetype'),
        url('fonts/TheFrontman.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Capture it';
    src: url('fonts/Captureit.woff2') format('woff2'),
        url('fonts/Captureit.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and Background */
html, body {
  height: 100%;
  font-family: 'The Frontman', sans-serif;
  background-color: #121212; /* dark, moody */
  color: #f5f5f5; /* paragraph text */
}

.background {
  background: url('/images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

main {
  text-align: center;
}

/* Logo */
.logo {
  max-width: 400px;
  width: 100%;
  margin: 0 auto 20px auto;
  display: block;
  filter: drop-shadow(2px 2px 5px #ff1ca8);
}

/* Headings */
h1, h2, h3 {
  color: #f5f5f5; /* heading/logo accent */
  text-shadow: 2px 2px 8px rgba(255, 28, 168, 0.6); /* soft pink glow */
}

main h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Definition Paragraphs */
.definition {
  max-width: 600px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  color: #f5f5f5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.definition strong {
  font-weight: bold;
  text-transform: uppercase;
  color: #ff1ca8;
}

.definition em {
  font-style: italic;
}

/* Portfolio Section */
.portfolio {
  padding: 2rem;
  text-align: center;
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.portfolio-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.portfolio-item {
  width: 280px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #1e1e1e; /* card background */
  box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* soft shadow */
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.portfolio-item h3 {
  padding: 1rem;
  font-size: 1.2rem;
  color: #f5f5f5;
}

/* ===== CONTACT SECTION === */
.contact-section {
  padding: 3rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  max-width: 750px;
  margin: 40px auto;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #f5f5f5; /* heading/logo accent */
  text-shadow: 2px 2px 8px rgba(255, 28, 168, 0.6); /* soft pink glow */
  letter-spacing: 1px;
}

.contact-details a {
  font-family: 'Capture it', sans-serif;
  font-size: 1.4rem;
  line-height: 1.2; /* improves vertical rhythm */
  margin: 0.5rem 0;
  color: #ff1ca8;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.4);
  display: inline-block;  /* helps if positioning */
  vertical-align: baseline;
  letter-spacing: 0.5px;
}

/* Glowy highlight effect on hover */
.contact-details a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 100%;
  background: rgba(255, 28, 168, 0.2); /* soft pink overlay */
  border-radius: 4px;
  transition: width 0.3s ease;
  z-index: -1;           /* behind text */
  pointer-events: none;  /* ensures text is clickable/visible */
}

.contact-details a:hover::before {
  width: 120%; /* slightly larger than text for emphasis */
}

/* Optional: slightly brighten text on hover */
.contact-details a:hover {
  color: #ff1ca8;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .background {
    padding: 20px 10px;
    background-attachment: scroll;
  }

  .logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 15px;
  }

  h1, main h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .portfolio h2 {
    font-size: 1.5rem;
  }

  .definition {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 1rem;
  }

  .portfolio-items {
    flex-direction: column;
    gap: 1.5rem;
  }

  .portfolio-item {
    width: 100%;
    max-width: 90vw;
    height: auto;
  }

  .portfolio-item img {
    height: auto;
    max-height: 250px;
  }

  .portfolio-item h3 {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  h1, main h1 {
    font-size: 1.8rem;
  }

  .definition {
    font-size: 0.9rem;
  }

  .portfolio h2 {
    font-size: 1.3rem;
  }

  .contact-section h2 {
    font-size: 2rem;
  }

  .contact-text, .contact-details {
    font-size: 1rem;
  }
}
