/* Custom CSS for Amos Toluwalase (Cyber Amos) Portfolio */

:root {
  --primary-color: #12d640;
  --secondary-color: #1c7d32;
  --accent-color: #09203a;
  --bg-dark: #010e1b;
  --text-light: #fff;
  --text-muted: #dee2e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-light);
  position: relative;
  background: var(--bg-dark);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  background: linear-gradient(135deg, #010e1b 0%, #042b56 100%);
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: -1;
}

/* Header Styles */
#header {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 997;
  transition: all 0.3s ease;
  padding: 40px 0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Profile Image Styles */
.profile-img-container {
  flex-shrink: 0;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(18, 214, 64, 0.3);
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(18, 214, 64, 0.5);
}

.header-text {
  flex: 1;
  min-width: 300px;
}

#header h1 {
  font-size: 48px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  margin-bottom: 20px;
  line-height: 1.2;
}

#header h1 a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

#header h1 a:hover {
  color: var(--primary-color);
}

#header h1 .aka {
  color: var(--primary-color);
  font-size: 0.85em;
  font-weight: 500;
}

#header h2 {
  font-size: 24px;
  margin-top: 20px;
  color: var(--text-light);
}

.typing {
  color: var(--primary-color) !important;
}

/* Navigation */
.nav-menu {
  margin-top: 35px;
}

.nav-menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.nav-menu li {
  margin: 0 15px 10px 0;
}

.nav-menu a {
  color: var(--text-light);
  font-size: 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .active a {
  color: var(--primary-color);
  background: rgba(18, 214, 64, 0.1);
}

/* Social Links */
.social-links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: "Poppins", sans-serif;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--primary-color);
  margin: 4px 10px;
}

/* About Section */
.about {
  background: rgba(0, 0, 0, 0.3);
}

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

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-muted);
}

.about-content strong {
  color: var(--primary-color);
}

.personal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.info-item i {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 20px;
}

.info-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--primary-color);
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.interest-item {
  background: var(--accent-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.interest-item:hover {
  background: rgba(18, 214, 64, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.interest-item i {
  font-size: 32px;
  margin-bottom: 15px;
}

.interest-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}

/* Education & Certifications */
.education-item {
  background: var(--accent-color);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
}

.education-item h4 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 10px;
}

.education-item h4 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.education-item h4 a:hover {
  color: var(--text-light);
}

.education-item h5 {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 15px;
}

.education-item p {
  font-style: italic;
  margin-bottom: 15px;
}

.education-item ul {
  list-style: none;
  padding-left: 0;
}

.education-item ul li {
  padding: 5px 0;
  color: var(--text-muted);
}

.education-item ul li:before {
  content: "▸";
  color: var(--primary-color);
  margin-right: 10px;
}

/* Certifications Grid */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cert-item {
  background: var(--accent-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cert-image {
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary-color);
}

.cert-content {
  padding: 25px;
}

.cert-content h4 {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 15px;
}

.cert-content .btn {
  background: var(--primary-color);
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.cert-content .btn:hover {
  background: var(--secondary-color);
  color: var(--text-light);
}

/* Experience Section */
.experience-item {
  background: var(--accent-color);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px 0 0 2px;
}

.experience-item h4 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 10px;
}

.experience-item h4 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.experience-item h4 a:hover {
  color: var(--text-light);
}

.experience-item h5 {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.experience-item p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 15px;
}

.experience-item ul {
  list-style: none;
  padding-left: 0;
}

.experience-item ul li {
  padding: 8px 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.experience-item ul li:before {
  content: "▸";
  color: var(--primary-color);
  margin-right: 10px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-item {
  background: var(--accent-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-light);
}

.project-content {
  padding: 25px;
}

.project-content h4 {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 15px;
}

.project-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  background: rgba(18, 214, 64, 0.2);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-category {
  background: var(--accent-color);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h4 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.skill-icon {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 80px;
}

.skill-icon:hover {
  background: rgba(18, 214, 64, 0.1);
  transform: translateY(-3px);
}

.skill-icon img {
  height: 40px;
  width: auto;
  max-width: 60px;
}

/* Contact Section */
.contact {
  background: rgba(0, 0, 0, 0.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-item {
  background: var(--accent-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-item h3 {
  color: var(--text-light);
  font-size: 20px;
  margin-bottom: 15px;
}

.contact-item p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--text-light);
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

  .profile-img {
    width: 150px;
    height: 150px;
  }

  #header h1 {
    font-size: 36px;
  }

  #header h2 {
    font-size: 20px;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu li {
    margin: 5px 0;
  }

  section {
    padding: 60px 0;
  }

  .projects-grid,
  .certifications-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  #header {
    text-align: center;
  }

  .personal-info {
    grid-template-columns: 1fr;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }
}

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

/* Loading animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}