@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0a0a0a;
  color: #b74b4b;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Home Image */
.home-img {
  text-align: center;
  margin-bottom: 2rem;
}

.home-img img {
  width: 180px;
  max-width: 90%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(183, 75, 75, 0.6);
  transition: transform 0.3s ease;
}

.home-img img:hover {
  transform: scale(1.05);
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #b74b4b;
  margin-bottom: 1rem;
  text-align: center;
}

h1 { 
  font-size: clamp(2rem, 5vw, 2.5rem);
}
h2 { 
  font-size: clamp(1.75rem, 4vw, 2rem);
}
h3 { 
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
}
h4 { 
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p, li, a, summary {
  font-weight: 400;
  color: #ddd;
}

/* Links */
a {
  color: #b74b4b;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  text-shadow: 0 0 10px #b74b4b, 0 0 20px #74b4bb;
  outline: none;
}

/* Lists */
ul {
  list-style: none;
  margin: 0 auto 30px;
  padding: 0 20px;
  max-width: 700px;
}

ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #eee;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  text-align: left;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

ul li:before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: #b74b4b;
  border-radius: 50%;
  box-shadow: 0 0 10px #b74b4b;
}

/* Header */
header.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  border-bottom: 2px solid rgba(183, 75, 75, 0.3);
  position: sticky;
  top: 0;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .logo {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b74b4b;
  white-space: nowrap;
}

header nav {
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  flex-wrap: wrap;
  justify-content: center;
}

header nav a {
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #eee;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

header nav a.active,
header nav a:hover,
header nav a:focus {
  color: #b74b4b;
  background-color: rgba(183, 75, 75, 0.2);
  transform: translateY(-2px);
}

/* Sections */
section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 5%;
  text-align: center;
}

/* Home Section */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  gap: 2rem;
  padding: 2rem 5%;
}

.home-content {
  text-align: center;
  max-width: 800px;
}

.home-content h1 span {
  color: #74b4bb;
}

.home-content .typing-text {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: #eee;
  margin: 1rem 0;
  min-height: 2.5rem;
}

.home-content .typing-text span {
  color: #b74b4b;
  border-right: 2px solid #b74b4b;
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50% { border-color: #b74b4b; }
  51%, 100% { border-color: transparent; }
}

.home-content p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: #ddd;
  margin: 1.5rem 0;
  line-height: 1.8;
}

/* Social Icons */
.social-icons {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icons a {
  font-size: clamp(2rem, 5vw, 2.5rem);
  padding: 10px;
  color: #b74b4b;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.social-icons a:hover {
  color: #74b4bb;
  transform: scale(1.2) rotate(5deg);
}

/* Wrapper/Details */
.wrapper {
  color: #b74b4b;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  max-width: 900px;
  margin: 1rem auto;
  padding: 0 10px;
}

.wrapper p {
  color: #aad68c;
  margin-top: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.wrapper details {
  background-color: rgba(183, 75, 75, 0.05);
  border: 1px solid rgba(183, 75, 75, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.wrapper details:hover {
  background-color: rgba(183, 75, 75, 0.1);
  border-color: rgba(183, 75, 75, 0.4);
}

.wrapper details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  outline: none;
  padding: 0.5rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper details summary::-webkit-details-marker {
  display: none;
}

.wrapper details summary::before {
  content: '▶';
  margin-right: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.wrapper details[open] summary::before {
  transform: rotate(90deg);
}

.wrapper details[open] summary {
  color: #74b4bb;
  margin-bottom: 1rem;
}

/* Buttons */
button,
.btn {
  background-color: #b74b4b;
  border: none;
  padding: 0.8rem 2rem;
  color: white;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 1rem;
}

button:hover,
.btn:hover {
  background-color: #a03f3f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(183, 75, 75, 0.4);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Forms */
form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  text-align: left;
  color: #b74b4b;
  font-weight: 600;
  margin-bottom: -0.5rem;
}

input, 
textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  border: 2px solid rgba(183, 75, 75, 0.3);
  border-radius: 8px;
  background-color: rgba(17, 17, 17, 0.8);
  color: #eee;
  resize: vertical;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

input:focus, 
textarea:focus {
  outline: none;
  border-color: #74b4bb;
  box-shadow: 0 0 15px rgba(116, 180, 187, 0.3);
  background-color: rgba(17, 17, 17, 1);
}

/* Icon Credit */
.icon-credit {
  font-size: 0.75rem;
  text-align: center;
  padding: 2rem 5%;
  color: #666;
  margin-top: 3rem;
}

.icon-credit a {
  color: #74b4bb;
}

.icon-credit a:hover {
  text-decoration: underline;
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #0a0a0a;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b74b4b, #74b4bb);
  border-radius: 10px;
  border: 2px solid #0a0a0a;
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff7f7f, #74b4bb);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-1 {
  margin-top: 1rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  header.header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  header nav {
    width: 100%;
    justify-content: center;
  }

  header nav a {
    padding: 10px 15px;
  }

  .home {
    min-height: auto;
    padding: 2rem 5%;
  }

  section {
    margin: 2rem auto;
  }

  ul li {
    text-align: left;
  }

  .social-icons {
    gap: 15px;
  }

  .wrapper details {
    padding: 0.75rem;
  }

  form {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  header .logo {
    font-size: 1.3rem;
  }

  header nav a {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .home-img img {
    width: 150px;
  }

  .social-icons a {
    font-size: 1.8rem;
    padding: 8px;
  }

  ul li {
    padding-left: 25px;
    font-size: 0.95rem;
  }

  ul li:before {
    width: 10px;
    height: 10px;
    top: 8px;
  }
}
