/* CSS Variables (Design System) */
:root {
  /* Colors - Light Theme */
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(210, 40%, 8%);
  --card: hsl(210, 40%, 98%);
  --card-foreground: hsl(210, 40%, 15%);
  --popover: hsl(210, 40%, 98%);
  --popover-foreground: hsl(210, 40%, 8%);
  --primary: hsl(221, 83%, 53%);
  --primary-glow: hsl(221, 90%, 60%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(210, 40%, 96%);
  --secondary-foreground: hsl(210, 40%, 15%);
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(210, 40%, 45%);
  --accent: hsl(210, 40%, 96%);
  --accent-foreground: hsl(210, 40%, 15%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(210, 40%, 98%);
  --border: hsl(210, 40%, 92%);
  --input: hsl(210, 40%, 92%);
  --ring: hsl(221, 83%, 53%);
  --success: hsl(142, 71%, 45%);
  --success-foreground: hsl(210, 40%, 98%);

  /* Gradients */
  /* --hero-gradient: linear-gradient(135deg, hsl(210, 40%, 98%) 0%, hsl(210, 30%, 96%) 100%); original color */
  --hero-gradient: linear-gradient(135deg, hsl(60, 20%, 95%) 0%, hsl(50, 25%, 90%) 100%);
  --card-gradient: linear-gradient(135deg, hsl(210, 40%, 98%) 0%, hsl(210, 35%, 97%) 100%);
  --button-gradient: linear-gradient(135deg, hsl(221, 83%, 53%) 0%, hsl(221, 70%, 48%) 100%);
  --shimmer-gradient: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);

  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px hsla(221, 83%, 53%, 0.3);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --container-padding: 1rem;
  --section-padding: 5rem 0;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Navigation */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: var(--transition-smooth);
  background: transparent;
}

.nav-container.scrolled {
  background: hsla(210, 40%, 98%, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--button-gradient);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--primary);
}

.btn-glow {
  background: var(--button-gradient);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2s infinite;
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px hsla(221, 83%, 53%, 0.4);
}

.btn-shimmer {
  background: var(--button-gradient);
  color: var(--primary-foreground);
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--shimmer-gradient);
  animation: shimmer 2s infinite;
}

.btn-shimmer:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-success {
  background: var(--success);
  color: var(--success-foreground);
}

.badge-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: hsla(210, 40%, 96%, 0.3);
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.text-primary {
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
}

.social-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

.social-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--primary);
}

.hero-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  transition: var(--transition-smooth);
}

.image-container:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.image-container:hover .hero-img {
  transform: scale(1.1);
}

.image-overlay-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(221, 83%, 53%, 0.1) 0%, transparent 100%);
  transition: var(--transition-smooth);
}

.image-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, transparent 0%, transparent 70%, hsla(221, 83%, 53%, 0.2) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.image-container:hover .image-overlay-1 {
  background: linear-gradient(135deg, hsla(221, 83%, 53%, 0.05) 0%, transparent 100%);
}

.image-container:hover .image-overlay-2 {
  opacity: 1;
}

/* Cards */
.card {
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  /*justify-content: center;
   Centers items horizontally comment it later 
  align-items: center;
  Centers items vertically comment it later */
}

/* Create a container element around your .card div */
.dummy-container {
  width: 50%;
}

.card-header {
  padding: 1.5rem 1.5rem 1rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.hover-lift {
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-large);
}

/* Grids */
.projects-grid,
.content-grid {
  /*display: grid;
  gap: 2rem;  original content */
  display: flex;
  /* Make the parent (.projects-grid) a flex container */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */

}

@media (min-width: 768px) {

  .projects-grid,
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hobbies-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hobbies-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Project Cards */
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
}

/* Article Cards */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.article-date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-time {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Hobby Cards */
.hobby-card .card-header {
  padding-bottom: 1rem;
}

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

.hobby-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.hobby-card:hover .hobby-icon {
  transform: scale(1.1);
}

.hobby-highlight {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

/* Contact Section */
.contact-info {
  margin-bottom: 1.5rem;
}

.contact-item {
  margin-bottom: 1rem;
}

.contact-item h4 {
  font-weight: 500;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--muted-foreground);
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-link:hover {
  color: hsl(221, 83%, 48%);
}

.social-section h4 {
  font-weight: 500;
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--primary);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--primary);
}

.form-input:hover {
  box-shadow: var(--shadow-soft);
}

textarea.form-input {
  resize: none;
}

/* Footer */
.footer {
  background: hsla(210, 40%, 96%, 0.5);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: var(--shadow-glow);
  }

  50% {
    box-shadow: 0 0 60px hsla(221, 83%, 53%, 0.4);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .social-buttons {
    flex-wrap: wrap;
  }

  .project-actions {
    flex-direction: column;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

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

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

.card-link {
  width: 100%;
  /* Make it fill the width of the parent (the .card) */
  height: 100%;
  /* Make it fill the height of the parent (the .card) */
  text-decoration: none;
  /* Remove the default underline */
  color: inherit;
  /* Inherit text color from the parent, preventing the default blue link color */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Optional: Add hover effects to the .card to indicate it's clickable */
.card:hover {
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  /* Example hover effect */
}