:root {
  --blue-1: #7BD5F5;
  --blue-2: #787FF6;
  --blue-3: #AADEDE;
  --blue-4: #1CA7EC;
  --blue-5: #1F2F98;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: var(--blue-1);
  color: #222;
  line-height: 1.6;
}

header {
  text-align: center;
  background: var(--blue-5);
  color: white;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--blue-5), var(--blue-3));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

header img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--blue-3), white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  font-size: 1.1rem;
}
html {
  scroll-behavior: smooth;
}

.tagline {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.3rem;
  color: #4b4b4b;
  letter-spacing: 1px;
}
.intro {
  max-width: 600px;
  margin: 0.5rem auto 0;
  font-size: 1rem;
  color: #e0e0e0;
}

.nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  background-color: white;
  color: var(--blue-4);
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  border: 2px solid var(--blue-4);
  transition: 0.3s;
  font-weight: bold;
}

.nav a:hover {
  background-color: var(--blue-4);
  color: white;
}
.about-me {
  text-align: center;
  margin-bottom: 3rem;
}

.about-me h2 {
  color: var(--blue-5);
  margin-bottom: 1rem;
}

.about-me p {
  font-size: 1.1rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
}

.previews {
  text-align: center;
}

.previews h2 {
  color: var(--blue-5);
  margin-bottom: 1.5rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.card h3 {
  color: var(--blue-4);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.view-btn {
  display: inline-block;
  text-decoration: none;
  background-color: var(--blue-4);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s;
}

.view-btn:hover {
  background-color: var(--blue-5);
}

@media (max-width: 600px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
}
.back-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--blue-4);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}
.back-top:hover { background-color: var(--blue-5); }
section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

main {
  max-width: 800px;
  margin: auto;
  padding: 2rem 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
  color: var(--blue-5);
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.5rem;
}

.contacts h2 {
  margin-bottom: 0.8rem;
  color: var(--blue-5);
}
.contacts p {
  color: #333;
  margin-bottom: 0.5rem;
}
.contacts a {
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--blue-5), var(--blue-3));
  color: white;
  margin-top: 2rem;
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.1);
}

.cert-img:hover, .poster-img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  main, .project-container, .skills-hobbies-container {
    margin: 1rem;
    padding: 1.5rem;
  }
}

/* ===== DARK MODE GLOBAL STYLES ===== */
body.dark-mode {
  background-color: #0a0a0a;
  color: #e0e0e0;
}

body.dark-mode header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.dark-mode header h1 {
  background: linear-gradient(to right, #64b5f6, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode header p {
  color: #b0b0b0;
}

body.dark-mode .tagline {
  color: #b0b0b0;
}

body.dark-mode .nav a {
  background-color: #222;
  color: #64b5f6;
  border-color: #64b5f6;
}

body.dark-mode .nav a:hover {
  background-color: #64b5f6;
  color: #0a0a0a;
}

body.dark-mode main {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode h2 {
  color: #64b5f6;
}

body.dark-mode h3 {
  color: #64b5f6;
}

body.dark-mode .about-me h2 {
  color: #64b5f6;
}

body.dark-mode .contacts h2 {
  color: #64b5f6;
}

body.dark-mode .contacts p {
  color: #b0b0b0;
}

body.dark-mode .contacts a {
  color: #64b5f6;
}

body.dark-mode .contacts a:hover {
  color: #90caf9;
}

body.dark-mode footer {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #e0e0e0;
}

body.dark-mode ul {
  color: #b0b0b0;
}

body.dark-mode ul li {
  color: #b0b0b0;
}

body.dark-mode a {
  color: #64b5f6;
}

body.dark-mode a:hover {
  color: #90caf9;
}

body.dark-mode .intro {
  color: #b0b0b0;
}

body.dark-mode img {
  opacity: 0.9;
}

/* Dark mode for buttons */
body.dark-mode button {
  background-color: #333;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode button:hover {
  background-color: #444;
}

/* Dark mode for form elements */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #222;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: #64b5f6;
  background-color: #2a2a2a;
}

/* Smooth transition for dark mode */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== DARK MODE FOR SPECIFIC PAGES ===== */

/* Project page */
body.dark-mode .cert-container {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .cert-container h2,
body.dark-mode .cert-container h3 {
  color: #64b5f6;
}

body.dark-mode .cert-container p {
  color: #ffffff;
}

/* Resume page */
body.dark-mode .resume-container {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .resume-container h2,
body.dark-mode .resume-container h3 {
  color: #64b5f6;
}

body.dark-mode .resume-container p {
  color: #ffffff;
}

body.dark-mode .resume-container ul li {
  color: #ffffff;
}

/* About me and intro paragraphs */
body.dark-mode .about-me p,
body.dark-mode .intro p {
  color: #ffffff;
}

/* Dark mode for navigation on all pages */
body.dark-mode .nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.dark-mode .nav a {
  background-color: #222;
  color: #64b5f6;
  border-color: #64b5f6;
}

body.dark-mode .nav a:hover {
  background-color: #64b5f6;
  color: #0a0a0a;
}
<meta property="og:title" content="Edmer John D. Pino | Front-End Developer">
<meta property="og:description" content="Portfolio of Edmer Pino – front-end developer and creative designer.">
<meta property="og:image" content="preview.png">

