/* ===== Variables ===== */
:root {
  --primary: #07132B;
  --secondary: #1a73e8;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.divider {
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin-bottom: 1.5rem;
}

.btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background-color: #0d5bba;
  border-color: #0d5bba;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-square {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  animation: loader-square 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.loader-square:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}

.loader-square:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}

.loader-square:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}

@keyframes loader-square {
  0% {
    top: 8px;
    height: 64px;
  }
  50%, 100% {
    top: 24px;
    height: 32px;
  }
}

/* ===== Navigation ===== */
.navbar {
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(7, 19, 43, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
}

.navbar-toggler {
  border: none;
  padding: 0;
  font-size: 1.5rem;
  color: #fff;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  font-weight: 500;
  padding: 10px 15px !important;
  color: #fff !important;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 15px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: calc(100% - 30px);
}

.offcanvas {
  background-color: var(--primary);
}

.offcanvas-header .btn-close {
  filter: invert(1);
  opacity: 1;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: url('../img/hero-bg.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 19, 43, 0.7);
}

.hero-scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* ===== About Section ===== */
.about-section {
  padding: 100px 0;
}

.mission-vision i {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 5px;
}

/* ===== Values Section ===== */
.values-section {
  padding: 100px 0;
}

.value-card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  background: rgba(26, 115, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary);
}

/* ===== Services Section ===== */
.services-section {
  padding: 100px 0;
}

.service-card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: rgba(26, 115, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary);
}

/* ===== Technologies Section ===== */
.technologies-section {
  padding: 100px 0;
}

.tech-item {
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.tech-item img {
  height: 60px;
  margin-bottom: 15px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.tech-item span {
  font-weight: 500;
  color: var(--gray);
  transition: all 0.3s ease;
}

.tech-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.tech-item:hover span {
  color: var(--primary);
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  padding: 100px 0;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--secondary);
  color: #fff;
}

.portfolio-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio-img img {
  transition: all 0.5s ease;
  width: 100%;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 19, 43, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-links {
  display: flex;
  gap: 15px;
}

.portfolio-links a {
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
}

.portfolio-links a:hover {
  background: #fff;
  color: var(--secondary);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

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

.portfolio-content {
  padding: 20px;
}

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

.portfolio-tags .badge {
  margin-right: 5px;
  margin-bottom: 5px;
  font-weight: 500;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 100px 0;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  padding: 0 15px;
}

.testimonial-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-content::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: rgba(26, 115, 232, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--gray);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h5 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.author-info span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 100px 0;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info i {
  width: 20px;
  text-align: center;
  margin-right: 10px;
  color: var(--secondary);
}

.team-member {
  margin-top: 40px;
}

.team-member h4 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.linkedin-badge {
  margin-top: 10px;
}

.contact-form .form-control {
  height: 50px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.contact-form textarea.form-control {
  height: auto;
  resize: none;
}

.contact-form .form-floating label {
  color: var(--gray);
}

/* ===== Map Section ===== */
.map-section {
  height: 450px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 80px 0 30px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-links i {
  margin-right: 5px;
  color: var(--secondary);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary);
  margin-top: 5px;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.back-to-top:hover {
  background: #0d5bba;
  color: #fff;
  transform: translateY(-3px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199.98px) {
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    background-color: var(--primary);
  }

  .hero-section {
    min-height: 600px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 500px;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links ul {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .btn {
    padding: 10px 20px;
  }
}
