/* style.css */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #003366; /* PIEAS Blue */
  color: white;
  padding: 30px 0;
  border-bottom: 5px solid #ffcc00;
}

/* Main Content */
.main-content {
  padding: 40px 0;
  background-color: white;
  min-height: 600px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out 0.5s both;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #003366; /* PIEAS Blue */
  color: white;
  padding: 20px 0;
  border-bottom: 5px solid #ffcc00;
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
}

#branding h1 {
  margin: 0;
  font-size: 2rem;
}

#branding p {
  margin: 5px 0 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Header profile image styling */
.header-profile-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #ffcc00;
  margin-right: 25px;
  object-fit: cover;
  object-position: center top;
  float: left;
}

.header-text {
  display: inline-block;
  vertical-align: top;
  margin-top: 20px;
}

#branding {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation */
nav {
  background-color: #333;
  color: white;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

nav li {
  display: inline;
  margin: 0 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: transform 0.3s ease;
  padding: 8px 15px;
  border-radius: 4px;
}

nav a:hover {
  color: #ffcc00;
  transform: scale(1.1);
}

/* Main Content */
.main-content {
  padding: 30px 30px;
  background-color: white;
  min-height: 600px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-sidebar {
  float: left;
  width: 25%;
  text-align: center;
  padding-right: 20px;
  border-right: 1px solid #ddd;
}

.profile-sidebar img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid #f4f4f4;
  margin-bottom: 15px;
  object-fit: cover;
}

.profile-info {
  float: right;
  width: 70%;
  padding-left: 25px;
}

.profile-info.full-width {
  float: none;
  width: 100%;
  padding-left: 0;
}

h2.section-title {
  color: #003366;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-top: 0;
  position: relative;
  transition: all 0.3s ease;
}

h2.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #003366, #ffcc00);
  transition: width 0.5s ease;
}

h2.section-title:hover::after {
  width: 100%;
}

h3.subsection-title {
  color: #444;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* Tables for data */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  animation: slideInFromLeft 0.8s ease-out;
}

table,
th,
td {
  border: 1px solid #ddd;
}

th,
td {
  padding: 12px;
  text-align: left;
  transition: all 0.3s ease;
}

tr:hover td {
  background-color: #f8f9fa;
  transform: translateX(20px) scale(1.02);
}

th {
  background-color: #f2f2f2;
  background: linear-gradient(135deg, #f2f2f2, #e8e8e8);
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 40px 0;
  margin-top: 30px;
  font-size: 0.95rem;
  border-top: 5px solid #ffcc00;
}

footer h3 {
  color: #ffcc00;
  margin-bottom: 15px;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
}

.btn {
  display: inline-block;
  background: #003366;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.6s ease;
  transform: translate(-50%, -50%);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: #0066cc;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-sidebar,
  .profile-info {
    float: none;
    width: 100%;
    border: none;
  }

  .profile-info.full-width {
    padding: 0 15px;
  }

  /* Header responsive styling */
  #branding {
    flex-direction: column;
    text-align: center;
  }

  .header-profile-image {
    float: none;
    margin: 0 auto 20px;
    display: block;
    width: 100px;
    height: 100px;
  }

  .header-text {
    margin-top: 0;
  }

  nav li {
    display: block;
    margin: 10px 0;
  }

  .container {
    width: 95%;
    padding: 0 15px;
  }
}

/* Keyframe Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* General Content Animations */
li {
  transition: all 0.3s ease;
}

li:hover {
  transform: translateX(5px);
  color: #003366;
}

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