/* 
  Global Software Solutions - Premium Digital Agency & Template Marketplace
  ========================================================================
  Ultra-Premium CSS Redesign
*/

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

:root {
  /* Exactly matched to the uploaded logo */
  --logo-dark-navy: #021E42;
  --logo-medium-blue: #185BA5;
  --logo-gradient-start: #003681;
  --logo-gradient-end: #009DFF;

  /* UI Colors */
  --bg-main: #FAFCFF;
  --bg-card: #FFFFFF;
  --bg-deep: #011226;
  --text-dark: #0A142F;
  --text-muted: #5D6B82;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Utilities */
  --section-padding: 120px 0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(2, 30, 66, 0.05);
  --shadow-md: 0 12px 30px rgba(2, 30, 66, 0.08);
  --shadow-lg: 0 30px 60px rgba(2, 30, 66, 0.12);
  --glow-blue: 0 10px 30px rgba(0, 157, 255, 0.3);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

section {
  padding: var(--section-padding);
  position: relative;
}

/* Gradients & Text FX */
.text-gradient {
  background: linear-gradient(135deg, var(--logo-medium-blue), var(--logo-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-premium {
  background: linear-gradient(135deg, var(--logo-dark-navy) 0%, var(--logo-gradient-start) 100%);
}

.bg-gradient-light {
  background: linear-gradient(180deg, rgba(0, 157, 255, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--logo-medium-blue), var(--logo-gradient-end));
  color: #fff;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  color: var(--logo-dark-navy);
  border: 2px solid rgba(2, 30, 66, 0.1);
}

.btn-outline-custom:hover {
  background: var(--logo-dark-navy);
  color: #fff;
  border-color: var(--logo-dark-navy);
  transform: translateY(-3px);
}

/* Navbar */
.navbar-custom {
  background: rgba(250, 252, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(2, 30, 66, 0.05);
  transition: var(--transition);
  padding: 15px 0;
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

/* Global Reset for Focus Rings */
*:focus,
.btn:focus,
.form-control:focus,
.form-select:focus,
.accordion-button:focus,
a:focus,
button:focus {
  outline: none !important;
  box-shadow: none !important;
}

.nav-link {
  font-family: var(--font-heading);
  color: var(--logo-dark-navy);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 15px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  color: var(--logo-gradient-end) !important;
  transform: scale(1.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0px;
  left: 0;
  background: var(--logo-gradient-end);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Offcanvas Custom */
.offcanvas-custom {
  background: var(--bg-main);
  border-right: none;
  height: 100vh !important;
}

.offcanvas-custom .offcanvas-body {
  overflow-y: auto;
}

.offcanvas-custom .nav-link {
  font-size: 1.2rem;
  padding: 15px 0;
  margin: 0;
  display: block;
}

.offcanvas-custom .nav-link::after {
  display: none;
}

.offcanvas-custom .nav-link:hover,
.offcanvas-custom .nav-link.active {
  color: var(--logo-gradient-end) !important;
  padding-left: 10px;
  transform: scale(1.02);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 157, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-30px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--logo-dark-navy);
  margin-bottom: 25px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 90%;
  line-height: 1.7;
}

/* Section Titles */
.section-title {
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--logo-dark-navy);
}

.section-title p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 15px;
}

/* Infinite Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  margin: 0 40px;
}

/* Cards & Containers */
.premium-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(2, 30, 66, 0.03);
  transition: var(--transition);
  padding: 40px;
  /* height: 100%; */
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 157, 255, 0.2);
}

/* Product Cards specific */
.product-card {
  padding: 0;
  overflow: hidden;
}

.product-card .img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
}

.badge-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  color: var(--logo-dark-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.icon-box {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: rgba(0, 157, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--logo-gradient-end);
  margin-bottom: 25px;
  transition: var(--transition);
}

.premium-card:hover .icon-box {
  background: var(--logo-gradient-end);
  color: white;
  transform: rotate(5deg) scale(1.1);
}

/* Dark Section & Core Solutions Enhancement */
.dark-section {
  background: linear-gradient(135deg, var(--bg-deep), var(--logo-dark-navy));
  color: white;
  position: relative;
}

.dark-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(0, 157, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.dark-section .section-title h2 {
  color: white;
  text-shadow: 0 0 20px rgba(0, 157, 255, 0.3);
}

.dark-section .text-muted {
  color: #8F9BB3 !important;
}

.dark-section .premium-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.dark-section .premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  z-index: -1;
}

.dark-section .premium-card:hover {
  border-color: var(--logo-gradient-end);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 157, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -40px;
  width: 2px;
  background: rgba(0, 157, 255, 0.2);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--logo-gradient-end);
  border-radius: 50%;
  border: 4px solid var(--bg-main);
  box-shadow: var(--glow-blue);
}

/* Footer */
.footer-custom {
  background: var(--logo-dark-navy);
  padding: 80px 0 30px;
  color: white;
  position: relative;
}

.footer-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg') center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.footer-custom .container {
  position: relative;
  z-index: 2;
}

.footer-custom h5 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

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

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

.footer-links a {
  color: #8F9BB3;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--logo-gradient-end);
  transform: translateX(5px);
  display: inline-block;
}

/* Fixed Social Media */
.fixed-social {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  align-items: center;
}

.social-links-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  overflow: hidden;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.social-links-container a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--logo-dark-navy);
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-decoration: none;
}

.social-links-container a:last-child {
  border-bottom: none;
}

.social-links-container a:hover {
  background: var(--logo-gradient-end);
  color: white;
}

.social-toggle {
  background: var(--logo-dark-navy);
  color: white;
  border: none;
  width: 40px;
  height: 45px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .social-links-container {
    width: 0;
    opacity: 0;
    pointer-events: none;
  }

  .fixed-social.show .social-links-container {
    width: 45px;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 992px) {
  .social-toggle {
    display: none !important;
  }

  .social-links-container {
    width: 45px;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-padding {
    padding: 80px 0;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }
}

/* Footer Social Icon */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--logo-gradient-end);
  color: white;
  transform: translateY(-3px);
}

/* Subscribe Button Highlight */
.btn-subscribe-highlight {
  background: var(--logo-gradient-end) !important;
  color: white !important;
  box-shadow: 0 0 15px rgba(0, 157, 255, 0.4) !important;
  animation: pulse-subscribe 2s infinite;
  transition: all 0.3s ease;
}

.btn-subscribe-highlight:hover {
  background: var(--logo-medium-blue) !important;
  color: white !important;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(24, 91, 165, 0.6) !important;
}

@keyframes pulse-subscribe {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 157, 255, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 157, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 157, 255, 0);
  }
}

/* Custom Pagination & Utilities */
.pagination-custom .page-link {
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  margin: 0 5px;
  transition: var(--transition);
  background: white;
  box-shadow: var(--shadow-sm);
}

.pagination-custom .page-link:hover {
  background: var(--logo-gradient-end);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.pagination-custom .page-item.active .page-link {
  background: var(--logo-dark-navy);
  color: white;
  box-shadow: 0 5px 15px rgba(2, 30, 66, 0.3);
}

.pagination-custom .page-item.disabled .page-link {
  background: transparent;
  box-shadow: none;
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.career-card:hover {
  border-color: var(--logo-gradient-end) !important;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}

.cursor-pointer {
  cursor: pointer;
}