/* Global styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

:root {
  --bg-color-light: #ffffff;
  --text-color-light: #333333;
  --bg-color-dark: #1a1a1a;
  --text-color-dark: #ffffff;
}

[data-theme="light"] {
  --bg-color: var(--bg-color-light);
  --text-color: var(--text-color-light);
}

[data-theme="dark"] {
  --bg-color: var(--bg-color-dark);
  --text-color: var(--text-color-dark);
}

/* Favicon styles for light and dark mode */
@media (prefers-color-scheme: light) {
  link[rel="icon"] {
    href: '/light/favicon-32x32.png';
  }
}
@media (prefers-color-scheme: dark) {
  link[rel="icon"] {
    href: '/dark/favicon-32x32.png';
  }
}

.container {
  width: 90%;
  max-width: 1600px;
  margin: auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 40vh 0 0 0;
}

header h1 {
  margin: 0;
  font-size: 5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

p {
  font-size: 1.2em;
  max-width: 500px;
  text-align: center;
  margin: 0 auto;
}

.aboutme {
  margin-top: 30vh;
}

.theme-switch {
  text-align: center;
  margin: 20px 0;
}

.theme-switch button {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.theme-switch button:hover {
  background-color: #0056b3;
}

section {
  margin-bottom: 40px;
  text-align: center;
}

.portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.portfolio-item {
  width: 100%;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  overflow: hidden;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.portfolio-item iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-item .btn-visit {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.portfolio-item .btn-visit:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  font-size: 1.2em;
}

footer a {
  margin: 0 10px;
  color: inherit;
  text-decoration: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0056b3;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #007bff var(--bg-color);
}

/* Parallax section */
.parallax {
  background-image: url('./hack.png');
  height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in.show {
  opacity: 1;
}
