/* General */
:root {
  --primary-color: #0563bb;
  --text-color: #272829;
  --bg-color: #ffffff;
  --bg-light: #f5f8fd;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: #067bed;
  text-decoration: none;
}

/* Layout Utilities (mimicking basic Bootstrap grid) */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.col-lg-4, .col-lg-6, .col-lg-8, .col-md-6 {
  padding: 0 15px;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  .col-lg-4 { width: 33.333333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.666667%; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .col-md-6 { width: 50%; }
  .col-lg-4 { width: 50%; }
  .col-lg-6 { width: 100%; }
  .col-lg-8 { width: 100%; }
}
@media (max-width: 767px) {
  .col-md-6, .col-lg-4, .col-lg-6, .col-lg-8 { width: 100%; }
}
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.mt-4 { margin-top: 1.5rem; }
.section-bg { background-color: var(--bg-light); }

/* Header */
#header {
  transition: all 0.5s;
  z-index: 997;
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
}
#header.header-scrolled {
  background: #fff;
  padding: 12px 0;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}
#header .logo {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}
#header .logo a {
  color: #fff;
}
#header.header-scrolled .logo a {
  color: #45505b;
}

/* Navbar */
.navbar {
  padding: 0;
}
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}
.navbar li {
  position: relative;
}
.navbar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
}
.navbar a:hover, .navbar .active {
  color: var(--primary-color);
}
#header.header-scrolled .navbar a {
  color: #45505b;
}
#header.header-scrolled .navbar a:hover, 
#header.header-scrolled .navbar .active {
  color: var(--primary-color);
}
.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}
#header.header-scrolled .mobile-nav-toggle {
  color: #45505b;
}
@media (max-width: 991px) {
  .navbar ul {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* Hero Section */
#hero {
  width: 100%;
  height: 100vh;
  /* Professional Dark Overlay on a tech background */
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') top right;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
#hero .hero-container {
  min-width: 300px;
  text-align: center;
}
#hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #45505b;
}
#hero p {
  color: #45505b;
  margin: 15px 0 0 0;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}
#hero p span {
  color: var(--primary-color);
  letter-spacing: 1px;
}

/* Sections General */
section {
  padding: 60px 0;
  overflow: hidden;
}
.section-title {
  text-align: center;
  padding-bottom: 30px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #45505b;
}
.section-title h2::before {
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}
.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: calc(50% - 20px);
}
.section-title p {
  margin-bottom: 0;
}

/* About */
.about .info-box {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}
.about .info-box ul {
  list-style: none;
  padding: 0;
}
.about .info-box li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.about .info-box i {
  font-size: 20px;
  color: var(--primary-color);
  margin-right: 10px;
}
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #45505b;
}
.about .content .fst-italic {
  font-style: italic;
  margin-bottom: 20px;
}
.skills-content .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
  margin-bottom: 20px;
}
.skills-content .progress .skill {
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #45505b;
}
.skills-content .progress .skill .val {
  float: right;
  font-style: normal;
}
.skills-content .progress-bar-wrap {
  background: #f2f3f5;
  height: 10px;
  border-radius: 5px;
}
.skills-content .progress-bar {
  width: 1px;
  height: 10px;
  transition: .9s;
  background-color: var(--primary-color);
  border-radius: 5px;
}

/* Resume */
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #45505b;
}
.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--primary-color);
  position: relative;
}
.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #0563bb;
  margin-bottom: 10px;
}
.resume .resume-item h5 {
  font-size: 16px;
  background: #f7f8f9;
  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::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid var(--primary-color);
}

/* Services / Projects */
.services .icon-box {
  margin-bottom: 20px;
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
  cursor: pointer; /* Indicates it's clickable */
}
.services .icon-box .icon {
  margin: 0 auto 20px auto;
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}
.services .icon-box .icon i {
  font-size: 32px;
  color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}
.services .icon-box:hover {
  box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}
.services .icon-box:hover .icon {
  background: var(--primary-color);
}
.services .icon-box:hover .icon i {
  color: #fff;
}
.services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}
.services .icon-box h4 {
  color: #45505b;
}
.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 20px;
}
.services .icon-box .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
  display: inline-block;
}
.services .icon-box:hover .read-more {
  color: #067bed;
  transform: translateX(5px);
}

/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.6); 
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 40px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

.close-modal {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--primary-color);
  text-decoration: none;
}

#modalTitle {
  color: #45505b;
  font-family: "Poppins", sans-serif;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--bg-light);
}

.modal-body p {
  font-size: 16px;
  line-height: 1.6;
  color: #45505b;
}

.modal-skills {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #ddd;
}

.modal-skills h4 {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.modal-skills p {
  font-size: 14px;
  font-weight: 600;
  color: #728394;
}

/* Contact */
.contact .info {
  background: #fff;
  padding: 30px;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}
.contact .info i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.contact .info h4 {
  padding: 0 0 0 0;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #45505b;
}
.contact .info p {
  padding: 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: #728394;
}

/* Footer */
#footer {
  background: #f2f3f5;
  color: #45505b;
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}
#footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 15px 0;
}
#footer .social-links {
  margin: 0 0 20px 0;
}
#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
#footer .social-links a:hover {
  background: #067bed;
  text-decoration: none;
}

/* Back to top */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}
.back-to-top:hover {
  background: #067bed;
  color: #fff;
}
.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }
  #hero p {
    font-size: 18px;
    line-height: 24px;
  }
  .contact .info {
      flex-direction: column;
  }
  .modal-content {
      width: 95%;
      padding: 20px;
      margin: 20% auto;
  }
}
