/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --clr-main: #007bff;
  --clr-white: #ffffff;
  --clr-dark-blue-rgb: 0, 0, 0;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #444444;
  background-color: #ffffff;
  transition: background-color 0.3s, color 0.3s;
}

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

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #0056b3;
  text-decoration: none;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-outline, .btn-solid {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none !important;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 1px;
  outline: none;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  border-bottom-left-radius: 1rem;
  border-top-right-radius: 1rem;
  padding: 0.75rem 2.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0px 3px 10px -5px rgba(var(--clr-dark-blue-rgb), 0.15);
  transition: all 0.3s ease-in-out 0s;
  cursor: pointer;
  z-index: 0;
}

.btn-solid {
  color: var(--clr-white);
  background-color: var(--clr-main);
  border-color: var(--clr-main);
}

.btn-outline {
  color: var(--clr-main);
  background-color: transparent;
  border-color: var(--clr-main);
}

.btn-outline:hover {
  background-color: var(--clr-main);
  color: var(--clr-white);
}

@media (max-width: 575px) {
  .btn-outline, .btn-solid {
    padding: 0.5rem 1.25rem;
  }
}

/*--------------------------------------------------------------
# Dark Mode
--------------------------------------------------------------*/
body[data-theme='dark'] {
  background-color: #121212;
  color: #e0e0e0;
}

body[data-theme='dark'] .navbar {
  background-color: #1e1e1e;
}

body[data-theme='dark'] .service-card, 
body[data-theme='dark'] .service-card-full, 
body[data-theme='dark'] .testimonial-card, 
body[data-theme='dark'] .team-member, 
body[data-theme='dark'] .contact-form input, 
body[data-theme='dark'] .contact-form textarea {
  background-color: #1e1e1e;
  border-color: var(--clr-main);
  color: #e0e0e0;
}

body[data-theme='dark'] footer {
  background-color: #1e1e1e;
}

body[data-theme='dark'] .bg-light {
  background-color: #1e1e1e !important;
}

body[data-theme='dark'] .animated-numbers-section {
  background-color: #202020;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.navbar {
  background-color: transparent;
  padding: 1rem 0;
  transition: background-color 0.3s, padding 0.3s;
}

.navbar.navbar-scrolled {
  background-color: #343a40;
  padding: 0.5rem 0;
}

/* Logo Styling */
.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.navbar-brand img {
  height: 45px;     /* Adjust logo size */
  width: auto;      /* Keep aspect ratio */
  transition: height 0.3s ease;
}

.navbar.navbar-scrolled .navbar-brand img {
  height: 35px;     /* Shrinks when scrolling */
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 35px;   /* Smaller on mobile */
  }
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #ffffff !important;
  margin-left: 15px;
  transition: color 0.3s;
}

.nav-link.active, 
.nav-link:hover {
  color: #007bff !important;
}

/* Theme Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 50px;
}

.theme-switch input { display: none; }

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
}

input:checked + .slider {
  background-color: #007bff;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  background: url('../images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 150px 0;
  text-align: left;
}

.hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/*--------------------------------------------------------------
# Page Header
--------------------------------------------------------------*/
.page-header {
  background-color: #007bff;
  color: white;
  padding: 120px 0 60px;
  text-align: center;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
  overflow: hidden;
}

/* About Preview */
.about-img {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Services */
.service-card, .service-card-full {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.service-card {
  border: 2px solid var(--clr-main);
  box-shadow: 10px 10px 0px 0px var(--clr-main);
  transition: all 0.2s ease-in-out;
}

.service-card:hover {
  box-shadow: 0px 0px 0px 0px var(--clr-main);
  transform: translate(10px, 10px);
}

.service-card-full {
  border: 2px dashed var(--clr-main);
  box-shadow: -10px -10px 0px 0px var(--clr-main);
  transition: all 0.2s ease-in-out;
}

.service-card-full:hover {
  box-shadow: 0px 0px 0px 0px var(--clr-main);
  transform: translate(-10px, -10px);
}

.service-icon {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 20px;
}

/* Stats Section */
.stats-section {
  background-color: #007bff;
  color: white;
  padding: 80px 0;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 700;
}

/* Team Section */
.team-member {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  transition: transform 0.3s ease;
}

.team-member:hover img {
  transform: scale(1.05);
}

#team .team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 123, 255, 0.85);
  color: #fff;
  padding: 20px;
  transform: translateY(65%);
  transition: all 0.4s ease-in-out;
}

#team .team-member:hover .team-info {
  transform: translateY(0);
  background: var(--clr-main);
}

#team .team-info h5 {
  color: #fff;
  margin-bottom: 5px;
}

#team .team-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonial-card {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  border: 2px solid var(--clr-main);
  box-shadow: 8px 8px 0px 0px var(--clr-main);
  transition: all 0.2s ease-in-out;
}

.testimonial-card:before {
  content: '\f10d';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  color: rgba(0, 123, 255, 0.08);
  z-index: 0;
}

.testimonial-card p,
.testimonial-card .testimonial-author {
  position: relative;
  z-index: 1;
}

.testimonial-card:hover {
  box-shadow: 0px 0px 0px 0px var(--clr-main);
  transform: translate(8px, 8px);
}

.testimonial-author {
  margin-top: 20px;
}

/* Contact Section */
.contact-form .form-control {
  border-radius: 0;
  box-shadow: none;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-info i {
  font-size: 1.5rem;
  color: #007bff;
  margin-right: 15px;
}

.map-container {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background: #343a40;
  color: #ffffff;
  padding: 60px 0 30px 0;
}

footer .footer-links h5 {
  margin-bottom: 15px;
  color: #007bff;
}

footer .footer-links ul {
  list-style: none;
  padding: 0;
}

footer .footer-links ul li a {
  color: #ffffff;
  transition: color 0.3s;
}

footer .footer-links ul li a:hover {
  color: #007bff;
}

footer .social-icons a {
  color: #007bff;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

footer .social-icons a:hover {
  color: #ffffff;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
}

footer .footer-links ul li i {
  color: #007bff;
  margin-right: 10px;
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  background: #007bff;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 0;
  visibility: hidden;
}

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

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features-section {
  padding: 60px 0;
}

.feature-card {
  background-color: #007bff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 5px 5px 0px 0px #ffffff;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.feature-icon {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
}

.feature-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

/*--------------------------------------------------------------
# Animated Numbers Section
--------------------------------------------------------------*/
.animated-numbers-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #007bff;
}

.stat-text {
  font-size: 1.1rem;
  color: #6c757d;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
#portfolio {
  padding: 80px 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.portfolio-item img {
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 123, 255, 0.85);
  padding: 20px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-info p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.portfolio-links a {
  color: #fff;
  margin: 0 5px;
  font-size: 1.2rem;
}
