body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: #e0e6f8;
  scroll-behavior: smooth;
  line-height: 1.8;
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('IMG-20250518-WA0006.jpeg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  z-index: -1;
}

header {
  background: none;
  text-align: center;
  padding: 3rem 1rem 2rem;
  animation: slide-in 1s ease;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 1100px;
  width: 90%;
  margin: auto;
  animation: slide-in 1s ease;
}

.about-text {
  background: rgba(19, 42, 92, 0.85);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  color: #e8edff;
  text-align: center;
  width: 100%;
  max-width: 1100px;
}

.about-text h2 {
  color: #ffffff;
  margin-top: 0;
  font-size: 2rem;
}

.about-text p {
  font-size: 1.2rem;
  color: #e8edff;
}

.extra-text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s ease;
}

.extra-text.show {
  max-height: 400px;
  opacity: 1;
}

#toggleText {
  margin-top: 1rem;
  background: #4f7de6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

#toggleText:hover {
  background: #365fc9;
  transform: scale(1.03);
}

.about-images {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
}

.image-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.image-row img {
  width: 48%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.image-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
}

#contact {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(19, 42, 92, 0.85);
  padding: 2rem;
  border-radius: 10px;
  color: #e8edff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  max-width: 1100px;
  width: 90%;
  margin: 2rem auto;
  animation: slide-in 1s ease;
}

input, select, textarea {
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid #5b8def;
}

button {
  background: #5b8def;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: #3f6fcc;
  transform: scale(1.02);
}

#portfolio {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 2rem;
  animation: slide-in 1s ease;
  background: rgba(19, 42, 92, 0.85);
  border-radius: 12px;
  padding: 1rem 2rem 1rem;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.2rem;
  justify-items: center;
  margin-top: 1rem;
}

.portfolio img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  color: #aabaf5;
  font-size: 0.95rem;
  background: rgba(19, 42, 92, 0.85);
  flex-wrap: wrap;
}

.footer-right a {
  color: #c7d2f8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: #ffffff;
}

@keyframes slide-in {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 800px) {
  .image-row { flex-wrap: wrap; }
  .image-row img { width: 90%; max-width: 400px; }
  .about-text p { font-size: 1.1rem; }
}

@media (max-width: 600px) {
  header h1 { font-size: 1.8rem; }

  form {
    width: 90%;
    max-width: 360px;      
    margin: 2rem auto;     
    padding: 1.2rem 1rem;  
    box-sizing: border-box;
  }

  button { font-size: 1rem; padding: 0.9rem; }

  .portfolio {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-items: center;
    width: 90%;
    max-width: 360px;
    margin: 1rem auto;
  }

  .portfolio img {
    width: 100%;
    max-width: 360px;      
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .image-row {
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
    max-width: 360px;
    margin: 1rem auto;
  }

  .image-row img {
    width: 100%;
    max-width: 360px;      
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  footer { flex-direction: column; text-align: center; gap: 0.5rem; }

  html, body { overflow-x: hidden; }

  section, .about-text { margin-left: auto; margin-right: auto; width: 95%; box-sizing: border-box; }
}
