/* ============================================
   PORTFOLIO STYLESHEET
   Author: Donfack Fortune
   ============================================ */

/* Reset */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  min-width: 160px;
  padding: 12px 0 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  list-style: none;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 6px 0;
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  transition: color 0.2s;
}

.dropdown-menu a:hover {
  color: #666;
}

@media (max-width: 768px) {
  .has-dropdown .dropdown-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu {
    transition: none;
  }
}

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

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.experience-image {
  width: 100%;
  height: auto;
  padding-top: 0px;
  transition: opacity 0.3s;
  cursor: pointer;
}

.experience-image:hover {
  opacity: 0.8;
}

.skip-link:focus {
  top: 0;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

nav a {
  color: #999;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #333;
}

.header-social {
  display: flex;
  gap: 20px;
}

.social-link {
  color: #999;
  font-size: 18px;
  transition: color 0.3s;
}

.social-link:hover {
  color: #333;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 40px;
  display: block;
  border-radius: 50%;
}

.hero h1 {
  font-size: 48px;
  font-weight: 300;
  color: #333;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  font-weight: 700;
}

/* About Section */
.about {
  max-width: 900px;
  margin: 0 auto 10px;
  padding: 0 40px;
}

.about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.about-image {
  width: 100%;
  border-radius: 4px;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

/* Experience Section */
.experience {
  max-width: 1200px;
  max-height: 1200px;
  margin: 30px auto;
  padding: 0 40px;
}

.section-divider {
  max-width: 1200px;
  margin: 40px auto;
  border: none;
  border-top: 1px solid #e0e0e0;
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .section-divider {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .section-divider {
    margin: 30px auto;
    padding: 0 20px;
  }
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 80px;
  align-items: center;

}

.experience-image {
  width: 100%;
  height: auto;
  padding-top: 130px;
}

.experience-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.experience-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.experience-content p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

/* Projects Grid */
.projects-section {
  max-width: 1200px;
  margin: 10px auto;
  padding: 0 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: #fff;
  overflow: hidden;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-link:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 10px 0;
}

.project-title {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}

/* Footer */
.pre-footer {
  background: #f9f9f9;
  padding: 60px 40px;
  text-align: center;
}

.pre-footer p {
  font-family: 'Lato', sans-serif;
  color: #666;
  font-size: 15px;
  margin-bottom: 10px;
}

.cv-download {
  color: #666;
  text-decoration: underline;
}

.cv-download:hover {
  color: #333;
}

footer {
  background: #fff;
  padding: 30px 40px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

footer p {
  font-family: 'Lato', sans-serif;
  color: #999;
  font-size: 14px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #333;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #555;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-wrapper {
    padding: 20px 30px;
  }

  .hero,
  .about,
  .experience,
  .projects-section {
    padding: 0 30px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-item {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  nav ul {
    gap: 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image {
    max-width: 200px;
    margin: 0 auto;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
  }

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

  .hero,
  .about,
  .experience,
  .projects-section {
    padding: 0 20px;
  }

  .pre-footer {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 20px;
  }

  nav ul {
    gap: 15px;
  }

  nav a {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .experience-content h3 {
    font-size: 24px;
  }

  .section-title {
    font-size: 24px;
  }
}

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

/* Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Lato', -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  margin: 0;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* Navigation */
.header-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
}

.nav-link {
  color: #999;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #333;
}

/* Social Links */
.header-social {
  display: flex;
  gap: 20px;
}

.social-link {
  color: #999;
  font-size: 18px;
  transition: color 0.2s;
  text-decoration: none;
}

.social-link:hover {
  color: #333;
}

.social-icon svg {
  display: block;
}

/* Course Group */
.course-group {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 40px;
}

.course-heading {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.course-group p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* Main Content */
.main-content {
  padding: 60px 0 80px;
}

/* Section Title */
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

/* Projects Grid */
.projects-section {
  margin-bottom: 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Project Card */
.project-card {
  background: #fff;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-link:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 20px 0;
}

.project-title {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

/* Pre-Footer */
.pre-footer {
  background: #f9f9f9;
  padding: 60px 40px;
  text-align: center;
}

.pre-footer p {
  color: #666;
  font-size: 15px;
  margin-bottom: 10px;
}

.cv-download {
  color: #666;
  text-decoration: underline;
}

.cv-download:hover {
  color: #333;
}

/* Footer */
.footer {
  background: #fff;
  padding: 30px 40px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.footer p {
  color: #999;
  font-size: 14px;
  margin: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #333;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #555;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .header-wrapper {
    padding: 20px 30px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-group {
    padding: 0 30px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .header-nav ul {
    gap: 20px;
  }

  .nav-link {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

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

  .course-group {
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .pre-footer {
    padding: 40px 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .logo a {
    font-size: 20px;
  }

  .header-nav ul {
    gap: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .course-heading {
    font-size: 16px;
  }

  .project-image-wrapper {
    height: 200px;
  }

  .project-title {
    font-size: 15px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {

  .header,
  .back-to-top,
  .header-social {
    display: none;
  }

  .project-card {
    page-break-inside: avoid;
  }
}