:root {
  --primary-color: #0f172a; /* Deep Navy */
  --secondary-color: #334155; /* Slate */
  --accent-color: #eab308; /* Gold/Amber */
  --accent-hover: #ca8a04;
  --light-color: #f8f9fa;
  --dark-color: #020617;
  --text-body: #475569;
  --transition-speed: 0.3s;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-color);
}

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

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

.bg-accent {
  background-color: var(--accent-color) !important;
}

.bg-light-accent {
  background-color: rgba(234, 179, 8, 0.1);
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

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

.btn-accent {
  background-color: var(--accent-color);
  color: #fff;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline-light:hover {
  color: var(--primary-color);
  background-color: #fff;
}

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

.ls-2 {
  letter-spacing: 2px;
}

/* Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.nav-link {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-left: 15px;
  transition: var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color) !important;
}

.navbar-toggler {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(15, 23, 42, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.nav-logo {
  max-height: 70px;
  width: auto;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--primary-color);
  /* Fallback */
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding-top: 80px;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

/* Animations */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.floating-anim {
  animation: float 6s ease-in-out infinite;
}

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

/* About Section */
.about-img img {
  border: 10px solid #fff;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--accent-color);
  color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
  .experience-badge {
    right: 0;
    bottom: 0;
  }
  .about-img {
    margin-bottom: 30px;
  }
}

/* Services Cards */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.icon-box {
  width: 80px;
  height: 80px;
  transition: all 0.3s ease;
}

.service-card:hover .icon-box {
  background-color: var(--accent-color);
  color: #fff !important;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(15, 17, 42, 0.9), rgba(15, 23, 42, 0.9)), url('../images/cta-bg.jpg') center/cover fixed;
}

/* Portfolio */
.nav-pills .nav-link {
  color: var(--text-body);
  background: #fff;
  border: 1px solid #eee;
  margin: 0 5px;
}

.nav-pills .nav-link.active {
  background-color: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.portfolio-item img {
  transition: transform 0.5s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* FAQ */
.custom-accordion .accordion-button {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: var(--light-color);
  color: var(--accent-color);
}

.custom-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,0.1);
}

/* Contact */
.contact-info {
  background: var(--primary-color);
}

.form-control:focus {
  box-shadow: none;
  border: 1px solid var(--accent-color);
  background-color: #fff;
}

/* Footer */
.hover-white:hover {
  color: #fff !important;
  padding-left: 5px;
}

/* Dark Section Headings Override */
.footer h4, .footer h5,
.contact-info h3, .contact-info h5 {
  color: #fff !important;
}
