/**
 * Custom Professional Blue Theme
 * Designed for BIM Developer Portfolio
 * Harmonious with wood element - using blue with subtle green undertones
 */

:root {
  /* Primary Colors - Blue Theme */
  --primary-blue: #1e88e5; /* Main blue color */
  --primary-dark: #0d47a1; /* Darker blue for hover states */
  --primary-light: #64b5f6; /* Lighter blue for accents */
  --secondary-blue: #039be5; /* Secondary blue with slight green undertone */
  --accent-teal: #00acc1; /* Teal accent - harmony between blue and green */

  /* Neutral Colors */
  --neutral-dark: #263238; /* Dark neutral for text */
  --neutral-medium: #546e7a; /* Medium neutral for secondary text */
  --neutral-light: #eceff1; /* Light neutral for backgrounds */

  /* Success/Error Colors */
  --success-color: #4caf50; /* Success messages */
  --error-color: #f44336; /* Error messages */

  /* Background Colors */
  --bg-gradient-start: #e3f2fd; /* Light blue background start */
  --bg-gradient-end: #bbdefb; /* Light blue background end */

  /* Text Colors */
  --text-dark: #263238; /* Main text color */
  --text-medium: #455a64; /* Secondary text color */
  --text-light: #ffffff; /* Light text color for dark backgrounds */
}

/* Base Styling Overrides */
body {
  color: var(--text-dark);
  background-color: #cbe6fc;
}

section {
  background-color: #cbe6fc !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-dark);
}

/* Section Heading Colors */
.heading {
  color: var(--primary-blue) !important;
}

/* Fix for orange headings */
h2.heading,
.page h2.heading,
#page-1 h2.heading,
#page-2 h2.heading,
#page-3 h2.heading,
#page-4 h2.heading,
.heading-section h2 {
  color: var(--primary-blue) !important;
}

/* Target specific orange headings */
#resume-section h2,
#project-section h2,
.ftco-section h2 {
  color: var(--primary-blue) !important;
}

/* About Section Styling */
.ftco-about {
  background-color: rgba(255, 255, 255, 0.7);
}

.ftco-about h2.mb-4 {
  color: var(--primary-dark);
  font-weight: 700;
}

.ftco-about p {
  color: var(--primary-dark);
  font-weight: 500;
}

.about-info li {
  margin-bottom: 10px;
}

.about-info li span:first-child {
  color: var(--primary-blue);
  font-weight: 600;
  width: 130px;
}

.about-info li span:last-child {
  color: var(--primary-dark);
  font-weight: 500;
}

/* Navigation Styling */
.ftco_navbar {
  background: var(--primary-dark) !important;
}

.ftco_navbar.scrolled {
  background: var(--primary-dark) !important;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  color: var(--neutral-light);
  font-weight: 500;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
  color: var(--primary-light);
}

.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
  color: var(--primary-light);
}

.navbar-brand {
  color: var(--primary-light) !important;
  font-weight: 600;
}

/* Hero Section */
.hero-wrap {
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start),
    var(--bg-gradient-end)
  );
}

.hero-wrap h1 {
  color: var(--primary-dark);
}

.hero-wrap .subheading {
  color: var(--primary-blue);
}

.txt-rotate > .wrap {
  border-right: 0.08em solid var(--primary-blue) !important;
}

/* Button Styling */
.btn-primary {
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* Section Headings */
.heading-section h2 {
  color: var(--primary-dark);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.heading-section h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-blue);
}

/* General Section Styling */
section {
  position: relative;
  z-index: 1;
  padding: 5em 0;
}

section:nth-child(even) {
  background-color: rgba(187, 222, 251, 0.2);
}

/* Resume Section */
#navi a {
  color: var(--primary-blue);
  font-weight: 500;
  transition: all 0.3s ease;
}

#navi a:hover,
#navi a.current {
  color: var(--primary-dark);
  font-weight: 600;
}

#navi a.current:before {
  background-color: var(--primary-blue);
}

.resume-wrap .icon {
  background: var(--primary-blue);
  box-shadow: 0 3px 8px rgba(30, 136, 229, 0.3);
}

.resume-wrap h2 {
  color: var(--primary-dark);
  font-weight: 600;
}

.resume-wrap .position {
  color: var(--primary-blue);
  font-weight: 500;
}

.resume-wrap .date {
  color: var(--primary-dark);
  font-weight: 500;
}

.resume-wrap p {
  color: var(--text-dark);
}

.resume-wrap ul li {
  color: var(--text-dark);
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}

.resume-wrap ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  border-radius: 50%;
}

/* Skills Section */
.skill-category h3 {
  color: var(--primary-blue) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
}

.skill-category h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-blue);
}

.skill-progress {
  background-color: var(--primary-blue);
  box-shadow: 0 2px 5px rgba(30, 136, 229, 0.3);
}

.skill-name {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 5px;
}

.skill-item {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 136, 229, 0.1);
}

/* Projects Section */
.services-1 {
  border-bottom: 3px solid var(--primary-blue);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
}

.services-1:hover {
  border-bottom: 3px solid var(--accent-teal);
  background-color: rgba(255, 255, 255, 1);
}

.services-1 .icon {
  background: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
  margin-bottom: 15px;
}

.services-1:hover .icon {
  background: var(--accent-teal);
  transform: scale(1.1);
}

.services-1 h3 {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.services-1 p {
  color: var(--text-dark);
  line-height: 1.6;
}

.services-1 p strong {
  color: var(--primary-blue);
}

.project-achievements .achievement-item i {
  color: var(--primary-blue) !important;
}

#project-section {
  background-color: rgba(187, 222, 251, 0.3);
}

#project-section .heading-section h2 {
  position: relative;
  padding-bottom: 15px;
}

#project-section .heading-section h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-blue);
}

/* Contact Section */
.contact-section {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px 0;
}

.contact-section .box {
  background-color: white;
  transition: all 0.3s ease;
}

.contact-section .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.contact-section .box .icon {
  background: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

.contact-section .box:hover .icon {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.contact-section .box h3 {
  color: var(--primary-dark);
  font-weight: 600;
}

.contact-section .box p a {
  color: var(--primary-blue);
  font-weight: 500;
}

.contact-form {
  background-color: white !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.contact-form .form-control {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 12px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.contact-form .btn-primary {
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
  transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 136, 229, 0.4);
}

/* Footer */
.ftco-footer {
  background: var(--primary-dark);
  color: var(--neutral-light);
  padding-top: 60px;
}

.ftco-footer h2 {
  color: var(--primary-light);
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.ftco-footer h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-light);
}

.ftco-footer a {
  color: var(--neutral-light);
  transition: all 0.3s ease;
}

.ftco-footer a:hover {
  color: var(--primary-light);
  text-decoration: none;
  padding-left: 5px;
}

.ftco-footer-social li a {
  background: var(--primary-blue);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.ftco-footer-social li a:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

.ftco-footer .icon-heart {
  color: var(--primary-light) !important;
}

/* Particles Background */
#particles-js {
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start),
    var(--bg-gradient-end)
  );
}

/* Loading Spinner */
.path {
  stroke: var(--primary-blue) !important;
}

/* Custom Animations */
@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(30, 136, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 136, 229, 0);
  }
}

.icon:hover {
  animation: pulse-blue 1.5s infinite;
}

/* Project Cards Enhancement */
.services-1 {
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.services-1:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Skill Items Enhancement */
.skill-item {
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background-color: rgba(30, 136, 229, 0.05);
  transform: translateY(-3px);
}

.skill-level {
  height: 6px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

/* Scroll Down Animation */
.scrollDown {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scrollDown span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--primary-blue);
  border-right: 2px solid var(--primary-blue);
  transform: rotate(45deg);
  margin: -10px;
  animation: scrollDown 2s infinite;
}

.scrollDown span:nth-child(2) {
  animation-delay: -0.2s;
}

.scrollDown span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(20px, 20px);
  }
}

/* Fix for project display */
#project-section .row {
  display: flex;
  flex-wrap: wrap;
}

#project-section .col-md-4 {
  display: flex;
  margin-bottom: 30px;
}

.services-1 {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.services-1 .desc {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Ensure project images display properly */
.services-1 img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Ensure project section is visible */
#project-section {
  padding: 7em 0;
  position: relative;
  z-index: 1;
}
