/* iPortfolio-style theme (reconstructed) */
:root {
  --accent: #149ddd;
  --sidebar-bg: #040b14;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
  --default-font: "Open Sans", sans-serif;
}

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

body {
  font-family: var(--default-font);
  color: #272829;
  line-height: 1.6;
  background: #fff;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #37b3ed; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); }

img { max-width: 100%; }

/* ======= Header / Sidebar ======= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: var(--sidebar-bg);
  overflow-y: auto;
  z-index: 997;
  transition: all 0.5s;
  padding: 0;
}

#header .profile { padding: 30px 20px; text-align: center; }

#header .profile img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin: 0 auto;
  border: 8px solid #2c2f3f;
}

#header .profile h1 { font-size: 24px; margin: 15px 0 0 0; padding: 0; font-weight: 600; }
#header .profile h1 a, #header .profile h1 a:hover { color: #fff; text-decoration: none; }

#header .social-links { margin-top: 15px; display: flex; justify-content: center; }
#header .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #212431;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 5px;
  transition: 0.3s;
}
#header .social-links a:hover { background: var(--accent); color: #fff; }

/* ======= Nav Menu ======= */
.nav-menu { padding: 20px 0 0 0; }
.nav-menu ul { list-style: none; }
.nav-menu a {
  display: flex;
  align-items: center;
  font-family: var(--nav-font);
  font-size: 15px;
  color: #a8a9b4;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
}
.nav-menu a i { font-size: 20px; margin-right: 10px; color: #6f7180; }
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a:hover i, .nav-menu a.active i { color: var(--accent); }

/* Mobile nav toggle */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  line-height: 0;
  color: #fff;
  background: var(--accent);
  border-radius: 50px;
  padding: 12px;
  display: none;
}

/* ======= Main ======= */
#main { margin-left: 300px; }

/* ======= Hero ======= */
#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(4, 11, 20, 0.6), rgba(4, 11, 20, 0.75)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1600&auto=format&fit=crop") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 360px;
}
#hero .hero-container { padding: 0 30px; }
#hero h1 { margin: 0 0 10px 0; font-size: 56px; font-weight: 700; color: #fff; }
#hero p { color: #fff; margin-bottom: 50px; font-size: 26px; font-family: var(--heading-font); }
#hero p span { color: var(--accent); letter-spacing: 1px; }

/* ======= Sections ======= */
section { padding: 60px 0; overflow: hidden; }
.section-bg { background: #f5f8fd; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.section-title { padding-bottom: 30px; }
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #173b6c;
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  bottom: 0;
  left: 0;
}
.section-title p { margin-bottom: 0; color: #444; }

/* ======= About ======= */
.about .content h3 { font-weight: 700; font-size: 26px; color: #173b6c; }
.about .content ul { list-style: none; }
.about .content ul li { padding-bottom: 10px; display: flex; align-items: flex-start; }
.about .content ul i { font-size: 16px; margin-right: 5px; color: var(--accent); line-height: 1.4; }
.about .content p:last-child { margin-bottom: 0; }
.about .content .fst-italic { color: #555; font-style: italic; }

/* ======= Skills ======= */
.skills .progress { height: 60px; display: block; background: none; border-radius: 0; }
.skills .progress .skill {
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-family: var(--nav-font);
  font-weight: 600;
  color: #173b6c;
}
.skills .progress .skill .val { float: right; font-style: normal; }
.skills .progress-bar-wrap { background: #dce8f8; height: 10px; }
.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent);
}

/* ======= Resume ======= */
.resume .resume-title { font-size: 26px; font-weight: 700; margin-top: 20px; margin-bottom: 20px; color: #050d18; }
.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent);
  position: relative;
}
.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: #050d18;
  margin-bottom: 10px;
}
.resume .resume-item h5 {
  font-size: 16px;
  background: #e4edf9;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}
.resume .resume-item ul { padding-left: 20px; }
.resume .resume-item ul li { padding-bottom: 10px; }
.resume .resume-item:last-child { padding-bottom: 0; }
.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid var(--accent);
}

/* ======= Portfolio ======= */
.portfolio .portfolio-item { margin-bottom: 30px; }
.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
}
.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #272829;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 50px;
}
.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active { color: #fff; background: var(--accent); }

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(4, 11, 20, 0.6);
}
.portfolio .portfolio-wrap img { width: 100%; height: 260px; object-fit: cover; display: block; transition: 0.3s; }
.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  inset: 0;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}
.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
}
.portfolio .portfolio-wrap .portfolio-info h4 { font-size: 20px; color: #173b6c; font-weight: 700; margin-bottom: 6px; }
.portfolio .portfolio-wrap .portfolio-info p { color: #495570; font-size: 14px; text-transform: uppercase; padding: 0; margin: 0; font-style: italic; }
.portfolio .portfolio-wrap .portfolio-links { margin-top: 12px; display: flex; gap: 6px; }
.portfolio .portfolio-wrap .portfolio-links a {
  color: #173b6c;
  font-size: 28px;
  line-height: 1;
  transition: 0.3s;
}
.portfolio .portfolio-wrap .portfolio-links a:hover { color: var(--accent); }
.portfolio .portfolio-wrap:hover::before { opacity: 1; }
.portfolio .portfolio-wrap:hover .portfolio-info { opacity: 1; }
.portfolio .portfolio-wrap:hover img { transform: scale(1.1); }

.portfolio .portfolio-links { margin-top: 15px; }
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: 0.3s;
}
.btn-view i { font-size: 18px; transition: transform 0.3s; }
.btn-view:hover { background: #37b3ed; color: #fff; }
.btn-view:hover i { transform: translateX(4px); }

/* ======= Project detail pages ======= */
.project-detail { padding: 60px 0; }
.project-detail .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #173b6c;
}
.project-detail .back-btn i { font-size: 20px; }
.project-detail .back-btn:hover { color: var(--accent); }
.project-detail .detail-lead { font-size: 18px; color: #444; margin-bottom: 20px; }
.project-detail .detail-meta { margin-bottom: 30px; }
.project-detail .badge-tag {
  display: inline-block;
  background: #e4edf9;
  color: #173b6c;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 6px 8px 0;
}
.project-detail .meta-date { color: #777; font-style: italic; margin-top: 6px; }
.detail-section { margin-bottom: 35px; }
.detail-section h3 {
  color: #173b6c;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 8px;
  position: relative;
}
.detail-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}
.detail-section h4 { font-size: 17px; color: #173b6c; font-weight: 600; margin: 15px 0 8px; }
.detail-section p { margin-bottom: 12px; }
.detail-section ul { padding-left: 20px; margin-bottom: 12px; }
.detail-section li { margin-bottom: 8px; }
.highlight-note {
  background: #f5f8fd;
  border-left: 3px solid var(--accent);
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #333;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0 10px;
}
.detail-figure {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.detail-figure img { width: 100%; height: 210px; object-fit: cover; display: block; background: #f5f8fd; }
.detail-figure h4 { font-size: 15px; color: #173b6c; margin: 12px 14px 0; }
.detail-figure figcaption { padding: 6px 14px 14px; font-size: 13.5px; color: #666; }
.detail-figure.contain img { object-fit: contain; }

/* ======= Footer ======= */
#footer {
  padding: 15px;
  color: #f4f6fd;
  font-size: 14px;
  position: fixed;
  left: 300px;
  right: 0;
  bottom: 0;
  background: rgba(4, 11, 20, 0.9);
  z-index: 996;
  text-align: center;
}
#footer .copyright { margin-bottom: 4px; }
#footer .footer-links a { color: #f4f6fd; margin: 0 6px; }

/* ======= Back to top ======= */
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 60px;
  z-index: 996;
  background: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: 0.4s;
}
.back-to-top.active { display: flex; }
.back-to-top:hover { background: #37b3ed; color: #fff; }

/* ======= Responsive ======= */
@media (max-width: 1199px) {
  #header { left: -300px; }
  #main { margin-left: 0; }
  #footer { left: 0; }
  .mobile-nav-toggle { display: block; }
  #header.header-show { left: 0; }
  #hero { padding-left: 20px; }
  #hero h1 { font-size: 40px; }
  #hero p { font-size: 22px; }
}

@media (max-width: 768px) {
  #hero h1 { font-size: 32px; }
  .section-title h2 { font-size: 28px; }
}
