/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and general layout */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.content-box {
  background: rgba(255, 255, 255, 0.5);
  padding: 40px;
  border-radius: 20px;
  color: #333;
  min-width: 800px;
  max-width: 1000px;
}

/* Header styling */
header {
  margin-bottom: 20px;
}

header img {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 10px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

header p {
  font-size: 1.2rem;
  color: #555;
}

/* About section */
#about {
  margin-bottom: 20px;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

#about p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-about {
  display: none;
}

/* Links section */
#links a {
  margin: 0 15px;
  font-size: 1.2rem;
  color: #0073e6;
  text-decoration: none;
  transition: color 0.3s;
}

#links a:hover {
  color: #005bb5;
}

.desktop-about {
    display: block;
}

.mobile-about {
    display: none;
}

/* Default states */
.desktop-about {
    display: block !important;
}

.mobile-about {
    display: none !important;
}

/* Mobile Responsive Styles */

/* Tablet and small desktop */
@media (max-width: 1024px) {
  .content-box {
    min-width: 600px;
    max-width: 800px;
    padding: 30px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    min-height: 100vh;
    height: auto;
    padding: 20px 0;
    justify-content: flex-start;
  }

  .content-box {
    min-width: auto;
    max-width: 90vw;
    width: 90vw;
    padding: 25px;
    margin: 20px auto;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1.1rem;
  }

  #about h2 {
    font-size: 1.8rem;
  }

  #about p {
    font-size: 1rem;
    max-width: 100%;
  }

  #links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  #links a {
    margin: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
  }

  #links a:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
}

/* Mobile phones - portrait mode only */
@media (max-width: 480px) and (max-height: 900px) and (orientation: portrait) {
  body {
    padding: 10px 0;
  }

  .content-box {
    width: 95vw;
    max-width: 95vw;
    padding: 20px;
    margin: 10px auto;
    border-radius: 15px;
  }

  header img {
    width: 120px;
  }

  header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  header p {
    font-size: 1rem;
  }

  #about {
    margin-bottom: 25px;
  }

  #about h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  #about p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .desktop-about {
    display: none !important;
  }
  .mobile-about {
    display: block !important;
  }

  /* Styling for the new mobile-about text */
  .mobile-about p {
    margin-bottom: 10px;
  }

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

  #links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  #links a {
    margin: 0;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-size: 1rem;
    width: 80%;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  #links a:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
}

/* Mobile phones - landscape mode */
@media (max-height: 480px) and (orientation: landscape) {
    .desktop-about {
        display: block !important;
    }
    
    .mobile-about {
        display: none !important;
    }
}

/* Very small phones */
@media (max-width: 320px) {
  .content-box {
    padding: 15px;
  }

  header h1 {
    font-size: 1.6rem;
  }

  #about h2 {
    font-size: 1.3rem;
  }

  #links a {
    width: 90%;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
} 