:root {
  --bg: #ffffff;
  --text: #333333;
  --accent: #222222;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}

body.dark-mode {
  --bg: #121212;
  --text: #eeeeee;
  --accent: #ffffff;
}

header {
  background: var(--accent);
  color: var(--bg);
  padding: 2rem;
  text-align: center;
  position: relative;
  animation: fadeInDown 1s ease forwards;
}

#themeToggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  color: var(--accent);
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

nav {
  background: #555;
  padding: 0.5rem;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #ffcc00;
}

section {
  padding: 2rem 1rem;
  margin: 1rem auto;
  max-width: 1200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease forwards;
}

body.dark-mode section {
  background: #222;
  box-shadow: 0 0 8px rgba(255,255,255,0.1);
}

.skills-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  margin-top: 1rem;
}

.skill {
  text-align: center;
  font-weight: 600;
  color: var(--accent);
  animation: fadeInUp 1s ease forwards;
}

.skill img {
  width: 50px;
  height: 50px;
  display: block;
  margin: 0 auto 0.3rem;
  transition: transform 0.3s ease;
}

.skill img:hover {
  transform: scale(1.1);
}

.gallery-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #888 #ddd;
}

.gallery-row::-webkit-scrollbar {
  height: 8px;
}
.gallery-row::-webkit-scrollbar-track {
  background: #ddd;
}
.gallery-row::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.gallery-row img {
  height: 150px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery-row img:hover {
  transform: scale(1.05);
}

.gallerySwiper {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.gallerySwiper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.gallerySwiper .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}
.gallerySwiper .swiper-pagination-bullet-active {
  background: #333;
}

form#contactForm {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form#contactForm input,
form#contactForm textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}

form#contactForm button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.75rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

form#contactForm button:hover {
  background: #444;
  transform: scale(1.05);
}

.whatsapp-float {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  z-index: 1000;
}
.whatsapp-float img {
  width: 100%;
  height: 100%;
}

.intro-image img {
  max-width: 150px;
  border-radius: 50%;
  margin-top: 1rem;
  transition: transform 0.4s ease;
}
.intro-image img:hover {
  transform: scale(1.1);
}

.swiper {
  margin-top: 2rem;
}
.swiper-slide.project {
  background: var(--accent);
  color: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .skills-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .gallery-row {
    height: 120px;
  }
}

footer {
  background-color: #111;
  color: #eee;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

#about {
  background-color: #f0f8ff;
  padding: 2rem;
  border-radius: 8px;
  color: #333;
}
#contact {
  background-color: #1466ad;
  padding: 2rem;
  border-radius: 8px;
  color: #333;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
