/* Custom CSS for BGS Glass Securit Website */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

@font-face {
  font-family: "GlassEdge";
  src: url("assets/fonts/GlassEdgeDemo-Regular.ttf");
}

@font-face {
  font-family: "SharpSans";
  src: url("assets/fonts/SharpSans-Bold.otf");
}

/* CSS Variables for Colors */
:root {
  --primary-blue: #0a26c3;
  --light-blue: #3b82f6;
  --white: #efefef;
  --black: #080808;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --font-text: "GlassEdge", sans-serif;
  --font-title: "SharpSans", sans-serif;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Add this to prevent content from going off-screen on mobile */
.container {
  overflow: hidden;
}

.text-font {
  font-family: var(--font-text);
}

.title-font {
  font-family: var(--font-title);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #888;
}

::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--light-blue);
}

/* Glassmorphism Effects */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Navigation Links */
.nav-link {
  color: var(--white);
  transition: all 0.3s ease;
}

.nav-link.text-gray-900 {
  color: var(--gray-800);
}

/* Header Transitions */
header {
  transition: all 0.3s ease;
}

header.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile Menu Button Styles */
#mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#mobile-menu-btn img {
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

#mobile-menu-btn.active {
  transform: rotate(90deg);
}

/* Glass Cut Effect */
.glass-cut {
  position: relative;
  overflow: hidden;
}

.glass-cut::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(-45deg, transparent 50%, var(--white) 50%);
  z-index: 2;
}

.glass-cut img {
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  transition: transform 0.3s ease;
}

.glass-cut:hover img {
  transform: scale(1.05);
}

/* Header Styles */
#header {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0);
  border: 0;
  -webkit-backdrop-filter: blur(0);
  color: #efefef;
  z-index: 50;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--light-blue);
  color: #080808;
}

.logo h1 {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive logo size */
.bgs-logo {
  width: 90px;
  height: auto;
  transition: width 0.3s;
}
@media (max-width: 640px) {
  .bgs-logo {
    width: 60px;
  }
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

#mobile-menu-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
  cursor: pointer;
}

@media (min-width: 768px) {
  #mobile-menu-btn {
    display: none !important;
  }
}

.hamburger-svg {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cross-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-path {
  transition: fill 0.3s ease;
}

#mobile-menu-btn.active .hamburger-svg {
  opacity: 0;
  transform: scale(0);
}

#mobile-menu-btn.active .cross-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  z-index: 40;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-nav {
  width: 100%;
  max-width: 350px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2)
  );
  border-radius: 35px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
}
.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 0.75rem 2rem;
  border-radius: 1000px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  border: 1px solid var(--primary-blue);
}

.mobile-link:hover,
.mobile-link.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  border: 0;
}

.mobile-link:hover,
.mobile-link.active::after {
  width: 0;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: none !important;
}

.hero-title {
  color: #efefef;
  margin-bottom: 35px !important;
  z-index: 3;
}

.hero-text {
  color: #efefef;
  margin-bottom: 35px !important;
  z-index: 3;
}

.hero-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgb(240, 240, 240);
  color: rgb(240, 240, 240);
  position: relative;
  border-radius: 100px;
  transform: none !important;
  opacity: 1 !important;
  overflow: hidden;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  z-index: 3;
  transition: all 0.5s ease;
}

.hero-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-cta:hover {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(37, 99, 235, 1);
  color: rgba(37, 99, 235, 1);
}

.hero-cta:hover::before {
  left: 100%;
}

/* About Section */
.about-content h2 {
  position: relative;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: -5px;
  width: 65px;
  height: 6px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
}

.see-more-btn {
  background: transparent;
  font-family: var(--font-title) !important;
  font-size: 23px !important;
  position: relative;
  border: 2px solid #2563eb;
  padding: 10px 30px !important;
  border-radius: 100px !important;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.see-more-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--light-blue)
  ) !important;
  color: #fff !important;
  border: 0;
  transition: all 0.3s ease-in-out;
}

.see-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.see-more-btn:hover::before {
  left: 100%;
}

.about-image img {
  border-radius: 30px;
}

/* Services Section */
.services-title {
  position: relative;
}

.services-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: -5px;
  width: 65px;
  height: 6px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
}

.service-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  transition: all 0.6 ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(10, 38, 195, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(10, 38, 195, 0.15);
  border: 2px solid #2563eb;
}

.service-icon {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.fondateur-title {
  position: relative;
}

.fondateur-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: -5px;
  width: 65px;
  height: 6px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
}

/* Partners Section */
.partners-slider {
  overflow: hidden;
}

.partner-logo {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.partner-logo:hover {
  background: rgba(255, 255, 255, 1);
}

.partner-logo img {
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Contact Section */
.contact-form input,
.contact-form textarea {
  transition: all 0.3s ease;
  border: 2px solid var(--gray-300);
  background: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(10, 38, 195, 0.1);
  background: rgba(255, 255, 255, 1);
}

.contact-form button {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  position: relative;
  overflow: hidden;
}

.contact-form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-form button:hover::before {
  left: 100%;
}

.contact-info h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  margin-top: 10px;
  border-radius: 2px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--gray-800), var(--black));
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--light-blue) !important;
  transform: translateX(5px);
}

footer .fab {
  transition: all 0.3s ease;
}

footer .fab.fa-facebook:hover {
  color: #1877f2 !important;
}

footer .fab.fa-linkedin:hover {
  color: #0e76a8 !important;
}

footer .fab.fa-instagram:hover {
  color: #fcb045;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.service-icon {
  animation: float 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.service-card:nth-child(1) .service-icon {
  --delay: 0s;
}
.service-card:nth-child(2) .service-icon {
  --delay: 0.5s;
}
.service-card:nth-child(3) .service-icon {
  --delay: 1s;
}
.service-card:nth-child(4) .service-icon {
  --delay: 1.5s;
}
.service-card:nth-child(5) .service-icon {
  --delay: 2s;
}
.service-card:nth-child(6) .service-icon {
  --delay: 2.5s;
}

/* Responsive Design - Mobile First */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .service-card {
    padding: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }

  .mobile-menu {
    display: none !important;
  }

  .glass-cut::before {
    width: 80px;
    height: 80px;
  }

  .glass-cut img {
    clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 0 100%);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 5rem;
  }

  .service-card {
    padding: 2.5rem;
  }

  .team-image img {
    width: 200px;
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1550px) {
  .hero-title {
    font-size: 6rem;
  }

  .container {
    max-width: 1550px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .service-icon {
    animation: none;
  }

  .hero-cta {
    animation: none;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-blue);
  }

  .nav-link::after {
    height: 3px;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .hero video,
  .mobile-menu,
  footer {
    display: none;
  }

  .hero {
    background: white;
    color: black;
    padding: 2rem 0;
  }

  a {
    text-decoration: underline;
  }

  .service-card,
  .team-card {
    border: 1px solid #ccc;
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}
