/* Base Styles */
* {
  font-family: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  scroll-behavior: smooth;
  transition: background-color 0.5s, color 0.5s;
}

:root {
  /* Dark Mode Defaults */
  --primary-color: #3b82f6;
  --accent-color: #06b6d4;
  --dark-bg: #0c121e;
  --card-bg: #1a2434;
  --text-color: #f1f5f9;
  --secondary-text: #94a3b8;
  --border-color: rgba(241, 245, 249, 0.1);
}

body.light-mode {
  --primary-color: #1d4ed8;
  --accent-color: #06b6d4;
  --dark-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #0f172a;
  --secondary-text: #475569;
  --border-color: rgba(15, 23, 42, 0.1);
}

/* Section Title */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 9999px;
  transition: background-color 0.5s;
}

/* Card */
.card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}
.card:hover {
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

/* Container Padding */
.container-padding {
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container-padding {
    padding: 0 1.5rem;
  }
}

/* Nav Links */
.nav-link {
  transition: color 0.3s ease-in-out;
  color: var(--secondary-text);
  font-weight: 500;
}
.nav-link.active,
.nav-link:hover {
  color: var(--primary-color);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}
.tile {
  background: var(--dark-bg);
  color: var(--text-color);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.tile:hover {
  box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
  border-color: var(--accent-color);
}
.tile h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}
.tile p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.95rem;
  line-height: 1.25;
}

/* Badges */
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary-text);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Actions */
.actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-color);
  color: #000;
}
.btn-primary:hover {
  opacity: 0.85;
  transform: scale(1.05);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--secondary-text);
}
.btn-ghost:hover {
  border-color: var(--accent-color);
  color: var(--text-color);
}
.btn-active {
  background: var(--accent-color);
  color: #fff;
}
.btn-inactive {
  background: #334155;
}

/* Animations */
.project-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, opacity;
}
.project-card:hover {
  transform: translateY(-8px);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tech Badges */
.tech-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-color);
  margin: 0.3rem;
}

/* Decorative Elements */
.gradient-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  border-radius: 2px;
}
.featured-badge {
  background: var(--accent-color);
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Style for the Certifications Dashboard section */
[aria-label="Certifications Dashboard"] {
    
    padding: 20px; /* Padding around the section */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}


article {

    margin: 15px 0; /* Margin between articles */
    padding: 15px; /* Padding inside articles */
    border-radius: 5px; /* Slightly rounded corners for articles */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); /* Shadow for articles */
}


a:hover {
    color: #3498db; /* Change color on hover */
    text-decoration: underline; /* Underline links on hover */
}