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

body {
  font-family: 'Inter', sans-serif;
  background: #f5f3ff;
  color: #1f2937;
}

header {
  background: #6d28d9;
  color: white;
  text-align: center;
  padding: 20px;
  position: sticky;
  top: 0;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg,#6d28d9,#a78bfa);
  color: white;
}

button, .btn {
  background: white;
  color: #6d28d9;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin: 8px;
}

section {
  max-width: 1100px;
  margin: auto;
  padding: 50px 20px;
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #6d28d9;
}

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

.project-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.tech {
  font-weight: 600;
  color: #6d28d9;
}

.skills span {
  display: inline-block;
  background: #ede9fe;
  padding: 8px 16px;
  border-radius: 20px;
  margin: 5px;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

form button {
  width: 100%;
  background: #6d28d9;
  color: white;
}

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

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #6d28d9;
  color: white;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

/* ========================= */
/* ADD-ON: Hover effects */
/* ========================= */

nav a:hover {
  text-decoration: underline;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}

.project-card:hover {
  transform: translateY(-5px);
  transition: .3s;
}


/* ========================= */
/* ADD-ON: Smooth scroll */
/* ========================= */

html {
  scroll-behavior: smooth;
}


/* ========================= */
/* ADD-ON: Profile Image */
/* ========================= */

.profile-img {
  
  width: 140px;
  
  height: 140px;
  
  border-radius: 50%;
  
  margin-bottom: 15px;
  
  border: 4px solid white;
  
}


/* ========================= */
/* ADD-ON: Typing text */
/* ========================= */

.typing {
  
  font-size: 18px;
  
  font-weight: 600;
  
  margin-bottom: 10px;
  
}

/* ========================= */
/* ADD-ON: Animation */
/* ========================= */

.project-card {
  
  animation: fadeIn .6s ease;
  
}


@keyframes fadeIn {
  
  from {
    
    opacity: 0;
    
    transform: translateY(20px);
    
  }
  
  to {
    
    opacity: 1;
    
    transform: translateY(0);
    
  }
  
}


/* ========================= */
/* ADD-ON: Mobile improve */
/* ========================= */

@media(max-width:768px) {
  
  .hero {
    
    padding: 50px 15px;
    
  }
  
  header {
    
    padding: 15px;
    
  }
  
}

/* DARK MODE */

body.dark {
  
  background: #121212;
  
  color: white;
  
}

body.dark header {
  
  background: #1e1e1e;
  
}

body.dark .project-card {
  
  background: #1e1e1e;
  
}

body.dark a {
  
  color: #4da3ff;
  
}

.dark-toggle {
  
  margin: 10px;
  
  padding: 8px 15px;
  
  border: none;
  
  cursor: pointer;
  
  border-radius: 5px;
  
}

.dark-toggle {
  
  position: absolute;
  
  right: 20px;
  
  top: 20px;
  
  font-size: 22px;
  
  background: none;
  
  border: none;
  
  cursor: pointer;
  
}

.dark-toggle:hover {
  
  transform: scale(1.2);
  
}

.project-img {
  width: 100%;        /* Gawin responsive sa container */
  max-width: 400px;   /* Maximum width ng image */
  height: auto;       /* Maintain aspect ratio */
  border-radius: 10px;
  margin-bottom: 10px;
}

