* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #0f172a;
}

/* TOP NAV */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  background: #e0f2fe;
  border-bottom: 1px solid #bae6fd;
}

.top-nav h2 {
  margin: 0;
  color: #0369a1;
}

.top-nav nav a {
  margin-left: 20px;
  color: #0369a1;
  text-decoration: none;
  font-weight: 600;
}

/* LAYOUT */
.container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: #f0f9ff;
  padding: 20px;
  border-right: 1px solid #bae6fd;
  overflow: hidden;
  transition: width 0.3s ease, padding 0.3s ease;
}

/* COLLAPSED SIDEBAR */
.sidebar.collapsed {
  width: 60px;
  padding: 20px 10px;
}

/* MENU TOGGLE */
.menu-toggle {
  font-size: 25px;
  cursor: pointer;
  margin-bottom: 25px;
  color: #0369a1;
  text-align: right;
}

/* GLOBAL LINKS */
.sidebar .global-menu a,
.sidebar > a {
  display: block;
  margin-bottom: 15px;
  color: #0369a1;
  text-decoration: none;
  font-weight: 500;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* HIDE GLOBAL MENU WHEN COLLAPSED */
.sidebar.collapsed a {
  display: none;
}

.sidebar.collapsed .menu-toggle {
  display: block;
}

/* MAIN CONTENT */
.content {
  flex: 1;
  padding: 40px;
}

/* ABOUT SECTION */
.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
  border-bottom: 1px solid #e5e7eb;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: #0369a1;
}

.about-image {
  width: 250px;
  height: 250px;
}

.about-image img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #bae6fd;
}

/* SIMPLE SECTIONS */
.simple-section {
  padding: 50px 0;
  border-bottom: 1px solid #e5e7eb;
}

.simple-section h2 {
  color: #0369a1;
}

/* PROJECT GRID */
.project-grid {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* PROJECT CARD */
.project-card {
  width: 280px;
  height: 360px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* IMAGE PLACEHOLDER */
.project-img {
  width: 100%;
  height: 230px;
  border-radius: 10px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0369a1;
  font-weight: bold;
  margin-bottom: 15px;
}

.project-card h3 {
  margin: 0;
  color: #0369a1;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ACTIVE LICENSE */
.top-nav nav a.active {
  border-bottom: 3px solid #0369a1;
  padding-bottom: 5px;
}

/* CERTIFICATE MODAL */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
}

.cert-modal img {
  max-width: 96%;
  max-height: 96vh;
  object-fit: contain;
  border-radius: 6px;
  background: white;
}

/* Close Button */
.cert-close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* ===============================
   MOBILE RESPONSIVE STYLES
   =============================== */
@media (max-width: 768px) {

  /* TOP NAV */
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .top-nav nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }

  .top-nav nav a {
    margin: 0;
    font-size: 14px;
  }

  /* MAIN LAYOUT */
  .container {
    flex-direction: column;
  }

  /* SIDEBARS */
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #bae6fd;
  }

  .sidebar.collapsed {
    width: 100%;
    padding: 15px;
  }

  .menu-toggle {
    text-align: right;
  }

  /* CONTENT */
  .content {
    padding: 20px;
  }

  /* ABOUT SECTION */
  .about-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }

  .about-image {
    width: 180px;
    height: 180px;
  }

  .about-image img {
    height: 100%;
  }

  /* PROJECT GRID */
  .project-grid {
    justify-content: center;
    gap: 20px;
  }

  .project-card {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .project-img {
    height: 200px;
  }

  /* FOOTER */
  .site-footer {
    font-size: 13px;
  }
}


/* Footer */
.site-footer {
  background: #e0f2fe;
  margin-top: auto;
  padding: 15px ;
  text-align: center;
  font-size: 14px;
  color: white;
  border: 1px solid #bae6fd;
}