/* ===============================
   Global Variables & Resets
================================= */
:root {
  /* Primary Colors */
  --primary: #6C1586;
  --primary-dark: #1A3CC0;
  --primary-light: #6C8AFF;

  /* Secondary Colors */
  --secondary: #FF6B35;
  --secondary-dark: #D45A2B;
  --secondary-light: #FF9D6F;

  /* Neutral Colors */
  --dark: #2D3748;
  --gray: #718096;
  --light: #E2E8F0;
  --lighter: #F7FAFC;
  --white: #FFFFFF;

  /* Accent Colors */
  --accent: #9F7AEA;
  --success: #48BB78;
  --warning: #ECC94B;
  --danger: #F56565;
  --info: #4299E1;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(45, 91, 255, 0.85) 0%, rgba(26, 60, 192, 0.9) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   Base Styles
================================= */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--lighter);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.main-content {
  min-height: calc(100vh - 120px);
  padding: 20px 0 40px;
}

/* ===============================
   Navigation
================================= */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 14px 0;
  font-weight: 500;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(18, 38, 74, 0.08);
}

.navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}

.navbar-brand span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: linear-gradient(45deg, #12264a, #345b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.navbar-brand span:hover {
  opacity: 0.8;
}

.navbar .nav-link {
  color: #12264a;
  margin-left: 18px;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  position: relative;
}

.navbar.scrolled .nav-link {
  color: #0d1b34;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #345b9d;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #345b9d;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* Mobile Navbar */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.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(18,38,74,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===============================
   Hero Section
================================= */
.hero-section {
  background: url('/assets/images/hero.jpg') center/cover no-repeat fixed;
  color: #fff;
  text-align: center;
  padding: 150px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 74, 0.4);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===============================
   Cards & Projects
================================= */
.card,
.project-card {
  background: var(--white);
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover,
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* ===============================
   Section Titles
================================= */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  color: var(--dark);
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ===============================
   Footer
================================= */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 60px 0 30px;
}
.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}
.footer a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}
.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

/* ===============================
   Buttons
================================= */
.btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(45,91,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45,91,255,0.5);
}

.btn-secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 4px 15px rgba(255,107,53,0.35);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,107,53,0.5);
}

/* ===============================
   Animations
================================= */
@keyframes fadeInUp {
  from {opacity:0; transform: translateY(30px);}
  to {opacity:1; transform: translateY(0);}
}
@keyframes pulse {
  0%,100% {transform: scale(1);}
  50% {transform: scale(1.05);}
}
@keyframes float {
  0%,100% {transform: translateY(0);}
  50% {transform: translateY(-10px);}
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
.pulse-animation {animation: pulse 2s infinite;}
.float-animation {animation: float 3s infinite;}

/* ===============================
   Responsive
================================= */
@media (max-width: 768px) {
  .hero-section {padding: 100px 0; background-attachment: scroll;}
  .hero-section h1 {font-size: 2.5rem;}
  .hero-section .lead {font-size: 1.2rem;}
  .footer .col-md-4 {margin-bottom: 30px;}
  .card-detail .impact-stats .stat-number {font-size: 2rem;}
  .navbar .nav-link {margin: 0 15px;}
}
