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

:root {
  /* Override Bootstrap Primary */
  --bs-primary: #ffc619;
  --bs-primary-rgb: 255, 198, 25;

  /* Brand Colors */
  --primary-color: #ffc619;
  --secondary-color: #e6b216;
  --accent-color: #14B8A6;
  --dark-color: #0F172A;
  --light-color: #F8FAFC;
  --bg-color: #FFFFFF;

  /* Typography */
  --font-primary: 'Poppins', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  
  /* Borders & Shadows */
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --box-shadow-hover: 0 20px 40px rgba(13, 110, 253, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--dark-color);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--secondary-color);
}

p {
  color: #475569;
  margin-bottom: 1.5rem;
}

/* Sections */
section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title .text-primary {
  color: var(--primary-color) !important;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

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

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

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

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-color);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(255, 198, 25, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 198, 25, 0.4);
  color: var(--dark-color);
}

.btn-primary-custom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  z-index: -1;
  transition: opacity var(--transition-normal);
  opacity: 0;
}

.btn-primary-custom:hover::after {
  opacity: 1;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
}

.btn-accent {
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-accent:hover {
  background: #0d9488;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

/* Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  background: rgba(255, 255, 255, 0.9);
}

/* Header & Navbar */
.navbar {
  padding: 15px 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.sticky {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

.navbar-brand img {
  height: 40px;
  transition: all var(--transition-normal);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-color);
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

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

/* Custom Dropdown */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}
.dropdown-menu-custom {
  min-width: 250px;
  animation: fadeInDown 0.3s ease;
}
.dropdown-menu-custom .dropdown-item {
  font-weight: 500;
  color: var(--dark-color);
  transition: all 0.2s ease;
}
.dropdown-menu-custom .dropdown-item:hover,
.dropdown-menu-custom .dropdown-item:focus {
  background-color: var(--light-color);
  color: var(--primary-color);
  transform: translateX(5px);
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Header / Breadcrumb Section */
.page-header {
  position: relative;
  margin-top: 76px;
  padding: 80px 0;
  background-color: var(--dark-color);
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
.page-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
  z-index: 2;
}
.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}
.page-header .breadcrumb-item {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}
.page-header .breadcrumb-item a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.page-header .breadcrumb-item a:hover {
  color: var(--primary-color);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  padding: 0 12px;
  font-size: 0.8rem;
}
.page-header .breadcrumb-item.active {
  color: var(--primary-color);
}

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

/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow);
  padding: 10px 0;
}

.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding-left: 25px;
}

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

.footer p {
  color: #94a3b8;
}

.footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons a {
  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;
  margin-right: 10px;
  transition: all var(--transition-normal);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  cursor: pointer;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10000;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility */
.bg-light-subtle {
  background-color: var(--light-color) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  filter: blur(50px);
  opacity: 0.5;
  border-radius: 50%;
  animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(13, 110, 253, 0.3);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(20, 184, 166, 0.2);
  bottom: -150px;
  left: -150px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 2rem;
}

.typed-text {
  color: var(--primary-color);
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
  text-align: right;
}

.hero-image-wrapper img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  animation: float-img 6s ease-in-out infinite;
}

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

/* Fix contrast for yellow primary background */
.bg-primary.text-white,
.bg-primary .text-white {
  color: var(--dark-color) !important;
}
.bg-primary h1.text-white, 
.bg-primary h2.text-white, 
.bg-primary h3.text-white, 
.bg-primary h4.text-white, 
.bg-primary h5.text-white, 
.bg-primary h6.text-white {
  color: var(--dark-color) !important;
}
.bg-primary .text-light {
  color: rgba(15, 23, 42, 0.8) !important;
}
.bg-primary .btn-light.text-primary {
  color: var(--dark-color) !important;
}
.bg-primary .btn-outline-light {
  color: var(--dark-color) !important;
  border-color: var(--dark-color) !important;
}
.bg-primary .btn-outline-light:hover {
  background-color: var(--dark-color) !important;
  color: #fff !important;
}

/* =========================================
   Animations & Micro-interactions 
   ========================================= */

/* Custom Cursor */
@media (pointer: fine) {
  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: none !important;
  }
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-color);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out, left 0.1s ease-out, top 0.1s ease-out;
}

.cursor-outline.hover-active {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(255, 198, 25, 0.1);
  border-color: rgba(255, 198, 25, 0.5);
}

/* Animated Gradient Background */
.bg-animated-gradient {
  background: linear-gradient(-45deg, #0f172a, #1e293b, #0b5ed7, #0f172a) !important;
  background-size: 400% 400% !important;
  animation: gradientBG 15s ease infinite !important;
  position: relative;
}

.bg-animated-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Generic Hover Floats */
.hover-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Button enhancements */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
