body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
    background: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='2' fill='%23e0e0e0'/%3E%3C/svg%3E");
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease
}

body.dark {
    background: #121212;
    color: #eaeaea;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='2' fill='%23222222'/%3E%3C/svg%3E");
}
body.dark .card {
    background: #1e1e1e;
}
body.dark header.hero {
    background: linear-gradient(135deg, #2e4033, #1a261d);
}

#theme-toggle {
  position: absolute; 
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background: transparent;
  transform: scale(1.1);
}

/* Shooting star animation (dark mode) */
.shooting-star {
  position: fixed;
  width: 3px;
  height: 3px;
  background: white;
  box-shadow: 0 0 6px 2px white;
  border-radius: 50%;
  transform: rotate(45deg);
  animation: shoot 1s ease-out forwards;
  z-index: 9999;
}

@keyframes shoot {
  0% {
    transform: translate(0, 0) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--xTravel, 300px), var(--yTravel, 150px)) rotate(45deg);
    opacity: 0;
  }
}

/* Sunburst animation (light mode) */
.sunburst {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #e2b451 40%, transparent 70%);
  animation: sunburst 0.8s ease-out forwards;
  opacity: 0.7;
  transform: translate(-50%, -50%);
}

@keyframes sunburst {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
}

header.hero {
    background: linear-gradient(135deg, #4e6d58, #395243);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

header.hero h1 {
    font-size: 3rem;
}

header.hero p {
    max-width: 600px;
    margin: 10px auto;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    cursor: pointer;
    display: inline-block;
    background: #9c6705;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #9c6705;
    transform: translateY(-2px);
}

.github-btn {
    background: #9c6705;
}
.github-btn:hover {
    background: #333;
    transform: scale(1.05);
}

.demo-btn {
    background: #000000; /* websites/tools */
}

.demo-btn:hover {
    background: #345c44;
    transform: scale(1.05);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  color: white;
  background-color: #333;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.icon-btn.linkedin {
  background-color: #0a66c2;
}

.icon-btn.github {
  background-color: #24292e;
}

.icon-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}


.section {
    padding: 50px 0;
}



.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 400px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.card-footer {
    margin-top: auto;
    gap: 0.5rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

#contact-form label {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

#contact-form input,
#contact-form textarea {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}

#contact-form button {
  align-self: flex-end;
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: clamp(250px, 60vh, 500px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.gallery img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #4e6d58;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.1s ease;
}

.arrow:hover {
  color: #688f74;
  transition: color 0.1s ease;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}


footer {
    text-align: center;
    padding: 20px;
    background: #4e6d58;
    color: white;
}

body.dark footer {
  background: linear-gradient(135deg, #2e4033, #1a261d);
}
