/* ========================================
   MODERN PROFESSIONAL CSS - PROJECT FINANCE
   Primary Brand Color: #001f3f
   Accent Color: #dae64b
======================================== */

/* ========================================
   1. MODERN CSS VARIABLES
======================================== */
:root {
   /* Brand Colors */
   --primary: #001f3f;
   --primary-light: #0a2f5f;
   --primary-dark: #001428;
   --accent: #dae64b;
   --accent-hover: #c5d142;
   --accent-dark: #b0bc38;

   /* Neutral Colors */
   --white: #ffffff;
   --light-bg: #f8f9fc;
   --light-gray: #e8ecf4;
   --medium-gray: #6c7a93;
   --dark-gray: #2d3748;
   --text-primary: #1a202c;
   --text-secondary: #4a5568;

   /* Gradients */
   --gradient-primary: linear-gradient(135deg, #001f3f 0%, #0a2f5f 100%);
   --gradient-accent: linear-gradient(135deg, #dae64b 0%, #c5d142 100%);
   --gradient-overlay: linear-gradient(135deg, rgba(0, 31, 63, 0.95) 0%, rgba(10, 47, 95, 0.85) 100%);
   --gradient-hero: linear-gradient(135deg, rgba(0, 31, 63, 0.9) 0%, rgba(218, 230, 75, 0.15) 100%);

   /* Shadows */
   --shadow-sm: 0 2px 8px rgba(0, 31, 63, 0.08);
   --shadow-md: 0 4px 16px rgba(0, 31, 63, 0.12);
   --shadow-lg: 0 8px 32px rgba(0, 31, 63, 0.16);
   --shadow-xl: 0 16px 48px rgba(0, 31, 63, 0.24);
   --shadow-accent: 0 4px 20px rgba(218, 230, 75, 0.25);

   /* Transitions */
   --transition-fast: 0.2s ease;
   --transition-base: 0.3s ease;
   --transition-slow: 0.5s ease;

   /* Spacing */
   --section-padding: 100px;
   --container-padding: 80px;
}

/* ========================================
   2. MODERN BASE STYLES
======================================== */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
   font-size: 16px;
   line-height: 1.7;
   color: var(--text-primary);
   background-color: var(--white);
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   overflow-x: hidden;
}

/* Modern Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
   font-weight: 700;
   line-height: 1.3;
   letter-spacing: -0.02em;
   color: var(--primary);
   margin-bottom: 1.2rem;
}

h1 {
   font-size: clamp(2.5rem, 5vw, 4rem);
   font-weight: 800;
}

h2 {
   font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
   font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
   margin-bottom: 1.5rem;
   color: var(--text-secondary);
   line-height: 1.8;
}

/* Modern Link Styles */
a {
   color: var(--primary);
   text-decoration: none;
   transition: all var(--transition-base);
   position: relative;
}

a:hover {
   color: var(--accent-dark);
}

/* ========================================
   3. MODERN BUTTONS
======================================== */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   padding: 1rem 2rem;
   font-size: 1rem;
   font-weight: 600;
   line-height: 1;
   border: none;
   border-radius: 8px;
   cursor: pointer;
   transition: all var(--transition-base);
   text-transform: none;
   letter-spacing: 0;
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 0;
   height: 100%;
   background: rgba(255, 255, 255, 0.1);
   transition: width var(--transition-base);
   z-index: -1;
}

.btn:hover::before {
   width: 100%;
}

.btn-primary {
   background: var(--gradient-primary);
   color: var(--white);
   box-shadow: var(--shadow-md);
   border: 2px solid transparent;
}

.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-lg);
   color: var(--white);
   border-color: var(--accent);
}

.btn-secondary {
   background: var(--gradient-accent);
   color: var(--primary);
   box-shadow: var(--shadow-accent);
   font-weight: 700;
}

.btn-secondary:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 25px rgba(218, 230, 75, 0.4);
   background: var(--accent-hover);
}

.btn-outline {
   background: transparent;
   color: var(--primary);
   border: 2px solid var(--primary);
   padding: 0.9rem 1.9rem;
}

.btn-outline:hover {
   background: var(--primary);
   color: var(--accent);
   transform: translateY(-2px);
   box-shadow: var(--shadow-md);
}

/* Accent Button Variant */
.btn-accent {
   background: var(--accent);
   color: var(--primary);
   box-shadow: var(--shadow-accent);
   font-weight: 700;
}

.btn-accent:hover {
   background: var(--accent-hover);
   transform: translateY(-2px);
   box-shadow: 0 6px 25px rgba(218, 230, 75, 0.4);
}

/* ========================================
   4. MODERN HEADER
======================================== */
.header {
   background: var(--white);
   padding: 1.2rem 0;
   position: sticky;
   top: 0;
   z-index: 1000;
   box-shadow: var(--shadow-sm);
   transition: all var(--transition-base);
   -webkit-backdrop-filter: blur(10px);
   backdrop-filter: blur(10px);
   background: rgba(255, 255, 255, 0.98);
}

.header.scrolled {
   padding: 0.8rem 0;
   box-shadow: var(--shadow-md);
}

.logo img {
   max-height: 60px;
   transition: all var(--transition-base);
}

.header.scrolled .logo img {
   max-height: 50px;
}

/* Modern Navigation */
#navigation>ul>li>a {
   padding: 1rem ;
   font-size: 0.95rem;
   font-weight: 600;
   color: var(--text-primary);
   position: relative;
}

#navigation>ul>li>a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   width: 0;
   height: 3px;
   background: var(--gradient-accent);
   transform: translateX(-50%);
   transition: width var(--transition-base);
   border-radius: 3px 3px 0 0;
}

#navigation>ul>li>a:hover::after,
#navigation>ul>li.active>a::after {
   width: 100%;
}

#navigation>ul>li>a:hover {
   color: var(--primary);
}

#navigation>ul>li.active>a {
   color: var(--primary);
   font-weight: 700;
}

/* ========================================
   5. MODERN HERO SECTION
======================================== */
.slider {
   position: relative;
   overflow: hidden;
   /* min-height: 600px; */
}

.slider-img::before {
   content: '';
   position: absolute;
   inset: 0;
   background: var(--gradient-hero);
   z-index: 1;
}

.slider-captions {
   position: absolute;
   bottom: 120px;
   left: 0;
   right: 0;
   z-index: 2;
   animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.slider-title {
   font-size: clamp(2.5rem, 5vw, 4rem);
   font-weight: 800;
   color: var(--white);
   line-height: 1.2;
   margin-bottom: 1.5rem;
   text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.slider-title span {
   color: var(--accent);
   text-shadow: 0 0 30px rgba(218, 230, 75, 0.5);
}

.slider-text {
   font-size: 1.25rem;
   color: rgba(255, 255, 255, 0.95);
   margin-bottom: 2rem;
   max-width: 600px;
}

/* Modern Owl Controls */
#slider .owl-prev,
#slider .owl-next {
   width: 50px;
   height: 50px;
   background: rgba(255, 255, 255, 0.15) !important;
   -webkit-backdrop-filter: blur(10px);
   backdrop-filter: blur(10px);
   border: 2px solid rgba(255, 255, 255, 0.3) !important;
   border-radius: 50%;
   transition: all var(--transition-base);
}

#slider .owl-prev:hover,
#slider .owl-next:hover {
   background: var(--accent) !important;
   border-color: var(--accent) !important;
   transform: scale(1.1);
   color: var(--primary) !important;
   box-shadow: 0 0 20px rgba(218, 230, 75, 0.5);
}

/* ========================================
   6. MODERN RATE TABLE
======================================== */
.rate-table {
   background: var(--gradient-primary);
   padding: 3rem 0;
   position: relative;
   overflow: hidden;
   border: none;
}

.rate-table::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-image:
      radial-gradient(circle at 20% 50%, rgba(218, 230, 75, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(218, 230, 75, 0.1) 0%, transparent 50%);
   animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {

   0%,
   100% {
      opacity: 0.3;
   }

   50% {
      opacity: 0.6;
   }
}

.rate-counter-block {
   padding: 2rem 1.5rem;
   border-right: 1px solid rgba(255, 255, 255, 0.15);
   transition: all var(--transition-base);
   position: relative;
}

.rate-counter-block::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, transparent, rgba(218, 230, 75, 0.05));
   opacity: 0;
   transition: opacity var(--transition-base);
}

.rate-counter-block:hover {
   transform: translateY(-5px);
}

.rate-counter-block:hover::before {
   opacity: 1;
}

.loan-rate {
   font-size: 3rem;
   font-weight: 800;
   color: var(--accent);
   text-shadow: 0 0 30px rgba(218, 230, 75, 0.3);
   position: relative;
}

.rate-title {
   font-size: 0.9rem;
   color: rgba(255, 255, 255, 0.8);
   font-weight: 500;
   letter-spacing: 1px;
   text-transform: uppercase;
}

/* ========================================
   7. MODERN CARDS & SECTIONS
======================================== */
.card {
   background: var(--white);
   border-radius: 16px;
   padding: 2rem;
   border: 1px solid var(--light-gray);
   box-shadow: var(--shadow-sm);
   transition: all var(--transition-base);
   position: relative;
   overflow: hidden;
}

.card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 4px;
   background: var(--gradient-accent);
   transform: scaleX(0);
   transition: transform var(--transition-base);
}

.card:hover {
   transform: translateY(-8px);
   box-shadow: var(--shadow-lg);
   border-color: var(--accent);
}

.card:hover::before {
   transform: scaleX(1);
}

/* Modern Feature Cards */
.feature {
   background: var(--white);
   border-radius: 20px;
   padding: 2.5rem;
   border: 1px solid var(--light-gray);
   box-shadow: var(--shadow-sm);
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   position: relative;
   overflow: hidden;
}

.feature::before {
   content: '';
   position: absolute;
   top: -50%;
   right: -50%;
   width: 200%;
   height: 200%;
   background: radial-gradient(circle, rgba(218, 230, 75, 0.08) 0%, transparent 70%);
   opacity: 0;
   transition: opacity var(--transition-slow);
}

.feature:hover::before {
   opacity: 1;
   animation: rotate 10s linear infinite;
}

@keyframes rotate {
   from {
      transform: rotate(0deg);
   }

   to {
      transform: rotate(360deg);
   }
}

.feature:hover {
   transform: translateY(-12px);
   box-shadow: var(--shadow-xl);
   border-color: var(--accent);
}

.feature-icon-style .feature-icon {
   width: 90px;
   height: 90px;
   background: linear-gradient(135deg, rgba(0, 31, 63, 0.05) 0%, rgba(218, 230, 75, 0.1) 100%);
   border-radius: 20px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 1.5rem;
   transition: all var(--transition-base);
   position: relative;
}

.feature-icon-style .feature-icon::after {
   content: '';
   position: absolute;
   inset: -3px;
   background: var(--gradient-accent);
   border-radius: 20px;
   opacity: 0;
   z-index: -1;
   transition: opacity var(--transition-base);
}

.feature:hover .feature-icon {
   transform: scale(1.1) rotate(5deg);
   background: linear-gradient(135deg, rgba(0, 31, 63, 0.1) 0%, rgba(218, 230, 75, 0.2) 100%);
}

.feature:hover .feature-icon::after {
   opacity: 0.4;
}

/* ========================================
   8. MODERN TESTIMONIALS
======================================== */
.testimonial-card {
   background: var(--white);
   border-radius: 16px;
   padding: 2rem;
   box-shadow: var(--shadow-md);
   position: relative;
   transition: all var(--transition-base);
   border: 1px solid var(--light-gray);
}

.testimonial-card::before {
   content: '"';
   position: absolute;
   top: -20px;
   left: 20px;
   font-size: 6rem;
   font-family: Georgia, serif;
   color: var(--accent);
   opacity: 0.15;
   line-height: 1;
}

.testimonial-card:hover {
   transform: translateY(-8px);
   box-shadow: var(--shadow-lg);
   border-color: var(--accent);
}

.testimonial-text {
   font-style: italic;
   color: var(--text-secondary);
   line-height: 1.8;
   position: relative;
   z-index: 1;
}

.testimonial-name-1 {
   color: var(--primary);
   font-weight: 600;
}

/* ========================================
   9. MODERN FORMS
======================================== */
.form-control {
   width: 100%;
   padding: 1rem 1.5rem;
   font-size: 1rem;
   border: 2px solid var(--light-gray);
   border-radius: 12px;
   background: var(--white);
   transition: all var(--transition-base);
   font-family: inherit;
}

.form-control:focus {
   outline: none;
   border-color: var(--accent);
   box-shadow: 0 0 0 4px rgba(218, 230, 75, 0.15);
   transform: translateY(-2px);
}

.control-label {
   font-size: 0.9rem;
   font-weight: 600;
   color: var(--primary);
   margin-bottom: 0.5rem;
   display: block;
}

/* ========================================
   10. MODERN FOOTER
======================================== */
.footer {
   background: var(--primary);
   position: relative;
   padding: 4rem 0 0;
}

.footer::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 100%;
   background: linear-gradient(180deg, rgba(218, 230, 75, 0.05) 0%, transparent 100%);
   pointer-events: none;
}

.footer-box {
   color: rgba(255, 255, 255, 0.9);
}

.footer-title {
   color: var(--white);
   font-size: 1.25rem;
   margin-bottom: 1.5rem;
   position: relative;
   padding-bottom: 0.75rem;
}

.footer-title::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 50px;
   height: 3px;
   background: var(--gradient-accent);
   border-radius: 3px;
}

.footer-links a {
   color: rgba(255, 255, 255, 0.8);
   /* padding: 0.5rem 0; */
   display: inline-block;
   transition: all var(--transition-base);
   position: relative;
}

.footer-links a::before {
   content: '→';
   position: absolute;
   left: -20px;
   opacity: 0;
   transition: all var(--transition-base);
   color: var(--accent);
}

.footer-links a:hover {
   color: var(--accent);
   padding-left: 20px;
}

.footer-links a:hover::before {
   opacity: 1;
   left: 0;
}

.tiny-footer {
   background: rgba(0, 0, 0, 0.2);
   -webkit-backdrop-filter: blur(10px);
   backdrop-filter: blur(10px);
   padding: 1.5rem 0;
   margin-top: 3rem;
}

/* ========================================
   11. SECTION TITLE ENHANCEMENTS
======================================== */
.service-title::after,
.whyus-heading::after {
   background: var(--gradient-accent) !important;
}

.section-title h2::after {
   background: var(--gradient-accent) !important;
}

/* Text with gradient */
.text-gradient {
   background: var(--gradient-accent);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

/* ========================================
   12. MODERN ANIMATIONS
======================================== */
@keyframes fadeIn {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

@keyframes slideInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes scaleIn {
   from {
      opacity: 0;
      transform: scale(0.9);
   }

   to {
      opacity: 1;
      transform: scale(1);
   }
}

@keyframes shimmer {
   0% {
      background-position: -1000px 0;
   }

   100% {
      background-position: 1000px 0;
   }
}

.fade-in {
   animation: fadeIn 0.6s ease;
}

.slide-in-up {
   animation: slideInUp 0.8s ease;
}

.scale-in {
   animation: scaleIn 0.6s ease;
}

/* Accent glow effect */
.glow-accent {
   box-shadow: 0 0 20px rgba(218, 230, 75, 0.3);
}

.glow-accent:hover {
   box-shadow: 0 0 30px rgba(218, 230, 75, 0.5);
}

/* ========================================
   13. MODERN UTILITIES
======================================== */
.section-space80 {
   padding: var(--section-padding) 0;
}

.bg-light {
   background: var(--light-bg);
}

.bg-primary {
   background: var(--gradient-primary);
   color: var(--white);
}

.bg-accent {
   background: var(--accent);
   color: var(--primary);
}

/* Highlight Text */
.highlight {
   color: var(--accent-dark);
   font-weight: 600;
}

/* Badge */
.badge-accent {
   background: var(--accent);
   color: var(--primary);
   padding: 0.25rem 0.75rem;
   border-radius: 20px;
   font-size: 0.875rem;
   font-weight: 600;
}

/* ========================================
   14. RESPONSIVE DESIGN
======================================== */
@media (max-width: 1200px) {
   :root {
      --section-padding: 80px;
   }
}

@media (max-width: 992px) {
   :root {
      --section-padding: 60px;
   }

   .header {
      padding: 1rem 0;
   }
}

@media (max-width: 768px) {
   :root {
      --section-padding: 40px;
   }

   .btn {
      padding: 0.875rem 1.5rem;
      font-size: 0.95rem;
   }

   .feature {
      padding: 2rem 1.5rem;
   }
}

@media (max-width: 576px) {
   .slider-title {
      font-size: 2rem;
   }

   .loan-rate {
      font-size: 2rem;
   }
}

/* ========================================
   15. ACCESSIBILITY
======================================== */
:focus-visible {
   outline: 3px solid var(--accent);
   outline-offset: 3px;
}

.sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
}

/* ========================================
   16. MODERN SCROLLBAR
======================================== */
::-webkit-scrollbar {
   width: 12px;
}

::-webkit-scrollbar-track {
   background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
   background: var(--gradient-primary);
   border-radius: 6px;
   border: 2px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
   background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
}

/* ========================================
   17. PERFORMANCE OPTIMIZATIONS
======================================== */
.will-change {
   will-change: transform;
}

.gpu-accelerated {
   transform: translateZ(0);
   backface-visibility: hidden;
}

/* ========================================
   18. SPECIAL ACCENT EFFECTS
======================================== */

/* Accent underline animation */
.accent-underline {
   position: relative;
   display: inline-block;
}

.accent-underline::after {
   content: '';
   position: absolute;
   bottom: -5px;
   left: 0;
   width: 0;
   height: 3px;
   background: var(--gradient-accent);
   transition: width var(--transition-base);
}

.accent-underline:hover::after {
   width: 100%;
}

/* Pulsing accent dot */
.pulse-accent {
   position: relative;
}

.pulse-accent::before {
   content: '';
   position: absolute;
   width: 8px;
   height: 8px;
   background: var(--accent);
   border-radius: 50%;
   animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

   0%,
   100% {
      transform: scale(1);
      opacity: 1;
   }

   50% {
      transform: scale(1.5);
      opacity: 0.5;
   }
}