/* =================================
   MINIMAL DESIGN SYSTEM
   Modern Portfolio 2026
   ================================= */

/* ========== DESIGN TOKENS ========== */
:root {
  /* Colors */
  --primary-blue: #007bff;
  --secondary-purple: #6610f2;
  --accent-cyan: #00bfff;

  /* Gradients */
  --gradient-primary: linear-gradient(45deg, #007bff, #00bfff);
  --gradient-accent: linear-gradient(90deg, #007bff, #6610f2);

  /* Neutrals */
  --white: #ffffff;
  --dark-primary: #1a1a2e;
  --dark-secondary: #16213e;
  --light-bg: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted-light: #636e72;
  --text-muted-dark: #a8b2d1;

  /* Shadows */
  --shadow-minimal: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-button: 0 2px 10px rgba(0, 123, 255, 0.3);
  --shadow-button-hover: 0 4px 20px rgba(0, 123, 255, 0.4);

  /* Typography */
  --font-family: 'Roboto', sans-serif;
  --font-size-h1: 4.5rem;
  --font-size-h2: 3rem;
  --font-size-h3: 1.8rem;
  --font-size-h4: 1.5rem;
  --font-size-h5: 1.25rem;
  --font-size-body: 1rem;
  --font-size-small: 0.9rem;
  --font-size-tiny: 0.85rem;

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-loose: 1.8;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing (8px base unit) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-12: 6rem;    /* 96px */
  --space-16: 8rem;    /* 128px */

  /* Border Radius */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 15px;
  --radius-pill: 50px;
  --radius-round: 20px;

  /* Transitions */
  --transition-fast: 0.15s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  --easing: ease;
}

/* ========== BASE STYLES ========== */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-2);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }

p {
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-2);
}

/* ========== COMPONENTS ========== */

/* Cards */
.card,
.story-card,
.info-card,
.skill-category {
  background-color: var(--card-bg, var(--white));
  border-radius: var(--radius-medium);
  padding: var(--space-4);
  box-shadow: var(--shadow-minimal);
  border: none;
  transition: all var(--transition-normal) var(--easing);
}

/* Add extra padding to skill categories to compensate for lift effect */
.skill-category {
  padding-top: calc(var(--space-4) + 6px) !important;
  padding-bottom: calc(var(--space-4) + 6px) !important;
}

.card:hover,
.story-card:hover,
.info-card:hover,
.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Remove decorative ::before elements */
.info-card::before {
  display: none;
}

/* Badges */
.badge,
.skill-badge {
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-blue);
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-medium);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-round);
  border: 1px solid rgba(0, 123, 255, 0.2);
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Override badge color variants but NOT for icons */
.badge.bg-primary-subtle,
.badge.bg-success-subtle,
.badge.bg-info-subtle,
.badge.bg-warning-subtle,
.badge.bg-danger-subtle,
.badge.bg-secondary-subtle,
.badge.bg-orange-subtle {
  background: rgba(0, 123, 255, 0.1) !important;
}

.badge.text-primary,
.badge.text-success,
.badge.text-info,
.badge.text-warning,
.badge.text-danger,
.badge.text-secondary,
.badge.text-orange {
  color: var(--primary-blue) !important;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-normal) var(--easing);
  border: none;
}

/* Remove button shimmer effect */
.btn:after {
  display: none !important;
}

.btn-primary,
.btn-glow {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover,
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: var(--white);
}

/* Icons */
.card-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: var(--space-3);
  transition: transform var(--transition-normal) var(--easing);
}

.card:hover .card-icon,
.info-card:hover .card-icon {
  transform: scale(1.05);
}

/* Skill category icon styling - preserve original colors */
.skill-category .fas,
.skill-category i {
  font-size: 2rem;
  margin-right: 1rem;
}

/* Override unified badge styling for skill categories - match icon colors */
.skill-category .skill-badge {
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-blue);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Badge colors matching icon colors for each category */
.skill-category:has(.text-primary) .skill-badge {
  background: rgba(0, 123, 255, 0.15) !important;
  color: #007bff !important;
  border-color: rgba(0, 123, 255, 0.3) !important;
}

.skill-category:has(.text-success) .skill-badge {
  background: rgba(25, 135, 84, 0.15) !important;
  color: #198754 !important;
  border-color: rgba(25, 135, 84, 0.3) !important;
}

.skill-category:has(.text-info) .skill-badge {
  background: rgba(13, 202, 240, 0.15) !important;
  color: #0dcaf0 !important;
  border-color: rgba(13, 202, 240, 0.3) !important;
}

.skill-category:has(.text-warning) .skill-badge {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #ffc107 !important;
  border-color: rgba(255, 193, 7, 0.3) !important;
}

.skill-category:has(.text-danger) .skill-badge {
  background: rgba(220, 53, 69, 0.15) !important;
  color: #dc3545 !important;
  border-color: rgba(220, 53, 69, 0.3) !important;
}

.skill-category:has(.text-secondary) .skill-badge {
  background: rgba(108, 117, 125, 0.15) !important;
  color: #6c757d !important;
  border-color: rgba(108, 117, 125, 0.3) !important;
}

.skill-category:has(.text-orange) .skill-badge {
  background: rgba(255, 102, 0, 0.15) !important;
  color: #ff6600 !important;
  border-color: rgba(255, 102, 0, 0.3) !important;
}

/* Section Spacing */
section {
  padding: var(--space-12) 0;
}

/* Headings */
.heading-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Links */
a {
  transition: all var(--transition-normal) var(--easing);
}

/* Navigation */
.navbar {
  transition: all var(--transition-normal) var(--easing) !important;
}

.nav-link::after {
  transition: width var(--transition-normal) var(--easing);
}

/* Projects Section Simplification */
.projects-section::before {
  display: none !important; /* Remove grid background */
}

.projects-container::before {
  display: none !important; /* Remove timeline */
}

.project-title::after {
  display: none !important; /* Remove title underline decoration */
}

.project-item {
  margin-bottom: var(--space-12) !important;
  box-shadow: var(--shadow-minimal);
  transition: all var(--transition-normal) var(--easing);
}

.project-item:hover {
  box-shadow: var(--shadow-hover);
}

.project-info {
  padding: var(--space-4) !important;
  background: var(--dark-primary);
  backdrop-filter: none;
}

.project-item.left .project-info {
  margin-left: 0 !important; /* Remove overlapping effect */
}

.project-item.right .project-info {
  margin-right: 0 !important; /* Remove overlapping effect */
}

.tech-badge {
  background: rgba(0, 123, 255, 0.2);
  color: white;
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-medium);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-round);
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.project-link::after {
  display: none !important; /* Remove complex underline animation */
}

/* Contact Section */
.contact-container {
  box-shadow: var(--shadow-minimal);
}

.business-card::before {
  display: none !important; /* Remove shine effect */
}

.digital-card-btn {
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-button);
  transition: all var(--transition-normal) var(--easing);
}

.digital-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

/* Story card highlight text */
.highlight-text {
  color: var(--primary-blue) !important;
  font-weight: 600;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
}

/* ========== UTILITIES ========== */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 3rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.1rem;
    --space-12: 4rem;
    --space-16: 6rem;
  }

  section {
    padding: var(--space-8) 0;
  }

  .card,
  .story-card,
  .info-card,
  .skill-category {
    padding: var(--space-3);
  }

  .project-item {
    flex-direction: column !important;
    margin-bottom: var(--space-8) !important;
  }

  .project-image,
  .project-info {
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 1.75rem;
    --space-12: 3rem;
  }

  .card,
  .story-card,
  .info-card,
  .skill-category {
    padding: var(--space-3);
  }
}
