/* ============================================
   Corvessian Inc — Corporate Website Styles
   Theme inspired by cloud/tech hosting templates
   ============================================ */

:root {
  --primary: #fab400;
  --primary-dark: #d99a00;
  --primary-light: #ffc933;
  --secondary: #1e2a3a;
  --accent: #ff9500;
  --dark: #1a1f2e;
  --dark-secondary: #252b3b;
  --text: #4a5568;
  --text-light: #718096;
  --heading: #1a202c;
  --white: #ffffff;
  --light: #f8f9fb;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #fab400 0%, #ffc933 50%, #ff9500 100%);
  --hero-gradient: linear-gradient(135deg, #1a1f2e 0%, #252b3b 50%, #2d3548 100%);
  --shadow: 0 10px 40px rgba(250, 180, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--heading);
  font-weight: 600;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Site Header */
.site-header {
  z-index: 1030;
  transition: var(--transition);
}

.top-bar {
  background: var(--dark);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-info li,
.top-bar-info a {
  color: rgba(255, 255, 255, 0.75);
}

.top-bar-info i {
  color: var(--primary);
  margin-right: 0.4rem;
}

.top-bar-info a:hover {
  color: var(--primary);
}

.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.top-bar-social a:hover {
  background: var(--primary);
  color: var(--dark);
}

.main-navbar {
  padding: 0.85rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled .main-navbar {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 0.6rem 0;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--heading) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 8px;
  color: var(--dark);
  flex-shrink: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
}

.brand-accent {
  color: var(--primary);
}

.navbar-toggler {
  border-color: var(--border);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(250, 180, 0, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 32, 44, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--heading) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.btn-nav {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem;
  border-radius: 4px;
  color: var(--dark) !important;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 4px;
  padding: 0.6rem 1.8rem;
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(250, 180, 0, 0.4);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 500;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-outline-light {
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 500;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark);
}

/* Hero Carousel */
.hero-carousel-section {
  position: relative;
  margin-top: 118px;
}

.hero-carousel-section .carousel,
.hero-carousel-section .carousel-inner,
.hero-carousel-section .carousel-item {
  height: calc(100vh - 118px);
  min-height: 480px;
  max-height: 720px;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 31, 46, 0.92) 0%, rgba(26, 31, 46, 0.75) 45%, rgba(26, 31, 46, 0.45) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(250, 180, 0, 0.15);
  color: var(--primary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  border-left: 3px solid var(--primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.text-highlight {
  color: var(--primary);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-outline-hero {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.6rem 1.8rem;
}

.btn-outline-hero:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}

.hero-indicators {
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.hero-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  opacity: 1;
  transition: var(--transition);
}

.hero-indicators .active {
  background: var(--primary);
  border-color: var(--primary);
  width: 32px;
  border-radius: 6px;
}

.hero-control {
  width: 52px;
  opacity: 1;
}

.hero-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition);
}

.hero-control:hover .hero-control-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
}

.carousel-control-prev.hero-control {
  left: 1.5rem;
}

.carousel-control-next.hero-control {
  right: 1.5rem;
}

.carousel-item.active .hero-slide-content {
  animation: heroContentIn 0.8s ease forwards;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats-bar {
  background: var(--white);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hero-stats-bar h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.hero-stats-bar p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 500;
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-badge {
  display: inline-block;
  background: rgba(250, 180, 0, 0.12);
  color: var(--primary-dark);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-badge-light {
  background: rgba(250, 180, 0, 0.15);
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text);
  font-size: 1.05rem;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

/* About */
.about-image-grid {
  position: relative;
  padding-right: 40px;
  padding-bottom: 40px;
}

.about-img-1 {
  width: 85%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-img-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.about-experience-badge {
  position: absolute;
  top: 20px;
  right: 0;
  background: var(--gradient);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.exp-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.about-features li i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Service Cards */
.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(250, 180, 0, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.service-card:hover .service-icon {
  background: var(--primary);
}

.service-card:hover .service-icon i {
  color: var(--dark);
}

.service-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.service-link {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

.service-link:hover {
  color: var(--primary-dark);
}

.service-link i {
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--dark);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.product-body > p {
  font-size: 0.9rem;
  color: var(--text-light);
  flex: 1;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.product-features li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Why Us */
.why-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(250, 180, 0, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon i {
  font-size: 1.4rem;
  color: var(--primary);
}

.why-item h5 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.why-image-wrap {
  position: relative;
}

.why-image-wrap img {
  box-shadow: var(--shadow-lg);
}

.why-counter-grid {
  position: absolute;
  bottom: -20px;
  left: 30px;
  display: flex;
  gap: 1rem;
}

.why-counter {
  background: var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.why-counter h3 {
  font-size: 1.75rem;
  margin-bottom: 0;
  color: var(--dark) !important;
}

.why-counter p {
  font-size: 0.75rem;
  color: rgba(26, 31, 46, 0.75);
  margin: 0;
}

/* Process */
.process-row {
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.process-step:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.process-number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.process-step h5 {
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* CTA */
.cta-section {
  padding: 0 0 100px;
}

.cta-box {
  background: var(--gradient);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1.05rem;
}

.cta-box .btn-light {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  color: var(--primary);
}

.cta-box .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Contact */
.contact-info-card {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: var(--white);
}

.contact-info-item h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item a {
  color: var(--primary);
  font-weight: 500;
}

.contact-info-item a:hover {
  color: var(--primary-dark);
}

.contact-info-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form .form-label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--heading);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(250, 180, 0, 0.2);
}

.contact-map img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
}

.footer-brand {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--primary);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-carousel-section {
    margin-top: 72px;
  }

  .hero-carousel-section .carousel,
  .hero-carousel-section .carousel-inner,
  .hero-carousel-section .carousel-item {
    height: calc(100vh - 72px);
    min-height: 420px;
  }

  .navbar-collapse {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
    border: 1px solid var(--border);
  }

  .hero-slide-content {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-control {
    display: none;
  }

  .about-image-grid {
    margin-bottom: 2rem;
    padding-right: 20px;
    padding-bottom: 20px;
  }

  .why-counter-grid {
    position: static;
    margin-top: 1.5rem;
    justify-content: center;
  }

  .cta-box {
    padding: 2rem;
    text-align: center;
  }

  .section-padding {
    padding: 70px 0;
  }
}

@media (max-width: 575.98px) {
  .hero-stats-bar h3 {
    font-size: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
