/*
===================================================================
  Global Styles
===================================================================
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  font-family: 'Poppins', Arial, sans-serif;
  margin-bottom: 0.5em;
}

/*
===================================================================
  Animation Keyframes & Classes
===================================================================
*/
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  animation: fadeUp 0.8s ease forwards;
}

/*
===================================================================
  Header (Hero) Section & Navigation
===================================================================
*/
header {
  background: linear-gradient(135deg, #0368a5, #039be5);
  color: #fff;
  padding: 20px 20px 20px;
  text-align: center;
  position: relative;
  overflow: visible;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.navbar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.navbar h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: #fff;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-text p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/*
===================================================================
  Section Wrapper
===================================================================
*/
section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #0368a5;
  font-weight: 700;
  text-transform: uppercase;
}

/*
===================================================================
  About Section
===================================================================
*/
#about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/*
===================================================================
  Why Be Eric's Friend Section
===================================================================
*/
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 300px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #0368a5;
}

.feature-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/*
===================================================================
  Projects Section
===================================================================
*/
#projects p {
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  max-width: 700px;
  color: #555;
  line-height: 1.8;
}

.project-list {
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.project-list li {
  margin-bottom: 40px;
}

.project-list li strong a {
  color: #0368a5;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.project-list li strong a:hover {
  border-color: #0368a5;
}

.project-list img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin-top: 10px;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-list img:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

/*
===================================================================
  Contact Section
===================================================================
*/
.contact-info {
  margin-bottom: 30px;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}

.contact-form button {
  display: inline-block;
  background: #0368a5;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #025789;
}

/*
===================================================================
  Footer
===================================================================
*/
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}
