@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.text-light {
  color: rgb(0 0 0) !important;
}

:root {
  --nav-bg: #ffffff;
  --primary-color: #1e293b;
  /* Slate 800 */
  --primary-light: #334155;
  /* Slate 700 */
  --accent-color: #f59e0b;
  /* Amber 500 */
  --accent-light: #fbbf24;
  --text-dark: #0f172a;
  --text-light: #64748b;
  /* Slate 500 - Muted secondary text */
  --bg-light: #f8fafc;
  --footer-bg: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--primary-color);
}

/* Navbar overrides */
.navbar {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-weight: 800;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: color 0.3s ease;
  margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color) !important;
}

/* Dropdowns */
.dropdown-menu {
  animation: fadeInDown 0.3s ease forwards;
  padding: 0.5rem 0;
  min-width: 220px;
}

.dropdown-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--accent-color);
  padding-left: 1.5rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #08162e;
  border-color: #08162e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 29, 61, 0.2);
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #e6800d;
  border-color: #e6800d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.btn-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebd5a;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Sticky WhatsApp Button */
.sticky-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sticky-whatsapp:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

.hover-white {
  transition: all 0.3s ease;
}

.hover-white:hover {
  color: white !important;
  transform: translateX(5px);
}

.placeholder-light::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Home Page Expansion */
.hero-slide {
  height: 85vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-fade .carousel-item {
  transition: opacity 1s ease-in-out;
}

.tracking-wide {
  letter-spacing: 2px;
}

.counter-box {
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
}

.counter-box:hover {
  transform: translateY(-5px);
  border-bottom: 4px solid var(--accent-color);
  background-color: white !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.transition {
  transition: all 0.3s ease;
}

.animate-content {
  animation: slideUpFade 1s both 0.3s;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.bg-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* New Utility Classes */
.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.py-7 {
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
}

.mb-6 {
  margin-bottom: 4rem !important;
}

.leading-tight {
  line-height: 1.25 !important;
}

.hover-up {
  transition: transform 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-10px);
}

.text-justify {
  text-align: justify;
}

.italic {
  font-style: italic;
}

.duration-500 {
  transition-duration: 500ms !important;
}

.duration-300 {
  transition-duration: 300ms !important;
}

.scale-105 {
  transform: scale(1.05);
}

.scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:translate-y-0 {
  transform: translateY(0);
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.bg-primary-light {
  background-color: rgba(11, 29, 61, 0.1) !important;
}

.fw-800 {
  font-weight: 800 !important;
}

.shadow-premium {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.shadow-hover:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2) !important;
}

/* Existing Hero Section */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 29, 61, 0.95) 0%, rgba(11, 29, 61, 0.7) 40%, rgba(11, 29, 61, 0.1) 100%);
  z-index: 0;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.shadow-sm-text {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.shadow-text {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.decor-circle {
  width: 300px;
  height: 300px;
  transform: translate(20%, -20%);
}

@media (max-width: 768px) {
  .decor-circle {
    transform: translate(54%, -56%);
  }
}

.service-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.whatsapp-card::after {
  background-color: #25D366;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(11, 29, 61, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
  transform: scale(1.1);
  background-color: rgba(11, 29, 61, 0.1);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #08162e 100%);
  padding: 5rem 0;
}

.page-header h1,
.page-header h2,
.page-header p,
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: #ffffff !important;
}

.page-header .text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Call to action sections */
.cta-section {
  background-color: var(--bg-light);
  border-radius: 12px;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.2;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before,
.timeline-item::after {
  content: '';
  display: table;
  clear: both;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  top: 15px;
  left: 50%;
  margin-left: -10px;
  border: 4px solid white;
  box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.2);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  float: left;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  float: right;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 15px;
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -10px;
  right: auto;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    float: right;
  }

  .timeline-item:nth-child(even) .timeline-content {
    float: right;
  }

  .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glass-card-dark {
  background: rgba(11, 29, 61, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-premium);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  /* Increased opacity from 0.75 */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-premium);
}

/* Mobile Visual Enhancements */
@media (max-width: 768px) {
  .hero-slide {
    height: 100vh;
    min-height: 500px;
  }

  .hero-slide .display-3 {
    font-size: 2.5rem;
  }

  .hero-slide .lead {
    font-size: 1.1rem !important;
    width: 100% !important;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(11, 29, 61, 0.8) 0%, rgba(11, 29, 61, 0.6) 50%, rgba(11, 29, 61, 0.9) 100%);
  }

  .visual-card-mobile {
    height: 280px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }

  .visual-card-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(11, 29, 61, 0.8) 100%);
    z-index: 1;
  }

  .visual-card-mobile .card-content {
    position: relative;
    z-index: 2;
    color: white;
  }

  .visual-card-mobile h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .visual-card-mobile p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .project-card .project-overlay {
    padding: 1.2rem;
  }
}

/* Accordion Overrides */
.accordion-button:not(.collapsed) {
  background-color: rgba(11, 29, 61, 0.05);
  color: var(--primary-color) !important;
  box-shadow: none;
}

.accordion-button:focus {
  border-color: rgba(11, 29, 61, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(11, 29, 61, 0.25);
}

/* Projects Grid and Tabs */
.projects-tab .nav-link {
  color: var(--text-light) !important;
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
  background-color: transparent;
}

.projects-tab .nav-link:hover {
  color: var(--primary-color) !important;
}

.projects-tab .nav-link.active {
  color: var(--primary-color) !important;
  border-bottom-color: var(--accent-color);
  background-color: transparent;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Stronger bottom gradient for white text readability */
  background: linear-gradient(to top, rgba(11, 29, 61, 0.95) 0%, rgba(11, 29, 61, 0.6) 40%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 1;
  /* Always visible as requested */
  transform: translateY(0);
  transition: all 0.4s ease;
}

/*.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(11, 29, 61, 1) 0%, rgba(11, 29, 61, 0.8) 50%, transparent 90%);
}*/

.project-overlay h4 {
  color: white !important;
  margin-bottom: 0.3rem !important;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}