/* Global Design System */
html {
  scroll-behavior: smooth;
}

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --secondary: #64748B;
  --bg-white: #ffffff;
  --text-main: #1E293B;
  --text-muted: #475569;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-white) !important;
  color: var(--text-main) !important;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -1px;
}

/* Standardized Section Headings */
.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main) !important;
  margin-bottom: 0.5rem;
}

.heading-underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto 3rem auto;
}

/* Navbar Enhancement */
.navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: var(--transition);
  padding: 18px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
  font-weight: 800;
  color: var(--primary) !important;
  font-size: 1.4rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted) !important;
  transition: var(--transition);
  margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background-color: rgba(37, 99, 235, 0.08);
  border-radius: 8px;
}

/* Sections */
section {
  background-color: var(--bg-white) !important;
  padding: 100px 0;
}

/* Hero Section Refinement */
.hero-image-container {
  position: relative;
  display: inline-block;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  border-radius: 50%;
  animation: border-glow 4s ease-in-out infinite alternate;
}

@keyframes border-glow {
  0% {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
  }

  100% {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.5);
  }
}

.hero-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 50%;
}

/* Button Refinement */
.btn-primary {
  background-color: var(--primary);
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-outline-dark {
  border: 1.5px solid #E2E8F0;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.resume-btn {
  font-size: 0.9rem;
  padding: 8px 20px !important;
}

/* Card Design System */
.card {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 20px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
}

/* Horizontal Certificate Cards */
.cert-card-horizontal {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  margin-bottom: 2rem;
}

/* New Project Format Styles */
.project-card {
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.project-subtitle {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.project-list-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.project-list-box {
  background: #F8FAFC;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-list-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 4px;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.project-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  margin-right: 10px;
}

.project-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-project {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-github {
  background: #F1F5F9;
  color: #334155;
}

.btn-github:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.btn-demo {
  color: #B45309;
  /* Gold/Amber as in the sketch */
  border: 1.5px solid #FDE68A;
  background: #FEF3C7;
}

.btn-demo:hover {
  background: #FDE68A;
}

/* Horizontal Certificate Cards */
.cert-img-container {
  flex: 0 0 300px;
  background: #F8FAFC;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-img-container img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.cert-content {
  padding: 40px;
  flex: 1;
}

/* Utility */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary-subtle {
  background-color: rgba(37, 99, 235, 0.05) !important;
}

/* Contact Specifics */
.contact-section {
  background-image: radial-gradient(circle at 2px 2px, rgba(37, 99, 235, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
}

.form-control {
  background-color: #F8FAFC !important;
  border: 1.5px solid #F1F5F9 !important;
  transition: var(--transition);
}

.form-control:focus {
  background-color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}