/* ============================================
   MODERN PREMIUM COLOR PALETTE
   ============================================ */
:root {
  --primary-blue: #1E3A8A;
  --secondary-teal: #14B8A6;
  --accent-gold: #F59E0B;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --white: #FFFFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #2D5AA8 100%);
  --gradient-accent: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  position: relative;
  min-height: 100%;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
}

a {
  color: var(--secondary-teal);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-none:hover {
  text-decoration: none !important;
}

/* ============================================
   NAVBAR STYLING
   ============================================ */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--secondary-teal);
}

.navbar-brand span {
  color: var(--accent-gold);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem !important;
  display: inline-block;
  border-radius: 6px;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  background: conic-gradient(
    from 0deg,
    var(--secondary-teal),
    var(--accent-gold),
    var(--secondary-teal)
  );
  padding: 2px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  background: transparent;
  pointer-events: none;
}

.nav-link:hover {
  color: var(--secondary-teal) !important;
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 1;
  animation: drawBorder 1s ease-in-out forwards;
}

.nav-link.active {
  color: var(--primary-blue) !important;
  font-weight: 900;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
  transform: translateY(-2px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  background: transparent;
  pointer-events: none;
}

.nav-link.active::before {
  opacity: 0;
}

/* ============================================
   CTA TEXT LINK
   ============================================ */
.cta-text {
  color: var(--white) !important;
  background: linear-gradient(135deg, #10B981, #059669);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.cta-text:hover {
  color: var(--white) !important;
  background: linear-gradient(135deg, #059669, #047857);
  text-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.cta-text i {
  transition: all 0.3s ease;
}

.cta-text:hover i {
  transform: rotate(360deg);
  animation: spin 0.6s ease-in-out;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: var(--gradient-primary);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 50%;
  z-index: 0;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-section h1 {
  color: var(--white);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: slideDown 0.8s ease-out;
}

.hero-section .hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-weight: 400;
  animation: slideDown 0.8s ease-out 0.2s backwards;
}

.hero-section .hero-tagline {
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: 2rem;
  animation: slideDown 0.8s ease-out 0.4s backwards;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideDown 0.8s ease-out 0.6s backwards;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

.btn-outline-light {
  color: var(--white);
  border: 2px solid var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--white);
}

.btn-gold:hover {
  background: #DC2626;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15);
  border-color: var(--secondary-teal);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 5rem 0;
  position: relative;
}

section.bg-light {
  background-color: var(--bg-light);
}

section.bg-white {
  background-color: var(--white);
}

section h2 {
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 3rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: block;
}

.form-control,
.form-select {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--text-dark);
  background-color: var(--white);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
  font-family: inherit;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 2rem 0 0.5rem;
  margin-top: 3rem;
}

footer a {
  color: var(--accent-gold);
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--secondary-teal);
  text-decoration: none;
}

footer h6 {
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer .footer-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

footer .footer-link a {
  color: rgba(255, 255, 255, 0.8);
}

footer .footer-link a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--accent-gold);
}

/* ============================================
   ICONS WITH STYLING
   ============================================ */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.icon-box.bg-primary {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(30, 58, 138, 0.15));
  color: var(--primary-blue);
}

.icon-box.bg-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(20, 184, 166, 0.15));
  color: var(--secondary-teal);
}

.icon-box.bg-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.15));
  color: var(--accent-gold);
}

.card:hover .icon-box {
  transform: scale(1.15) rotate(5deg);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
}

.badge-primary {
  background: rgba(30, 58, 138, 0.15);
  color: var(--primary-blue);
}

.badge-teal {
  background: rgba(20, 184, 166, 0.15);
  color: var(--secondary-teal);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  border: none;
  border-radius: 8px;
  border-left: 4px solid;
}

.alert-info {
  background: rgba(30, 58, 138, 0.08);
  border-left-color: var(--secondary-teal);
  color: var(--primary-blue);
}

.alert-success {
  background: rgba(20, 184, 166, 0.08);
  border-left-color: var(--secondary-teal);
  color: var(--secondary-teal);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawBorder {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary { color: var(--primary-blue) !important; }
.text-teal { color: var(--secondary-teal) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { 
  background: var(--gradient-primary) !important; 
  color: var(--white) !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
  color: var(--white) !important;
}

.bg-primary i,
.bg-primary .icon-box {
  color: var(--white) !important;
}

.bg-primary a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.bg-primary a:hover {
  color: var(--accent-gold) !important;
}

.bg-teal { background: var(--gradient-accent) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: var(--white) !important; }

.border-light { border-color: var(--border-light) !important; }

.shadow-sm {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15) !important;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15);
}

/* ============================================
   STAT ITEMS (PROJECTS SECTION)
   ============================================ */
.stat-item {
  opacity: 0;
  transform: translateY(30px);
}

.stat-item.animate-on-scroll {
  animation: slideUp 0.6s ease-out forwards;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }
  
  /* Ensure columns take full width on mobile */
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ============================================
   MISC
   ============================================ */
main {
  min-height: calc(100vh - 300px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  margin: 0;
}

[role="main"] {
  outline: none;
}

/* Smooth scroll behavior is set in html */
::selection {
  background: var(--secondary-teal);
  color: var(--white);
}