/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Theme color #0b57d0 and its shades */
  --primary: #0b57d0;
  --primary-dark: #083ca8;
  --primary-darker: #052a7a;
  --primary-light: #3b7de8;
  --primary-lighter: #6ba3f5;
  --primary-pale: #a8c9fc;
  --primary-faint: #d4e4fd;
  --primary-ultra-light: #e8f1fe;
  --primary-bg: #f5f9ff;
  
  /* Neutral shades */
  --white: #ffffff;
  --dark: #0a1628;
  --dark-medium: #1a2d4d;
  --gray: #4a6085;
  --gray-light: #8fa3c4;
  --gray-pale: #c5d3e8;
  
  /* Spacing */
  --section-gap: 100px;
  --container-padding: clamp(1rem, 5vw, 3rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--primary-bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-ultra-light) 50%, var(--white) 100%);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  transition: transform 0.3s ease-out;
}

.orb-1 {
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(11, 87, 208, 0.25) 0%, transparent 70%);
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-2 {
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 125, 232, 0.2) 0%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite reverse;
}

.orb-3 {
  top: 40%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 163, 245, 0.15) 0%, transparent 70%);
  animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(11, 87, 208, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 87, 208, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HERO HEADER
   ============================================ */
.hero-header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--container-padding);
  position: relative;
}

.header-content {
  max-width: 900px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary-faint), var(--primary-ultra-light));
  border: 1px solid var(--primary-pale);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.8s ease-out;
}

.badge i {
  font-size: 0.75rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease-out 0.1s backwards;
}

.title-line {
  display: block;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -2px;
  line-height: 1.1;
}

.title-highlight {
  display: block;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -3px;
  line-height: 1.1;
  position: relative;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 12px;
  background: linear-gradient(90deg, transparent, var(--primary-pale), transparent);
  border-radius: 10px;
  z-index: -1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 3rem;
  animation: fadeSlideUp 0.8s ease-out 0.2s backwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s ease-out 0.3s backwards;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--primary-pale), transparent);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: fadeSlideUp 0.8s ease-out 0.5s backwards, bounce 2s ease-in-out infinite;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--primary-pale);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0%, 100% { opacity: 1; top: 8px; }
  50% { opacity: 0.5; top: 18px; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--gray-light);
  font-weight: 500;
}

/* ============================================
   MAIN CONTENT & SECTIONS
   ============================================ */
.main-content {
  flex: 1;
}

.section {
  padding: var(--section-gap) var(--container-padding);
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-faint), var(--primary-ultra-light));
  border: 1px solid var(--primary-pale);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.member-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 241, 254, 0.8));
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 87, 208, 0.1);
  box-shadow: 
    0 4px 20px rgba(11, 87, 208, 0.05),
    0 1px 3px rgba(11, 87, 208, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.member-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.member-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 25px 60px rgba(11, 87, 208, 0.15),
    0 10px 30px rgba(11, 87, 208, 0.1);
  border-color: var(--primary-pale);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover .card-glow {
  transform: scaleX(1);
}

.member-avatar {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--primary-faint);
  transition: all 0.4s ease;
}

.member-card:hover .avatar-ring {
  border-color: var(--primary);
  transform: scale(1.1);
  border-width: 2px;
}

.avatar-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-faint), var(--primary-ultra-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.member-card:hover .avatar-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.member-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.social-btn.email {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.social-btn.email:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(11, 87, 208, 0.35);
}

.social-btn.linkedin {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}

.social-btn.linkedin:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(8, 60, 168, 0.35);
}

.social-btn.github {
  background: linear-gradient(135deg, var(--dark), var(--dark-medium));
  color: white;
}

.social-btn.github:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.35);
}

/* ============================================
   PROJECT SECTION
   ============================================ */
.repos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.repo-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 241, 254, 0.8));
  border-radius: 20px;
  border: 1px solid rgba(11, 87, 208, 0.1);
  text-decoration: none;
  color: inherit;
  box-shadow: 
    0 4px 20px rgba(11, 87, 208, 0.05),
    0 1px 3px rgba(11, 87, 208, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.repo-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.repo-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-dark), var(--primary), var(--primary-light));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.repo-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 60px rgba(11, 87, 208, 0.12),
    0 10px 30px rgba(11, 87, 208, 0.08);
  border-color: var(--primary-pale);
}

.repo-card:hover::before {
  transform: scaleY(1);
}

.repo-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-faint), var(--primary-ultra-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.repo-card:hover .repo-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.repo-content {
  flex: 1;
}

.repo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.repo-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.repo-badge {
  width: 28px;
  height: 28px;
  background: var(--primary-ultra-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.repo-card:hover .repo-badge {
  background: var(--primary);
  color: white;
  transform: translate(3px, -3px);
}

.repo-desc {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.repo-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.35rem 0.75rem;
  background: var(--primary-ultra-light);
  border: 1px solid var(--primary-faint);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   TECH SECTION
   ============================================ */
.tech-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 241, 254, 0.8));
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(11, 87, 208, 0.1);
  box-shadow: 0 4px 20px rgba(11, 87, 208, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.tech-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.tech-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(11, 87, 208, 0.1),
    0 10px 25px rgba(11, 87, 208, 0.08);
  border-color: var(--primary-pale);
}

.tech-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-faint), var(--primary-ultra-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin: 0 auto 1rem;
  transition: all 0.4s ease;
}

.tech-card:hover .tech-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 25px rgba(11, 87, 208, 0.3);
}

.tech-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.tech-category {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: auto;
  padding: 3rem var(--container-padding);
  background: linear-gradient(180deg, transparent, rgba(11, 87, 208, 0.03));
  border-top: 1px solid var(--primary-faint);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-logo i {
  font-size: 1.5rem;
}

.footer-text {
  color: var(--gray);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-ultra-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
  }
  
  .hero-header {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .repos-container {
    grid-template-columns: 1fr;
  }
  
  .repo-card {
    flex-direction: column;
    text-align: center;
  }
  
  .repo-icon-wrapper {
    margin: 0 auto;
  }
  
  .repo-header {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .repo-tech {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .title-line {
    font-size: 2rem;
    letter-spacing: -1px;
  }
  
  .title-highlight {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .member-card {
    padding: 2rem 1.5rem;
  }
  
  .tech-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .tech-card {
    padding: 1.5rem 1rem;
  }
  
  .tech-icon-wrapper {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
}
