/**
* Template Name: iPortfolio
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Updated: Mar 17 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Core Styles
--------------------------------------------------------------*/
:root {
  --primary-color: #149ddd;
  --primary-hover: #37b3ed;
  --dark: #040b14;
  --text-dark: #272829;
  --text-light: #fff;
  --border-color: #ddd;
  --transition: all 0.3s ease;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  background-color: #f5f8fd;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #272829;
  background-color: #f5f8fd;
}

#main {
  margin-left: 300px;
  padding: 20px;
  background-color: #fff;
  min-height: 100vh;
}

@media (max-width: 1199px) {
  #header {
    left: -300px;
  }

  #main {
    margin-left: 0;
  }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #149ddd;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #2eafec;
  color: #fff;
}

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

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  padding: 20px;
  background: #040b14;
  overflow-y: auto;
}

#header .profile img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid #2c2f3f;
  border-radius: 50%;
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

#header .profile h1 a,
#header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .profile .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #212431;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#header .profile .social-links a:hover {
  background: #149ddd;
  color: #fff;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav-menu {
  padding: 30px 0 0 0;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #a8a9b4;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 24px;
  padding-right: 8px;
  color: #6f7180;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover > a {
  text-decoration: none;
  color: #fff;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover > a i {
  color: #149ddd;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/hero-bg.jpg") top center;
  background-size: cover;
}

#hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.3);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  min-width: 300px;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
}

#hero p {
  color: #fff;
  margin-bottom: 50px;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: #fff;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid #149ddd;
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
  background-color: #fff;
}

.section-bg {
  background-color: #f5f8fd;
}

.section-title {
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #173b6c;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #149ddd;
  bottom: 0;
  left: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #173b6c;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: #149ddd;
  line-height: 0;
}

.about .content p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts {
  padding-bottom: 30px;
}

.facts .count-box {
  padding: 30px;
  width: 100%;
}

.facts .count-box i {
  display: block;
  font-size: 44px;
  color: #149ddd;
  float: left;
  line-height: 0;
}

.facts .count-box span {
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  color: #050d18;
  margin-left: 60px;
}

.facts .count-box p {
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: #122f57;
}

.facts .count-box a {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  color: #122f57;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  transition: ease-in-out 0.3s;
}

.facts .count-box a:hover {
  color: #1f5297;
}

/*--------------------------------------------------------------
# Akills
--------------------------------------------------------------*/
.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-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #050d18;
}

.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: #149ddd;
}

/*--------------------------------------------------------------
# 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 #1f5297;
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  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 #1f5297;
}

/*--------------------------------------------------------------
# Placeholder Image
--------------------------------------------------------------*/
.placeholder-img {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 2rem;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
/* Portfolio Grid Layout - Compact & Tech-forward */
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
  width: 100%;
  max-width: 100%;
}

/* Modern Portfolio Card */
.portfolio-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 450px;
  height: 100%;
}

.portfolio-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
  transform: translateY(-4px);
}

/* Image Wrapper */
.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.05);
}

/* Portfolio Badge */
.portfolio-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

/* Portfolio Content */
.portfolio-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Status Indicator */
.portfolio-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #10b981;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  color: #059669;
}

/* Title */
.portfolio-content h3 {
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

/* Brief Description */
.portfolio-brief {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.875rem;
  flex-grow: 1;
}

/* Tech Tags / Stack */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tags span {
  display: inline-block;
  background: linear-gradient(135deg, #dbeafe 0%, #f3e8ff 100%);
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.2s;
}

.tech-tags span:hover {
  background: linear-gradient(135deg, #bfdbfe 0%, #e9d5ff 100%);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* CTA Link */
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.portfolio-link:hover {
  color: #1d4ed8;
  gap: 10px;
}

.portfolio-link::after {
  content: '';
  width: 0;
  transition: width 0.3s ease;
}

.portfolio-link:hover::after {
  width: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .portfolio-img-wrapper {
    height: 180px;
  }

  .portfolio-content {
    padding: 1rem;
  }

  .portfolio-content h3 {
    font-size: 1rem;
  }

  .portfolio-brief {
    font-size: 0.8rem;
  }

  .tech-tags span {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

/* Simplified Modal Styles */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  max-width: 800px;
  width: 90%;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #374151;
  font-size: 1.5rem;
  cursor: pointer;
}

/*--------------------------------------------------------------
# Certifications Section
--------------------------------------------------------------*/
.certifications .certification-box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease;
}

.certifications .certification-box:hover {
  transform: translateY(-5px);
}

.certifications .certification-img {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.certifications .certification-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.certifications .certification-box:hover .certification-img img {
  transform: scale(1.1);
}

.certifications .certification-info {
  padding: 20px;
}

.certifications .certification-info h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #45505b;
}

.certifications .certification-info p {
  font-size: 14px;
  color: #728394;
  margin-bottom: 15px;
}

.certifications .certification-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6c757d;
}

.certifications .certification-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.certifications .certification-meta i {
  font-size: 14px;
}

/* Modern Contact Form Styles */
.contact-form {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-form .form-control {
  border: 1px solid #ddd;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  min-height: 44px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: #149ddd;
  box-shadow: 0 0 0 2px rgba(20, 157, 221, 0.1);
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.contact-form textarea.form-control {
  min-height: 120px;
}

.contact-form label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.contact-form button[type="submit"] {
  background: #149ddd;
  border: 0;
  padding: 12px 34px;
  color: #fff;
  border-radius: 4px;
  transition: 0.4s;
}

.contact-form button[type="submit"]:hover {
  background: #37b3ed;
}

/* Loading and Message States */
.contact-form .loading,
.contact-form .error-message,
.contact-form .sent-message {
  display: none;
  padding: 12px 16px;
  margin-bottom: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.contact-form .loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.contact-form .error-message {
  background: #ffd1d1;
  color: #d63031;
}

.contact-form .sent-message {
  background: #d4edda;
  color: #28a745;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contact Info Cards */
.info {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.info div {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.info div:hover {
  transform: translateY(-5px);
}

.info i {
  font-size: 24px;
  color: #149ddd;
  margin-bottom: 1rem;
}

.info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info p {
  color: #666;
  margin: 0;
}

/* Footer Styles */
#footer {
  padding: 15px;
  color: #f4f6fd;
  font-size: 14px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 997;
  background: #040b14;
}

#footer .copyright {
  text-align: center;
  padding-top: 5px;
}

@media (max-width: 768px) {
  #footer {
    position: static;
    width: auto;
    padding-right: 20px 15px;
  }
}

/* Mobile Navigation adjustments */
@media (max-width: 1199px) {
  #header {
    left: -300px;
    transition: all 0.5s;
  }

  #main {
    margin-left: 0;
  }

  .mobile-nav-active #header {
    left: 0;
  }

  .mobile-nav-active #main {
    margin-left: 0;
    overflow: hidden; /* Prevent horizontal scroll */
    position: relative;
    z-index: 9999;
  }

  /* Ensure content doesn't overlap with menu when open */
  .mobile-nav-active {
    overflow: hidden;
    position: relative;
  }

  /* Add backdrop when menu is open */
  .mobile-nav-active::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9996;
    transition: all 0.5s;
  }
}

/* Adjust main content padding for mobile */
@media (max-width: 768px) {
  #main {
    padding: 0 15px;
  }
}

.certificate-link {
  cursor: pointer;
  color: #149ddd;
  text-decoration: underline;
}

.certificate-link:hover {
  color: #37b3ed;
}

/* Certificate Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 5px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #ccc;
}

#latest-posts .blog-swiper { width:100%; padding: 32px 16px 56px; }
  #latest-posts .swiper-slide { width: 320px; max-width: 86vw; }
  #latest-posts .post-card { background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 12px 32px rgba(0,0,0,.08); display:flex; flex-direction:column; height: 440px; }
  #latest-posts .post-cover { height:200px; width:100%; object-fit:cover; display:block; }
  #latest-posts .post-body { padding:16px; display:flex; flex-direction:column; gap:8px; }
  #latest-posts .post-title { margin:0; font-size:1.05rem; line-height:1.35; }
  #latest-posts .post-meta { color:#7a7a7a; font-size:.9rem; }
  #latest-posts .post-excerpt { 
    color:#444; 
    margin:0; 
    display:-webkit-box; 
    -webkit-line-clamp:3; 
    line-clamp:3; 
    -webkit-box-orient:vertical; 
    overflow:hidden; 
  }
  #latest-posts .badge { display:inline-block; background:#eef2ff; color:#223; border-radius:999px; padding:2px 8px; margin-right:6px; font-size:.8rem; }
  #latest-posts .btn { margin-top:auto; display:inline-block; padding:8px 12px; border-radius:10px; border:1px solid #0b5fff; color:#0b5fff; text-decoration:none; transition:.2s; }
  #latest-posts .btn:hover { background:#0b5fff; color:#fff; }
  #latest-posts .swiper-button-prev, #latest-posts .swiper-button-next { color:#0b5fff; }
  #latest-posts .swiper-pagination-bullet-active { background:#0b5fff; }