/**
 * GPS Tracker Morocco - Custom Styles
 * Primary Color: #102A71 (Dark Blue)
 * Secondary Color: #F5C400 (Golden Yellow)
 */

/* ============================================
   COLOR VARIABLES & BASE STYLES
============================================ */
:root {
  --primary-color: #102A71;
  --secondary-color: #F5C400;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

body {
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 28px; }

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

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

a:hover {
  color: var(--secondary-color);
}

/* ============================================
   NAVIGATION
============================================ */
.main-nav {
  background: var(--white);
  padding: 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-nav .navbar-brand img {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.main-nav .navbar-nav .nav-item .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 25px 18px;
  position: relative;
  transition: var(--transition);
}

.main-nav .navbar-nav .nav-item .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.main-nav .navbar-nav .nav-item .nav-link:hover,
.main-nav .navbar-nav .nav-item.active .nav-link {
  color: var(--primary-color);
}

.main-nav .navbar-nav .nav-item .nav-link:hover::before,
.main-nav .navbar-nav .nav-item.active .nav-link::before {
  width: 60%;
}

.main-nav .btn-rounded-icon {
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 10px;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
}

.main-nav .btn-rounded-icon:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 42, 113, 0.2);
}

@media (max-width: 992px) {
  .main-nav .navbar-nav .nav-item .nav-link {
    padding: 12px 15px;
  }
  
  .main-nav .btn-rounded-icon {
    margin: 10px 0;
    display: inline-block;
  }
}

/* ============================================
   GRADIENT BANNER / HERO SECTION
============================================ */
.gradient-banner {
  padding: 120px 0 180px;
  position: relative;
  overflow: hidden;
}

.gradient-banner::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a4089 50%, var(--secondary-color) 100%);
  z-index: -1;
}

.gradient-banner h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  animation: fadeInUp 0.8s ease;
}

.gradient-banner p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 35px;
  animation: fadeInUp 1s ease;
}

.gradient-banner .btn-main-md {
  background: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(245, 196, 0, 0.3);
  transition: var(--transition);
  animation: fadeInUp 1.2s ease;
}

.gradient-banner .btn-main-md:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245, 196, 0, 0.4);
  background: #ffd700;
}

.gradient-banner img {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shapes Animation */
.shapes-container .shape::before {
  background-color: rgba(255, 255, 255, 0.1);
  animation: shapeFloat 15s ease-in-out infinite;
}

@keyframes shapeFloat {
  0%, 100% { transform: rotate(-35deg) translateY(0); }
  50% { transform: rotate(-35deg) translateY(-30px); }
}

/* ============================================
   FEATURES SECTION (PULL-TOP)
============================================ */
.pull-top {
  margin-top: -120px;
  position: relative;
  z-index: 10;
}

.pull-top .rounded {
  border-radius: 15px !important;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
  padding: 50px 30px !important;
  transition: var(--transition);
}

.pull-top .rounded:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.15);
}

.pull-top i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.pull-top .text-center:hover i {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.pull-top h5 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.pull-top p {
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   FEATURE SECTIONS
============================================ */
.feature {
  padding: 100px 0;
}

.feature .feature-content h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 42px;
}

.feature .feature-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.feature .image-content img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.feature .image-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* ============================================
   VIDEO PROMO SECTION
============================================ */
.video-promo {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a4089 100%);
  padding: 100px 0;
  position: relative;
}

.video-promo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}

.video-promo .content-block {
  position: relative;
  z-index: 1;
}

.video-promo h2 {
  color: var(--white);
  font-size: 38px;
  margin-bottom: 20px;
}

.video-promo p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 40px;
}

.video-promo .text-center a {
  display: inline-block;
  margin: 0 30px;
  transition: var(--transition);
}

.video-promo .text-center a:hover {
  transform: translateY(-5px);
}

.video-promo .text-center i {
  font-size: 60px;
  color: var(--white);
  width: 100px;
  height: 100px;
  line-height: 100px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(245, 196, 0, 0.3);
}

.video-promo .text-center a:hover i {
  background: #ffd700;
  box-shadow: 0 15px 40px rgba(245, 196, 0, 0.5);
}

/* ============================================
   SERVICE SECTION
============================================ */
.service {
  background: var(--bg-light);
  padding: 100px 0;
}

.service .section-title h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service .service-box {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.service .service-item {
  padding: 30px 20px;
  border-radius: 10px;
  transition: var(--transition);
}

.service .service-item:hover {
  background: rgba(245, 196, 0, 0.05);
  transform: translateY(-5px);
}

.service .service-item i {
  color: var(--secondary-color);
  font-size: 42px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.service .service-item:hover i {
  transform: scale(1.1) rotate(5deg);
}

.service .service-item h3 {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service .service-item p {
  font-size: 15px;
  line-height: 1.7;
}

.service .service-thumb img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CALL TO ACTION APP
============================================ */
.call-to-action-app {
  background: var(--primary-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.call-to-action-app::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(245, 196, 0, 0.1) 100%);
}

.call-to-action-app h2 {
  color: var(--white) !important;
  font-size: 38px;
  margin-bottom: 20px;
}

.call-to-action-app p {
  color: var(--white) !important;
  font-size: 18px;
  margin-bottom: 40px;
}

.call-to-action-app p a {
  color: var(--secondary-color) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--secondary-color);
}

.call-to-action-app .btn-rounded-icon {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  padding: 15px 35px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(245, 196, 0, 0.3);
}

.call-to-action-app .btn-rounded-icon:hover {
  background: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245, 196, 0, 0.4);
}

.call-to-action-app .btn-rounded-icon i {
  margin-right: 8px;
  font-size: 18px;
}

/* ============================================
   FOOTER
============================================ */
.footer-main {
  background: var(--primary-color);
  padding: 80px 0 40px;
}

.footer-main .block img {
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}

.footer-main .social-icon li a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-main .social-icon li a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-main .block-2 h6 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-main .block-2 ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: var(--transition);
}

.footer-main .block-2 ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.text-center.bg-dark {
  background: #0a1a3d !important;
  padding: 25px 0;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  color: var(--primary-color);
  font-size: 42px;
  margin-bottom: 15px;
  font-weight: 800;
}

.section-title p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.bg-gray {
  background: var(--bg-light);
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-main-md {
  background: var(--primary-color);
  color: var(--white);
  padding: 17px 38px;
  border-radius: 50px;
  font-weight: 700;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(16, 42, 113, 0.2);
}

.btn-main-md:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 42, 113, 0.3);
}

/* ============================================
   SCROLL TO TOP BUTTON
============================================ */
.scroll-top-to {
  background: var(--secondary-color);
  color: var(--primary-color);
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(245, 196, 0, 0.4);
  transition: var(--transition);
}

.scroll-top-to:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 42, 113, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 992px) {
  .gradient-banner {
    padding: 80px 0 120px;
  }
  
  .gradient-banner h1 {
    font-size: 38px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
  
  .pull-top {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .gradient-banner h1 {
    font-size: 32px;
    text-align: center;
  }
  
  .gradient-banner p {
    text-align: center;
    font-size: 16px;
  }
  
  .pull-top {
    margin-top: -60px;
  }
  
  .pull-top .rounded {
    padding: 30px 20px !important;
    margin-bottom: 20px;
  }
}

/* ============================================
   ANIMATIONS
============================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeIn 0.6s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}