.home {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.3); /* Darken the background image in Dark Mode */
  transition: filter 0.5s ease;
}

.light-mode .home img {
    filter: brightness(0.8); /* Lighten the image in Light Mode */
}

.home:before {
  content: "";
  background: rgba(0, 0, 0, 0.6); /* Deeper overlay in Dark Mode */
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: background 0.5s ease;
}

.light-mode .home:before {
    background: rgba(255, 255, 255, 0.4); /* Lighter overlay in Light Mode */
}

.home .container {
  position: relative;
  z-index: 3;
  text-align: center;
}

.home h2 {
  margin: 0;
  font-size: 3.5rem; /* Reduced size for modernity */
  font-weight: 800;
  color: var(--heading-color);
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.5); /* Subtle glow */
  letter-spacing: 2px;
}
.light-mode .home h2 {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.home p {
  margin: 10px 0 20px 0;
  font-size: 1.5rem;
  color: var(--default-color);
}

.home p span {
  letter-spacing: 1px;
  color: var(--accent-color); /* Highlight the typed text */
  font-weight: 600;
}

/* Custom Terminal-like Typing Effect Area */
.terminal-command {
  margin-top: 30px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 188, 212, 0.2);
}
.light-mode .terminal-command {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 15px rgba(0, 151, 167, 0.1);
}


.terminal-command .prompt {
  color: #50fa7b; /* Green prompt */
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.1rem;
}
.light-mode .terminal-command .prompt {
    color: #0288d1; /* Blue prompt in light mode */
}

.terminal-command .typed-cursor {
  opacity: 1;
  -webkit-animation: blink 0.7s infinite;
  -moz-animation: blink 0.7s infinite;
  animation: blink 0.7s infinite;
  color: var(--accent-color);
}
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Minimalist Quote Generator Styling */
.quote-mini-container {
    max-width: 600px;
    margin: 30px auto 0 auto;
    text-align: center;
}

.quote-mini-button {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-shadow: none;
}

.quote-mini-button:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.5);
    transform: translateY(-2px);
}

.quote-mini-button i {
    margin-right: 8px;
}

.quote-mini-display {
    /* Set to none by default, JS toggles to block and sets opacity to 1 */
    display: none; 
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--default-color);
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease-in-out; /* Enable smooth fade-in/out */
}
.light-mode .quote-mini-display {
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--font-primary);
}


.home .social-links {
  margin-top: 25px;
}

.home .social-links a {
  font-size: 24px;
  display: inline-block;
  color: var(--default-color);
  background: color-mix(in srgb, var(--surface-color), transparent 50%);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  margin: 0 8px;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.home .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.6);
}


@media (max-width: 1000px) {
  .home {
    padding: 60px 0;
  }

  .home h2 {
    font-size: 2.5rem;
  }

  .home p {
    font-size: 1.2rem;
  }

  .home .social-links a {
    font-size: 20px;
    width: 38px;
    height: 38px;
    line-height: 38px;
  }

  .terminal-command {
    max-width: 90%;
    padding: 15px;
  }

  .terminal-command .prompt {
    font-size: 1rem;
  }

  .quote-mini-container {
      margin-top: 20px;
      padding: 0 15px;
  }
}
