/* General Styles */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 18px;
  color: #e0e0e0;
  background-color: #1a1a1a;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-top: 40px;
  transition: opacity 0.5s ease;
}

body.fade-out {
  opacity: 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #1a1a1a;
  padding: 30px 0;
}

.header-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-text-top {
  text-align: left;
}

.profile-text-top h1 {
  margin: 0;
  font-size: 3.5rem;
  color: #e29ba7;
  font-weight: 700;
}

.profile-text-top .title {
  margin: 0;
  font-size: 1.8rem;
  color: #00C4B4;
  font-weight: 400;
}

/* Social Links & CV Button */
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-links a {
  text-decoration: none;
}

.social-links a i {
  font-size: 3rem;
  color: #e29ba7;
  transition: color 0.3s;
}

.social-links a:hover i {
  color: #00C4B4;
}

.cv-btn {
  color: #e29ba7;
  border: 2px solid #e29ba7;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.cv-btn:hover {
  background-color: #e29ba7;
  color: #1a1a1a;
}

/* Trailer Section */
.trailer-section {
  margin-top: 100px;
  text-align: center;
}

.trailer-section .trailer-title {
  font-size: 2rem;
  color: #00C4B4;
  margin-bottom: 20px;
}

.trailer-video-wrapper, #player {
  position: relative;
  width: 1152px;
  height: 644px;
  margin: 0 auto;
  background: #000;
}

.trailer-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
  transition: background 0.3s;
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* About Me Section */
.about-me {
  width: 90%;
  max-width: 1400px;
  margin: 150px auto 40px; /* Increased top margin to prevent header overlap */
  text-align: center;
}

.about-me h2 {
  display: none; /* No heading if not required */
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-pic img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 4px solid #e29ba7;
  object-fit: cover;
}

.about-me .description {
  max-width: 600px;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Technical Experience Section */
.technical-experience {
  margin: 40px auto;
  text-align: center;
}

.technical-experience h2 {
  color: #00C4B4;
  font-size: 2rem;
  margin-bottom: 20px;
}

.tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  background-color: #2a2a2a;
  color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 1rem;
}

/* Game Collection Section */
.game-collection {
  width: 90%;
  max-width: 1400px;
  margin: 60px auto;
  text-align: left;
}

.game-collection h2 {
  font-size: 2.5rem;
  color: #00C4B4;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Card with Attached Box */
.card-with-box {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #2a2a2a;
  color: #e0e0e0;
  transition: transform 0.3s ease-in-out;
  position: relative;
  text-decoration: none;
  display: block;
  margin: 0 auto;
}

.card-with-box:hover {
  transform: scale(1.02);
}

.card-top {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.card-top iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.info-strip-translucent {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.1rem;
  padding: 8px 15px;
  border-radius: 5px;
  display: flex;
  gap: 20px;
  z-index: 1;
}

.info-strip-translucent i {
  margin-right: 8px;
}

.game-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 20px;
  margin-top: 200px;
  text-align: left;
}

.game-overlay h3 {
  margin: 0 0 8px 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #e29ba7;
}

.game-subtitle {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.card-bottom {
  padding: 20px;
  background-color: #2a2a2a;
  position: relative;
  text-align: left;
}

.card-bottom h4 {
  margin: 0 0 15px 0;
  font-size: 2rem;
  font-weight: 700;
  color: #e29ba7;
}

.card-bottom p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #e0e0e0;
  text-align: left;
}

.arrow-top-right {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow-top-right .arrow-text {
  font-size: 1.1rem;
  color: #e0e0e0;
}

.arrow-top-right i {
  color: #e29ba7;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.card-with-box:hover .arrow-top-right i {
  color: #00C4B4;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background-color: #1a1a1a;
  color: #e0e0e0;
  margin-top: 60px;
}

.footer-text {
  color: #e0e0e0;
  font-size: 1.2rem;
}

/* Mobile Styles */
@media only screen and (max-width: 768px) {
  /* Header adjustments */
  .header-container {
    flex-direction: column;
    align-items: center;
  }
  .profile-text-top h1 {
    font-size: 2.5rem;
  }
  .profile-text-top .title {
    font-size: 1.4rem;
  }
  .social-links a i {
    font-size: 2.5rem;
  }
  
  /* About Section */
  .about-me {
    margin-top: 120px;
    padding: 0 20px;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  /* Trailer Section */
  .trailer-video-wrapper, #player {
    width: 100%;
    height: auto;
  }
  
  /* Game Collection - adjust grid to one column */
  .game-grid {
    grid-template-columns: 1fr;
  }
  
  /* Adjust font sizes */
  .game-title {
    font-size: 2rem;
  }
  
  /* Cards Section */
  .cards-section {
    flex-direction: column;
    gap: 20px;
  }
  
  /* Footer */
  footer {
    padding: 20px;
    font-size: 1rem;
  }
}
