/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF6B35;
  --primary-dark: #E55A2B;
  --secondary-color: #004E89;
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-black: #000000;
  --bg-dark: #1A1A1A;
  --bg-card: #2A2A2A;
  --border-color: #E0E0E0;
  --border-dark: #404040;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #FFFFFF;
  background-color: rgb(47, 46, 46);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--bg-dark);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-dark);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  flex-direction: row;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  color: white;
  padding: 40px 0;
  text-align: center;
  position: relative;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.hero-image-link {
  display: block;
  width: 100%;
  max-width: 1200px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hero-image-link:hover {
  opacity: 0.9;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-content {
  width: 100%;
}

.hero::before {
  display: none;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-title .highlight {
  color: rgb(255, 194, 69);
  font-size: 48px;
  font-weight: 700;
}

.hero-title .small-text {
  font-size: 32px;
  font-weight: 400;
  color: #FFFFFF;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.connect-section .section-title {
  color: rgb(255, 194, 69);
}

.section-subtitle {
  font-size: 18px;
  color: #CCCCCC;
  margin-top: 10px;
}

.about-section {
  background-color: var(--bg-dark);
}

.games-section {
  background-color: #FFFFFF;
}

.games-section .section-title {
  color: rgb(255, 194, 69);
}

.games-section .section-subtitle {
  color: var(--text-light);
}

/* Games Section */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.game-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
}

.game-item-reverse {
  flex-direction: row-reverse;
}

.game-icon-wrapper {
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.game-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 20px;
  transition: opacity 0.3s ease;
}

.game-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  padding: 25px 20px;
  z-index: 10;
  gap: 12px;
  box-sizing: border-box;
}

.game-icon-wrapper:hover .game-hover-overlay {
  display: flex;
}

.game-icon-wrapper:hover .game-icon {
  opacity: 0.2;
}

.hover-game-title {
  font-size: 22px;
  font-weight: 700;
  color: rgb(255, 194, 69);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
  max-width: 100%;
}

.hover-download-text {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  margin: 0;
  white-space: nowrap;
}

.hover-download-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.game-text-content {
  flex: 1;
}

.game-title {
  font-size: 28px;
  font-weight: 700;
  color: rgb(7, 4, 4);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.game-description {
  font: normal normal normal 18px / 1.4em poppins-extralight, poppins, sans-serif;
  color: #666666;
  letter-spacing: 0em;
  margin-bottom: 25px;
}

.game-text-content .download-buttons {
  display: none;
}

@media (max-width: 768px) {
  .game-text-content .download-buttons {
    display: flex;
  }
}

.download-btn {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.download-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.store-icon {
  height: 50px;
  width: auto;
  display: block;
}


/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: start;
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: #FFFFFF;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-text p {
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.news-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-item {
  background: var(--bg-card);
  padding: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-dark);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.news-item:hover {
  transform: translateX(5px);
}

.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
  line-height: 1.4;
  padding: 20px 25px 0;
}

.news-date {
  padding: 0 25px;
}

.news-excerpt {
  padding: 0 25px 25px;
}

.news-date {
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.news-excerpt {
  font-size: 14px;
  color: #CCCCCC;
  line-height: 1.6;
}

/* Connect Section */
.connect-section {
  background-color: #000000;
}

.connect-text {
  text-align: center;
  font-size: 18px;
  color: #FFFFFF;
  margin-top: 30px;
  margin-bottom: 40px;
}

.connect-email {
  color: rgb(255, 194, 69);
  text-decoration: none;
  transition: color 0.3s ease;
}

.connect-email:hover {
  color: rgb(255, 180, 50);
  text-decoration: underline;
}

.section-subtitle {
  font-size: 18px;
  color: #CCCCCC;
  margin-top: 10px;
}

.hiring-link {
  color: #FFFFFF;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.hiring-link:hover {
  color: rgb(255, 194, 69);
}

.contact-form {
  max-width: 1000px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.form-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.form-group {
  margin-bottom: 0;
}

.form-label {
  display: none;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background-color: #FFFFFF;
  color: #000000;
  transition: border-color 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #888888;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgb(255, 194, 69);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 200px;
  flex: 1;
}

.btn-submit {
  width: auto;
  padding: 14px 40px;
  background-color: rgb(255, 194, 69);
  color: rgb(7, 4, 4);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-end;
  margin-top: auto;
}

.btn-submit:hover {
  background-color: rgb(255, 180, 50);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-success {
  margin-top: 20px;
  padding: 15px;
  background-color: #4CAF50;
  color: white;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.social-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: block;
}

/* Footer */
.footer {
  background-color: #FFFFFF;
  color: var(--text-dark);
  padding: 30px 0;
  text-align: center;
}

.footer-text {
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
  }

  .logo {
    width: 100%;
    flex: 1;
  }

  .logo-img {
    height: auto;
    width: 100%;
    max-width: none;
    min-width: 200px;
    object-fit: fill;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-dark);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-open {
    transform: translateX(0);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    padding: 30px 0;
  }

  .hero-image {
    max-height: 300px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-title .highlight {
    font-size: 32px;
  }

  .hero-title .small-text {
    font-size: 22px;
  }

  .section-title {
    font-size: 28px;
  }

  .games-list {
    gap: 40px;
    margin-top: 40px;
  }

  .game-item {
    flex-direction: column;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .game-item:nth-child(1) {
    background-image: url('../images/merge-restaurant-icon.png');
  }

  .game-item:nth-child(2) {
    background-image: url('../images/cluck-avengers-icon.png');
  }

  .game-item:nth-child(3) {
    background-image: url('../images/merge-friends-icon.png');
  }

  .game-icon-wrapper {
    display: none;
  }

  .game-text-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.6) 100%);
  }

  .game-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .game-title {
    color: rgb(255, 194, 69);
    font-size: 24px;
    margin-bottom: 5px;
    text-align: center;
  }

  .download-now-text {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    white-space: pre-line;
    text-align: center;
  }

  .game-description {
    display: none;
  }

  .game-item-reverse {
    flex-direction: column;
  }

  .game-item-reverse .game-icon-wrapper {
    order: 0;
  }

  .download-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    gap: 10px;
  }

  .game-hover-overlay {
    justify-content: flex-start;
    padding: 20px;
  }

  .hover-download-buttons {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px;
    gap: 10px;
  }

  .hover-game-title {
    margin-top: 20px;
  }

  .hover-download-text {
    margin-bottom: auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .form-right {
    height: auto;
  }

  .btn-submit {
    width: 100%;
    align-self: stretch;
  }

  .download-buttons {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px;
  }

  .download-btn {
    width: auto;
  }

  .store-icon {
    height: 45px;
  }

  .game-icon {
    width: 160px;
    height: 160px;
  }

  .game-hover-overlay {
    padding: 20px 15px;
    gap: 10px;
  }

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

  .hover-game-title {
    font-size: 20px;
  }

  .hover-download-text {
    font-size: 16px;
  }

  .hover-download-buttons {
    gap: 10px;
  }

  .store-icon {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 20px 0;
  }

  .hero-image {
    max-height: 200px;
  }

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

  .hero-title .highlight {
    font-size: 24px;
  }

  .hero-title .small-text {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

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

  .game-card {
    padding: 20px;
  }

  .social-links {
    flex-direction: row;
    gap: 20px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

