/* Global */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  display: flex;
  background: #f5f7fa;
  color: #333;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 230px;
  background: #1e1e2f;
  color: #fff;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar .logo {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 50px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.nav-item {
  font-size: 1.1rem;
  color: #bbb;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-item:hover {
  color: #00c6ff;
  transform: translateX(5px);
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #00c6ff;
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

/* Main */
main {
  margin-left: 250px;
  padding: 40px;
  width: calc(100% - 250px);
}

/* Home Section */
.home-section {
  text-align: center;
  padding: 100px 20px;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid #00c6ff;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.6);
}

.name {
  font-size: 2.8rem;
  margin: 0;
  position: relative;
}

.tagline {
  font-size: 1.3rem;
  color: #444;
  margin-top: 8px;
  display: inline-block;
  position: relative;
}

.tagline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #00c6ff;
  transition: width 0.4s ease;
}

.tagline:hover::after {
  width: 100%;
}

/* Animated rotating text */
.animated-text {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0072ff;
  height: 30px;
  overflow: hidden;
}

.animated-text span {
  display: block;
  animation: slide 8s infinite;
}

@keyframes slide {
  0% { transform: translateY(0); }
  20% { transform: translateY(0); }
  25% { transform: translateY(-30px); }
  45% { transform: translateY(-30px); }
  50% { transform: translateY(-60px); }
  70% { transform: translateY(-60px); }
  75% { transform: translateY(-90px); }
  95% { transform: translateY(-90px); }
  100% { transform: translateY(0); }
}

/* Section */
.section {
  padding: 60px 20px;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 180px;
  }
  main {
    margin-left: 190px;
  }
}
