/* ==========================================================================
   CreuForge IT — Main Stylesheet
   Theme: Navy Blue (#0B2545) + Brand Red (#D6402C) accents, matching the logo
   ========================================================================== */

:root {
  --cf-navy: #0b2545;
  --cf-navy-dark: #071a33;
  --cf-navy-light: #13335c;
  --cf-teal: #D6402C;
  --cf-teal-dark: #B8331F;
  --cf-teal-light: #F0806B;
  --cf-grey: #f4f7f9;
  --cf-text: #2c3e50;
  --cf-white: #ffffff;
  --cf-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--cf-text);
  background-color: var(--cf-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--cf-navy);
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

::selection {
  background: var(--cf-teal);
  color: #fff;
}

/* ----------------------------- Utility ----------------------------- */
.text-teal { color: var(--cf-teal) !important; }
.bg-navy { background-color: var(--cf-navy) !important; }
.bg-navy-dark { background-color: var(--cf-navy-dark) !important; }
.bg-teal { background-color: var(--cf-teal) !important; }
.bg-soft { background-color: var(--cf-grey) !important; }

.section-padding { padding: 100px 0; }
@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
}

.section-label {
  display: inline-block;
  color: var(--cf-teal);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.section-subtitle {
  color: #607085;
  font-size: 1.1rem;
  max-width: 700px;
}

/* ----------------------------- Buttons ----------------------------- */
.btn-cf-primary {
  background-color: var(--cf-teal);
  border: 2px solid var(--cf-teal);
  color: #fff;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(214, 64, 44, 0.3);
}
.btn-cf-primary:hover {
  background-color: var(--cf-teal-dark);
  border-color: var(--cf-teal-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(214, 64, 44, 0.4);
}

.btn-cf-outline {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-cf-outline:hover {
  background-color: #fff;
  color: var(--cf-navy);
  transform: translateY(-3px);
}

.btn-cf-navy {
  background-color: var(--cf-navy);
  border: 2px solid var(--cf-navy);
  color: #fff;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-cf-navy:hover {
  background-color: var(--cf-navy-light);
  border-color: var(--cf-navy-light);
  color: #fff;
  transform: translateY(-3px);
}

/* ----------------------------- Navbar ----------------------------- */
.navbar-cf {
  background-color: rgba(11, 37, 69, 0.97);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.navbar-cf .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff !important;
  padding: 0;
}
.navbar-cf .navbar-brand span { color: var(--cf-teal); }
.navbar-logo {
  height: 40px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 44px;
  width: auto;
}

.navbar-cf .nav-link {
  color: #d7e1ec !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}
.navbar-cf .nav-link:hover,
.navbar-cf .nav-link.active {
  color: #fff !important;
}
.navbar-cf .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cf-teal);
}

.navbar-cf .btn-cf-primary {
  padding: 8px 24px;
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  background: linear-gradient(135deg, var(--cf-navy) 0%, var(--cf-navy-dark) 60%, #08192e 100%);
  color: #fff;
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214,64,44,0.25) 0%, rgba(214,64,44,0) 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214,64,44,0.15) 0%, rgba(214,64,44,0) 70%);
  border-radius: 50%;
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
  line-height: 1.2;
}

.hero .lead {
  color: #c3d1e0;
  font-size: 1.2rem;
  max-width: 600px;
}

.page-hero {
  background: linear-gradient(135deg, var(--cf-navy) 0%, var(--cf-navy-dark) 100%);
  color: #fff;
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #c3d1e0; }

/* Fade-in animation for hero content */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

/* Scroll reveal (JS-triggered) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------- Cards ----------------------------- */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  height: 100%;
  box-shadow: var(--cf-shadow);
  border: 1px solid #eef1f5;
  transition: all 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11,37,69,0.15);
  border-color: var(--cf-teal);
}
.service-card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cf-teal), var(--cf-teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.stat-box {
  text-align: center;
  padding: 20px;
}
.stat-box .stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--cf-teal);
}
.stat-box .stat-label {
  color: #cdd8e5;
  font-weight: 500;
}

/* ----------------------------- Testimonials ----------------------------- */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--cf-shadow);
  height: 100%;
  position: relative;
  border-top: 4px solid var(--cf-teal);
}
.testimonial-card .quote-icon {
  color: var(--cf-teal);
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 10px;
}
.testimonial-card .author-name {
  font-weight: 700;
  color: var(--cf-navy);
  margin-bottom: 0;
}
.testimonial-card .author-role {
  color: #8493a5;
  font-size: 0.9rem;
}

/* ----------------------------- Cookie Consent Banner ----------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: var(--cf-navy-dark);
  color: #d7e1ec;
  padding: 18px 24px;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.2);
  transform: translateY(120%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
}
.cookie-banner .btn-cf-primary {
  padding: 8px 26px;
  white-space: nowrap;
}

/* ----------------------------- Testimonial Marquee ----------------------------- */
.testimonial-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.testimonial-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: cf-marquee-scroll 60s linear infinite;
}
.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}
.testimonial-track .testimonial-card {
  width: 300px;
  flex-shrink: 0;
}
@keyframes cf-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .testimonial-track { animation-duration: 38s; }
  .testimonial-track .testimonial-card { width: 260px; }
}

/* ----------------------------- Portfolio ----------------------------- */
.portfolio-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--cf-shadow);
  height: 100%;
  transition: all 0.35s ease;
  border: 1px solid #eef1f5;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11,37,69,0.15);
}
.portfolio-card .portfolio-banner {
  height: 160px;
  background: linear-gradient(135deg, var(--cf-navy), var(--cf-teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.4rem;
}
.portfolio-card .portfolio-body { padding: 30px; }
.portfolio-tag {
  display: inline-block;
  background: rgba(214,64,44,0.12);
  color: var(--cf-teal-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 3px 4px 3px 0;
}

/* ----------------------------- CTA ----------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--cf-teal-dark), var(--cf-teal));
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

/* ----------------------------- Footer ----------------------------- */
.footer-cf {
  background: var(--cf-navy-dark);
  color: #b7c4d4;
  padding: 60px 0 20px;
}
.footer-cf h5 { color: #fff; }
.footer-cf a { color: #b7c4d4; }
.footer-cf a:hover { color: var(--cf-teal-light); }
.footer-cf .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #7d8ba0;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: #fff;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: var(--cf-teal);
  transform: translateY(-3px);
}

/* ----------------------------- Forms ----------------------------- */
.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid #dfe6ee;
  padding: 12px 16px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cf-teal);
  box-shadow: 0 0 0 0.2rem rgba(214,64,44,0.15);
}
.form-label {
  font-weight: 600;
  color: var(--cf-navy);
  margin-bottom: 6px;
}

.contact-info-card {
  background: var(--cf-navy);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
}
.contact-info-card .info-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(214,64,44,0.2);
  color: var(--cf-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

/* ----------------------------- Misc ----------------------------- */
.badge-location {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
}

.timeline-item {
  border-left: 3px solid var(--cf-teal);
  padding-left: 24px;
  padding-bottom: 30px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cf-teal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--cf-teal);
}

.value-card {
  text-align: center;
  padding: 30px 20px;
}
.value-card .icon-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--cf-grey);
  color: var(--cf-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}

.alert-cf-success {
  background: rgba(214,64,44,0.1);
  border: 1px solid var(--cf-teal);
  color: var(--cf-teal-dark);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .hero { padding: 140px 0 80px; }
  .hero h1 { font-size: 2.1rem; }
  .section-title { font-size: 1.8rem; }
}
