 /* ===============================
   Portfolio Stylesheet
   =============================== */

:root {
  --primary-color: 
#4458dc;
  --primary-color2: 
#854fee;
  --title-color: 
#945656;
  --text-color: 
#3a3a3a;
  --gradient-color: linear-gradient(90deg, 
#273bbc 0%, yellow 100%);
  --box-shadow: 0px 10px 30px rgba(57,56,61,0.2);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, a, .button {
  font-family: 'Oswald', sans-serif;
  color: var(--title-color);
}

p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.0rem;
  color: var(--text-color);
}

/* ========================================================================== /
/ Preloader /
/ ========================================================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color2));
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader {
  text-align: center;
  color: white;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-left: 4px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.loader-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

body.loaded #preloader {
  opacity: 0;
  pointer-events: none;
}

/* ========================================================================== /
/ Navbar /
/ ========================================================================== */

.header {
  position: relative;
  z-index: 999;
}

.navbar_fixed {
  position: fixed;
  width: 100%;
  top: 0;
  background: #fff;
  box-shadow: var(--box-shadow);
  z-index: 999;
  transition: all 0.3s ease;
}

.main-nav {
  background: #0c0b0be6;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  height: 100px;
  width: auto;
}

.navbar-brand-padding {
  padding-left: 50px;
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
  transition: transform 0.3s;
}

.navbar-toggler:hover {
  transform: scale(0.9);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav-padding {
  padding-right: 80px;
}

.navbar-nav .nav-item {
  margin: 0 10px;
}

.navbar-nav .nav-link {
  font-size: 2rem;
  color: var(--title-color) !important;
  font-weight: 600;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
  width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 991px) {
  .navbar-brand-padding {
    padding-left: 20px;
  }

  .navbar-nav-padding {
    padding-right: 20px;
  }

  .navbar-collapse {
    background: white;
    padding: 20px;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .navbar-nav .nav-item {
    margin: 5px 0;
  }

  .navbar-nav .nav-link {
    padding: 15px 20px !important;
    border-radius: 8px;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-item.active .nav-link {
    background: var(--gradient-color);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: white !important;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }
}

/* ========================================================================== /
/ Banner /
/ ========================================================================== */

.banner {
  padding-top: 200px;
  background: white;
}

.banner-row-padding {
  padding: 40px 0;
}

.banner-title h3::after {
  content: "";
  display: inline-block;
  height: 2px;
  width: 17vw;
  background: black;
  margin-left: 4%;
  transform: translateY(-10px);
}

.banner-title h1 {
  font-size: 4rem;
  font-weight: bold;
  margin: 20px 0;
}

.banner-title h2 {
  font-size: 1.7rem;
  margin-bottom: 30px;
}

.banner-button-color {
  background: var(--gradient-color);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.banner-button-color:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.banner-image-padding {
  padding: 20px;
}

/* ========================================================================== /
/ About /
/ ========================================================================== */

.about {
  padding: 3% 4%;
  background: #e3e3e3c2;
}

.about-content-alignment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 40px;
}

.about-header-padding {
  padding-bottom: 20px;
}

.about-title h3 {
  font: bold 40px/50px 'Oswald', sans-serif;
  letter-spacing: 12px;
  margin-bottom: 30px;
}

.generic-paragraph {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
}

.about-paragraph {
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-closing-text {
  text-align: right;
  font-weight: 700;
  font-style: italic;
}

.about-img img {
  border-radius: 15px;
  box-shadow: var(--box-shadow);
}

/* ========================================================================== /
/ Projects /
/ ========================================================================== */

.projects {
  padding: 4rem 2rem;
  background: white;
}

.projects-title {
  text-align: center;
  margin-bottom: 50px;
}

.projects-header-padding {
  padding-bottom: 30px;
}

.projects-title h3 {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 8px;
}

.my-projects {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.my-projects:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid .element-item {
  flex: 0 1 350px;
  max-width: 400px;
}

.projects img {
  height: 200px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-overlay {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.project-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(68,88,220,0.9), rgba(133,79,238,0.9));
  opacity: 0;
  transition: 0.3s;
  z-index: 2;
}

.project-overlay:hover::before {
  opacity: 1;
}

.project-overlay:hover img {
  transform: scale(1.05);
}

.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  opacity: 0;
  transition: 0.3s;
  z-index: 3;
  pointer-events: none;
}

.project-overlay:hover .overlay-content {
  opacity: 1;
}

.overlay-content i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.overlay-content p {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.title h4 {
  color: var(--title-color);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.projects-span {
  color: var(--primary-color);
  font-weight: 600;
  font-style: italic;
}

.project-descriptions {
  color: var(--text-color);
  line-height: 1.6;
  margin-top: 15px;
}

/* ========================================================================== /
/ Modal Styles /
/ ========================================================================== */

.modal {
  z-index: 999999 !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.modal.show {
  display: block !important;
}

.modal-backdrop {
  z-index: 999990 !important;
  background: rgba(0,0,0,0.3);
}

.modal-dialog {
  z-index: 999995 !important;
  margin: 30px auto;
  max-width: 900px;
}

.modal-content {
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  background: white;
  border: none;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color2));
  color: white;
  border-radius: 15px 15px 0 0;
  border-bottom: none;
  padding: 20px 30px;
}

.modal-title {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-header .close {
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 1;
  text-shadow: none;
}

.modal-header .close:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 30px;
}

.modal-image {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tech-stack-title, .features-title {
  color: var(--title-color);
  font-weight: bold;
  margin: 20px 0 10px 0;
  font-size: 1.1rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color2));
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.project-description h6 {
  color: var(--title-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-footer {
  border-top: 1px solid #eee;
  padding: 20px 30px;
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color2));
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

.modal-footer .btn-secondary {
  background: 
#6c757d;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
}

/* ========================================================================== /
/ Skills Section /
/ ========================================================================== */

#skills {
  background: #e3e3e3c2;
  padding: 80px 0;
}

.inner-skills {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skills-header {
  text-align: center;
  margin-bottom: 60px;
}

.skills-header h1 {
  font-size: 3rem;
  font-weight: bold;
  color: var(--title-color);
  letter-spacing: 5px;
  text-transform: uppercase;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-gap: 2.5rem;
  padding: 1rem 80px;
  padding-top: 60px;
  font-size: 1.2rem;
}

.skill-box {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.skill-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.skills-img-border {
  width: 90px;
  height: 90px;
  background: black;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skills-img-border:hover {
  background: var(--primary-color2);
  transform: translateY(-10px);
}

.skills-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.skill-title h3 {
  color: var(--title-color);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skill-box p {
  color: var(--text-color);
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
  flex-grow: 1;
}

/* ========================================================================== /
/ Contact Section /
/ ========================================================================== */

#contact {
  background: white;
  padding: 80px 0;
}

.contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h1 {
  font-size: 3rem;
  font-weight: bold;
  color: var(--title-color);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.contact-header p {
  font-size: 1.2rem;
  color: var(--text-color);
  margin: 0;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid 
#e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  background: 
#f8f9fa;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(68, 88, 220, 0.1);
}

.form-control::placeholder {
  color: 
#adb5bd;
  font-weight: 500;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color2));
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(68, 88, 220, 0.4);
}

.contact-submit-btn:active {
  transform: translateY(-1px);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  color: white;
}

.form-messages {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.form-messages.success {
  background: 
#d4edda;
  color: 
#155724;
  border: 1px solid 
#c3e6cb;
}

.form-messages.error {
  background: 
#f8d7da;
  color: 
#721c24;
  border: 1px solid 
#f5c6cb;
}

/* ========================================================================== /
/ Footer /
/ ========================================================================== */

.footer-distributed {
  background: white;
  box-shadow: 0 1px 1px rgba(0,0,0,0.12);
  padding: 55px 50px;
  margin-top: 80px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.footer-section {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.footer-top {
  order: 1;
}

.footer-middle {
  order: 2;
}

.footer-bottom {
  order: 3;
}

.footer-distributed h3 {
  color: var(--title-color);
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0 0 20px;
  letter-spacing: 2px;
}

.footer-distributed h3 span {
  color: var(--primary-color);
}

.footer-title-padding {
  margin-bottom: 0;
}

.footer-location-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  gap: 10px;
}

.footer-location-info i {
  background: 
#6393a6;
  color: #fff;
  font-size: 16px;
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  width: 38px;
  height: 38px;
  margin-right: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.footer-location-info i:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.footer-location-info p {
  color: var(--text-color);
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.footer-location-text {
  opacity: 80%;
}

.footer-distributed .footer-section p {
  font-size: 1.4rem !important;
  color: var(--text-color);
  font-size: 14px;
  font-weight: normal;
  margin: 0 0 20px;
  line-height: 1.6;
}

.footer-distributed .footer-section p span {
  font-size: 1.6rem !important;
  display: block;
  font-weight: bold;
  font-size: 16px;
  color: var(--title-color);
  margin-bottom: 10px;
}

.footer-distributed .footer-icons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-distributed .footer-icons a {
  display: inline-block;
  width: 35px;
  height: 35px;
  background: 
#6393a6;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-distributed .footer-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(68, 88, 220, 0.4);
}

.footer-about-padding {
  color: var(--text-color);
  padding-bottom: 20px;
}

/* ========================================================================== /
/ Scrollbar /
/ ========================================================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: 
#f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--primary-color2));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--primary-color2), var(--primary-color));
}

/* ========================================================================== /
/ Responsive Design /
/ ========================================================================== */

@media (max-width: 1200px) {
  .skills-container {
    padding: 1rem 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 880px) {
  .banner-title h1 {
    font-size: 2.5rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
    padding: 1rem 10px;
  }

  .contact-form {
    padding: 20px;
  }

  .navbar-brand-padding {
    padding-left: 20px;
  }

  .navbar-nav-padding {
    padding-right: 20px;
  }

  .about-content-alignment {
    padding-left: 20px;
  }

  .footer-distributed {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .about-title h3 {
    font-size: 28px;
    letter-spacing: 6px;
  }

  .projects-title h3 {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .skills-header h1,
  .contact-header h1 {
    font-size: 2rem;
    letter-spacing: 3px;
  }

  .grid .element-item {
    flex: 0 1 100%;
  }
}

@media (max-width: 576px) {
  .banner {
    padding-top: 150px
    padding-bottom: 50px;
  }

  .banner-title h1 {
    font-size: 2rem;
  }

  .banner-title h2 {
    font-size: 1.3rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .contact-form {
    padding: 15px;
  }

  .footer-distributed {
    padding: 30px 20px;
    gap: 20px;
  }

  .footer-distributed h3 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
}