:root {
  /* Base Color Palette */
  --main-bg-color: hsl(210, 15%, 15%); 
  --secondary-bg-color: hsl(210, 12%, 25%);
  --subtle-bg-color: hsl(200, 10%, 20%); 

  --main-text-color: hsl(0, 0%, 95%); 
  --secondary-text-color: hsl(210, 10%, 75%);
  --subtle-text-color: hsl(210, 8%, 55%);

  /* Accent Colors (To draw attention and create visual hierarchy) */
  --primary-accent-color: hsl(30, 80%, 60%);
  --secondary-accent-color: hsl(190, 60%, 55%);

  /* State and Notification Colors */
  --success-color: hsl(140, 55%, 50%); 
  --warning-color: hsl(45, 90%, 55%); 
  --error-color: hsl(0, 70%, 60%);  
  --info-color: hsl(200, 70%, 60%); 

  /* Shadows (Subtle to give depth without competing with the image) */
  --light-shadow: 0 0.125rem 0.3125rem hsla(0, 0%, 0%, 0.2);
  --medium-shadow: 0 0.25rem 0.625rem hsla(0, 0%, 0%, 0.3);
  --dark-shadow: 0 0.375rem 0.9375rem hsla(0, 0%, 0%, 0.4);

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-medium: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--main-bg-color);
  color: var(--main-text-color);
}

img {
  max-inline-size: 100%;
  display: block;
}

h1, h2, h3, p {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2.25rem;     
  font-weight: 700;
  margin-block-end: 1rem;    
}

h2 {
  font-size: 1.75rem;     
  font-weight: 600;
  margin-block-end: 0.75rem;
}

h3 {
  font-size: 1.5rem;      
  font-weight: 500;
  margin-block-end: 0.5rem;
}

p {
  font-size: 1rem;        
  line-height: 1.6;       
  color: var(--main-text-color);
  margin-block-end: 1rem;
}

.main-container {
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../../assets/images/bg-main.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 57% center; 
  min-block-size: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 2rem;
  padding-inline: 2rem;
  text-align: center;
}

.welcome {
  max-inline-size: 90%;
}

.welcome-title {
  font-size: 1.65rem;
  margin-block-end: 0.5rem;
  color: var(--main-text-color);
  text-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.7);
}

.welcome-subtitle {
  font-size: 1rem;
  color: var(--secondary-text-color);
  text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.6);
  line-height: 1.5;
}

.github-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.github-link:hover {
  transform: scale(1.1);
}

.github-icon {
  inline-size: 2.5rem;
  block-size: 2.5rem;
  opacity: 0.85;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 48rem) {
  h1 {
    font-size: 2.75rem; 
  }

  h2 {
    font-size: 2.25rem; 
  }

  h3 {
    font-size: 1.75rem; 
  }

  .main-container {
    background-position: 60% center;
  }

  .welcome-title {
    font-size: 2.75rem;
  }

  .welcome-subtitle {
    font-size: 1.25rem;
  }

  .github-icon {
    inline-size: 3rem;
    block-size: 3rem;
  }
}
